chartmogul-ruby 3.2.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/changelog.md +11 -0
- data/chartmogul-ruby.gemspec +1 -1
- data/lib/chartmogul/api/actions/custom.rb +2 -1
- data/lib/chartmogul/concerns/pageable_with_cursor.rb +4 -0
- data/lib/chartmogul/contact.rb +1 -4
- data/lib/chartmogul/customer.rb +13 -1
- data/lib/chartmogul/customer_invoices.rb +5 -1
- data/lib/chartmogul/enrichment/customer.rb +1 -0
- data/lib/chartmogul/invoice.rb +1 -0
- data/lib/chartmogul/metrics/activity.rb +1 -4
- data/lib/chartmogul/metrics/customers/activity.rb +5 -0
- data/lib/chartmogul/metrics/customers/subscription.rb +5 -0
- data/lib/chartmogul/plan.rb +1 -0
- data/lib/chartmogul/plan_group.rb +1 -0
- data/lib/chartmogul/plan_groups/plans.rb +11 -0
- data/lib/chartmogul/subscription.rb +5 -0
- data/lib/chartmogul/subscription_event.rb +17 -0
- data/lib/chartmogul/version.rb +1 -1
- metadata +5 -102
- data/fixtures/vcr_cassettes/ChartMogul_APIResource/connection/works_in_a_threaded_environment.yml +0 -112
- data/fixtures/vcr_cassettes/ChartMogul_APIResource/connection/works_when_credentials_are_updated.yml +0 -77
- data/fixtures/vcr_cassettes/ChartMogul_Account/returns_details_of_current_account.yml +0 -64
- data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/creates_contact_correctly.yml +0 -134
- data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/destroys_contact_correctly.yml +0 -99
- data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/merges_contact_correctly.yml +0 -105
- data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/paginates_correctly.yml +0 -133
- data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/updates_contact_correctly.yml +0 -102
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/adds_custom_attributes.yml +0 -80
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/adds_required_tags.yml +0 -79
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/can_page_through_search_endpoint.yml +0 -43
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/correctly_handles_a_422_response.yml +0 -50
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/correctly_interracts_with_the_API.yml +0 -192
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/creates_a_contact_belonging_to_the_customer_correctly.yml +0 -72
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/lists_the_contacts_belonging_to_the_customer_correctly.yml +0 -72
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/merges_customers.yml +0 -185
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_401_if_invalid_credentials.yml +0 -38
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_404_if_no_customers_found.yml +0 -38
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_422_for_update_with_invalid_data.yml +0 -86
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/removes_custom_attributes.yml +0 -80
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/removes_tags.yml +0 -80
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/respects_camel_case_for_all_customers_endpoint.yml +0 -45
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_all_customers_through_list_all_endpoint.yml +0 -47
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_customer_through_retrieve_endpoint.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_right_customers_through_search_endpoint.yml +0 -43
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_custom_attributes.yml +0 -81
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_customer.yml +0 -139
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_customer_using_class_method.yml +0 -53
- data/fixtures/vcr_cassettes/ChartMogul_Customer/_find_by_external_id/when_external_id_is_provided/returns_matching_user_if_exists.yml +0 -102
- data/fixtures/vcr_cassettes/ChartMogul_Customer/_find_by_external_id/when_external_id_is_provided/returns_nil_if_customer_does_not_exist.yml +0 -101
- data/fixtures/vcr_cassettes/ChartMogul_CustomerInvoices/API_Interactions/correctly_interracts_with_the_API.yml +0 -337
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_interracts_with_the_API.yml +0 -189
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_raises_errors_on_404.yml +0 -46
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_raises_errors_on_422.yml +0 -48
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/retrieves_existing_data_source_matching_uuid.yml +0 -101
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/deletes_an_invoice.yml +0 -37
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/deletes_an_invoice_with_class_method.yml +0 -37
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/raises_error_on_deleting_non-existing_invoice.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/retrieves_existing_invoice_by_uuid.yml +0 -50
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/returns_all_invoices_through_list_all_endpoint.yml +0 -46
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARPA/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARPA/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARR/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARR/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ASP/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ASP/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ActivitiesExport/get_activities_export.yml +0 -43
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ActivitiesExport/post_activities_export.yml +0 -83
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/behaves_like_PageableWithAnchor/should_be_pageable.yml +0 -44
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/should_have_Activity_entries.yml +0 -44
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity.yml +0 -37
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_entries.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_summary.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerCount/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerCount/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Activity/behaves_like_Pageable/should_be_pageable.yml +0 -41
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Activity/should_have_Activity_entries.yml +0 -41
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Subscription/behaves_like_Pageable/should_be_pageable.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Subscription/should_have_Subscription_entries.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_LTV/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_LTV/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRR/behaves_like_Summary/should_have_summary.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRR/should_have_entries.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/and_fails_on_incorrect_credentials.yml +0 -38
- data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/and_fails_with_500_internal_server_error.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/and_fails_with_504_gateway_timeout_error.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/when_credentials_correct.yml +0 -38
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml +0 -51
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_interacts_with_the_API.yml +0 -152
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/deletes_existing_plan.yml +0 -198
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/retrieves_existing_plan_by_uuid.yml +0 -151
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/updates_existing_plan.yml +0 -198
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/updates_existing_plan_using_class_method.yml +0 -164
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/correctly_handles_a_422_error.yml +0 -50
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/deletes_a_plan_group.yml +0 -293
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/retrieves_existing_plan_group_by_uuid.yml +0 -251
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/returns_an_array_of_plan_groups.yml +0 -357
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/updates_existing_plan_group_name.yml +0 -304
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/updates_existing_plan_group_name_via_class_method.yml +0 -297
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/updates_existing_plan_group_plans.yml +0 -411
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroups_Plans/API_interactions/given_a_plan_group_uuid_returns_an_array_of_plans_in_the_plan_group.yml +0 -252
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/connects_subscriptions.yml +0 -436
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/correctly_interracts_with_the_API.yml +0 -340
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/has_multiple_aliases.yml +0 -101
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/_update_cancellation_dates/when_array_has_time_objects/is_setting_the_cancellation_dates_of_the_subscription.yml +0 -138
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/_update_cancellation_dates/when_array_includes_invalid_entries/raises_an_exception.yml +0 -93
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/_update_cancellation_dates/when_array_includes_valid_entries/is_setting_the_cancellation_dates_of_the_subscription.yml +0 -138
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/_update_cancellation_dates/when_array_is_empty/makes_an_API_call_and_removes_the_cancellation_dates.yml +0 -138
- data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/creates_a_new_subscription_event.yml +0 -320
- data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/deletes_the_subscription_event.yml +0 -377
- data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/lists_all_subscription_events.yml +0 -320
- data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/updates_the_subscription_event.yml +0 -377
- data/fixtures/vcr_cassettes/ChartMogul_Transactions_Payment/API_Interactions/correctly_interracts_with_the_API.yml +0 -243
@@ -1,340 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.chartmogul.com/v1/data_sources
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"name":"Subscription Test Data Source"}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v0.9.2
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic hidden
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 201
|
19
|
-
message:
|
20
|
-
headers:
|
21
|
-
server:
|
22
|
-
- nginx/1.9.10
|
23
|
-
date:
|
24
|
-
- Thu, 23 Jun 2016 20:46:05 GMT
|
25
|
-
content-type:
|
26
|
-
- application/json; charset=utf-8
|
27
|
-
transfer-encoding:
|
28
|
-
- chunked
|
29
|
-
connection:
|
30
|
-
- close
|
31
|
-
x-frame-options:
|
32
|
-
- SAMEORIGIN
|
33
|
-
x-xss-protection:
|
34
|
-
- 1; mode=block
|
35
|
-
x-content-type-options:
|
36
|
-
- nosniff
|
37
|
-
etag:
|
38
|
-
- W/"d9f558c2b556b28cdcc9c323d3ac66dd"
|
39
|
-
cache-control:
|
40
|
-
- max-age=0, private, must-revalidate
|
41
|
-
x-request-id:
|
42
|
-
- 4333819d-8abb-4310-b475-1c6b4adb5c9f
|
43
|
-
x-runtime:
|
44
|
-
- '0.507565'
|
45
|
-
strict-transport-security:
|
46
|
-
- max-age=15768000
|
47
|
-
body:
|
48
|
-
encoding: UTF-8
|
49
|
-
string: '{"uuid":"ds_55ab11fb-53e6-4468-aa95-bd582f14cac6","name":"Subscription
|
50
|
-
Test Data Source","created_at":"2016-06-23T20:46:05.645Z","status":"never_imported"}'
|
51
|
-
http_version:
|
52
|
-
recorded_at: Thu, 23 Jun 2016 20:46:05 GMT
|
53
|
-
- request:
|
54
|
-
method: post
|
55
|
-
uri: https://api.chartmogul.com/v1/customers
|
56
|
-
body:
|
57
|
-
encoding: UTF-8
|
58
|
-
string: '{"data_source_uuid":"ds_55ab11fb-53e6-4468-aa95-bd582f14cac6","external_id":"test_cus_ext_id","name":"Test
|
59
|
-
Customer"}'
|
60
|
-
headers:
|
61
|
-
User-Agent:
|
62
|
-
- Faraday v0.9.2
|
63
|
-
Content-Type:
|
64
|
-
- application/json
|
65
|
-
Authorization:
|
66
|
-
- Basic hidden
|
67
|
-
response:
|
68
|
-
status:
|
69
|
-
code: 201
|
70
|
-
message:
|
71
|
-
headers:
|
72
|
-
server:
|
73
|
-
- nginx/1.9.10
|
74
|
-
date:
|
75
|
-
- Thu, 23 Jun 2016 20:46:06 GMT
|
76
|
-
content-type:
|
77
|
-
- application/json; charset=utf-8
|
78
|
-
transfer-encoding:
|
79
|
-
- chunked
|
80
|
-
connection:
|
81
|
-
- close
|
82
|
-
x-frame-options:
|
83
|
-
- SAMEORIGIN
|
84
|
-
x-xss-protection:
|
85
|
-
- 1; mode=block
|
86
|
-
x-content-type-options:
|
87
|
-
- nosniff
|
88
|
-
etag:
|
89
|
-
- W/"056f26f774245e913872879340e8dd36"
|
90
|
-
cache-control:
|
91
|
-
- max-age=0, private, must-revalidate
|
92
|
-
x-request-id:
|
93
|
-
- b3bc5b32-a587-49e8-8588-a54b9fa048a2
|
94
|
-
x-runtime:
|
95
|
-
- '0.295099'
|
96
|
-
strict-transport-security:
|
97
|
-
- max-age=15768000
|
98
|
-
body:
|
99
|
-
encoding: UTF-8
|
100
|
-
string: '{"uuid":"cus_510b1395-4fe8-4d35-ae23-0e61f9a51e33","external_id":"test_cus_ext_id","name":"Test
|
101
|
-
Customer","company":"","email":"","city":"","state":"","country":"","zip":"","data_source_uuid":"ds_55ab11fb-53e6-4468-aa95-bd582f14cac6"}'
|
102
|
-
http_version:
|
103
|
-
recorded_at: Thu, 23 Jun 2016 20:46:06 GMT
|
104
|
-
- request:
|
105
|
-
method: post
|
106
|
-
uri: https://api.chartmogul.com/v1/plans
|
107
|
-
body:
|
108
|
-
encoding: UTF-8
|
109
|
-
string: '{"data_source_uuid":"ds_55ab11fb-53e6-4468-aa95-bd582f14cac6","name":"Test
|
110
|
-
Plan","interval_count":7,"interval_unit":"day"}'
|
111
|
-
headers:
|
112
|
-
User-Agent:
|
113
|
-
- Faraday v0.9.2
|
114
|
-
Content-Type:
|
115
|
-
- application/json
|
116
|
-
Authorization:
|
117
|
-
- Basic hidden
|
118
|
-
response:
|
119
|
-
status:
|
120
|
-
code: 201
|
121
|
-
message:
|
122
|
-
headers:
|
123
|
-
server:
|
124
|
-
- nginx/1.9.10
|
125
|
-
date:
|
126
|
-
- Thu, 23 Jun 2016 20:46:06 GMT
|
127
|
-
content-type:
|
128
|
-
- application/json; charset=utf-8
|
129
|
-
transfer-encoding:
|
130
|
-
- chunked
|
131
|
-
connection:
|
132
|
-
- close
|
133
|
-
x-frame-options:
|
134
|
-
- SAMEORIGIN
|
135
|
-
x-xss-protection:
|
136
|
-
- 1; mode=block
|
137
|
-
x-content-type-options:
|
138
|
-
- nosniff
|
139
|
-
etag:
|
140
|
-
- W/"cc9005f2d9ac2dcb5fb9076128a32d21"
|
141
|
-
cache-control:
|
142
|
-
- max-age=0, private, must-revalidate
|
143
|
-
x-request-id:
|
144
|
-
- 250b3ffc-64f6-482a-a395-1f46b7cf3736
|
145
|
-
x-runtime:
|
146
|
-
- '0.025146'
|
147
|
-
strict-transport-security:
|
148
|
-
- max-age=15768000
|
149
|
-
body:
|
150
|
-
encoding: UTF-8
|
151
|
-
string: '{"uuid":"pl_06ea83a9-f8c8-4ddd-a980-9ceffd27f107","external_id":null,"name":"Test
|
152
|
-
Plan","interval_count":7,"interval_unit":"day","data_source_uuid":"ds_55ab11fb-53e6-4468-aa95-bd582f14cac6"}'
|
153
|
-
http_version:
|
154
|
-
recorded_at: Thu, 23 Jun 2016 20:46:06 GMT
|
155
|
-
- request:
|
156
|
-
method: post
|
157
|
-
uri: https://api.chartmogul.com/v1/import/customers/cus_510b1395-4fe8-4d35-ae23-0e61f9a51e33/invoices
|
158
|
-
body:
|
159
|
-
encoding: UTF-8
|
160
|
-
string: '{"invoices":[{"date":"2016-01-01 12:00:00 +0000","currency":"USD","line_items":[{"type":"subscription","subscription_external_id":"test_cus_sub_ext_id", "subscription_set_external_id":"test_cus_set_ext_id", "plan_uuid":"pl_06ea83a9-f8c8-4ddd-a980-9ceffd27f107","service_period_start":"2016-01-01
|
161
|
-
12:00:00 +0000","service_period_end":"2016-02-01 12:00:00 +0000","amount_in_cents":1000}],"external_id":"test_tr_inv_ext_id"}],"customer_uuid":"cus_510b1395-4fe8-4d35-ae23-0e61f9a51e33"}'
|
162
|
-
headers:
|
163
|
-
User-Agent:
|
164
|
-
- Faraday v0.9.2
|
165
|
-
Content-Type:
|
166
|
-
- application/json
|
167
|
-
Authorization:
|
168
|
-
- Basic hidden
|
169
|
-
response:
|
170
|
-
status:
|
171
|
-
code: 201
|
172
|
-
message:
|
173
|
-
headers:
|
174
|
-
server:
|
175
|
-
- nginx/1.9.10
|
176
|
-
date:
|
177
|
-
- Thu, 23 Jun 2016 20:46:07 GMT
|
178
|
-
content-type:
|
179
|
-
- application/json; charset=utf-8
|
180
|
-
transfer-encoding:
|
181
|
-
- chunked
|
182
|
-
connection:
|
183
|
-
- close
|
184
|
-
x-frame-options:
|
185
|
-
- SAMEORIGIN
|
186
|
-
x-xss-protection:
|
187
|
-
- 1; mode=block
|
188
|
-
x-content-type-options:
|
189
|
-
- nosniff
|
190
|
-
etag:
|
191
|
-
- W/"25c93d56164e8f1515058dc7f3a0d468"
|
192
|
-
cache-control:
|
193
|
-
- max-age=0, private, must-revalidate
|
194
|
-
x-request-id:
|
195
|
-
- 72edbe3a-c00c-4d83-80ca-8e091784fa88
|
196
|
-
x-runtime:
|
197
|
-
- '0.095619'
|
198
|
-
strict-transport-security:
|
199
|
-
- max-age=15768000
|
200
|
-
body:
|
201
|
-
encoding: UTF-8
|
202
|
-
string: '{"invoices":[{"uuid":"inv_90054098-c269-46e1-b69a-338a8216499a","external_id":"test_tr_inv_ext_id","date":"2016-01-01T12:00:00.000Z","due_date":null,"currency":"USD","line_items":[{"uuid":"li_d25c8f7f-a10a-445f-9793-b7c68bd699cd","external_id":null,"type":"subscription","subscription_uuid":"sub_9b3ccf25-4613-4af6-84b3-12026cfa4b7c","plan_uuid":"pl_06ea83a9-f8c8-4ddd-a980-9ceffd27f107","prorated":false,"service_period_start":"2016-01-01T12:00:00.000Z","service_period_end":"2016-02-01T12:00:00.000Z","amount_in_cents":1000,"quantity":1,"discount_code":"","discount_amount_in_cents":0,"tax_amount_in_cents":0}],"transactions":[]}]}'
|
203
|
-
http_version:
|
204
|
-
recorded_at: Thu, 23 Jun 2016 20:46:07 GMT
|
205
|
-
- request:
|
206
|
-
method: get
|
207
|
-
uri: https://api.chartmogul.com/v1/import/customers/cus_510b1395-4fe8-4d35-ae23-0e61f9a51e33/subscriptions
|
208
|
-
body:
|
209
|
-
encoding: US-ASCII
|
210
|
-
string: ''
|
211
|
-
headers:
|
212
|
-
User-Agent:
|
213
|
-
- Faraday v0.9.2
|
214
|
-
Content-Type:
|
215
|
-
- application/json
|
216
|
-
Authorization:
|
217
|
-
- Basic hidden
|
218
|
-
response:
|
219
|
-
status:
|
220
|
-
code: 200
|
221
|
-
message:
|
222
|
-
headers:
|
223
|
-
server:
|
224
|
-
- nginx/1.9.10
|
225
|
-
date:
|
226
|
-
- Thu, 23 Jun 2016 20:46:07 GMT
|
227
|
-
content-type:
|
228
|
-
- application/json; charset=utf-8
|
229
|
-
transfer-encoding:
|
230
|
-
- chunked
|
231
|
-
connection:
|
232
|
-
- close
|
233
|
-
x-frame-options:
|
234
|
-
- SAMEORIGIN
|
235
|
-
x-xss-protection:
|
236
|
-
- 1; mode=block
|
237
|
-
x-content-type-options:
|
238
|
-
- nosniff
|
239
|
-
etag:
|
240
|
-
- W/"797037ae5a33dcae7de46e23dfdd4ec7"
|
241
|
-
cache-control:
|
242
|
-
- max-age=0, private, must-revalidate
|
243
|
-
x-request-id:
|
244
|
-
- efa1a67e-37e8-4ac3-bce7-8d11f33d0e8c
|
245
|
-
x-runtime:
|
246
|
-
- '0.026716'
|
247
|
-
strict-transport-security:
|
248
|
-
- max-age=15768000
|
249
|
-
body:
|
250
|
-
encoding: UTF-8
|
251
|
-
string: '{"customer_uuid":"cus_510b1395-4fe8-4d35-ae23-0e61f9a51e33","subscriptions":[{"uuid":"sub_9b3ccf25-4613-4af6-84b3-12026cfa4b7c","external_id":"test_cus_sub_ext_id", "subscription_set_external_id":"test_cus_set_ext_id","cancellation_dates":[],"plan_uuid":"pl_06ea83a9-f8c8-4ddd-a980-9ceffd27f107","data_source_uuid":"ds_55ab11fb-53e6-4468-aa95-bd582f14cac6"}],"current_page":1,"total_pages":1}'
|
252
|
-
http_version:
|
253
|
-
recorded_at: Thu, 23 Jun 2016 20:46:07 GMT
|
254
|
-
- request:
|
255
|
-
method: patch
|
256
|
-
uri: https://api.chartmogul.com/v1/import/subscriptions/sub_9b3ccf25-4613-4af6-84b3-12026cfa4b7c
|
257
|
-
body:
|
258
|
-
encoding: UTF-8
|
259
|
-
string: '{"cancelled_at":"2016-01-15 12:00:00 +0000"}'
|
260
|
-
headers:
|
261
|
-
User-Agent:
|
262
|
-
- Faraday v0.9.2
|
263
|
-
Content-Type:
|
264
|
-
- application/json
|
265
|
-
Authorization:
|
266
|
-
- Basic hidden
|
267
|
-
response:
|
268
|
-
status:
|
269
|
-
code: 202
|
270
|
-
message:
|
271
|
-
headers:
|
272
|
-
server:
|
273
|
-
- nginx/1.9.10
|
274
|
-
date:
|
275
|
-
- Thu, 23 Jun 2016 20:46:07 GMT
|
276
|
-
content-type:
|
277
|
-
- application/json; charset=utf-8
|
278
|
-
transfer-encoding:
|
279
|
-
- chunked
|
280
|
-
connection:
|
281
|
-
- close
|
282
|
-
x-frame-options:
|
283
|
-
- SAMEORIGIN
|
284
|
-
x-xss-protection:
|
285
|
-
- 1; mode=block
|
286
|
-
x-content-type-options:
|
287
|
-
- nosniff
|
288
|
-
cache-control:
|
289
|
-
- no-cache
|
290
|
-
x-request-id:
|
291
|
-
- 7bdf7b19-3d18-481a-9f12-e3f613b50f7b
|
292
|
-
x-runtime:
|
293
|
-
- '0.060122'
|
294
|
-
body:
|
295
|
-
encoding: UTF-8
|
296
|
-
string: '{"uuid":"sub_9b3ccf25-4613-4af6-84b3-12026cfa4b7c","external_id":"test_cus_sub_ext_id","cancellation_dates":["2016-01-15T12:00:00.000Z"],"customer_uuid":"cus_510b1395-4fe8-4d35-ae23-0e61f9a51e33","plan_uuid":"pl_06ea83a9-f8c8-4ddd-a980-9ceffd27f107","data_source_uuid":"ds_55ab11fb-53e6-4468-aa95-bd582f14cac6"}'
|
297
|
-
http_version:
|
298
|
-
recorded_at: Thu, 23 Jun 2016 20:46:07 GMT
|
299
|
-
- request:
|
300
|
-
method: delete
|
301
|
-
uri: https://api.chartmogul.com/v1/data_sources/ds_55ab11fb-53e6-4468-aa95-bd582f14cac6
|
302
|
-
body:
|
303
|
-
encoding: US-ASCII
|
304
|
-
string: ''
|
305
|
-
headers:
|
306
|
-
User-Agent:
|
307
|
-
- Faraday v0.9.2
|
308
|
-
Authorization:
|
309
|
-
- Basic hidden
|
310
|
-
response:
|
311
|
-
status:
|
312
|
-
code: 204
|
313
|
-
message:
|
314
|
-
headers:
|
315
|
-
server:
|
316
|
-
- nginx/1.9.10
|
317
|
-
date:
|
318
|
-
- Thu, 23 Jun 2016 20:46:07 GMT
|
319
|
-
connection:
|
320
|
-
- close
|
321
|
-
x-frame-options:
|
322
|
-
- SAMEORIGIN
|
323
|
-
x-xss-protection:
|
324
|
-
- 1; mode=block
|
325
|
-
x-content-type-options:
|
326
|
-
- nosniff
|
327
|
-
cache-control:
|
328
|
-
- no-cache
|
329
|
-
x-request-id:
|
330
|
-
- ebf1f856-a389-457f-aead-22769e35aa8e
|
331
|
-
x-runtime:
|
332
|
-
- '0.013399'
|
333
|
-
strict-transport-security:
|
334
|
-
- max-age=15768000
|
335
|
-
body:
|
336
|
-
encoding: UTF-8
|
337
|
-
string: ''
|
338
|
-
http_version:
|
339
|
-
recorded_at: Thu, 23 Jun 2016 20:46:07 GMT
|
340
|
-
recorded_with: VCR 3.0.3
|
data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/has_multiple_aliases.yml
DELETED
@@ -1,101 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.chartmogul.com/v1/import/customers/cus_510b1395-4fe8-4d35-ae23-0e61f9a51e33/subscriptions?page=1&per_page=2
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v0.9.2
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic hidden
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message:
|
20
|
-
headers:
|
21
|
-
server:
|
22
|
-
- nginx/1.9.10
|
23
|
-
date:
|
24
|
-
- Thu, 23 Jun 2016 20:46:07 GMT
|
25
|
-
content-type:
|
26
|
-
- application/json; charset=utf-8
|
27
|
-
transfer-encoding:
|
28
|
-
- chunked
|
29
|
-
connection:
|
30
|
-
- close
|
31
|
-
x-frame-options:
|
32
|
-
- SAMEORIGIN
|
33
|
-
x-xss-protection:
|
34
|
-
- 1; mode=block
|
35
|
-
x-content-type-options:
|
36
|
-
- nosniff
|
37
|
-
etag:
|
38
|
-
- W/"797037ae5a33dcae7de46e23dfdd4ec7"
|
39
|
-
cache-control:
|
40
|
-
- max-age=0, private, must-revalidate
|
41
|
-
x-request-id:
|
42
|
-
- efa1a67e-37e8-4ac3-bce7-8d11f33d0e8c
|
43
|
-
x-runtime:
|
44
|
-
- '0.026716'
|
45
|
-
strict-transport-security:
|
46
|
-
- max-age=15768000
|
47
|
-
body:
|
48
|
-
encoding: UTF-8
|
49
|
-
string: '{"customer_uuid":"cus_510b1395-4fe8-4d35-ae23-0e61f9a51e33","subscriptions":[{"uuid":"sub_9b3ccf25-4613-4af6-84b3-12026cfa4b7c","external_id":"test_cus_sub_ext_id","cancellation_dates":[],"plan_uuid":"pl_06ea83a9-f8c8-4ddd-a980-9ceffd27f107","data_source_uuid":"ds_55ab11fb-53e6-4468-aa95-bd582f14cac6"}],"current_page":1,"total_pages":1}'
|
50
|
-
http_version:
|
51
|
-
recorded_at: Thu, 23 Jun 2016 20:46:07 GMT
|
52
|
-
- request:
|
53
|
-
method: get
|
54
|
-
uri: https://api.chartmogul.com/v1/import/customers/cus_510b1395-4fe8-4d35-ae23-0e61f9a51e33/subscriptions?page=2&per_page=1
|
55
|
-
body:
|
56
|
-
encoding: US-ASCII
|
57
|
-
string: ''
|
58
|
-
headers:
|
59
|
-
User-Agent:
|
60
|
-
- Faraday v0.9.2
|
61
|
-
Content-Type:
|
62
|
-
- application/json
|
63
|
-
Authorization:
|
64
|
-
- Basic hidden
|
65
|
-
response:
|
66
|
-
status:
|
67
|
-
code: 200
|
68
|
-
message:
|
69
|
-
headers:
|
70
|
-
server:
|
71
|
-
- nginx/1.9.10
|
72
|
-
date:
|
73
|
-
- Thu, 23 Jun 2016 20:46:07 GMT
|
74
|
-
content-type:
|
75
|
-
- application/json; charset=utf-8
|
76
|
-
transfer-encoding:
|
77
|
-
- chunked
|
78
|
-
connection:
|
79
|
-
- close
|
80
|
-
x-frame-options:
|
81
|
-
- SAMEORIGIN
|
82
|
-
x-xss-protection:
|
83
|
-
- 1; mode=block
|
84
|
-
x-content-type-options:
|
85
|
-
- nosniff
|
86
|
-
etag:
|
87
|
-
- W/"797037ae5a33dcae7de46e23dfdd4ec7"
|
88
|
-
cache-control:
|
89
|
-
- max-age=0, private, must-revalidate
|
90
|
-
x-request-id:
|
91
|
-
- efa1a67e-37e8-4ac3-bce7-8d11f33d0e8c
|
92
|
-
x-runtime:
|
93
|
-
- '0.026716'
|
94
|
-
strict-transport-security:
|
95
|
-
- max-age=15768000
|
96
|
-
body:
|
97
|
-
encoding: UTF-8
|
98
|
-
string: '{"customer_uuid":"cus_510b1395-4fe8-4d35-ae23-0e61f9a51e33","subscriptions":[{"uuid":"sub_9b3ccf25-4613-4af6-84b3-12026cfa4b7c","external_id":"test_cus_sub_ext_id","cancellation_dates":[],"plan_uuid":"pl_06ea83a9-f8c8-4ddd-a980-9ceffd27f107","data_source_uuid":"ds_55ab11fb-53e6-4468-aa95-bd582f14cac6"}],"current_page":2,"total_pages":2}'
|
99
|
-
http_version:
|
100
|
-
recorded_at: Thu, 23 Jun 2016 20:46:07 GMT
|
101
|
-
recorded_with: VCR 3.0.3
|
@@ -1,138 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.chartmogul.com/v1/customers?external_id=test_cus_ext_id
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v0.15.4
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic hidden
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message:
|
20
|
-
headers:
|
21
|
-
server:
|
22
|
-
- nginx/1.10.1
|
23
|
-
date:
|
24
|
-
- Mon, 04 Mar 2019 15:04:12 GMT
|
25
|
-
content-type:
|
26
|
-
- application/json
|
27
|
-
content-length:
|
28
|
-
- '889'
|
29
|
-
connection:
|
30
|
-
- keep-alive
|
31
|
-
status:
|
32
|
-
- 200 OK
|
33
|
-
access-control-allow-credentials:
|
34
|
-
- 'true'
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: '{"entries":[{"id":22661127,"uuid":"cus_b289bb4c-3e6f-11e9-b645-6369759fc9da","external_id":"test_cus_ext_id","name":"Test
|
38
|
-
Customer","email":"","status":"Active","customer-since":"2016-01-01T12:00:00+00:00","attributes":{"custom":{},"clearbit":{},"stripe":{},"tags":[]},"data_source_uuid":"ds_99d06d30-3e6f-11e9-b645-837bf5404a47","data_source_uuids":["ds_99d06d30-3e6f-11e9-b645-837bf5404a47"],"external_ids":["test_cus_ext_id"],"company":"","country":null,"state":null,"city":"","zip":null,"lead_created_at":null,"free_trial_started_at":null,"address":{"country":null,"state":null,"city":"","address_zip":null},"mrr":4348,"arr":52176,"billing-system-url":null,"chartmogul-url":"https://app.chartmogul.com/#customers/22661127-Test_Customer","billing-system-type":"Import
|
39
|
-
API","currency":"USD","currency-sign":"$"}],"current_page":1,"total_pages":1,"has_more":false,"per_page":200,"page":1}'
|
40
|
-
http_version:
|
41
|
-
recorded_at: Mon, 04 Mar 2019 15:04:12 GMT
|
42
|
-
- request:
|
43
|
-
method: get
|
44
|
-
uri: https://api.chartmogul.com/v1/import/customers/cus_b289bb4c-3e6f-11e9-b645-6369759fc9da/subscriptions
|
45
|
-
body:
|
46
|
-
encoding: US-ASCII
|
47
|
-
string: ''
|
48
|
-
headers:
|
49
|
-
User-Agent:
|
50
|
-
- Faraday v0.15.4
|
51
|
-
Content-Type:
|
52
|
-
- application/json
|
53
|
-
Authorization:
|
54
|
-
- Basic hidden
|
55
|
-
response:
|
56
|
-
status:
|
57
|
-
code: 200
|
58
|
-
message:
|
59
|
-
headers:
|
60
|
-
server:
|
61
|
-
- nginx/1.10.1
|
62
|
-
date:
|
63
|
-
- Mon, 04 Mar 2019 15:04:12 GMT
|
64
|
-
content-type:
|
65
|
-
- application/json; charset=utf-8
|
66
|
-
transfer-encoding:
|
67
|
-
- chunked
|
68
|
-
connection:
|
69
|
-
- keep-alive
|
70
|
-
vary:
|
71
|
-
- Accept-Encoding, Accept-Encoding
|
72
|
-
x-frame-options:
|
73
|
-
- SAMEORIGIN
|
74
|
-
x-xss-protection:
|
75
|
-
- 1; mode=block
|
76
|
-
x-content-type-options:
|
77
|
-
- nosniff
|
78
|
-
etag:
|
79
|
-
- W/"326d93dd0e74d25754ea1611dc13afb0"
|
80
|
-
cache-control:
|
81
|
-
- max-age=0, private, must-revalidate
|
82
|
-
x-request-id:
|
83
|
-
- ce3e2ca1-ac44-4e83-bad3-4418d5b9f99d
|
84
|
-
x-runtime:
|
85
|
-
- '0.062006'
|
86
|
-
strict-transport-security:
|
87
|
-
- max-age=15768000
|
88
|
-
body:
|
89
|
-
encoding: ASCII-8BIT
|
90
|
-
string: '{"customer_uuid":"cus_b289bb4c-3e6f-11e9-b645-6369759fc9da","subscriptions":[{"uuid":"sub_c2c97897-f0a0-4448-a035-043d7a19b845","external_id":"test_cus_sub_ext_id","cancellation_dates":[],"plan_uuid":"pl_933aefe0-209d-0137-2188-040113b1c101","data_source_uuid":"ds_99d06d30-3e6f-11e9-b645-837bf5404a47"}],"current_page":1,"total_pages":1}'
|
91
|
-
http_version:
|
92
|
-
recorded_at: Mon, 04 Mar 2019 15:04:12 GMT
|
93
|
-
- request:
|
94
|
-
method: patch
|
95
|
-
uri: https://api.chartmogul.com/v1/import/subscriptions/sub_c2c97897-f0a0-4448-a035-043d7a19b845
|
96
|
-
body:
|
97
|
-
encoding: UTF-8
|
98
|
-
string: '{"cancellation_dates":["2000-01-01 00:00:00 UTC"]}'
|
99
|
-
headers:
|
100
|
-
User-Agent:
|
101
|
-
- Faraday v0.15.4
|
102
|
-
Content-Type:
|
103
|
-
- application/json
|
104
|
-
Authorization:
|
105
|
-
- Basic hidden
|
106
|
-
response:
|
107
|
-
status:
|
108
|
-
code: 202
|
109
|
-
message:
|
110
|
-
headers:
|
111
|
-
server:
|
112
|
-
- nginx/1.10.1
|
113
|
-
date:
|
114
|
-
- Mon, 04 Mar 2019 15:04:13 GMT
|
115
|
-
content-type:
|
116
|
-
- application/json; charset=utf-8
|
117
|
-
transfer-encoding:
|
118
|
-
- chunked
|
119
|
-
connection:
|
120
|
-
- keep-alive
|
121
|
-
x-frame-options:
|
122
|
-
- SAMEORIGIN
|
123
|
-
x-xss-protection:
|
124
|
-
- 1; mode=block
|
125
|
-
x-content-type-options:
|
126
|
-
- nosniff
|
127
|
-
cache-control:
|
128
|
-
- no-cache
|
129
|
-
x-request-id:
|
130
|
-
- d65b3ecf-9fbb-4c4b-b213-cdf17415cbc4
|
131
|
-
x-runtime:
|
132
|
-
- '0.125522'
|
133
|
-
body:
|
134
|
-
encoding: UTF-8
|
135
|
-
string: '{"uuid":"sub_c2c97897-f0a0-4448-a035-043d7a19b845","external_id":"test_cus_sub_ext_id","cancellation_dates":["2000-01-01T00:00:00.000Z"],"customer_uuid":"cus_b289bb4c-3e6f-11e9-b645-6369759fc9da","plan_uuid":"pl_933aefe0-209d-0137-2188-040113b1c101","data_source_uuid":"ds_99d06d30-3e6f-11e9-b645-837bf5404a47"}'
|
136
|
-
http_version:
|
137
|
-
recorded_at: Mon, 04 Mar 2019 15:04:13 GMT
|
138
|
-
recorded_with: VCR 3.0.3
|
@@ -1,93 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.chartmogul.com/v1/customers?external_id=test_cus_ext_id
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v0.15.4
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic hidden
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message:
|
20
|
-
headers:
|
21
|
-
server:
|
22
|
-
- nginx/1.10.1
|
23
|
-
date:
|
24
|
-
- Mon, 04 Mar 2019 12:51:15 GMT
|
25
|
-
content-type:
|
26
|
-
- application/json
|
27
|
-
content-length:
|
28
|
-
- '889'
|
29
|
-
connection:
|
30
|
-
- keep-alive
|
31
|
-
status:
|
32
|
-
- 200 OK
|
33
|
-
access-control-allow-credentials:
|
34
|
-
- 'true'
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: '{"entries":[{"id":22661127,"uuid":"cus_b289bb4c-3e6f-11e9-b645-6369759fc9da","external_id":"test_cus_ext_id","name":"Test
|
38
|
-
Customer","email":"","status":"Active","customer-since":"2016-01-01T12:00:00+00:00","attributes":{"custom":{},"clearbit":{},"stripe":{},"tags":[]},"data_source_uuid":"ds_99d06d30-3e6f-11e9-b645-837bf5404a47","data_source_uuids":["ds_99d06d30-3e6f-11e9-b645-837bf5404a47"],"external_ids":["test_cus_ext_id"],"company":"","country":null,"state":null,"city":"","zip":null,"lead_created_at":null,"free_trial_started_at":null,"address":{"country":null,"state":null,"city":"","address_zip":null},"mrr":4348,"arr":52176,"billing-system-url":null,"chartmogul-url":"https://app.chartmogul.com/#customers/22661127-Test_Customer","billing-system-type":"Import
|
39
|
-
API","currency":"USD","currency-sign":"$"}],"current_page":1,"total_pages":1,"has_more":false,"per_page":200,"page":1}'
|
40
|
-
http_version:
|
41
|
-
recorded_at: Mon, 04 Mar 2019 12:51:15 GMT
|
42
|
-
- request:
|
43
|
-
method: get
|
44
|
-
uri: https://api.chartmogul.com/v1/import/customers/cus_b289bb4c-3e6f-11e9-b645-6369759fc9da/subscriptions
|
45
|
-
body:
|
46
|
-
encoding: US-ASCII
|
47
|
-
string: ''
|
48
|
-
headers:
|
49
|
-
User-Agent:
|
50
|
-
- Faraday v0.15.4
|
51
|
-
Content-Type:
|
52
|
-
- application/json
|
53
|
-
Authorization:
|
54
|
-
- Basic hidden
|
55
|
-
response:
|
56
|
-
status:
|
57
|
-
code: 200
|
58
|
-
message:
|
59
|
-
headers:
|
60
|
-
server:
|
61
|
-
- nginx/1.10.1
|
62
|
-
date:
|
63
|
-
- Mon, 04 Mar 2019 12:51:16 GMT
|
64
|
-
content-type:
|
65
|
-
- application/json; charset=utf-8
|
66
|
-
transfer-encoding:
|
67
|
-
- chunked
|
68
|
-
connection:
|
69
|
-
- keep-alive
|
70
|
-
vary:
|
71
|
-
- Accept-Encoding, Accept-Encoding
|
72
|
-
x-frame-options:
|
73
|
-
- SAMEORIGIN
|
74
|
-
x-xss-protection:
|
75
|
-
- 1; mode=block
|
76
|
-
x-content-type-options:
|
77
|
-
- nosniff
|
78
|
-
etag:
|
79
|
-
- W/"254e64ffb96f23cc2f16356dbd4e8051"
|
80
|
-
cache-control:
|
81
|
-
- max-age=0, private, must-revalidate
|
82
|
-
x-request-id:
|
83
|
-
- 8335a8c6-0279-479b-ba1d-c5be1d1bf9d4
|
84
|
-
x-runtime:
|
85
|
-
- '0.057060'
|
86
|
-
strict-transport-security:
|
87
|
-
- max-age=15768000
|
88
|
-
body:
|
89
|
-
encoding: ASCII-8BIT
|
90
|
-
string: '{"customer_uuid":"cus_b289bb4c-3e6f-11e9-b645-6369759fc9da","subscriptions":[{"uuid":"sub_c2c97897-f0a0-4448-a035-043d7a19b845","external_id":"test_cus_sub_ext_id","cancellation_dates":["1999-12-31T22:00:00.000Z"],"plan_uuid":"pl_933aefe0-209d-0137-2188-040113b1c101","data_source_uuid":"ds_99d06d30-3e6f-11e9-b645-837bf5404a47"}],"current_page":1,"total_pages":1}'
|
91
|
-
http_version:
|
92
|
-
recorded_at: Mon, 04 Mar 2019 12:51:16 GMT
|
93
|
-
recorded_with: VCR 3.0.3
|