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.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -1
  3. data/changelog.md +11 -0
  4. data/chartmogul-ruby.gemspec +1 -1
  5. data/lib/chartmogul/api/actions/custom.rb +2 -1
  6. data/lib/chartmogul/concerns/pageable_with_cursor.rb +4 -0
  7. data/lib/chartmogul/contact.rb +1 -4
  8. data/lib/chartmogul/customer.rb +13 -1
  9. data/lib/chartmogul/customer_invoices.rb +5 -1
  10. data/lib/chartmogul/enrichment/customer.rb +1 -0
  11. data/lib/chartmogul/invoice.rb +1 -0
  12. data/lib/chartmogul/metrics/activity.rb +1 -4
  13. data/lib/chartmogul/metrics/customers/activity.rb +5 -0
  14. data/lib/chartmogul/metrics/customers/subscription.rb +5 -0
  15. data/lib/chartmogul/plan.rb +1 -0
  16. data/lib/chartmogul/plan_group.rb +1 -0
  17. data/lib/chartmogul/plan_groups/plans.rb +11 -0
  18. data/lib/chartmogul/subscription.rb +5 -0
  19. data/lib/chartmogul/subscription_event.rb +17 -0
  20. data/lib/chartmogul/version.rb +1 -1
  21. metadata +5 -102
  22. data/fixtures/vcr_cassettes/ChartMogul_APIResource/connection/works_in_a_threaded_environment.yml +0 -112
  23. data/fixtures/vcr_cassettes/ChartMogul_APIResource/connection/works_when_credentials_are_updated.yml +0 -77
  24. data/fixtures/vcr_cassettes/ChartMogul_Account/returns_details_of_current_account.yml +0 -64
  25. data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/creates_contact_correctly.yml +0 -134
  26. data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/destroys_contact_correctly.yml +0 -99
  27. data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/merges_contact_correctly.yml +0 -105
  28. data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/paginates_correctly.yml +0 -133
  29. data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/updates_contact_correctly.yml +0 -102
  30. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/adds_custom_attributes.yml +0 -80
  31. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/adds_required_tags.yml +0 -79
  32. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/can_page_through_search_endpoint.yml +0 -43
  33. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/correctly_handles_a_422_response.yml +0 -50
  34. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/correctly_interracts_with_the_API.yml +0 -192
  35. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/creates_a_contact_belonging_to_the_customer_correctly.yml +0 -72
  36. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/lists_the_contacts_belonging_to_the_customer_correctly.yml +0 -72
  37. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/merges_customers.yml +0 -185
  38. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_401_if_invalid_credentials.yml +0 -38
  39. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_404_if_no_customers_found.yml +0 -38
  40. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_422_for_update_with_invalid_data.yml +0 -86
  41. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/removes_custom_attributes.yml +0 -80
  42. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/removes_tags.yml +0 -80
  43. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/respects_camel_case_for_all_customers_endpoint.yml +0 -45
  44. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_all_customers_through_list_all_endpoint.yml +0 -47
  45. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_customer_through_retrieve_endpoint.yml +0 -42
  46. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_right_customers_through_search_endpoint.yml +0 -43
  47. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_custom_attributes.yml +0 -81
  48. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_customer.yml +0 -139
  49. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_customer_using_class_method.yml +0 -53
  50. data/fixtures/vcr_cassettes/ChartMogul_Customer/_find_by_external_id/when_external_id_is_provided/returns_matching_user_if_exists.yml +0 -102
  51. 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
  52. data/fixtures/vcr_cassettes/ChartMogul_CustomerInvoices/API_Interactions/correctly_interracts_with_the_API.yml +0 -337
  53. data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_interracts_with_the_API.yml +0 -189
  54. data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_raises_errors_on_404.yml +0 -46
  55. data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_raises_errors_on_422.yml +0 -48
  56. data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/retrieves_existing_data_source_matching_uuid.yml +0 -101
  57. data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/deletes_an_invoice.yml +0 -37
  58. data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/deletes_an_invoice_with_class_method.yml +0 -37
  59. data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/raises_error_on_deleting_non-existing_invoice.yml +0 -42
  60. data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/retrieves_existing_invoice_by_uuid.yml +0 -50
  61. data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/returns_all_invoices_through_list_all_endpoint.yml +0 -46
  62. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARPA/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -42
  63. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARPA/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -42
  64. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARR/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -42
  65. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARR/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -42
  66. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ASP/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
  67. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ASP/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
  68. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ActivitiesExport/get_activities_export.yml +0 -43
  69. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ActivitiesExport/post_activities_export.yml +0 -83
  70. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/behaves_like_PageableWithAnchor/should_be_pageable.yml +0 -44
  71. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/should_have_Activity_entries.yml +0 -44
  72. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity.yml +0 -37
  73. data/fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_entries.yml +0 -42
  74. data/fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_summary.yml +0 -42
  75. data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
  76. data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
  77. data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerCount/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -42
  78. data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerCount/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -42
  79. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Activity/behaves_like_Pageable/should_be_pageable.yml +0 -41
  80. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Activity/should_have_Activity_entries.yml +0 -41
  81. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Subscription/behaves_like_Pageable/should_be_pageable.yml +0 -40
  82. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Subscription/should_have_Subscription_entries.yml +0 -40
  83. data/fixtures/vcr_cassettes/ChartMogul_Metrics_LTV/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
  84. data/fixtures/vcr_cassettes/ChartMogul_Metrics_LTV/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
  85. data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRR/behaves_like_Summary/should_have_summary.yml +0 -42
  86. data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRR/should_have_entries.yml +0 -42
  87. data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
  88. data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
  89. data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/and_fails_on_incorrect_credentials.yml +0 -38
  90. data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/and_fails_with_500_internal_server_error.yml +0 -40
  91. data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/and_fails_with_504_gateway_timeout_error.yml +0 -40
  92. data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/when_credentials_correct.yml +0 -38
  93. data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml +0 -51
  94. data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_interacts_with_the_API.yml +0 -152
  95. data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/deletes_existing_plan.yml +0 -198
  96. data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/retrieves_existing_plan_by_uuid.yml +0 -151
  97. data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/updates_existing_plan.yml +0 -198
  98. data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/updates_existing_plan_using_class_method.yml +0 -164
  99. data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/correctly_handles_a_422_error.yml +0 -50
  100. data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/deletes_a_plan_group.yml +0 -293
  101. data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/retrieves_existing_plan_group_by_uuid.yml +0 -251
  102. data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/returns_an_array_of_plan_groups.yml +0 -357
  103. data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/updates_existing_plan_group_name.yml +0 -304
  104. data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/updates_existing_plan_group_name_via_class_method.yml +0 -297
  105. data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/updates_existing_plan_group_plans.yml +0 -411
  106. 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
  107. data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/connects_subscriptions.yml +0 -436
  108. data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/correctly_interracts_with_the_API.yml +0 -340
  109. data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/has_multiple_aliases.yml +0 -101
  110. 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
  111. data/fixtures/vcr_cassettes/ChartMogul_Subscription/_update_cancellation_dates/when_array_includes_invalid_entries/raises_an_exception.yml +0 -93
  112. 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
  113. 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
  114. data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/creates_a_new_subscription_event.yml +0 -320
  115. data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/deletes_the_subscription_event.yml +0 -377
  116. data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/lists_all_subscription_events.yml +0 -320
  117. data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/updates_the_subscription_event.yml +0 -377
  118. data/fixtures/vcr_cassettes/ChartMogul_Transactions_Payment/API_Interactions/correctly_interracts_with_the_API.yml +0 -243
@@ -1,357 +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 10:42:18 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_aa7503e8-53cd-11ea-aae9-e734eaddcf1d","name":"Data Source
38
- #1","system":"Import API","created_at":"2020-02-20T10:42:17.984Z","status":"idle"}'
39
- http_version:
40
- recorded_at: Thu, 20 Feb 2020 10:42:18 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_aa7503e8-53cd-11ea-aae9-e734eaddcf1d"}'
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 10:42:18 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/"054766b8d387cec3ef504b2ff6a997b6"
79
- cache-control:
80
- - max-age=0, private, must-revalidate
81
- x-request-id:
82
- - 1e8faf16-56cb-4e75-9dac-b456653676e7
83
- x-runtime:
84
- - '0.194130'
85
- strict-transport-security:
86
- - max-age=15768000
87
- body:
88
- encoding: UTF-8
89
- string: '{"external_id":"97490c90-35fb-0138-f016-62b37fb4c770","name":"A Test
90
- Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_aa7503e8-53cd-11ea-aae9-e734eaddcf1d","uuid":"pl_97490c90-35fb-0138-f016-62b37fb4c770"}'
91
- http_version:
92
- recorded_at: Thu, 20 Feb 2020 10:42:18 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_aa7503e8-53cd-11ea-aae9-e734eaddcf1d"}'
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 10:42:19 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/"e4f2a6e82a1a1e8dbe25c9a0ab1c7707"
131
- cache-control:
132
- - max-age=0, private, must-revalidate
133
- x-request-id:
134
- - 6b6f5af3-5a77-4bbd-a6c1-23f9866f4677
135
- x-runtime:
136
- - '0.135728'
137
- strict-transport-security:
138
- - max-age=15768000
139
- body:
140
- encoding: UTF-8
141
- string: '{"external_id":"9781a5d0-35fb-0138-3705-364318904ce3","name":"A another
142
- Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_aa7503e8-53cd-11ea-aae9-e734eaddcf1d","uuid":"pl_9781a5d0-35fb-0138-3705-364318904ce3"}'
143
- http_version:
144
- recorded_at: Thu, 20 Feb 2020 10:42:19 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_97490c90-35fb-0138-f016-62b37fb4c770","pl_9781a5d0-35fb-0138-3705-364318904ce3"]}'
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 10:42:19 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/"53b233ebc77584ca11ba27522debed3a"
185
- cache-control:
186
- - max-age=0, private, must-revalidate
187
- x-request-id:
188
- - 36def44d-7c26-4446-9609-a48836ad5195
189
- x-runtime:
190
- - '0.113148'
191
- strict-transport-security:
192
- - max-age=15768000
193
- body:
194
- encoding: ASCII-8BIT
195
- string: '{"name":"My plan group","uuid":"plg_3c2b0732-cff0-437f-9f8d-a575ccc8b7e9","plans_count":2}'
196
- http_version:
197
- recorded_at: Thu, 20 Feb 2020 10:42:19 GMT
198
- - request:
199
- method: post
200
- uri: https://api.chartmogul.com/v1/plans
201
- body:
202
- encoding: UTF-8
203
- string: '{"name":"A another Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_aa7503e8-53cd-11ea-aae9-e734eaddcf1d"}'
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: 201
214
- message:
215
- headers:
216
- server:
217
- - nginx/1.10.1
218
- date:
219
- - Thu, 20 Feb 2020 10:42:19 GMT
220
- content-type:
221
- - application/json; charset=utf-8
222
- transfer-encoding:
223
- - chunked
224
- connection:
225
- - close
226
- status:
227
- - 201 Created
228
- x-frame-options:
229
- - SAMEORIGIN
230
- x-xss-protection:
231
- - 1; mode=block
232
- x-content-type-options:
233
- - nosniff
234
- etag:
235
- - W/"6903fe5a1ce6d99a70cde43e818d327a"
236
- cache-control:
237
- - max-age=0, private, must-revalidate
238
- x-request-id:
239
- - bb1fe96f-6288-4b86-9a3e-2122666c9573
240
- x-runtime:
241
- - '0.146997'
242
- strict-transport-security:
243
- - max-age=15768000
244
- body:
245
- encoding: UTF-8
246
- string: '{"external_id":"97e04cd0-35fb-0138-b58f-4e501129bd4a","name":"A another
247
- Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_aa7503e8-53cd-11ea-aae9-e734eaddcf1d","uuid":"pl_97e04cd0-35fb-0138-b58f-4e501129bd4a"}'
248
- http_version:
249
- recorded_at: Thu, 20 Feb 2020 10:42:19 GMT
250
- - request:
251
- method: post
252
- uri: https://api.chartmogul.com/v1/plan_groups
253
- body:
254
- encoding: UTF-8
255
- string: '{"name":"My second plan group","plans":["pl_9781a5d0-35fb-0138-3705-364318904ce3","pl_97e04cd0-35fb-0138-b58f-4e501129bd4a"]}'
256
- headers:
257
- User-Agent:
258
- - Faraday v0.15.4
259
- Content-Type:
260
- - application/json
261
- Authorization:
262
- - Basic hidden
263
- response:
264
- status:
265
- code: 200
266
- message:
267
- headers:
268
- server:
269
- - nginx/1.10.1
270
- date:
271
- - Thu, 20 Feb 2020 10:42:19 GMT
272
- content-type:
273
- - application/json; charset=utf-8
274
- transfer-encoding:
275
- - chunked
276
- connection:
277
- - close
278
- vary:
279
- - Accept-Encoding, Accept-Encoding
280
- status:
281
- - 200 OK
282
- x-frame-options:
283
- - SAMEORIGIN
284
- x-xss-protection:
285
- - 1; mode=block
286
- x-content-type-options:
287
- - nosniff
288
- etag:
289
- - W/"72125c9c54ed510796063eb63630e929"
290
- cache-control:
291
- - max-age=0, private, must-revalidate
292
- x-request-id:
293
- - fa72a972-80bf-411a-bedf-75a4790cb505
294
- x-runtime:
295
- - '0.071034'
296
- strict-transport-security:
297
- - max-age=15768000
298
- body:
299
- encoding: ASCII-8BIT
300
- string: '{"name":"My second plan group","uuid":"plg_1d960363-a335-4e21-90cd-f3686c143453","plans_count":2}'
301
- http_version:
302
- recorded_at: Thu, 20 Feb 2020 10:42:19 GMT
303
- - request:
304
- method: get
305
- uri: https://api.chartmogul.com/v1/plan_groups
306
- body:
307
- encoding: US-ASCII
308
- string: ''
309
- headers:
310
- User-Agent:
311
- - Faraday v0.15.4
312
- Content-Type:
313
- - application/json
314
- Authorization:
315
- - Basic hidden
316
- response:
317
- status:
318
- code: 200
319
- message:
320
- headers:
321
- server:
322
- - nginx/1.10.1
323
- date:
324
- - Thu, 20 Feb 2020 10:42:20 GMT
325
- content-type:
326
- - application/json; charset=utf-8
327
- transfer-encoding:
328
- - chunked
329
- connection:
330
- - close
331
- vary:
332
- - Accept-Encoding, Accept-Encoding
333
- status:
334
- - 200 OK
335
- x-frame-options:
336
- - SAMEORIGIN
337
- x-xss-protection:
338
- - 1; mode=block
339
- x-content-type-options:
340
- - nosniff
341
- etag:
342
- - W/"8f193c3d2a8b1865b2e2ca5f425c11f8"
343
- cache-control:
344
- - max-age=0, private, must-revalidate
345
- x-request-id:
346
- - b87e4ab8-ef16-476a-accf-1caa595abcb1
347
- x-runtime:
348
- - '0.117165'
349
- strict-transport-security:
350
- - max-age=15768000
351
- body:
352
- encoding: ASCII-8BIT
353
- string: '{"plan_groups":[{"name":"My plan group","uuid":"plg_3c2b0732-cff0-437f-9f8d-a575ccc8b7e9","plans_count":2},{"name":"My
354
- second plan group","uuid":"plg_1d960363-a335-4e21-90cd-f3686c143453","plans_count":2}],"current_page":1,"total_pages":1}'
355
- http_version:
356
- recorded_at: Thu, 20 Feb 2020 10:42:20 GMT
357
- recorded_with: VCR 3.0.3
@@ -1,304 +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:13:29 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_502f5a1e-5404-11ea-ab18-ffd72d6e41ca","name":"Data Source
38
- #1","system":"Import API","created_at":"2020-02-20T17:13:28.947Z","status":"idle"}'
39
- http_version:
40
- recorded_at: Thu, 20 Feb 2020 17:13:29 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_502f5a1e-5404-11ea-ab18-ffd72d6e41ca"}'
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:13:29 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/"b1925828957c62f22be7e57b394db7be"
79
- cache-control:
80
- - max-age=0, private, must-revalidate
81
- x-request-id:
82
- - a0de0538-ef46-410c-a782-59ffc8909ef4
83
- x-runtime:
84
- - '0.133357'
85
- strict-transport-security:
86
- - max-age=15768000
87
- body:
88
- encoding: UTF-8
89
- string: '{"external_id":"3cf5d690-3632-0138-b59b-4e501129bd4a","name":"A Test
90
- Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_502f5a1e-5404-11ea-ab18-ffd72d6e41ca","uuid":"pl_3cf5d690-3632-0138-b59b-4e501129bd4a"}'
91
- http_version:
92
- recorded_at: Thu, 20 Feb 2020 17:13:29 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_502f5a1e-5404-11ea-ab18-ffd72d6e41ca"}'
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:13:29 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/"b23dd9ce0e237a70626d7d389a44fc7c"
131
- cache-control:
132
- - max-age=0, private, must-revalidate
133
- x-request-id:
134
- - 0accd7b9-9001-4b89-a38c-a52b60ffc09e
135
- x-runtime:
136
- - '0.203924'
137
- strict-transport-security:
138
- - max-age=15768000
139
- body:
140
- encoding: UTF-8
141
- string: '{"external_id":"3d3199f0-3632-0138-f01d-62b37fb4c770","name":"A another
142
- Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_502f5a1e-5404-11ea-ab18-ffd72d6e41ca","uuid":"pl_3d3199f0-3632-0138-f01d-62b37fb4c770"}'
143
- http_version:
144
- recorded_at: Thu, 20 Feb 2020 17:13:29 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_3cf5d690-3632-0138-b59b-4e501129bd4a","pl_3d3199f0-3632-0138-f01d-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:13:30 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/"b64c5d68668419bcbb91a96e0ed6c00d"
185
- cache-control:
186
- - max-age=0, private, must-revalidate
187
- x-request-id:
188
- - 2cf1076a-1c68-49f7-b7d9-38cb98ab84e8
189
- x-runtime:
190
- - '0.070373'
191
- strict-transport-security:
192
- - max-age=15768000
193
- body:
194
- encoding: ASCII-8BIT
195
- string: '{"name":"My plan group","uuid":"plg_44f41eeb-f61a-4aef-b95d-f78841d61f1b","plans_count":2}'
196
- http_version:
197
- recorded_at: Thu, 20 Feb 2020 17:13:30 GMT
198
- - request:
199
- method: patch
200
- uri: https://api.chartmogul.com/v1/plan_groups/plg_44f41eeb-f61a-4aef-b95d-f78841d61f1b
201
- body:
202
- encoding: UTF-8
203
- string: '{"name":"A new plan group_name"}'
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:13:30 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/"6396163c6308c50b2dca74e3cc508a5b"
238
- cache-control:
239
- - max-age=0, private, must-revalidate
240
- x-request-id:
241
- - 8aa04eab-de86-4946-8d43-759c08b7291e
242
- x-runtime:
243
- - '0.076873'
244
- strict-transport-security:
245
- - max-age=15768000
246
- body:
247
- encoding: ASCII-8BIT
248
- string: '{"name":"A new plan group_name","uuid":"plg_44f41eeb-f61a-4aef-b95d-f78841d61f1b","plans_count":2}'
249
- http_version:
250
- recorded_at: Thu, 20 Feb 2020 17:13:30 GMT
251
- - request:
252
- method: get
253
- uri: https://api.chartmogul.com/v1/plan_groups/plg_44f41eeb-f61a-4aef-b95d-f78841d61f1b
254
- body:
255
- encoding: US-ASCII
256
- string: ''
257
- headers:
258
- User-Agent:
259
- - Faraday v0.15.4
260
- Content-Type:
261
- - application/json
262
- Authorization:
263
- - Basic hidden
264
- response:
265
- status:
266
- code: 200
267
- message:
268
- headers:
269
- server:
270
- - nginx/1.10.1
271
- date:
272
- - Thu, 20 Feb 2020 17:13:30 GMT
273
- content-type:
274
- - application/json; charset=utf-8
275
- transfer-encoding:
276
- - chunked
277
- connection:
278
- - close
279
- vary:
280
- - Accept-Encoding, Accept-Encoding
281
- status:
282
- - 200 OK
283
- x-frame-options:
284
- - SAMEORIGIN
285
- x-xss-protection:
286
- - 1; mode=block
287
- x-content-type-options:
288
- - nosniff
289
- etag:
290
- - W/"6396163c6308c50b2dca74e3cc508a5b"
291
- cache-control:
292
- - max-age=0, private, must-revalidate
293
- x-request-id:
294
- - ff9effdc-277e-4672-9503-43397a999624
295
- x-runtime:
296
- - '0.031658'
297
- strict-transport-security:
298
- - max-age=15768000
299
- body:
300
- encoding: ASCII-8BIT
301
- string: '{"name":"A new plan group_name","uuid":"plg_44f41eeb-f61a-4aef-b95d-f78841d61f1b","plans_count":2}'
302
- http_version:
303
- recorded_at: Thu, 20 Feb 2020 17:13:30 GMT
304
- recorded_with: VCR 3.0.3