chartmogul-ruby 3.3.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +1 -1
- data/.gitignore +2 -1
- data/README.md +1 -1
- data/changelog.md +15 -0
- data/chartmogul-ruby.gemspec +2 -2
- 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/errors/deprecated_parameter_error.rb +6 -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/resource_path.rb +6 -1
- data/lib/chartmogul/subscription.rb +5 -0
- data/lib/chartmogul/subscription_event.rb +1 -0
- data/lib/chartmogul/version.rb +1 -1
- data/lib/chartmogul.rb +1 -0
- metadata +6 -103
- 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/creates_a_new_subscription_event_through_initialization.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,252 +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":"Data Source #1"}'
|
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: 201
|
19
|
-
message:
|
20
|
-
headers:
|
21
|
-
server:
|
22
|
-
- nginx/1.10.1
|
23
|
-
date:
|
24
|
-
- Thu, 20 Feb 2020 17:20:15 GMT
|
25
|
-
content-type:
|
26
|
-
- application/json
|
27
|
-
content-length:
|
28
|
-
- '152'
|
29
|
-
connection:
|
30
|
-
- close
|
31
|
-
status:
|
32
|
-
- 201 Created
|
33
|
-
access-control-allow-credentials:
|
34
|
-
- 'true'
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: '{"uuid":"ds_424b9628-5405-11ea-ab18-e3a0f4f45097","name":"Data Source
|
38
|
-
#1","system":"Import API","created_at":"2020-02-20T17:20:15.102Z","status":"idle"}'
|
39
|
-
http_version:
|
40
|
-
recorded_at: Thu, 20 Feb 2020 17:20:15 GMT
|
41
|
-
- request:
|
42
|
-
method: post
|
43
|
-
uri: https://api.chartmogul.com/v1/plans
|
44
|
-
body:
|
45
|
-
encoding: UTF-8
|
46
|
-
string: '{"name":"A Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_424b9628-5405-11ea-ab18-e3a0f4f45097"}'
|
47
|
-
headers:
|
48
|
-
User-Agent:
|
49
|
-
- Faraday v0.15.4
|
50
|
-
Content-Type:
|
51
|
-
- application/json
|
52
|
-
Authorization:
|
53
|
-
- Basic hidden
|
54
|
-
response:
|
55
|
-
status:
|
56
|
-
code: 201
|
57
|
-
message:
|
58
|
-
headers:
|
59
|
-
server:
|
60
|
-
- nginx/1.10.1
|
61
|
-
date:
|
62
|
-
- Thu, 20 Feb 2020 17:20:16 GMT
|
63
|
-
content-type:
|
64
|
-
- application/json; charset=utf-8
|
65
|
-
transfer-encoding:
|
66
|
-
- chunked
|
67
|
-
connection:
|
68
|
-
- close
|
69
|
-
status:
|
70
|
-
- 201 Created
|
71
|
-
x-frame-options:
|
72
|
-
- SAMEORIGIN
|
73
|
-
x-xss-protection:
|
74
|
-
- 1; mode=block
|
75
|
-
x-content-type-options:
|
76
|
-
- nosniff
|
77
|
-
etag:
|
78
|
-
- W/"de6a4357349f1e696cf670b8cb1d3a91"
|
79
|
-
cache-control:
|
80
|
-
- max-age=0, private, must-revalidate
|
81
|
-
x-request-id:
|
82
|
-
- 1d0fbf42-e22c-42ac-b068-3fc78e615d0b
|
83
|
-
x-runtime:
|
84
|
-
- '0.613620'
|
85
|
-
strict-transport-security:
|
86
|
-
- max-age=15768000
|
87
|
-
body:
|
88
|
-
encoding: UTF-8
|
89
|
-
string: '{"external_id":"2f7f4360-3633-0138-f01f-62b37fb4c770","name":"A Test
|
90
|
-
Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_424b9628-5405-11ea-ab18-e3a0f4f45097","uuid":"pl_2f7f4360-3633-0138-f01f-62b37fb4c770"}'
|
91
|
-
http_version:
|
92
|
-
recorded_at: Thu, 20 Feb 2020 17:20:16 GMT
|
93
|
-
- request:
|
94
|
-
method: post
|
95
|
-
uri: https://api.chartmogul.com/v1/plans
|
96
|
-
body:
|
97
|
-
encoding: UTF-8
|
98
|
-
string: '{"name":"A another Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_424b9628-5405-11ea-ab18-e3a0f4f45097"}'
|
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: 201
|
109
|
-
message:
|
110
|
-
headers:
|
111
|
-
server:
|
112
|
-
- nginx/1.10.1
|
113
|
-
date:
|
114
|
-
- Thu, 20 Feb 2020 17:20:17 GMT
|
115
|
-
content-type:
|
116
|
-
- application/json; charset=utf-8
|
117
|
-
transfer-encoding:
|
118
|
-
- chunked
|
119
|
-
connection:
|
120
|
-
- close
|
121
|
-
status:
|
122
|
-
- 201 Created
|
123
|
-
x-frame-options:
|
124
|
-
- SAMEORIGIN
|
125
|
-
x-xss-protection:
|
126
|
-
- 1; mode=block
|
127
|
-
x-content-type-options:
|
128
|
-
- nosniff
|
129
|
-
etag:
|
130
|
-
- W/"3928a3336f01663683f92bdda358c877"
|
131
|
-
cache-control:
|
132
|
-
- max-age=0, private, must-revalidate
|
133
|
-
x-request-id:
|
134
|
-
- 8f90c8e4-8902-4c82-9ac2-b9e466d35b85
|
135
|
-
x-runtime:
|
136
|
-
- '0.492792'
|
137
|
-
strict-transport-security:
|
138
|
-
- max-age=15768000
|
139
|
-
body:
|
140
|
-
encoding: UTF-8
|
141
|
-
string: '{"external_id":"3011ead0-3633-0138-f020-62b37fb4c770","name":"A another
|
142
|
-
Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_424b9628-5405-11ea-ab18-e3a0f4f45097","uuid":"pl_3011ead0-3633-0138-f020-62b37fb4c770"}'
|
143
|
-
http_version:
|
144
|
-
recorded_at: Thu, 20 Feb 2020 17:20:17 GMT
|
145
|
-
- request:
|
146
|
-
method: post
|
147
|
-
uri: https://api.chartmogul.com/v1/plan_groups
|
148
|
-
body:
|
149
|
-
encoding: UTF-8
|
150
|
-
string: '{"name":"My plan group","plans":["pl_2f7f4360-3633-0138-f01f-62b37fb4c770","pl_3011ead0-3633-0138-f020-62b37fb4c770"]}'
|
151
|
-
headers:
|
152
|
-
User-Agent:
|
153
|
-
- Faraday v0.15.4
|
154
|
-
Content-Type:
|
155
|
-
- application/json
|
156
|
-
Authorization:
|
157
|
-
- Basic hidden
|
158
|
-
response:
|
159
|
-
status:
|
160
|
-
code: 200
|
161
|
-
message:
|
162
|
-
headers:
|
163
|
-
server:
|
164
|
-
- nginx/1.10.1
|
165
|
-
date:
|
166
|
-
- Thu, 20 Feb 2020 17:20:17 GMT
|
167
|
-
content-type:
|
168
|
-
- application/json; charset=utf-8
|
169
|
-
transfer-encoding:
|
170
|
-
- chunked
|
171
|
-
connection:
|
172
|
-
- close
|
173
|
-
vary:
|
174
|
-
- Accept-Encoding, Accept-Encoding
|
175
|
-
status:
|
176
|
-
- 200 OK
|
177
|
-
x-frame-options:
|
178
|
-
- SAMEORIGIN
|
179
|
-
x-xss-protection:
|
180
|
-
- 1; mode=block
|
181
|
-
x-content-type-options:
|
182
|
-
- nosniff
|
183
|
-
etag:
|
184
|
-
- W/"b36573ce415d939f61a58648b6d930cf"
|
185
|
-
cache-control:
|
186
|
-
- max-age=0, private, must-revalidate
|
187
|
-
x-request-id:
|
188
|
-
- a48672ef-8c37-459e-ac45-189f0e79c575
|
189
|
-
x-runtime:
|
190
|
-
- '0.079833'
|
191
|
-
strict-transport-security:
|
192
|
-
- max-age=15768000
|
193
|
-
body:
|
194
|
-
encoding: ASCII-8BIT
|
195
|
-
string: '{"name":"My plan group","uuid":"plg_f7e7ee61-4cff-47a5-ab45-3127cbfdde0b","plans_count":2}'
|
196
|
-
http_version:
|
197
|
-
recorded_at: Thu, 20 Feb 2020 17:20:17 GMT
|
198
|
-
- request:
|
199
|
-
method: get
|
200
|
-
uri: https://api.chartmogul.com/v1/plan_groups/plg_f7e7ee61-4cff-47a5-ab45-3127cbfdde0b/plans
|
201
|
-
body:
|
202
|
-
encoding: US-ASCII
|
203
|
-
string: ''
|
204
|
-
headers:
|
205
|
-
User-Agent:
|
206
|
-
- Faraday v0.15.4
|
207
|
-
Content-Type:
|
208
|
-
- application/json
|
209
|
-
Authorization:
|
210
|
-
- Basic hidden
|
211
|
-
response:
|
212
|
-
status:
|
213
|
-
code: 200
|
214
|
-
message:
|
215
|
-
headers:
|
216
|
-
server:
|
217
|
-
- nginx/1.10.1
|
218
|
-
date:
|
219
|
-
- Thu, 20 Feb 2020 17:20:18 GMT
|
220
|
-
content-type:
|
221
|
-
- application/json; charset=utf-8
|
222
|
-
transfer-encoding:
|
223
|
-
- chunked
|
224
|
-
connection:
|
225
|
-
- close
|
226
|
-
vary:
|
227
|
-
- Accept-Encoding, Accept-Encoding
|
228
|
-
status:
|
229
|
-
- 200 OK
|
230
|
-
x-frame-options:
|
231
|
-
- SAMEORIGIN
|
232
|
-
x-xss-protection:
|
233
|
-
- 1; mode=block
|
234
|
-
x-content-type-options:
|
235
|
-
- nosniff
|
236
|
-
etag:
|
237
|
-
- W/"5e8f9b0b2fde5db47f62e9150c0bcdad"
|
238
|
-
cache-control:
|
239
|
-
- max-age=0, private, must-revalidate
|
240
|
-
x-request-id:
|
241
|
-
- 58983eb3-fc9a-4d32-8a9f-10e6a0d82a9f
|
242
|
-
x-runtime:
|
243
|
-
- '0.366925'
|
244
|
-
strict-transport-security:
|
245
|
-
- max-age=15768000
|
246
|
-
body:
|
247
|
-
encoding: ASCII-8BIT
|
248
|
-
string: '{"plans":[{"name":"A Test Plan","uuid":"pl_2f7f4360-3633-0138-f01f-62b37fb4c770","data_source_uuid":"ds_424b9628-5405-11ea-ab18-e3a0f4f45097","interval_count":1,"interval_unit":"month","external_id":"2f7f4360-3633-0138-f01f-62b37fb4c770"},{"name":"A
|
249
|
-
another Test Plan","uuid":"pl_3011ead0-3633-0138-f020-62b37fb4c770","data_source_uuid":"ds_424b9628-5405-11ea-ab18-e3a0f4f45097","interval_count":1,"interval_unit":"month","external_id":"3011ead0-3633-0138-f020-62b37fb4c770"}],"current_page":1,"total_pages":1}'
|
250
|
-
http_version:
|
251
|
-
recorded_at: Thu, 20 Feb 2020 17:20:18 GMT
|
252
|
-
recorded_with: VCR 3.0.3
|
data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/connects_subscriptions.yml
DELETED
@@ -1,436 +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.15.4
|
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.10.1
|
23
|
-
date:
|
24
|
-
- Fri, 21 Dec 2018 01:42:26 GMT
|
25
|
-
content-type:
|
26
|
-
- application/json
|
27
|
-
content-length:
|
28
|
-
- '167'
|
29
|
-
connection:
|
30
|
-
- close
|
31
|
-
status:
|
32
|
-
- 201 Created
|
33
|
-
access-control-allow-credentials:
|
34
|
-
- 'true'
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: '{"uuid":"ds_abb65e7a-04c1-11e9-989b-c743ec986998","name":"Subscription
|
38
|
-
Test Data Source","system":"Import API","created_at":"2018-12-21T01:42:26.724Z","status":"idle"}'
|
39
|
-
http_version:
|
40
|
-
recorded_at: Fri, 21 Dec 2018 01:42:26 GMT
|
41
|
-
- request:
|
42
|
-
method: post
|
43
|
-
uri: https://api.chartmogul.com/v1/customers
|
44
|
-
body:
|
45
|
-
encoding: UTF-8
|
46
|
-
string: '{"external_id":"test_cus_ext_id","name":"Test Customer","data_source_uuid":"ds_abb65e7a-04c1-11e9-989b-c743ec986998"}'
|
47
|
-
headers:
|
48
|
-
User-Agent:
|
49
|
-
- Faraday v0.15.4
|
50
|
-
Content-Type:
|
51
|
-
- application/json
|
52
|
-
Authorization:
|
53
|
-
- Basic hidden
|
54
|
-
response:
|
55
|
-
status:
|
56
|
-
code: 201
|
57
|
-
message:
|
58
|
-
headers:
|
59
|
-
server:
|
60
|
-
- nginx/1.10.1
|
61
|
-
date:
|
62
|
-
- Fri, 21 Dec 2018 01:42:32 GMT
|
63
|
-
content-type:
|
64
|
-
- application/json
|
65
|
-
content-length:
|
66
|
-
- '769'
|
67
|
-
connection:
|
68
|
-
- close
|
69
|
-
status:
|
70
|
-
- 201 Created
|
71
|
-
access-control-allow-credentials:
|
72
|
-
- 'true'
|
73
|
-
body:
|
74
|
-
encoding: UTF-8
|
75
|
-
string: '{"id":36881599,"uuid":"cus_af43be5c-04c1-11e9-989b-7f7327db80e7","external_id":"test_cus_ext_id","name":"Test
|
76
|
-
Customer","email":"","status":"Lead","customer-since":null,"attributes":{"custom":{},"clearbit":{},"stripe":{},"tags":[]},"data_source_uuid":"ds_abb65e7a-04c1-11e9-989b-c743ec986998","data_source_uuids":["ds_abb65e7a-04c1-11e9-989b-c743ec986998"],"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":0,"arr":0,"billing-system-url":null,"chartmogul-url":"https://app.chartmogul.com/#customers/36881599-Test_Customer","billing-system-type":"Import
|
77
|
-
API","currency":"USD","currency-sign":"$"}'
|
78
|
-
http_version:
|
79
|
-
recorded_at: Fri, 21 Dec 2018 01:42:33 GMT
|
80
|
-
- request:
|
81
|
-
method: post
|
82
|
-
uri: https://api.chartmogul.com/v1/plans
|
83
|
-
body:
|
84
|
-
encoding: UTF-8
|
85
|
-
string: '{"name":"Test Plan1","interval_count":7,"interval_unit":"day","data_source_uuid":"ds_abb65e7a-04c1-11e9-989b-c743ec986998"}'
|
86
|
-
headers:
|
87
|
-
User-Agent:
|
88
|
-
- Faraday v0.15.4
|
89
|
-
Content-Type:
|
90
|
-
- application/json
|
91
|
-
Authorization:
|
92
|
-
- Basic hidden
|
93
|
-
response:
|
94
|
-
status:
|
95
|
-
code: 201
|
96
|
-
message:
|
97
|
-
headers:
|
98
|
-
server:
|
99
|
-
- nginx/1.10.1
|
100
|
-
date:
|
101
|
-
- Fri, 21 Dec 2018 01:42:38 GMT
|
102
|
-
content-type:
|
103
|
-
- application/json; charset=utf-8
|
104
|
-
transfer-encoding:
|
105
|
-
- chunked
|
106
|
-
connection:
|
107
|
-
- close
|
108
|
-
status:
|
109
|
-
- 201 Created
|
110
|
-
x-frame-options:
|
111
|
-
- SAMEORIGIN
|
112
|
-
x-xss-protection:
|
113
|
-
- 1; mode=block
|
114
|
-
x-content-type-options:
|
115
|
-
- nosniff
|
116
|
-
etag:
|
117
|
-
- W/"40c9cb90213753b4579976c4164580b4"
|
118
|
-
cache-control:
|
119
|
-
- max-age=0, private, must-revalidate
|
120
|
-
x-request-id:
|
121
|
-
- 0eb6d420-ac32-47ee-b2be-123fe07cfb5e
|
122
|
-
x-runtime:
|
123
|
-
- '0.070593'
|
124
|
-
strict-transport-security:
|
125
|
-
- max-age=15768000
|
126
|
-
body:
|
127
|
-
encoding: UTF-8
|
128
|
-
string: '{"external_id":"9f66ec20-e6ef-0136-9650-0a93cf4e3017","name":"Test
|
129
|
-
Plan1","interval_count":7,"interval_unit":"day","data_source_uuid":"ds_abb65e7a-04c1-11e9-989b-c743ec986998","uuid":"pl_9f66ec20-e6ef-0136-9650-0a93cf4e3017"}'
|
130
|
-
http_version:
|
131
|
-
recorded_at: Fri, 21 Dec 2018 01:42:38 GMT
|
132
|
-
- request:
|
133
|
-
method: post
|
134
|
-
uri: https://api.chartmogul.com/v1/plans
|
135
|
-
body:
|
136
|
-
encoding: UTF-8
|
137
|
-
string: '{"name":"Test Plan2","interval_count":7,"interval_unit":"day","data_source_uuid":"ds_abb65e7a-04c1-11e9-989b-c743ec986998"}'
|
138
|
-
headers:
|
139
|
-
User-Agent:
|
140
|
-
- Faraday v0.15.4
|
141
|
-
Content-Type:
|
142
|
-
- application/json
|
143
|
-
Authorization:
|
144
|
-
- Basic hidden
|
145
|
-
response:
|
146
|
-
status:
|
147
|
-
code: 201
|
148
|
-
message:
|
149
|
-
headers:
|
150
|
-
server:
|
151
|
-
- nginx/1.10.1
|
152
|
-
date:
|
153
|
-
- Fri, 21 Dec 2018 01:42:44 GMT
|
154
|
-
content-type:
|
155
|
-
- application/json; charset=utf-8
|
156
|
-
transfer-encoding:
|
157
|
-
- chunked
|
158
|
-
connection:
|
159
|
-
- close
|
160
|
-
status:
|
161
|
-
- 201 Created
|
162
|
-
x-frame-options:
|
163
|
-
- SAMEORIGIN
|
164
|
-
x-xss-protection:
|
165
|
-
- 1; mode=block
|
166
|
-
x-content-type-options:
|
167
|
-
- nosniff
|
168
|
-
etag:
|
169
|
-
- W/"8a56e6d98bb0f542c42190cdc87b6895"
|
170
|
-
cache-control:
|
171
|
-
- max-age=0, private, must-revalidate
|
172
|
-
x-request-id:
|
173
|
-
- 79882ce2-da78-40ea-8208-9c08e111fa50
|
174
|
-
x-runtime:
|
175
|
-
- '0.087159'
|
176
|
-
strict-transport-security:
|
177
|
-
- max-age=15768000
|
178
|
-
body:
|
179
|
-
encoding: UTF-8
|
180
|
-
string: '{"external_id":"a2f18aa0-e6ef-0136-9651-0a93cf4e3017","name":"Test
|
181
|
-
Plan2","interval_count":7,"interval_unit":"day","data_source_uuid":"ds_abb65e7a-04c1-11e9-989b-c743ec986998","uuid":"pl_a2f18aa0-e6ef-0136-9651-0a93cf4e3017"}'
|
182
|
-
http_version:
|
183
|
-
recorded_at: Fri, 21 Dec 2018 01:42:44 GMT
|
184
|
-
- request:
|
185
|
-
method: post
|
186
|
-
uri: https://api.chartmogul.com/v1/import/customers/cus_af43be5c-04c1-11e9-989b-7f7327db80e7/invoices
|
187
|
-
body:
|
188
|
-
encoding: UTF-8
|
189
|
-
string: '{"invoices":[{"date":"2016-01-01 12:00:00 UTC","currency":"USD","line_items":[{"type":"subscription","subscription_external_id":"test_cus_sub_ext_id1","service_period_start":"2016-01-01
|
190
|
-
12:00:00 UTC","service_period_end":"2016-02-01 12:00:00 UTC","amount_in_cents":1000,"plan_uuid":"pl_9f66ec20-e6ef-0136-9650-0a93cf4e3017"}],"external_id":"test_tr_inv_ext_id1"},{"date":"2016-01-01
|
191
|
-
12:00:00 UTC","currency":"USD","line_items":[{"type":"subscription","subscription_external_id":"test_cus_sub_ext_id2","service_period_start":"2016-01-01
|
192
|
-
12:00:00 UTC","service_period_end":"2016-02-01 12:00:00 UTC","amount_in_cents":1000,"plan_uuid":"pl_a2f18aa0-e6ef-0136-9651-0a93cf4e3017"}],"external_id":"test_tr_inv_ext_id2"}],"customer_uuid":"cus_af43be5c-04c1-11e9-989b-7f7327db80e7"}'
|
193
|
-
headers:
|
194
|
-
User-Agent:
|
195
|
-
- Faraday v0.15.4
|
196
|
-
Content-Type:
|
197
|
-
- application/json
|
198
|
-
Authorization:
|
199
|
-
- Basic hidden
|
200
|
-
response:
|
201
|
-
status:
|
202
|
-
code: 201
|
203
|
-
message:
|
204
|
-
headers:
|
205
|
-
server:
|
206
|
-
- nginx/1.10.1
|
207
|
-
date:
|
208
|
-
- Fri, 21 Dec 2018 01:42:50 GMT
|
209
|
-
content-type:
|
210
|
-
- application/json; charset=utf-8
|
211
|
-
transfer-encoding:
|
212
|
-
- chunked
|
213
|
-
connection:
|
214
|
-
- close
|
215
|
-
x-frame-options:
|
216
|
-
- SAMEORIGIN
|
217
|
-
x-xss-protection:
|
218
|
-
- 1; mode=block
|
219
|
-
x-content-type-options:
|
220
|
-
- nosniff
|
221
|
-
etag:
|
222
|
-
- W/"820f19710f9624431a0a88b26badec9e"
|
223
|
-
cache-control:
|
224
|
-
- max-age=0, private, must-revalidate
|
225
|
-
x-request-id:
|
226
|
-
- e000572c-cb9a-4ac8-821d-28c139bbba15
|
227
|
-
x-runtime:
|
228
|
-
- '0.246535'
|
229
|
-
strict-transport-security:
|
230
|
-
- max-age=15768000
|
231
|
-
body:
|
232
|
-
encoding: UTF-8
|
233
|
-
string: '{"invoices":[{"uuid":"inv_5e58fef0-a850-44b9-b86d-0214d83a1a54","external_id":"test_tr_inv_ext_id1","date":"2016-01-01T12:00:00.000Z","due_date":null,"currency":"USD","line_items":[{"uuid":"li_e4ea894c-e295-46f0-80c1-0ac51653bf4b","external_id":null,"type":"subscription","subscription_uuid":"sub_d5f99da9-3f88-4a8e-a405-4f0dce5136f4","subscription_external_id":"test_cus_sub_ext_id1","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,"plan_uuid":"pl_9f66ec20-e6ef-0136-9650-0a93cf4e3017","discount_code":"","discount_amount_in_cents":0,"tax_amount_in_cents":0,"transaction_fees_in_cents":0,"account_code":""}],"transactions":[]},{"uuid":"inv_75207f91-335b-48fc-9342-0dc166f972df","external_id":"test_tr_inv_ext_id2","date":"2016-01-01T12:00:00.000Z","due_date":null,"currency":"USD","line_items":[{"uuid":"li_d290b329-e83d-4dd6-a6e0-1791c478fc8f","external_id":null,"type":"subscription","subscription_uuid":"sub_e6b75c82-258c-4160-bcf3-7cbbdfc61bdb","subscription_external_id":"test_cus_sub_ext_id2","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,"plan_uuid":"pl_a2f18aa0-e6ef-0136-9651-0a93cf4e3017","discount_code":"","discount_amount_in_cents":0,"tax_amount_in_cents":0,"transaction_fees_in_cents":0,"account_code":""}],"transactions":[]}]}'
|
234
|
-
http_version:
|
235
|
-
recorded_at: Fri, 21 Dec 2018 01:42:51 GMT
|
236
|
-
- request:
|
237
|
-
method: get
|
238
|
-
uri: https://api.chartmogul.com/v1/import/customers/cus_af43be5c-04c1-11e9-989b-7f7327db80e7/subscriptions
|
239
|
-
body:
|
240
|
-
encoding: US-ASCII
|
241
|
-
string: ''
|
242
|
-
headers:
|
243
|
-
User-Agent:
|
244
|
-
- Faraday v0.15.4
|
245
|
-
Content-Type:
|
246
|
-
- application/json
|
247
|
-
Authorization:
|
248
|
-
- Basic hidden
|
249
|
-
response:
|
250
|
-
status:
|
251
|
-
code: 200
|
252
|
-
message:
|
253
|
-
headers:
|
254
|
-
server:
|
255
|
-
- nginx/1.10.1
|
256
|
-
date:
|
257
|
-
- Fri, 21 Dec 2018 01:42:56 GMT
|
258
|
-
content-type:
|
259
|
-
- application/json; charset=utf-8
|
260
|
-
transfer-encoding:
|
261
|
-
- chunked
|
262
|
-
connection:
|
263
|
-
- close
|
264
|
-
vary:
|
265
|
-
- Accept-Encoding, Accept-Encoding
|
266
|
-
x-frame-options:
|
267
|
-
- SAMEORIGIN
|
268
|
-
x-xss-protection:
|
269
|
-
- 1; mode=block
|
270
|
-
x-content-type-options:
|
271
|
-
- nosniff
|
272
|
-
etag:
|
273
|
-
- W/"89bd938d693589f8f05b17b1319effcd"
|
274
|
-
cache-control:
|
275
|
-
- max-age=0, private, must-revalidate
|
276
|
-
x-request-id:
|
277
|
-
- 1ab2bf60-091c-4036-8ea9-8ce78250602e
|
278
|
-
x-runtime:
|
279
|
-
- '0.063054'
|
280
|
-
strict-transport-security:
|
281
|
-
- max-age=15768000
|
282
|
-
body:
|
283
|
-
encoding: ASCII-8BIT
|
284
|
-
string: '{"customer_uuid":"cus_af43be5c-04c1-11e9-989b-7f7327db80e7","subscriptions":[{"uuid":"sub_e6b75c82-258c-4160-bcf3-7cbbdfc61bdb","external_id":"test_cus_sub_ext_id2","cancellation_dates":[],"plan_uuid":"pl_a2f18aa0-e6ef-0136-9651-0a93cf4e3017","data_source_uuid":"ds_abb65e7a-04c1-11e9-989b-c743ec986998"},{"uuid":"sub_d5f99da9-3f88-4a8e-a405-4f0dce5136f4","external_id":"test_cus_sub_ext_id1","cancellation_dates":[],"plan_uuid":"pl_9f66ec20-e6ef-0136-9650-0a93cf4e3017","data_source_uuid":"ds_abb65e7a-04c1-11e9-989b-c743ec986998"}],"current_page":1,"total_pages":1}'
|
285
|
-
http_version:
|
286
|
-
recorded_at: Fri, 21 Dec 2018 01:42:56 GMT
|
287
|
-
- request:
|
288
|
-
method: patch
|
289
|
-
uri: https://api.chartmogul.com/v1/import/subscriptions/sub_e6b75c82-258c-4160-bcf3-7cbbdfc61bdb
|
290
|
-
body:
|
291
|
-
encoding: UTF-8
|
292
|
-
string: '{"cancelled_at":"2016-01-15 12:00:00 UTC"}'
|
293
|
-
headers:
|
294
|
-
User-Agent:
|
295
|
-
- Faraday v0.15.4
|
296
|
-
Content-Type:
|
297
|
-
- application/json
|
298
|
-
Authorization:
|
299
|
-
- Basic hidden
|
300
|
-
response:
|
301
|
-
status:
|
302
|
-
code: 202
|
303
|
-
message:
|
304
|
-
headers:
|
305
|
-
server:
|
306
|
-
- nginx/1.10.1
|
307
|
-
date:
|
308
|
-
- Fri, 21 Dec 2018 01:43:02 GMT
|
309
|
-
content-type:
|
310
|
-
- application/json; charset=utf-8
|
311
|
-
transfer-encoding:
|
312
|
-
- chunked
|
313
|
-
connection:
|
314
|
-
- close
|
315
|
-
x-frame-options:
|
316
|
-
- SAMEORIGIN
|
317
|
-
x-xss-protection:
|
318
|
-
- 1; mode=block
|
319
|
-
x-content-type-options:
|
320
|
-
- nosniff
|
321
|
-
cache-control:
|
322
|
-
- no-cache
|
323
|
-
x-request-id:
|
324
|
-
- a4e36900-6664-4315-a115-c40371b81ea4
|
325
|
-
x-runtime:
|
326
|
-
- '0.109018'
|
327
|
-
body:
|
328
|
-
encoding: UTF-8
|
329
|
-
string: '{"uuid":"sub_e6b75c82-258c-4160-bcf3-7cbbdfc61bdb","external_id":"test_cus_sub_ext_id2","cancellation_dates":["2016-01-15T12:00:00.000Z"],"customer_uuid":"cus_af43be5c-04c1-11e9-989b-7f7327db80e7","plan_uuid":"pl_a2f18aa0-e6ef-0136-9651-0a93cf4e3017","data_source_uuid":"ds_abb65e7a-04c1-11e9-989b-c743ec986998"}'
|
330
|
-
http_version:
|
331
|
-
recorded_at: Fri, 21 Dec 2018 01:43:02 GMT
|
332
|
-
- request:
|
333
|
-
method: post
|
334
|
-
uri: https://api.chartmogul.com/v1/customers/cus_af43be5c-04c1-11e9-989b-7f7327db80e7/connect_subscriptions
|
335
|
-
body:
|
336
|
-
encoding: UTF-8
|
337
|
-
string: '{"subscriptions":[{"external_id":"test_cus_sub_ext_id2","data_source_uuid":"ds_abb65e7a-04c1-11e9-989b-c743ec986998"},{"external_id":"test_cus_sub_ext_id1","data_source_uuid":"ds_abb65e7a-04c1-11e9-989b-c743ec986998"}]}'
|
338
|
-
headers:
|
339
|
-
User-Agent:
|
340
|
-
- Faraday v0.15.4
|
341
|
-
Content-Type:
|
342
|
-
- application/json
|
343
|
-
Authorization:
|
344
|
-
- Basic hidden
|
345
|
-
response:
|
346
|
-
status:
|
347
|
-
code: 202
|
348
|
-
message:
|
349
|
-
headers:
|
350
|
-
server:
|
351
|
-
- nginx/1.10.1
|
352
|
-
date:
|
353
|
-
- Fri, 21 Dec 2018 01:43:10 GMT
|
354
|
-
content-type:
|
355
|
-
- application/json
|
356
|
-
content-length:
|
357
|
-
- '2'
|
358
|
-
connection:
|
359
|
-
- close
|
360
|
-
status:
|
361
|
-
- 202 Accepted
|
362
|
-
body:
|
363
|
-
encoding: UTF-8
|
364
|
-
string: "{}"
|
365
|
-
http_version:
|
366
|
-
recorded_at: Fri, 21 Dec 2018 01:43:10 GMT
|
367
|
-
- request:
|
368
|
-
method: get
|
369
|
-
uri: https://api.chartmogul.com/v1/customers/cus_af43be5c-04c1-11e9-989b-7f7327db80e7/subscriptions
|
370
|
-
body:
|
371
|
-
encoding: US-ASCII
|
372
|
-
string: ''
|
373
|
-
headers:
|
374
|
-
User-Agent:
|
375
|
-
- Faraday v0.15.4
|
376
|
-
Content-Type:
|
377
|
-
- application/json
|
378
|
-
Authorization:
|
379
|
-
- Basic hidden
|
380
|
-
response:
|
381
|
-
status:
|
382
|
-
code: 200
|
383
|
-
message:
|
384
|
-
headers:
|
385
|
-
server:
|
386
|
-
- nginx/1.10.1
|
387
|
-
date:
|
388
|
-
- Fri, 21 Dec 2018 01:44:16 GMT
|
389
|
-
content-type:
|
390
|
-
- application/json
|
391
|
-
content-length:
|
392
|
-
- '344'
|
393
|
-
connection:
|
394
|
-
- close
|
395
|
-
status:
|
396
|
-
- 200 OK
|
397
|
-
access-control-allow-credentials:
|
398
|
-
- 'true'
|
399
|
-
body:
|
400
|
-
encoding: UTF-8
|
401
|
-
string: '{"entries":[{"id":32639332,"external_id":"test_cus_sub_ext_id1","quantity":1,"mrr":4348,"arr":52176,"status":"active","plan":"Test
|
402
|
-
Plan1","billing-cycle":"day","billing-cycle-count":7,"start-date":"2016-01-01T12:00:00+00:00","end-date":"2016-02-01T12:00:00+00:00","currency":"USD","currency-sign":"$"}],"has_more":false,"per_page":200,"page":1}'
|
403
|
-
http_version:
|
404
|
-
recorded_at: Fri, 21 Dec 2018 01:44:16 GMT
|
405
|
-
- request:
|
406
|
-
method: delete
|
407
|
-
uri: https://api.chartmogul.com/v1/data_sources/ds_abb65e7a-04c1-11e9-989b-c743ec986998
|
408
|
-
body:
|
409
|
-
encoding: US-ASCII
|
410
|
-
string: ''
|
411
|
-
headers:
|
412
|
-
User-Agent:
|
413
|
-
- Faraday v0.15.4
|
414
|
-
Authorization:
|
415
|
-
- Basic hidden
|
416
|
-
response:
|
417
|
-
status:
|
418
|
-
code: 204
|
419
|
-
message:
|
420
|
-
headers:
|
421
|
-
server:
|
422
|
-
- nginx/1.10.1
|
423
|
-
date:
|
424
|
-
- Fri, 21 Dec 2018 01:44:22 GMT
|
425
|
-
connection:
|
426
|
-
- close
|
427
|
-
status:
|
428
|
-
- 204 No Content
|
429
|
-
access-control-allow-credentials:
|
430
|
-
- 'true'
|
431
|
-
body:
|
432
|
-
encoding: UTF-8
|
433
|
-
string: ''
|
434
|
-
http_version:
|
435
|
-
recorded_at: Fri, 21 Dec 2018 01:44:22 GMT
|
436
|
-
recorded_with: VCR 3.0.3
|