From 3eb98985999acf72f8f186a4f9df6d0b3a1f0839 Mon Sep 17 00:00:00 2001 From: RevenueCat Git Bot <72824662+RCGitBot@users.noreply.github.com> Date: Tue, 27 Feb 2024 20:27:36 +0100 Subject: [PATCH] Generating new test snapshots for `guido/fia-2856-rework-ios-add-getcurrentoffering-to-offerings` - macos (#3722) Requested by @joshdholtz for [guido/fia-2856-rework-ios-add-getcurrentoffering-to-offerings](https://github.com/RevenueCat/purchases-ios/tree/guido/fia-2856-rework-ios-add-getcurrentoffering-to-offerings) --- ...iptDataWithPresentedOfferingContext.1.json | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/macOS-testPostsReceiptDataWithPresentedOfferingContext.1.json diff --git a/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/macOS-testPostsReceiptDataWithPresentedOfferingContext.1.json b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/macOS-testPostsReceiptDataWithPresentedOfferingContext.1.json new file mode 100644 index 0000000000..5d988bc0d2 --- /dev/null +++ b/Tests/UnitTests/Networking/Backend/__Snapshots__/BackendPostReceiptDataTests/macOS-testPostsReceiptDataWithPresentedOfferingContext.1.json @@ -0,0 +1,40 @@ +{ + "headers" : { + "Authorization" : "Bearer asharedsecret", + "content-type" : "application/json", + "X-Client-Build-Version" : "12345", + "X-Client-Bundle-ID" : "com.apple.dt.xctest.tool", + "X-Client-Version" : "17.0.0", + "X-Is-Sandbox" : "false", + "X-Observer-Mode-Enabled" : "false", + "X-Platform" : "iOS", + "X-Platform-Flavor" : "native", + "X-Platform-Version" : "Version 17.0.0 (Build 21A342)", + "X-Storefront" : "USA", + "X-StoreKit2-Enabled" : "false", + "X-Version" : "4.0.0" + }, + "request" : { + "body" : { + "app_user_id" : "user", + "attributes" : { + "$attConsentStatus" : { + "updated_at_ms" : 1678307200000, + "value" : "authorized" + } + }, + "currency" : "BFD", + "fetch_token" : "YW4gYXdlc29tZSByZWNlaXB0", + "initiation_source" : "purchase", + "is_restore" : false, + "observer_mode" : false, + "presented_offering_identifier" : "a_offering", + "price" : "10.98", + "product_id" : "a_great_product", + "store_country" : "ESP", + "subscription_group_id" : "sub_group" + }, + "method" : "POST", + "url" : "https://api.revenuecat.com/v1/receipts" + } +} \ No newline at end of file