chartmogul-ruby 3.2.0 → 3.3.1

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 (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,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