chartmogul-ruby 3.3.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +1 -1
  3. data/.gitignore +2 -1
  4. data/README.md +1 -1
  5. data/changelog.md +15 -0
  6. data/chartmogul-ruby.gemspec +2 -2
  7. data/lib/chartmogul/api/actions/custom.rb +2 -1
  8. data/lib/chartmogul/concerns/pageable_with_cursor.rb +4 -0
  9. data/lib/chartmogul/contact.rb +1 -4
  10. data/lib/chartmogul/customer.rb +13 -1
  11. data/lib/chartmogul/customer_invoices.rb +5 -1
  12. data/lib/chartmogul/enrichment/customer.rb +1 -0
  13. data/lib/chartmogul/errors/deprecated_parameter_error.rb +6 -0
  14. data/lib/chartmogul/invoice.rb +1 -0
  15. data/lib/chartmogul/metrics/activity.rb +1 -4
  16. data/lib/chartmogul/metrics/customers/activity.rb +5 -0
  17. data/lib/chartmogul/metrics/customers/subscription.rb +5 -0
  18. data/lib/chartmogul/plan.rb +1 -0
  19. data/lib/chartmogul/plan_group.rb +1 -0
  20. data/lib/chartmogul/plan_groups/plans.rb +11 -0
  21. data/lib/chartmogul/resource_path.rb +6 -1
  22. data/lib/chartmogul/subscription.rb +5 -0
  23. data/lib/chartmogul/subscription_event.rb +1 -0
  24. data/lib/chartmogul/version.rb +1 -1
  25. data/lib/chartmogul.rb +1 -0
  26. metadata +6 -103
  27. data/fixtures/vcr_cassettes/ChartMogul_APIResource/connection/works_in_a_threaded_environment.yml +0 -112
  28. data/fixtures/vcr_cassettes/ChartMogul_APIResource/connection/works_when_credentials_are_updated.yml +0 -77
  29. data/fixtures/vcr_cassettes/ChartMogul_Account/returns_details_of_current_account.yml +0 -64
  30. data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/creates_contact_correctly.yml +0 -134
  31. data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/destroys_contact_correctly.yml +0 -99
  32. data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/merges_contact_correctly.yml +0 -105
  33. data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/paginates_correctly.yml +0 -133
  34. data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/updates_contact_correctly.yml +0 -102
  35. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/adds_custom_attributes.yml +0 -80
  36. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/adds_required_tags.yml +0 -79
  37. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/can_page_through_search_endpoint.yml +0 -43
  38. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/correctly_handles_a_422_response.yml +0 -50
  39. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/correctly_interracts_with_the_API.yml +0 -192
  40. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/creates_a_contact_belonging_to_the_customer_correctly.yml +0 -72
  41. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/lists_the_contacts_belonging_to_the_customer_correctly.yml +0 -72
  42. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/merges_customers.yml +0 -185
  43. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_401_if_invalid_credentials.yml +0 -38
  44. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_404_if_no_customers_found.yml +0 -38
  45. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_422_for_update_with_invalid_data.yml +0 -86
  46. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/removes_custom_attributes.yml +0 -80
  47. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/removes_tags.yml +0 -80
  48. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/respects_camel_case_for_all_customers_endpoint.yml +0 -45
  49. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_all_customers_through_list_all_endpoint.yml +0 -47
  50. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_customer_through_retrieve_endpoint.yml +0 -42
  51. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_right_customers_through_search_endpoint.yml +0 -43
  52. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_custom_attributes.yml +0 -81
  53. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_customer.yml +0 -139
  54. data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_customer_using_class_method.yml +0 -53
  55. data/fixtures/vcr_cassettes/ChartMogul_Customer/_find_by_external_id/when_external_id_is_provided/returns_matching_user_if_exists.yml +0 -102
  56. 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
  57. data/fixtures/vcr_cassettes/ChartMogul_CustomerInvoices/API_Interactions/correctly_interracts_with_the_API.yml +0 -337
  58. data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_interracts_with_the_API.yml +0 -189
  59. data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_raises_errors_on_404.yml +0 -46
  60. data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_raises_errors_on_422.yml +0 -48
  61. data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/retrieves_existing_data_source_matching_uuid.yml +0 -101
  62. data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/deletes_an_invoice.yml +0 -37
  63. data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/deletes_an_invoice_with_class_method.yml +0 -37
  64. data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/raises_error_on_deleting_non-existing_invoice.yml +0 -42
  65. data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/retrieves_existing_invoice_by_uuid.yml +0 -50
  66. data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/returns_all_invoices_through_list_all_endpoint.yml +0 -46
  67. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARPA/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -42
  68. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARPA/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -42
  69. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARR/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -42
  70. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARR/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -42
  71. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ASP/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
  72. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ASP/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
  73. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ActivitiesExport/get_activities_export.yml +0 -43
  74. data/fixtures/vcr_cassettes/ChartMogul_Metrics_ActivitiesExport/post_activities_export.yml +0 -83
  75. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/behaves_like_PageableWithAnchor/should_be_pageable.yml +0 -44
  76. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/should_have_Activity_entries.yml +0 -44
  77. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity.yml +0 -37
  78. data/fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_entries.yml +0 -42
  79. data/fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_summary.yml +0 -42
  80. data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
  81. data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
  82. data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerCount/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -42
  83. data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerCount/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -42
  84. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Activity/behaves_like_Pageable/should_be_pageable.yml +0 -41
  85. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Activity/should_have_Activity_entries.yml +0 -41
  86. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Subscription/behaves_like_Pageable/should_be_pageable.yml +0 -40
  87. data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Subscription/should_have_Subscription_entries.yml +0 -40
  88. data/fixtures/vcr_cassettes/ChartMogul_Metrics_LTV/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
  89. data/fixtures/vcr_cassettes/ChartMogul_Metrics_LTV/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
  90. data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRR/behaves_like_Summary/should_have_summary.yml +0 -42
  91. data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRR/should_have_entries.yml +0 -42
  92. data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
  93. data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
  94. data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/and_fails_on_incorrect_credentials.yml +0 -38
  95. data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/and_fails_with_500_internal_server_error.yml +0 -40
  96. data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/and_fails_with_504_gateway_timeout_error.yml +0 -40
  97. data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/when_credentials_correct.yml +0 -38
  98. data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml +0 -51
  99. data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_interacts_with_the_API.yml +0 -152
  100. data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/deletes_existing_plan.yml +0 -198
  101. data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/retrieves_existing_plan_by_uuid.yml +0 -151
  102. data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/updates_existing_plan.yml +0 -198
  103. data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/updates_existing_plan_using_class_method.yml +0 -164
  104. data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/correctly_handles_a_422_error.yml +0 -50
  105. data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/deletes_a_plan_group.yml +0 -293
  106. data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/retrieves_existing_plan_group_by_uuid.yml +0 -251
  107. data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/returns_an_array_of_plan_groups.yml +0 -357
  108. data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/updates_existing_plan_group_name.yml +0 -304
  109. data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/updates_existing_plan_group_name_via_class_method.yml +0 -297
  110. data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/updates_existing_plan_group_plans.yml +0 -411
  111. 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
  112. data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/connects_subscriptions.yml +0 -436
  113. data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/correctly_interracts_with_the_API.yml +0 -340
  114. data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/has_multiple_aliases.yml +0 -101
  115. 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
  116. data/fixtures/vcr_cassettes/ChartMogul_Subscription/_update_cancellation_dates/when_array_includes_invalid_entries/raises_an_exception.yml +0 -93
  117. 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
  118. 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
  119. data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/creates_a_new_subscription_event.yml +0 -320
  120. data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/creates_a_new_subscription_event_through_initialization.yml +0 -320
  121. data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/deletes_the_subscription_event.yml +0 -377
  122. data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/lists_all_subscription_events.yml +0 -320
  123. data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/updates_the_subscription_event.yml +0 -377
  124. data/fixtures/vcr_cassettes/ChartMogul_Transactions_Payment/API_Interactions/correctly_interracts_with_the_API.yml +0 -243
@@ -1,297 +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.17.3
12
- Content-Type:
13
- - application/json
14
- Authorization:
15
- - Basic hidden
16
- Accept-Encoding:
17
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
- Accept:
19
- - "*/*"
20
- response:
21
- status:
22
- code: 201
23
- message: Created
24
- headers:
25
- Server:
26
- - nginx/1.10.1
27
- Date:
28
- - Thu, 23 Jul 2020 12:34:26 GMT
29
- Content-Type:
30
- - application/json
31
- Transfer-Encoding:
32
- - chunked
33
- Connection:
34
- - keep-alive
35
- Status:
36
- - 201 Created
37
- Access-Control-Allow-Credentials:
38
- - 'true'
39
- body:
40
- encoding: UTF-8
41
- string: '{"uuid":"ds_d83adf5a-cce0-11ea-a43a-0bee9fce502d","name":"Data Source
42
- #1","system":"Import API","created_at":"2020-07-23T12:34:26.033Z","status":"idle"}'
43
- http_version: null
44
- recorded_at: Thu, 23 Jul 2020 12:34:26 GMT
45
- - request:
46
- method: post
47
- uri: https://api.chartmogul.com/v1/plans
48
- body:
49
- encoding: UTF-8
50
- string: '{"name":"A Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_d83adf5a-cce0-11ea-a43a-0bee9fce502d"}'
51
- headers:
52
- User-Agent:
53
- - Faraday v0.17.3
54
- Content-Type:
55
- - application/json
56
- Authorization:
57
- - Basic hidden
58
- Accept-Encoding:
59
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
60
- Accept:
61
- - "*/*"
62
- response:
63
- status:
64
- code: 201
65
- message: Created
66
- headers:
67
- Server:
68
- - nginx/1.10.1
69
- Date:
70
- - Thu, 23 Jul 2020 12:34:27 GMT
71
- Content-Type:
72
- - application/json; charset=utf-8
73
- Transfer-Encoding:
74
- - chunked
75
- Connection:
76
- - keep-alive
77
- Status:
78
- - 201 Created
79
- X-Frame-Options:
80
- - SAMEORIGIN
81
- X-Xss-Protection:
82
- - 1; mode=block
83
- X-Content-Type-Options:
84
- - nosniff
85
- X-Download-Options:
86
- - noopen
87
- X-Permitted-Cross-Domain-Policies:
88
- - none
89
- Referrer-Policy:
90
- - strict-origin-when-cross-origin
91
- Etag:
92
- - W/"c69ec995cb9bab078fd6c88a194a33e0"
93
- Cache-Control:
94
- - max-age=0, private, must-revalidate
95
- X-Request-Id:
96
- - 21bb8417-4520-4b9f-aded-46d155615e98
97
- X-Runtime:
98
- - '0.119008'
99
- Strict-Transport-Security:
100
- - max-age=15768000
101
- body:
102
- encoding: UTF-8
103
- string: '{"external_id":"c5723000-af0e-0138-d912-62b37fb4c770","name":"A Test
104
- Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_d83adf5a-cce0-11ea-a43a-0bee9fce502d","uuid":"pl_c5723000-af0e-0138-d912-62b37fb4c770"}'
105
- http_version: null
106
- recorded_at: Thu, 23 Jul 2020 12:34:27 GMT
107
- - request:
108
- method: post
109
- uri: https://api.chartmogul.com/v1/plans
110
- body:
111
- encoding: UTF-8
112
- string: '{"name":"A another Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_d83adf5a-cce0-11ea-a43a-0bee9fce502d"}'
113
- headers:
114
- User-Agent:
115
- - Faraday v0.17.3
116
- Content-Type:
117
- - application/json
118
- Authorization:
119
- - Basic hidden
120
- Accept-Encoding:
121
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
122
- Accept:
123
- - "*/*"
124
- response:
125
- status:
126
- code: 201
127
- message: Created
128
- headers:
129
- Server:
130
- - nginx/1.10.1
131
- Date:
132
- - Thu, 23 Jul 2020 12:34:28 GMT
133
- Content-Type:
134
- - application/json; charset=utf-8
135
- Transfer-Encoding:
136
- - chunked
137
- Connection:
138
- - keep-alive
139
- Status:
140
- - 201 Created
141
- X-Frame-Options:
142
- - SAMEORIGIN
143
- X-Xss-Protection:
144
- - 1; mode=block
145
- X-Content-Type-Options:
146
- - nosniff
147
- X-Download-Options:
148
- - noopen
149
- X-Permitted-Cross-Domain-Policies:
150
- - none
151
- Referrer-Policy:
152
- - strict-origin-when-cross-origin
153
- Etag:
154
- - W/"392434626ecc2ec07e9bb64179d07e58"
155
- Cache-Control:
156
- - max-age=0, private, must-revalidate
157
- X-Request-Id:
158
- - f9570c06-bfc2-4cce-b9e2-ec2ad88e2a1a
159
- X-Runtime:
160
- - '0.114808'
161
- Strict-Transport-Security:
162
- - max-age=15768000
163
- body:
164
- encoding: UTF-8
165
- string: '{"external_id":"c61dc800-af0e-0138-1702-4e501129bd4a","name":"A another
166
- Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_d83adf5a-cce0-11ea-a43a-0bee9fce502d","uuid":"pl_c61dc800-af0e-0138-1702-4e501129bd4a"}'
167
- http_version: null
168
- recorded_at: Thu, 23 Jul 2020 12:34:28 GMT
169
- - request:
170
- method: post
171
- uri: https://api.chartmogul.com/v1/plan_groups
172
- body:
173
- encoding: UTF-8
174
- string: '{"name":"My plan group","plans":["pl_c5723000-af0e-0138-d912-62b37fb4c770","pl_c61dc800-af0e-0138-1702-4e501129bd4a"]}'
175
- headers:
176
- User-Agent:
177
- - Faraday v0.17.3
178
- Content-Type:
179
- - application/json
180
- Authorization:
181
- - Basic hidden
182
- Accept-Encoding:
183
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
184
- Accept:
185
- - "*/*"
186
- response:
187
- status:
188
- code: 200
189
- message: OK
190
- headers:
191
- Server:
192
- - nginx/1.10.1
193
- Date:
194
- - Thu, 23 Jul 2020 12:34:29 GMT
195
- Content-Type:
196
- - application/json; charset=utf-8
197
- Transfer-Encoding:
198
- - chunked
199
- Connection:
200
- - keep-alive
201
- Vary:
202
- - Accept-Encoding
203
- - Accept-Encoding
204
- Status:
205
- - 200 OK
206
- X-Frame-Options:
207
- - SAMEORIGIN
208
- X-Xss-Protection:
209
- - 1; mode=block
210
- X-Content-Type-Options:
211
- - nosniff
212
- X-Download-Options:
213
- - noopen
214
- X-Permitted-Cross-Domain-Policies:
215
- - none
216
- Referrer-Policy:
217
- - strict-origin-when-cross-origin
218
- Etag:
219
- - W/"1b33f81c506f9371501c358293e5c25e"
220
- Cache-Control:
221
- - max-age=0, private, must-revalidate
222
- X-Request-Id:
223
- - 96425a8f-ad6a-4d43-883a-28809e5e8fd2
224
- X-Runtime:
225
- - '0.055173'
226
- Strict-Transport-Security:
227
- - max-age=15768000
228
- body:
229
- encoding: ASCII-8BIT
230
- string: '{"name":"My plan group","uuid":"plg_36d737ca-b021-4fc7-a8ee-8636fb6db2cc","plans_count":2}'
231
- http_version: null
232
- recorded_at: Thu, 23 Jul 2020 12:34:29 GMT
233
- - request:
234
- method: patch
235
- uri: https://api.chartmogul.com/v1/plan_groups/plg_36d737ca-b021-4fc7-a8ee-8636fb6db2cc
236
- body:
237
- encoding: UTF-8
238
- string: '{"name":"A new group name"}'
239
- headers:
240
- User-Agent:
241
- - Faraday v0.17.3
242
- Content-Type:
243
- - application/json
244
- Authorization:
245
- - Basic hidden
246
- Accept-Encoding:
247
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
248
- Accept:
249
- - "*/*"
250
- response:
251
- status:
252
- code: 200
253
- message: OK
254
- headers:
255
- Server:
256
- - nginx/1.10.1
257
- Date:
258
- - Thu, 23 Jul 2020 12:34:30 GMT
259
- Content-Type:
260
- - application/json; charset=utf-8
261
- Transfer-Encoding:
262
- - chunked
263
- Connection:
264
- - keep-alive
265
- Vary:
266
- - Accept-Encoding
267
- - Accept-Encoding
268
- Status:
269
- - 200 OK
270
- X-Frame-Options:
271
- - SAMEORIGIN
272
- X-Xss-Protection:
273
- - 1; mode=block
274
- X-Content-Type-Options:
275
- - nosniff
276
- X-Download-Options:
277
- - noopen
278
- X-Permitted-Cross-Domain-Policies:
279
- - none
280
- Referrer-Policy:
281
- - strict-origin-when-cross-origin
282
- Etag:
283
- - W/"b12ead83619d709fd1285016e6daec9b"
284
- Cache-Control:
285
- - max-age=0, private, must-revalidate
286
- X-Request-Id:
287
- - 27ca96d6-4e17-4c89-b030-6fcae8131bb3
288
- X-Runtime:
289
- - '0.044140'
290
- Strict-Transport-Security:
291
- - max-age=15768000
292
- body:
293
- encoding: ASCII-8BIT
294
- string: '{"name":"A new group name","uuid":"plg_36d737ca-b021-4fc7-a8ee-8636fb6db2cc","plans_count":2}'
295
- http_version: null
296
- recorded_at: Thu, 23 Jul 2020 12:34:30 GMT
297
- recorded_with: VCR 5.1.0
@@ -1,411 +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:57:21 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_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab","name":"Data Source
38
- #1","system":"Import API","created_at":"2020-02-20T10:57:21.537Z","status":"idle"}'
39
- http_version:
40
- recorded_at: Thu, 20 Feb 2020 10:57:22 GMT
41
- - request:
42
- method: post
43
- uri: https://api.chartmogul.com/v1/plans
44
- body:
45
- encoding: UTF-8
46
- string: '{"name":"A another Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab"}'
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:57:22 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/"680bf36b1c4f2dff6428304f51e2c5d1"
79
- cache-control:
80
- - max-age=0, private, must-revalidate
81
- x-request-id:
82
- - 98cf8d71-2a0a-464f-8580-4d7584f05c28
83
- x-runtime:
84
- - '0.093243'
85
- strict-transport-security:
86
- - max-age=15768000
87
- body:
88
- encoding: UTF-8
89
- string: '{"external_id":"b1d2e190-35fd-0138-b593-4e501129bd4a","name":"A another
90
- Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab","uuid":"pl_b1d2e190-35fd-0138-b593-4e501129bd4a"}'
91
- http_version:
92
- recorded_at: Thu, 20 Feb 2020 10:57:22 GMT
93
- - request:
94
- method: post
95
- uri: https://api.chartmogul.com/v1/plans
96
- body:
97
- encoding: UTF-8
98
- string: '{"name":"A Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab"}'
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:57:22 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/"b8310c5c76d0a1261ae0e170774c8317"
131
- cache-control:
132
- - max-age=0, private, must-revalidate
133
- x-request-id:
134
- - a350a73c-a056-4f06-9f9c-809439bf6019
135
- x-runtime:
136
- - '0.147289'
137
- strict-transport-security:
138
- - max-age=15768000
139
- body:
140
- encoding: UTF-8
141
- string: '{"external_id":"b1fa8e50-35fd-0138-b594-4e501129bd4a","name":"A Test
142
- Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab","uuid":"pl_b1fa8e50-35fd-0138-b594-4e501129bd4a"}'
143
- http_version:
144
- recorded_at: Thu, 20 Feb 2020 10:57:22 GMT
145
- - request:
146
- method: post
147
- uri: https://api.chartmogul.com/v1/plans
148
- body:
149
- encoding: UTF-8
150
- string: '{"name":"A another Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab"}'
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: 201
161
- message:
162
- headers:
163
- server:
164
- - nginx/1.10.1
165
- date:
166
- - Thu, 20 Feb 2020 10:57:22 GMT
167
- content-type:
168
- - application/json; charset=utf-8
169
- transfer-encoding:
170
- - chunked
171
- connection:
172
- - close
173
- status:
174
- - 201 Created
175
- x-frame-options:
176
- - SAMEORIGIN
177
- x-xss-protection:
178
- - 1; mode=block
179
- x-content-type-options:
180
- - nosniff
181
- etag:
182
- - W/"f7b6f9160ce0ef3a1548ce6ce684d83e"
183
- cache-control:
184
- - max-age=0, private, must-revalidate
185
- x-request-id:
186
- - 251b2e7c-bbe3-4259-859d-39cbd6e29aa0
187
- x-runtime:
188
- - '0.133838'
189
- strict-transport-security:
190
- - max-age=15768000
191
- body:
192
- encoding: UTF-8
193
- string: '{"external_id":"b225c9f0-35fd-0138-b595-4e501129bd4a","name":"A another
194
- Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab","uuid":"pl_b225c9f0-35fd-0138-b595-4e501129bd4a"}'
195
- http_version:
196
- recorded_at: Thu, 20 Feb 2020 10:57:22 GMT
197
- - request:
198
- method: post
199
- uri: https://api.chartmogul.com/v1/plan_groups
200
- body:
201
- encoding: UTF-8
202
- string: '{"name":"My plan group","plans":["pl_b1fa8e50-35fd-0138-b594-4e501129bd4a","pl_b225c9f0-35fd-0138-b595-4e501129bd4a"]}'
203
- headers:
204
- User-Agent:
205
- - Faraday v0.15.4
206
- Content-Type:
207
- - application/json
208
- Authorization:
209
- - Basic hidden
210
- response:
211
- status:
212
- code: 200
213
- message:
214
- headers:
215
- server:
216
- - nginx/1.10.1
217
- date:
218
- - Thu, 20 Feb 2020 10:57:23 GMT
219
- content-type:
220
- - application/json; charset=utf-8
221
- transfer-encoding:
222
- - chunked
223
- connection:
224
- - close
225
- vary:
226
- - Accept-Encoding, Accept-Encoding
227
- status:
228
- - 200 OK
229
- x-frame-options:
230
- - SAMEORIGIN
231
- x-xss-protection:
232
- - 1; mode=block
233
- x-content-type-options:
234
- - nosniff
235
- etag:
236
- - W/"7c591e7d5ee581e4ae49ffccb4165863"
237
- cache-control:
238
- - max-age=0, private, must-revalidate
239
- x-request-id:
240
- - aaf768b5-e7b3-4e8a-892b-4c4e313cc409
241
- x-runtime:
242
- - '0.077071'
243
- strict-transport-security:
244
- - max-age=15768000
245
- body:
246
- encoding: ASCII-8BIT
247
- string: '{"name":"My plan group","uuid":"plg_de7adee5-7a1e-4e3f-ac11-978c9294427a","plans_count":2}'
248
- http_version:
249
- recorded_at: Thu, 20 Feb 2020 10:57:23 GMT
250
- - request:
251
- method: patch
252
- uri: https://api.chartmogul.com/v1/plan_groups/plg_de7adee5-7a1e-4e3f-ac11-978c9294427a
253
- body:
254
- encoding: UTF-8
255
- string: '{"name":"My plan group","plans_count":2,"plans":["pl_b1fa8e50-35fd-0138-b594-4e501129bd4a","pl_b225c9f0-35fd-0138-b595-4e501129bd4a","pl_b1d2e190-35fd-0138-b593-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:57:23 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/"5cd2492b2cccc2503702e906a10a0dab"
290
- cache-control:
291
- - max-age=0, private, must-revalidate
292
- x-request-id:
293
- - 7efb2bc8-85e8-45c9-aa26-0df590228126
294
- x-runtime:
295
- - '0.131806'
296
- strict-transport-security:
297
- - max-age=15768000
298
- body:
299
- encoding: ASCII-8BIT
300
- string: '{"name":"My plan group","uuid":"plg_de7adee5-7a1e-4e3f-ac11-978c9294427a","plans_count":3}'
301
- http_version:
302
- recorded_at: Thu, 20 Feb 2020 10:57:23 GMT
303
- - request:
304
- method: get
305
- uri: https://api.chartmogul.com/v1/plan_groups/plg_de7adee5-7a1e-4e3f-ac11-978c9294427a
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:57:23 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/"5cd2492b2cccc2503702e906a10a0dab"
343
- cache-control:
344
- - max-age=0, private, must-revalidate
345
- x-request-id:
346
- - fe9819d4-9413-4430-8648-298c8c24ab95
347
- x-runtime:
348
- - '0.043397'
349
- strict-transport-security:
350
- - max-age=15768000
351
- body:
352
- encoding: ASCII-8BIT
353
- string: '{"name":"My plan group","uuid":"plg_de7adee5-7a1e-4e3f-ac11-978c9294427a","plans_count":3}'
354
- http_version:
355
- recorded_at: Thu, 20 Feb 2020 10:57:23 GMT
356
- - request:
357
- method: get
358
- uri: https://api.chartmogul.com/v1/plan_groups/plg_de7adee5-7a1e-4e3f-ac11-978c9294427a/plans
359
- body:
360
- encoding: US-ASCII
361
- string: ''
362
- headers:
363
- User-Agent:
364
- - Faraday v0.15.4
365
- Content-Type:
366
- - application/json
367
- Authorization:
368
- - Basic hidden
369
- response:
370
- status:
371
- code: 200
372
- message:
373
- headers:
374
- server:
375
- - nginx/1.10.1
376
- date:
377
- - Thu, 20 Feb 2020 10:57:23 GMT
378
- content-type:
379
- - application/json; charset=utf-8
380
- transfer-encoding:
381
- - chunked
382
- connection:
383
- - close
384
- vary:
385
- - Accept-Encoding, Accept-Encoding
386
- status:
387
- - 200 OK
388
- x-frame-options:
389
- - SAMEORIGIN
390
- x-xss-protection:
391
- - 1; mode=block
392
- x-content-type-options:
393
- - nosniff
394
- etag:
395
- - W/"9d72543d2f2e6ffba5e5b8db51920b40"
396
- cache-control:
397
- - max-age=0, private, must-revalidate
398
- x-request-id:
399
- - f876000c-f4b2-4e85-b033-76bd3a44a4fb
400
- x-runtime:
401
- - '0.108157'
402
- strict-transport-security:
403
- - max-age=15768000
404
- body:
405
- encoding: ASCII-8BIT
406
- string: '{"plans":[{"name":"A another Test Plan","uuid":"pl_b1d2e190-35fd-0138-b593-4e501129bd4a","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab","interval_count":1,"interval_unit":"month","external_id":"b1d2e190-35fd-0138-b593-4e501129bd4a"},{"name":"A
407
- Test Plan","uuid":"pl_b1fa8e50-35fd-0138-b594-4e501129bd4a","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab","interval_count":1,"interval_unit":"month","external_id":"b1fa8e50-35fd-0138-b594-4e501129bd4a"},{"name":"A
408
- another Test Plan","uuid":"pl_b225c9f0-35fd-0138-b595-4e501129bd4a","data_source_uuid":"ds_c4fdc7a2-53cf-11ea-aae9-cba10afd2cab","interval_count":1,"interval_unit":"month","external_id":"b225c9f0-35fd-0138-b595-4e501129bd4a"}],"current_page":1,"total_pages":1}'
409
- http_version:
410
- recorded_at: Thu, 20 Feb 2020 10:57:23 GMT
411
- recorded_with: VCR 3.0.3