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,198 +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":"Another Data Source"}'
9
- headers:
10
- User-Agent:
11
- - Faraday v0.10.0
12
- Content-Type:
13
- - application/json
14
- Authorization:
15
- - Basic hidden
16
- response:
17
- status:
18
- code: 201
19
- message:
20
- headers:
21
- server:
22
- - nginx/1.9.10
23
- date:
24
- - Sun, 05 Jun 2016 19:47:08 GMT
25
- content-type:
26
- - application/json; charset=utf-8
27
- transfer-encoding:
28
- - chunked
29
- connection:
30
- - close
31
- x-frame-options:
32
- - SAMEORIGIN
33
- x-xss-protection:
34
- - 1; mode=block
35
- x-content-type-options:
36
- - nosniff
37
- etag:
38
- - W/"05335923b74e9c38a5a5fe8e83ac0f79"
39
- cache-control:
40
- - max-age=0, private, must-revalidate
41
- x-request-id:
42
- - e163c0c6-e937-4427-a0c8-78bd5e3f1711
43
- x-runtime:
44
- - '0.509776'
45
- strict-transport-security:
46
- - max-age=15768000
47
- body:
48
- encoding: UTF-8
49
- string: '{"uuid":"ds_77eb401d-fff6-43be-94dc-2cbc2e96e31e","name":"Another Data
50
- Source","created_at":"2016-06-05T19:47:08.020Z","status":"never_imported"}'
51
- http_version:
52
- recorded_at: Wed, 04 Jan 2017 02:32:48 GMT
53
- - request:
54
- method: post
55
- uri: https://api.chartmogul.com/v1/plans
56
- body:
57
- encoding: UTF-8
58
- string: '{"data_source_uuid":"ds_77eb401d-fff6-43be-94dc-2cbc2e96e31e","name":"A
59
- Test Plan","interval_count":1,"interval_unit":"month","external_id":null}'
60
- headers:
61
- User-Agent:
62
- - Faraday v0.9.1
63
- Content-Type:
64
- - application/json
65
- Authorization:
66
- - Basic hidden
67
- response:
68
- status:
69
- code: 201
70
- message:
71
- headers:
72
- server:
73
- - nginx/1.9.10
74
- date:
75
- - Sun, 05 Jun 2016 19:47:08 GMT
76
- content-type:
77
- - application/json; charset=utf-8
78
- transfer-encoding:
79
- - chunked
80
- connection:
81
- - close
82
- x-frame-options:
83
- - SAMEORIGIN
84
- x-xss-protection:
85
- - 1; mode=block
86
- x-content-type-options:
87
- - nosniff
88
- etag:
89
- - W/"7086a2e8b932cc1ce3b47f8de5fdfdb8"
90
- cache-control:
91
- - max-age=0, private, must-revalidate
92
- x-request-id:
93
- - 6e97fa02-8bc1-4d2f-8718-8473a58e4254
94
- x-runtime:
95
- - '0.120821'
96
- strict-transport-security:
97
- - max-age=15768000
98
- body:
99
- encoding: UTF-8
100
- string: '{"uuid":"pl_ba808f0b-4c1c-4824-8705-a6736efa96dc","external_id":null,"name":"A
101
- Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_77eb401d-fff6-43be-94dc-2cbc2e96e31e"}'
102
- http_version:
103
- recorded_at: Sun, 05 Jun 2016 19:47:08 GMT
104
- - request:
105
- method: get
106
- uri: https://api.chartmogul.com/v1/plans/pl_5ee8bf93-b0b4-4722-8a17-6b624a3af072
107
- body:
108
- encoding: US-ASCII
109
- string: ''
110
- headers:
111
- User-Agent:
112
- - Faraday v0.9.1
113
- Authorization:
114
- - Basic hidden
115
- response:
116
- status:
117
- code: 404
118
- message:
119
- headers:
120
- server:
121
- - nginx/1.9.10
122
- date:
123
- - Sun, 05 Jun 2016 19:47:08 GMT
124
- content-type:
125
- - application/json; charset=utf-8
126
- transfer-encoding:
127
- - chunked
128
- connection:
129
- - close
130
- x-frame-options:
131
- - SAMEORIGIN
132
- x-xss-protection:
133
- - 1; mode=block
134
- x-content-type-options:
135
- - nosniff
136
- etag:
137
- - W/"2122e94312ef92cc077db62910743655"
138
- cache-control:
139
- - max-age=0, private, must-revalidate
140
- x-request-id:
141
- - 1286c5a2-596a-4bc2-9e24-cfccc393e589
142
- x-runtime:
143
- - '0.018019'
144
- strict-transport-security:
145
- - max-age=15768000
146
- body:
147
- encoding: UTF-8
148
- string: '{"error": "Plan not found"}'
149
- http_version:
150
- recorded_at: Wed, 04 Jan 2017 02:32:48 GMT
151
- - request:
152
- method: delete
153
- uri: https://api.chartmogul.com/v1/plans/pl_5ee8bf93-b0b4-4722-8a17-6b624a3af072
154
- body:
155
- encoding: US-ASCII
156
- string: ''
157
- headers:
158
- User-Agent:
159
- - Faraday v0.9.1
160
- Authorization:
161
- - Basic hidden
162
- response:
163
- status:
164
- code: 204
165
- message:
166
- headers:
167
- server:
168
- - nginx/1.9.10
169
- date:
170
- - Sun, 05 Jun 2016 19:47:08 GMT
171
- content-type:
172
- - application/json; charset=utf-8
173
- transfer-encoding:
174
- - chunked
175
- connection:
176
- - close
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/"2122e94312ef92cc077db62910743655"
185
- cache-control:
186
- - max-age=0, private, must-revalidate
187
- x-request-id:
188
- - 1286c5a2-596a-4bc2-9e24-cfccc393e589
189
- x-runtime:
190
- - '0.018019'
191
- strict-transport-security:
192
- - max-age=15768000
193
- body:
194
- encoding: UTF-8
195
- string: '{}'
196
- http_version:
197
- recorded_at: Wed, 04 Jan 2017 02:32:48 GMT
198
- recorded_with: VCR 3.0.3
@@ -1,151 +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":"Another Data Source"}'
9
- headers:
10
- User-Agent:
11
- - Faraday v0.10.0
12
- Content-Type:
13
- - application/json
14
- Authorization:
15
- - Basic hidden
16
- response:
17
- status:
18
- code: 201
19
- message:
20
- headers:
21
- server:
22
- - nginx/1.9.10
23
- date:
24
- - Sun, 05 Jun 2016 19:47:08 GMT
25
- content-type:
26
- - application/json; charset=utf-8
27
- transfer-encoding:
28
- - chunked
29
- connection:
30
- - close
31
- x-frame-options:
32
- - SAMEORIGIN
33
- x-xss-protection:
34
- - 1; mode=block
35
- x-content-type-options:
36
- - nosniff
37
- etag:
38
- - W/"05335923b74e9c38a5a5fe8e83ac0f79"
39
- cache-control:
40
- - max-age=0, private, must-revalidate
41
- x-request-id:
42
- - e163c0c6-e937-4427-a0c8-78bd5e3f1711
43
- x-runtime:
44
- - '0.509776'
45
- strict-transport-security:
46
- - max-age=15768000
47
- body:
48
- encoding: UTF-8
49
- string: '{"uuid":"ds_77eb401d-fff6-43be-94dc-2cbc2e96e31e","name":"Another Data
50
- Source","created_at":"2016-06-05T19:47:08.020Z","status":"never_imported"}'
51
- http_version:
52
- recorded_at: Tue, 03 Jan 2017 23:45:27 GMT
53
- - request:
54
- method: post
55
- uri: https://api.chartmogul.com/v1/plans
56
- body:
57
- encoding: UTF-8
58
- string: '{"data_source_uuid":"ds_77eb401d-fff6-43be-94dc-2cbc2e96e31e","name":"A
59
- Test Plan","interval_count":1,"interval_unit":"month","external_id":null}'
60
- headers:
61
- User-Agent:
62
- - Faraday v0.9.1
63
- Content-Type:
64
- - application/json
65
- Authorization:
66
- - Basic hidden
67
- response:
68
- status:
69
- code: 201
70
- message:
71
- headers:
72
- server:
73
- - nginx/1.9.10
74
- date:
75
- - Sun, 05 Jun 2016 19:47:08 GMT
76
- content-type:
77
- - application/json; charset=utf-8
78
- transfer-encoding:
79
- - chunked
80
- connection:
81
- - close
82
- x-frame-options:
83
- - SAMEORIGIN
84
- x-xss-protection:
85
- - 1; mode=block
86
- x-content-type-options:
87
- - nosniff
88
- etag:
89
- - W/"7086a2e8b932cc1ce3b47f8de5fdfdb8"
90
- cache-control:
91
- - max-age=0, private, must-revalidate
92
- x-request-id:
93
- - 6e97fa02-8bc1-4d2f-8718-8473a58e4254
94
- x-runtime:
95
- - '0.120821'
96
- strict-transport-security:
97
- - max-age=15768000
98
- body:
99
- encoding: UTF-8
100
- string: '{"uuid":"pl_ba808f0b-4c1c-4824-8705-a6736efa96dc","external_id":null,"name":"A
101
- Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_77eb401d-fff6-43be-94dc-2cbc2e96e31e"}'
102
- http_version:
103
- recorded_at: Sun, 05 Jun 2016 19:47:08 GMT
104
- - request:
105
- method: get
106
- uri: https://api.chartmogul.com/v1/plans/pl_5ee8bf93-b0b4-4722-8a17-6b624a3af072
107
- body:
108
- encoding: US-ASCII
109
- string: ''
110
- headers:
111
- User-Agent:
112
- - Faraday v0.9.1
113
- Authorization:
114
- - Basic hidden
115
- response:
116
- status:
117
- code: 200
118
- message:
119
- headers:
120
- server:
121
- - nginx/1.9.10
122
- date:
123
- - Sun, 05 Jun 2016 19:47:08 GMT
124
- content-type:
125
- - application/json; charset=utf-8
126
- transfer-encoding:
127
- - chunked
128
- connection:
129
- - close
130
- x-frame-options:
131
- - SAMEORIGIN
132
- x-xss-protection:
133
- - 1; mode=block
134
- x-content-type-options:
135
- - nosniff
136
- etag:
137
- - W/"2122e94312ef92cc077db62910743655"
138
- cache-control:
139
- - max-age=0, private, must-revalidate
140
- x-request-id:
141
- - 1286c5a2-596a-4bc2-9e24-cfccc393e589
142
- x-runtime:
143
- - '0.018019'
144
- strict-transport-security:
145
- - max-age=15768000
146
- body:
147
- encoding: UTF-8
148
- string: '{"uuid":"pl_ba808f0b-4c1c-4824-8705-a6736efa96dc","external_id":null,"name":"A Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_77eb401d-fff6-43be-94dc-2cbc2e96e31e"}'
149
- http_version:
150
- recorded_at: Sun, 05 Jun 2016 19:47:08 GMT
151
- recorded_with: VCR 3.0.3
@@ -1,198 +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":"Another Data Source"}'
9
- headers:
10
- User-Agent:
11
- - Faraday v0.10.0
12
- Content-Type:
13
- - application/json
14
- Authorization:
15
- - Basic hidden
16
- response:
17
- status:
18
- code: 201
19
- message:
20
- headers:
21
- server:
22
- - nginx/1.9.10
23
- date:
24
- - Sun, 05 Jun 2016 19:47:08 GMT
25
- content-type:
26
- - application/json; charset=utf-8
27
- transfer-encoding:
28
- - chunked
29
- connection:
30
- - close
31
- x-frame-options:
32
- - SAMEORIGIN
33
- x-xss-protection:
34
- - 1; mode=block
35
- x-content-type-options:
36
- - nosniff
37
- etag:
38
- - W/"05335923b74e9c38a5a5fe8e83ac0f79"
39
- cache-control:
40
- - max-age=0, private, must-revalidate
41
- x-request-id:
42
- - e163c0c6-e937-4427-a0c8-78bd5e3f1711
43
- x-runtime:
44
- - '0.509776'
45
- strict-transport-security:
46
- - max-age=15768000
47
- body:
48
- encoding: UTF-8
49
- string: '{"uuid":"ds_77eb401d-fff6-43be-94dc-2cbc2e96e31e","name":"Another Data
50
- Source","created_at":"2016-06-05T19:47:08.020Z","status":"never_imported"}'
51
- http_version:
52
- recorded_at: Wed, 04 Jan 2017 02:32:48 GMT
53
- - request:
54
- method: post
55
- uri: https://api.chartmogul.com/v1/plans
56
- body:
57
- encoding: UTF-8
58
- string: '{"data_source_uuid":"ds_77eb401d-fff6-43be-94dc-2cbc2e96e31e","name":"A
59
- Test Plan","interval_count":1,"interval_unit":"month","external_id":null}'
60
- headers:
61
- User-Agent:
62
- - Faraday v0.9.1
63
- Content-Type:
64
- - application/json
65
- Authorization:
66
- - Basic hidden
67
- response:
68
- status:
69
- code: 201
70
- message:
71
- headers:
72
- server:
73
- - nginx/1.9.10
74
- date:
75
- - Sun, 05 Jun 2016 19:47:08 GMT
76
- content-type:
77
- - application/json; charset=utf-8
78
- transfer-encoding:
79
- - chunked
80
- connection:
81
- - close
82
- x-frame-options:
83
- - SAMEORIGIN
84
- x-xss-protection:
85
- - 1; mode=block
86
- x-content-type-options:
87
- - nosniff
88
- etag:
89
- - W/"7086a2e8b932cc1ce3b47f8de5fdfdb8"
90
- cache-control:
91
- - max-age=0, private, must-revalidate
92
- x-request-id:
93
- - 6e97fa02-8bc1-4d2f-8718-8473a58e4254
94
- x-runtime:
95
- - '0.120821'
96
- strict-transport-security:
97
- - max-age=15768000
98
- body:
99
- encoding: UTF-8
100
- string: '{"uuid":"pl_ba808f0b-4c1c-4824-8705-a6736efa96dc","external_id":null,"name":"A
101
- Test Plan","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_77eb401d-fff6-43be-94dc-2cbc2e96e31e"}'
102
- http_version:
103
- recorded_at: Sun, 05 Jun 2016 19:47:08 GMT
104
- - request:
105
- method: get
106
- uri: https://api.chartmogul.com/v1/plans/pl_5ee8bf93-b0b4-4722-8a17-6b624a3af072
107
- body:
108
- encoding: US-ASCII
109
- string: ''
110
- headers:
111
- User-Agent:
112
- - Faraday v0.9.1
113
- Authorization:
114
- - Basic hidden
115
- response:
116
- status:
117
- code: 200
118
- message:
119
- headers:
120
- server:
121
- - nginx/1.9.10
122
- date:
123
- - Sun, 05 Jun 2016 19:47:08 GMT
124
- content-type:
125
- - application/json; charset=utf-8
126
- transfer-encoding:
127
- - chunked
128
- connection:
129
- - close
130
- x-frame-options:
131
- - SAMEORIGIN
132
- x-xss-protection:
133
- - 1; mode=block
134
- x-content-type-options:
135
- - nosniff
136
- etag:
137
- - W/"2122e94312ef92cc077db62910743655"
138
- cache-control:
139
- - max-age=0, private, must-revalidate
140
- x-request-id:
141
- - 1286c5a2-596a-4bc2-9e24-cfccc393e589
142
- x-runtime:
143
- - '0.018019'
144
- strict-transport-security:
145
- - max-age=15768000
146
- body:
147
- encoding: UTF-8
148
- string: '{"uuid":"pl_5ee8bf93-b0b4-4722-8a17-6b624a3af072","external_id":null,"name":"A Test Plan","interval_count":2,"interval_unit":"month","data_source_uuid":"ds_77eb401d-fff6-43be-94dc-2cbc2e96e31e"}'
149
- http_version:
150
- recorded_at: Wed, 04 Jan 2017 02:32:48 GMT
151
- - request:
152
- method: patch
153
- uri: https://api.chartmogul.com/v1/plans/pl_5ee8bf93-b0b4-4722-8a17-6b624a3af072
154
- body:
155
- encoding: US-ASCII
156
- string: ''
157
- headers:
158
- User-Agent:
159
- - Faraday v0.9.1
160
- Authorization:
161
- - Basic hidden
162
- response:
163
- status:
164
- code: 200
165
- message:
166
- headers:
167
- server:
168
- - nginx/1.9.10
169
- date:
170
- - Sun, 05 Jun 2016 19:47:08 GMT
171
- content-type:
172
- - application/json; charset=utf-8
173
- transfer-encoding:
174
- - chunked
175
- connection:
176
- - close
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/"2122e94312ef92cc077db62910743655"
185
- cache-control:
186
- - max-age=0, private, must-revalidate
187
- x-request-id:
188
- - 1286c5a2-596a-4bc2-9e24-cfccc393e589
189
- x-runtime:
190
- - '0.018019'
191
- strict-transport-security:
192
- - max-age=15768000
193
- body:
194
- encoding: UTF-8
195
- string: '{"uuid":"pl_5ee8bf93-b0b4-4722-8a17-6b624a3af072","external_id":null,"name":"A Test Plan","interval_count":2,"interval_unit":"month","data_source_uuid":"ds_77eb401d-fff6-43be-94dc-2cbc2e96e31e"}'
196
- http_version:
197
- recorded_at: Wed, 04 Jan 2017 02:32:48 GMT
198
- recorded_with: VCR 3.0.3
@@ -1,164 +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":"Another Data Source"}'
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:33:56 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_c65f219c-cce0-11ea-a43a-8745a9a809c7","name":"Another Data
42
- Source","system":"Import API","created_at":"2020-07-23T12:33:56.076Z","status":"idle"}'
43
- http_version: null
44
- recorded_at: Thu, 23 Jul 2020 12:33:56 GMT
45
- - request:
46
- method: post
47
- uri: https://api.chartmogul.com/v1/plans
48
- body:
49
- encoding: UTF-8
50
- string: '{"name":"pro","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_c65f219c-cce0-11ea-a43a-8745a9a809c7"}'
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:33:57 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/"ea419983710a24c40e13cc17133cfad5"
93
- Cache-Control:
94
- - max-age=0, private, must-revalidate
95
- X-Request-Id:
96
- - 8c6f92d6-c5f2-47ec-9bca-bb42bf2906bd
97
- X-Runtime:
98
- - '0.107610'
99
- Strict-Transport-Security:
100
- - max-age=15768000
101
- body:
102
- encoding: UTF-8
103
- string: '{"external_id":"b37d52c0-af0e-0138-9570-42eead14b4ad","name":"pro","interval_count":1,"interval_unit":"month","data_source_uuid":"ds_c65f219c-cce0-11ea-a43a-8745a9a809c7","uuid":"pl_b37d52c0-af0e-0138-9570-42eead14b4ad"}'
104
- http_version: null
105
- recorded_at: Thu, 23 Jul 2020 12:33:57 GMT
106
- - request:
107
- method: patch
108
- uri: https://api.chartmogul.com/v1/plans/pl_b37d52c0-af0e-0138-9570-42eead14b4ad
109
- body:
110
- encoding: UTF-8
111
- string: '{"name":"really pro","interval_count":2}'
112
- headers:
113
- User-Agent:
114
- - Faraday v0.17.3
115
- Content-Type:
116
- - application/json
117
- Authorization:
118
- - Basic hidden
119
- Accept-Encoding:
120
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
121
- Accept:
122
- - "*/*"
123
- response:
124
- status:
125
- code: 202
126
- message: Accepted
127
- headers:
128
- Server:
129
- - nginx/1.10.1
130
- Date:
131
- - Thu, 23 Jul 2020 12:33:58 GMT
132
- Content-Type:
133
- - application/json; charset=utf-8
134
- Transfer-Encoding:
135
- - chunked
136
- Connection:
137
- - keep-alive
138
- Status:
139
- - 202 Accepted
140
- X-Frame-Options:
141
- - SAMEORIGIN
142
- X-Xss-Protection:
143
- - 1; mode=block
144
- X-Content-Type-Options:
145
- - nosniff
146
- X-Download-Options:
147
- - noopen
148
- X-Permitted-Cross-Domain-Policies:
149
- - none
150
- Referrer-Policy:
151
- - strict-origin-when-cross-origin
152
- Cache-Control:
153
- - no-cache
154
- X-Request-Id:
155
- - fcc52966-8abd-442b-a9cd-e14a35988163
156
- X-Runtime:
157
- - '0.125362'
158
- body:
159
- encoding: UTF-8
160
- string: '{"external_id":"b37d52c0-af0e-0138-9570-42eead14b4ad","name":"really
161
- pro","interval_count":2,"interval_unit":"month","data_source_uuid":"ds_c65f219c-cce0-11ea-a43a-8745a9a809c7","uuid":"pl_b37d52c0-af0e-0138-9570-42eead14b4ad"}'
162
- http_version: null
163
- recorded_at: Thu, 23 Jul 2020 12:33:58 GMT
164
- recorded_with: VCR 5.1.0