chartmogul-ruby 3.2.0 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/changelog.md +11 -0
- data/chartmogul-ruby.gemspec +1 -1
- data/lib/chartmogul/api/actions/custom.rb +2 -1
- data/lib/chartmogul/concerns/pageable_with_cursor.rb +4 -0
- data/lib/chartmogul/contact.rb +1 -4
- data/lib/chartmogul/customer.rb +13 -1
- data/lib/chartmogul/customer_invoices.rb +5 -1
- data/lib/chartmogul/enrichment/customer.rb +1 -0
- data/lib/chartmogul/invoice.rb +1 -0
- data/lib/chartmogul/metrics/activity.rb +1 -4
- data/lib/chartmogul/metrics/customers/activity.rb +5 -0
- data/lib/chartmogul/metrics/customers/subscription.rb +5 -0
- data/lib/chartmogul/plan.rb +1 -0
- data/lib/chartmogul/plan_group.rb +1 -0
- data/lib/chartmogul/plan_groups/plans.rb +11 -0
- data/lib/chartmogul/subscription.rb +5 -0
- data/lib/chartmogul/subscription_event.rb +17 -0
- data/lib/chartmogul/version.rb +1 -1
- metadata +5 -102
- data/fixtures/vcr_cassettes/ChartMogul_APIResource/connection/works_in_a_threaded_environment.yml +0 -112
- data/fixtures/vcr_cassettes/ChartMogul_APIResource/connection/works_when_credentials_are_updated.yml +0 -77
- data/fixtures/vcr_cassettes/ChartMogul_Account/returns_details_of_current_account.yml +0 -64
- data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/creates_contact_correctly.yml +0 -134
- data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/destroys_contact_correctly.yml +0 -99
- data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/merges_contact_correctly.yml +0 -105
- data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/paginates_correctly.yml +0 -133
- data/fixtures/vcr_cassettes/ChartMogul_Contact/API_Interactions/updates_contact_correctly.yml +0 -102
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/adds_custom_attributes.yml +0 -80
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/adds_required_tags.yml +0 -79
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/can_page_through_search_endpoint.yml +0 -43
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/correctly_handles_a_422_response.yml +0 -50
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/correctly_interracts_with_the_API.yml +0 -192
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/creates_a_contact_belonging_to_the_customer_correctly.yml +0 -72
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/lists_the_contacts_belonging_to_the_customer_correctly.yml +0 -72
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/merges_customers.yml +0 -185
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_401_if_invalid_credentials.yml +0 -38
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_404_if_no_customers_found.yml +0 -38
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/raises_422_for_update_with_invalid_data.yml +0 -86
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/removes_custom_attributes.yml +0 -80
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/removes_tags.yml +0 -80
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/respects_camel_case_for_all_customers_endpoint.yml +0 -45
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_all_customers_through_list_all_endpoint.yml +0 -47
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_customer_through_retrieve_endpoint.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/returns_right_customers_through_search_endpoint.yml +0 -43
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_custom_attributes.yml +0 -81
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_customer.yml +0 -139
- data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_customer_using_class_method.yml +0 -53
- data/fixtures/vcr_cassettes/ChartMogul_Customer/_find_by_external_id/when_external_id_is_provided/returns_matching_user_if_exists.yml +0 -102
- data/fixtures/vcr_cassettes/ChartMogul_Customer/_find_by_external_id/when_external_id_is_provided/returns_nil_if_customer_does_not_exist.yml +0 -101
- data/fixtures/vcr_cassettes/ChartMogul_CustomerInvoices/API_Interactions/correctly_interracts_with_the_API.yml +0 -337
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_interracts_with_the_API.yml +0 -189
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_raises_errors_on_404.yml +0 -46
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/correctly_raises_errors_on_422.yml +0 -48
- data/fixtures/vcr_cassettes/ChartMogul_DataSource/API_Interactions/retrieves_existing_data_source_matching_uuid.yml +0 -101
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/deletes_an_invoice.yml +0 -37
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/deletes_an_invoice_with_class_method.yml +0 -37
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/raises_error_on_deleting_non-existing_invoice.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/retrieves_existing_invoice_by_uuid.yml +0 -50
- data/fixtures/vcr_cassettes/ChartMogul_Invoice/API_Interactions/returns_all_invoices_through_list_all_endpoint.yml +0 -46
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARPA/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARPA/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARR/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ARR/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ASP/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ASP/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ActivitiesExport/get_activities_export.yml +0 -43
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_ActivitiesExport/post_activities_export.yml +0 -83
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/behaves_like_PageableWithAnchor/should_be_pageable.yml +0 -44
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity/should_have_Activity_entries.yml +0 -44
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Activity.yml +0 -37
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_entries.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_AllKeyMetric/should_have_summary.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerCount/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_CustomerCount/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Activity/behaves_like_Pageable/should_be_pageable.yml +0 -41
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Activity/should_have_Activity_entries.yml +0 -41
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Subscription/behaves_like_Pageable/should_be_pageable.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_Customers_Subscription/should_have_Subscription_entries.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_LTV/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_LTV/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRR/behaves_like_Summary/should_have_summary.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRR/should_have_entries.yml +0 -42
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/behaves_like_Summary/should_have_summary.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Metrics_MRRChurnRate/behaves_like_Metrics_API_resource/should_have_entries.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/and_fails_on_incorrect_credentials.yml +0 -38
- data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/and_fails_with_500_internal_server_error.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/and_fails_with_504_gateway_timeout_error.yml +0 -40
- data/fixtures/vcr_cassettes/ChartMogul_Ping/pings/when_credentials_correct.yml +0 -38
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_handles_a_422_error.yml +0 -51
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/correctly_interacts_with_the_API.yml +0 -152
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/deletes_existing_plan.yml +0 -198
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/retrieves_existing_plan_by_uuid.yml +0 -151
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/updates_existing_plan.yml +0 -198
- data/fixtures/vcr_cassettes/ChartMogul_Plan/API_Interactions/updates_existing_plan_using_class_method.yml +0 -164
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/correctly_handles_a_422_error.yml +0 -50
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/deletes_a_plan_group.yml +0 -293
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/retrieves_existing_plan_group_by_uuid.yml +0 -251
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/returns_an_array_of_plan_groups.yml +0 -357
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/updates_existing_plan_group_name.yml +0 -304
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/updates_existing_plan_group_name_via_class_method.yml +0 -297
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroup/API_interactions/updates_existing_plan_group_plans.yml +0 -411
- data/fixtures/vcr_cassettes/ChartMogul_PlanGroups_Plans/API_interactions/given_a_plan_group_uuid_returns_an_array_of_plans_in_the_plan_group.yml +0 -252
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/connects_subscriptions.yml +0 -436
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/correctly_interracts_with_the_API.yml +0 -340
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/API_Interactions/has_multiple_aliases.yml +0 -101
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/_update_cancellation_dates/when_array_has_time_objects/is_setting_the_cancellation_dates_of_the_subscription.yml +0 -138
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/_update_cancellation_dates/when_array_includes_invalid_entries/raises_an_exception.yml +0 -93
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/_update_cancellation_dates/when_array_includes_valid_entries/is_setting_the_cancellation_dates_of_the_subscription.yml +0 -138
- data/fixtures/vcr_cassettes/ChartMogul_Subscription/_update_cancellation_dates/when_array_is_empty/makes_an_API_call_and_removes_the_cancellation_dates.yml +0 -138
- data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/creates_a_new_subscription_event.yml +0 -320
- data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/deletes_the_subscription_event.yml +0 -377
- data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/lists_all_subscription_events.yml +0 -320
- data/fixtures/vcr_cassettes/ChartMogul_SubscriptionEvent/API_interactions/updates_the_subscription_event.yml +0 -377
- data/fixtures/vcr_cassettes/ChartMogul_Transactions_Payment/API_Interactions/correctly_interracts_with_the_API.yml +0 -243
@@ -1,80 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.chartmogul.com/v1/customers/cus_07393ece-aab1-4255-8bcd-0ef11e24b047
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v0.9.2
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic hidden
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message:
|
20
|
-
headers:
|
21
|
-
server:
|
22
|
-
- nginx/1.9.10
|
23
|
-
date:
|
24
|
-
- Wed, 29 Jun 2016 12:47:09 GMT
|
25
|
-
content-type:
|
26
|
-
- application/json
|
27
|
-
content-length:
|
28
|
-
- '567'
|
29
|
-
connection:
|
30
|
-
- close
|
31
|
-
status:
|
32
|
-
- 200 OK
|
33
|
-
access-control-allow-credentials:
|
34
|
-
- 'true'
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: '{"id":20268060,"uuid":"cus_07393ece-aab1-4255-8bcd-0ef11e24b047","external_id":"cus_0001","name":"Adam
|
38
|
-
Smith","email":"adam@smith.com","status":"Cancelled","customer-since":"2016-05-01T12:00:00+00:00","attributes":{"tags":["example","another-tag"]},"address":{"country":"United
|
39
|
-
States","state":null,"city":"New York","address_line1":null,"address_line2":null,"address_zip":""},"mrr":0,"arr":0,"billing-system-url":null,"chartmogul-url":"https://app.chartmogul.com/#customers/cus_07393ece-aab1-4255-8bcd-0ef11e24b047-Adam_Smith","billing-system-type":"ImportApi","currency":"USD","currency-sign":"$"}'
|
40
|
-
http_version:
|
41
|
-
recorded_at: Wed, 29 Jun 2016 12:47:09 GMT
|
42
|
-
- request:
|
43
|
-
method: post
|
44
|
-
uri: https://api.chartmogul.com/v1/customers/cus_07393ece-aab1-4255-8bcd-0ef11e24b047/attributes/custom
|
45
|
-
body:
|
46
|
-
encoding: UTF-8
|
47
|
-
string: '{"custom":[{"type":"String","key":"StringKey","value":"String Value"},{"type":"Integer","key":"integer_key","value":1234},{"type":"Timestamp","key":"timestamp_key","value":"2016-01-31
|
48
|
-
00:00:00 UTC"},{"type":"Boolean","key":"boolean_key","value":true}]}'
|
49
|
-
headers:
|
50
|
-
User-Agent:
|
51
|
-
- Faraday v0.9.2
|
52
|
-
Content-Type:
|
53
|
-
- application/json
|
54
|
-
Authorization:
|
55
|
-
- Basic hidden
|
56
|
-
response:
|
57
|
-
status:
|
58
|
-
code: 200
|
59
|
-
message:
|
60
|
-
headers:
|
61
|
-
server:
|
62
|
-
- nginx/1.9.10
|
63
|
-
date:
|
64
|
-
- Wed, 29 Jun 2016 12:47:09 GMT
|
65
|
-
content-type:
|
66
|
-
- application/json
|
67
|
-
content-length:
|
68
|
-
- '121'
|
69
|
-
connection:
|
70
|
-
- close
|
71
|
-
status:
|
72
|
-
- 200 OK
|
73
|
-
access-control-allow-credentials:
|
74
|
-
- 'true'
|
75
|
-
body:
|
76
|
-
encoding: UTF-8
|
77
|
-
string: '{"custom":{"StringKey":"String Value","integer_key":1234,"timestamp_key":"2016-01-31T00:00:00.000Z","boolean_key":true}}'
|
78
|
-
http_version:
|
79
|
-
recorded_at: Wed, 29 Jun 2016 12:47:09 GMT
|
80
|
-
recorded_with: VCR 3.0.3
|
@@ -1,79 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.chartmogul.com/v1/customers/cus_07393ece-aab1-4255-8bcd-0ef11e24b047
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v0.9.2
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic hidden
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message:
|
20
|
-
headers:
|
21
|
-
server:
|
22
|
-
- nginx/1.9.10
|
23
|
-
date:
|
24
|
-
- Wed, 29 Jun 2016 12:47:08 GMT
|
25
|
-
content-type:
|
26
|
-
- application/json
|
27
|
-
content-length:
|
28
|
-
- '544'
|
29
|
-
connection:
|
30
|
-
- close
|
31
|
-
status:
|
32
|
-
- 200 OK
|
33
|
-
access-control-allow-credentials:
|
34
|
-
- 'true'
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: '{"id":20268060,"uuid":"cus_07393ece-aab1-4255-8bcd-0ef11e24b047","external_id":"cus_0001","name":"Adam
|
38
|
-
Smith","email":"adam@smith.com","status":"Cancelled","customer-since":"2016-05-01T12:00:00+00:00","attributes":{"tags":[]},"address":{"country":"United
|
39
|
-
States","state":null,"city":"New York","address_line1":null,"address_line2":null,"address_zip":""},"mrr":0,"arr":0,"billing-system-url":null,"chartmogul-url":"https://app.chartmogul.com/#customers/20268060-Adam_Smith","billing-system-type":"ImportApi","currency":"USD","currency-sign":"$"}'
|
40
|
-
http_version:
|
41
|
-
recorded_at: Wed, 29 Jun 2016 12:47:08 GMT
|
42
|
-
- request:
|
43
|
-
method: post
|
44
|
-
uri: https://api.chartmogul.com/v1/customers/cus_07393ece-aab1-4255-8bcd-0ef11e24b047/attributes/tags
|
45
|
-
body:
|
46
|
-
encoding: UTF-8
|
47
|
-
string: '{"tags":["example","another-tag"]}'
|
48
|
-
headers:
|
49
|
-
User-Agent:
|
50
|
-
- Faraday v0.9.2
|
51
|
-
Content-Type:
|
52
|
-
- application/json
|
53
|
-
Authorization:
|
54
|
-
- Basic hidden
|
55
|
-
response:
|
56
|
-
status:
|
57
|
-
code: 200
|
58
|
-
message:
|
59
|
-
headers:
|
60
|
-
server:
|
61
|
-
- nginx/1.9.10
|
62
|
-
date:
|
63
|
-
- Wed, 29 Jun 2016 12:47:08 GMT
|
64
|
-
content-type:
|
65
|
-
- application/json
|
66
|
-
content-length:
|
67
|
-
- '34'
|
68
|
-
connection:
|
69
|
-
- close
|
70
|
-
status:
|
71
|
-
- 200 OK
|
72
|
-
access-control-allow-credentials:
|
73
|
-
- 'true'
|
74
|
-
body:
|
75
|
-
encoding: UTF-8
|
76
|
-
string: '{"tags":["example","another-tag"]}'
|
77
|
-
http_version:
|
78
|
-
recorded_at: Wed, 29 Jun 2016 12:47:08 GMT
|
79
|
-
recorded_with: VCR 3.0.3
|
@@ -1,43 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.chartmogul.com/v1/customers/search?email=adam%40smith.com&page=2&per_page=1
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v0.9.2
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic hidden
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message:
|
20
|
-
headers:
|
21
|
-
server:
|
22
|
-
- nginx/1.9.10
|
23
|
-
date:
|
24
|
-
- Wed, 29 Jun 2016 12:47:11 GMT
|
25
|
-
content-type:
|
26
|
-
- application/json
|
27
|
-
content-length:
|
28
|
-
- '740'
|
29
|
-
connection:
|
30
|
-
- close
|
31
|
-
status:
|
32
|
-
- 200 OK
|
33
|
-
access-control-allow-credentials:
|
34
|
-
- 'true'
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: '{"entries":[{"id":20268060,"uuid":"cus_07393ece-aab1-4255-8bcd-0ef11e24b047","external_id":"cus_0001","name":"Adam
|
38
|
-
Smith","email":"adam@smith.com","status":"Cancelled","customer-since":"2016-05-01T12:00:00+00:00","attributes":{"tags":["another-tag"],"custom":{"string_key":"Another
|
39
|
-
String Value","integer_key":"5678","timestamp_key":"2016-02-01 00:00:00 UTC","boolean_key":"f"}},"address":{"country":"United
|
40
|
-
States","state":null,"city":"New York","address_line1":null,"address_line2":null,"address_zip":""},"mrr":0,"arr":0,"billing-system-url":null,"chartmogul-url":"https://app.chartmogul.com/#customers/cus_07393ece-aab1-4255-8bcd-0ef11e24b047-Adam_Smith","billing-system-type":"ImportApi","currency":"USD","currency-sign":"$"}],"has_more":false,"per_page":1,"page":2}'
|
41
|
-
http_version:
|
42
|
-
recorded_at: Wed, 29 Jun 2016 12:47:11 GMT
|
43
|
-
recorded_with: VCR 3.0.3
|
@@ -1,50 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.chartmogul.com/v1/customers
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"data_source_uuid":null,"external_id":null,"name":null,"email":null,"company":null,"country":null,"state":null,"city":null,"zip":null}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v0.9.1
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic hidden
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 422
|
19
|
-
message:
|
20
|
-
headers:
|
21
|
-
server:
|
22
|
-
- nginx/1.9.10
|
23
|
-
date:
|
24
|
-
- Mon, 06 Jun 2016 15:26:39 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
|
-
cache-control:
|
38
|
-
- no-cache
|
39
|
-
x-request-id:
|
40
|
-
- db053e91-1f33-45fe-a8f2-d06c507e8066
|
41
|
-
x-runtime:
|
42
|
-
- '0.033493'
|
43
|
-
body:
|
44
|
-
encoding: UTF-8
|
45
|
-
string: '{"errors":{"external_id":"A unique external ID is required for each
|
46
|
-
customer.","name":"A name is required for each customer.","data_source_uuid":"A
|
47
|
-
valid data source UUID is required for each customer."}}'
|
48
|
-
http_version:
|
49
|
-
recorded_at: Mon, 06 Jun 2016 15:26:39 GMT
|
50
|
-
recorded_with: VCR 3.0.3
|
@@ -1,192 +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":"Customer Test Data Source"}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v1.0.1
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic hidden
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 201
|
19
|
-
message: Created
|
20
|
-
headers:
|
21
|
-
server:
|
22
|
-
- nginx/1.10.1
|
23
|
-
date:
|
24
|
-
- Tue, 16 Mar 2021 12:27:18 GMT
|
25
|
-
content-type:
|
26
|
-
- application/json
|
27
|
-
transfer-encoding:
|
28
|
-
- chunked
|
29
|
-
connection:
|
30
|
-
- keep-alive
|
31
|
-
status:
|
32
|
-
- 201 Created
|
33
|
-
access-control-allow-credentials:
|
34
|
-
- 'true'
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: '{"uuid":"ds_f2f67ad0-8652-11eb-a9f8-37471a677085","name":"Customer
|
38
|
-
Test Data Source","system":"Import API","created_at":"2021-03-16T12:27:18.630Z","status":"idle"}'
|
39
|
-
http_version:
|
40
|
-
recorded_at: Tue, 16 Mar 2021 12:27:18 GMT
|
41
|
-
- request:
|
42
|
-
method: post
|
43
|
-
uri: https://api.chartmogul.com/v1/customers
|
44
|
-
body:
|
45
|
-
encoding: UTF-8
|
46
|
-
string: '{"external_id":"X1234","name":"Test Customer","email":"test@example.com","country":"DE","city":"Berlin","data_source_uuid":"ds_f2f67ad0-8652-11eb-a9f8-37471a677085","lead_created_at":"2016-10-01
|
47
|
-
23:55:00 UTC","free_trial_started_at":"2016-10-12 11:12:00 UTC"}'
|
48
|
-
headers:
|
49
|
-
User-Agent:
|
50
|
-
- Faraday v1.0.1
|
51
|
-
Content-Type:
|
52
|
-
- application/json
|
53
|
-
Authorization:
|
54
|
-
- Basic hidden
|
55
|
-
response:
|
56
|
-
status:
|
57
|
-
code: 201
|
58
|
-
message: Created
|
59
|
-
headers:
|
60
|
-
server:
|
61
|
-
- nginx/1.10.1
|
62
|
-
date:
|
63
|
-
- Tue, 16 Mar 2021 12:27:19 GMT
|
64
|
-
content-type:
|
65
|
-
- application/json
|
66
|
-
transfer-encoding:
|
67
|
-
- chunked
|
68
|
-
connection:
|
69
|
-
- keep-alive
|
70
|
-
status:
|
71
|
-
- 201 Created
|
72
|
-
access-control-allow-credentials:
|
73
|
-
- 'true'
|
74
|
-
body:
|
75
|
-
encoding: UTF-8
|
76
|
-
string: '{"id":93760512,"uuid":"cus_f340970a-8652-11eb-a9f8-cfc7971a103f","external_id":"X1234","name":"Test
|
77
|
-
Customer","email":"test@example.com","status":"Lead","customer-since":null,"attributes":{"custom":{},"clearbit":{},"stripe":{},"tags":[]},"data_source_uuid":"ds_f2f67ad0-8652-11eb-a9f8-37471a677085","data_source_uuids":["ds_f2f67ad0-8652-11eb-a9f8-37471a677085"],"external_ids":["X1234"],"company":"","country":"DE","state":null,"city":"Berlin","zip":null,"lead_created_at":"2016-10-01T23:55:00.000Z","free_trial_started_at":"2016-10-12T11:12:00.000Z","address":{"country":"Germany","state":null,"city":"Berlin","address_zip":null},"mrr":0,"arr":0,"billing-system-url":null,"chartmogul-url":"https://app.chartmogul.com/#customers/93760512-Test_Customer","billing-system-type":"Import
|
78
|
-
API","currency":"USD","currency-sign":"$"}'
|
79
|
-
http_version:
|
80
|
-
recorded_at: Tue, 16 Mar 2021 12:27:19 GMT
|
81
|
-
- request:
|
82
|
-
method: get
|
83
|
-
uri: https://api.chartmogul.com/v1/customers
|
84
|
-
body:
|
85
|
-
encoding: US-ASCII
|
86
|
-
string: ''
|
87
|
-
headers:
|
88
|
-
User-Agent:
|
89
|
-
- Faraday v1.0.1
|
90
|
-
Content-Type:
|
91
|
-
- application/json
|
92
|
-
Authorization:
|
93
|
-
- Basic hidden
|
94
|
-
response:
|
95
|
-
status:
|
96
|
-
code: 200
|
97
|
-
message: OK
|
98
|
-
headers:
|
99
|
-
server:
|
100
|
-
- nginx/1.10.1
|
101
|
-
date:
|
102
|
-
- Tue, 16 Mar 2021 12:27:19 GMT
|
103
|
-
content-type:
|
104
|
-
- application/json
|
105
|
-
transfer-encoding:
|
106
|
-
- chunked
|
107
|
-
connection:
|
108
|
-
- keep-alive
|
109
|
-
vary:
|
110
|
-
- Accept-Encoding, Accept-Encoding
|
111
|
-
status:
|
112
|
-
- 200 OK
|
113
|
-
access-control-allow-credentials:
|
114
|
-
- 'true'
|
115
|
-
body:
|
116
|
-
encoding: ASCII-8BIT
|
117
|
-
string: '{"entries":[{"id":93760512,"uuid":"cus_f340970a-8652-11eb-a9f8-cfc7971a103f","external_id":"X1234","name":"Test
|
118
|
-
Customer","email":"test@example.com","status":"Lead","customer-since":null,"attributes":{"custom":{},"clearbit":{},"stripe":{},"tags":[]},"data_source_uuid":"ds_f2f67ad0-8652-11eb-a9f8-37471a677085","data_source_uuids":["ds_f2f67ad0-8652-11eb-a9f8-37471a677085"],"external_ids":["X1234"],"company":"","country":"DE","state":null,"city":"Berlin","zip":null,"lead_created_at":"2016-10-01T23:55:00.000Z","free_trial_started_at":"2016-10-12T11:12:00.000Z","address":{"country":"Germany","state":null,"city":"Berlin","address_zip":null},"mrr":0,"arr":0,"billing-system-url":null,"chartmogul-url":"https://app.chartmogul.com/#customers/93760512-Test_Customer","billing-system-type":"Import
|
119
|
-
API","currency":"USD","currency-sign":"$"}],"current_page":1,"total_pages":1,"has_more":false,"per_page":200,"page":1}'
|
120
|
-
http_version:
|
121
|
-
recorded_at: Tue, 16 Mar 2021 12:27:19 GMT
|
122
|
-
- request:
|
123
|
-
method: delete
|
124
|
-
uri: https://api.chartmogul.com/v1/customers/cus_f340970a-8652-11eb-a9f8-cfc7971a103f
|
125
|
-
body:
|
126
|
-
encoding: US-ASCII
|
127
|
-
string: ''
|
128
|
-
headers:
|
129
|
-
User-Agent:
|
130
|
-
- Faraday v1.0.1
|
131
|
-
Authorization:
|
132
|
-
- Basic hidden
|
133
|
-
response:
|
134
|
-
status:
|
135
|
-
code: 204
|
136
|
-
message: No Content
|
137
|
-
headers:
|
138
|
-
server:
|
139
|
-
- nginx/1.10.1
|
140
|
-
date:
|
141
|
-
- Tue, 16 Mar 2021 12:28:19 GMT
|
142
|
-
connection:
|
143
|
-
- keep-alive
|
144
|
-
status:
|
145
|
-
- 204 No Content
|
146
|
-
access-control-allow-credentials:
|
147
|
-
- 'true'
|
148
|
-
body:
|
149
|
-
encoding: UTF-8
|
150
|
-
string: ''
|
151
|
-
http_version:
|
152
|
-
recorded_at: Tue, 16 Mar 2021 12:28:19 GMT
|
153
|
-
- request:
|
154
|
-
method: get
|
155
|
-
uri: https://api.chartmogul.com/v1/customers
|
156
|
-
body:
|
157
|
-
encoding: US-ASCII
|
158
|
-
string: ''
|
159
|
-
headers:
|
160
|
-
User-Agent:
|
161
|
-
- Faraday v1.0.1
|
162
|
-
Content-Type:
|
163
|
-
- application/json
|
164
|
-
Authorization:
|
165
|
-
- Basic hidden
|
166
|
-
response:
|
167
|
-
status:
|
168
|
-
code: 200
|
169
|
-
message: OK
|
170
|
-
headers:
|
171
|
-
server:
|
172
|
-
- nginx/1.10.1
|
173
|
-
date:
|
174
|
-
- Tue, 16 Mar 2021 12:28:20 GMT
|
175
|
-
content-type:
|
176
|
-
- application/json
|
177
|
-
transfer-encoding:
|
178
|
-
- chunked
|
179
|
-
connection:
|
180
|
-
- keep-alive
|
181
|
-
vary:
|
182
|
-
- Accept-Encoding, Accept-Encoding
|
183
|
-
status:
|
184
|
-
- 200 OK
|
185
|
-
access-control-allow-credentials:
|
186
|
-
- 'true'
|
187
|
-
body:
|
188
|
-
encoding: ASCII-8BIT
|
189
|
-
string: '{"entries":[],"current_page":1,"total_pages":1,"has_more":false,"per_page":200,"page":1}'
|
190
|
-
http_version:
|
191
|
-
recorded_at: Tue, 16 Mar 2021 12:28:20 GMT
|
192
|
-
recorded_with: VCR 5.1.0
|
@@ -1,72 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.chartmogul.com/v1/customers/cus_54cde7bc-bf30-11ed-a51a-2325f065834f
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- chartmogul-ruby/3.0.2
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic hidden
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: OK
|
20
|
-
headers:
|
21
|
-
access-control-allow-credentials:
|
22
|
-
- 'true'
|
23
|
-
content-type:
|
24
|
-
- application/json
|
25
|
-
date:
|
26
|
-
- Fri, 10 Mar 2023 11:02:57 GMT
|
27
|
-
content-length:
|
28
|
-
- '769'
|
29
|
-
connection:
|
30
|
-
- keep-alive
|
31
|
-
body:
|
32
|
-
encoding: UTF-8
|
33
|
-
string: '{"id":102689329,"uuid":"cus_54cde7bc-bf30-11ed-a51a-2325f065834f","external_id":"11234","name":"","email":"","status":"New
|
34
|
-
Lead","customer-since":null,"attributes":{"custom":{},"clearbit":{},"stripe":{},"tags":[]},"data_source_uuid":"ds_80251880-bef5-11ed-a88b-db28feaa7eba","data_source_uuids":["ds_80251880-bef5-11ed-a88b-db28feaa7eba"],"external_ids":["11234"],"company":"Test
|
35
|
-
customer","country":null,"state":null,"city":"","zip":null,"lead_created_at":null,"free_trial_started_at":null,"address":{"country":null,"state":null,"city":"","address_zip":null},"mrr":0,"arr":0,"billing-system-url":null,"chartmogul-url":"https://app.chartmogul.com/#/customers/102689329-Test_customer","billing-system-type":"Import
|
36
|
-
API","currency":"USD","currency-sign":"$","owner":null}'
|
37
|
-
http_version:
|
38
|
-
recorded_at: Fri, 10 Mar 2023 11:02:57 GMT
|
39
|
-
- request:
|
40
|
-
method: post
|
41
|
-
uri: https://api.chartmogul.com/v1/contacts
|
42
|
-
body:
|
43
|
-
encoding: UTF-8
|
44
|
-
string: '{"customer_uuid":"cus_54cde7bc-bf30-11ed-a51a-2325f065834f","data_source_uuid":"ds_80251880-bef5-11ed-a88b-db28feaa7eba","email":"new_contact@example.com"}'
|
45
|
-
headers:
|
46
|
-
User-Agent:
|
47
|
-
- chartmogul-ruby/3.0.2
|
48
|
-
Content-Type:
|
49
|
-
- application/json
|
50
|
-
Authorization:
|
51
|
-
- Basic hidden
|
52
|
-
response:
|
53
|
-
status:
|
54
|
-
code: 201
|
55
|
-
message: Created
|
56
|
-
headers:
|
57
|
-
access-control-allow-credentials:
|
58
|
-
- 'true'
|
59
|
-
content-type:
|
60
|
-
- application/json
|
61
|
-
date:
|
62
|
-
- Fri, 10 Mar 2023 11:02:58 GMT
|
63
|
-
content-length:
|
64
|
-
- '367'
|
65
|
-
connection:
|
66
|
-
- keep-alive
|
67
|
-
body:
|
68
|
-
encoding: UTF-8
|
69
|
-
string: '{"uuid":"con_1e366712-bf33-11ed-84e6-9bba0516ad5f","customer_uuid":"cus_54cde7bc-bf30-11ed-a51a-2325f065834f","customer_external_id":"11234","data_source_uuid":"ds_80251880-bef5-11ed-a88b-db28feaa7eba","position":2,"first_name":null,"last_name":null,"title":null,"email":"new_contact@example.com","phone":null,"linked_in":null,"twitter":null,"notes":null,"custom":{}}'
|
70
|
-
http_version:
|
71
|
-
recorded_at: Fri, 10 Mar 2023 11:02:59 GMT
|
72
|
-
recorded_with: VCR 5.1.0
|
@@ -1,72 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.chartmogul.com/v1/customers/cus_54cde7bc-bf30-11ed-a51a-2325f065834f
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- chartmogul-ruby/3.0.2
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Authorization:
|
15
|
-
- Basic hidden
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: OK
|
20
|
-
headers:
|
21
|
-
access-control-allow-credentials:
|
22
|
-
- 'true'
|
23
|
-
content-type:
|
24
|
-
- application/json
|
25
|
-
date:
|
26
|
-
- Fri, 10 Mar 2023 10:43:38 GMT
|
27
|
-
content-length:
|
28
|
-
- '769'
|
29
|
-
connection:
|
30
|
-
- keep-alive
|
31
|
-
body:
|
32
|
-
encoding: UTF-8
|
33
|
-
string: '{"id":102689329,"uuid":"cus_54cde7bc-bf30-11ed-a51a-2325f065834f","external_id":"11234","name":"","email":"","status":"New
|
34
|
-
Lead","customer-since":null,"attributes":{"custom":{},"clearbit":{},"stripe":{},"tags":[]},"data_source_uuid":"ds_80251880-bef5-11ed-a88b-db28feaa7eba","data_source_uuids":["ds_80251880-bef5-11ed-a88b-db28feaa7eba"],"external_ids":["11234"],"company":"Test
|
35
|
-
customer","country":null,"state":null,"city":"","zip":null,"lead_created_at":null,"free_trial_started_at":null,"address":{"country":null,"state":null,"city":"","address_zip":null},"mrr":0,"arr":0,"billing-system-url":null,"chartmogul-url":"https://app.chartmogul.com/#/customers/102689329-Test_customer","billing-system-type":"Import
|
36
|
-
API","currency":"USD","currency-sign":"$","owner":null}'
|
37
|
-
http_version:
|
38
|
-
recorded_at: Fri, 10 Mar 2023 10:43:38 GMT
|
39
|
-
- request:
|
40
|
-
method: get
|
41
|
-
uri: https://api.chartmogul.com/v1/contacts?customer_uuid=cus_54cde7bc-bf30-11ed-a51a-2325f065834f
|
42
|
-
body:
|
43
|
-
encoding: US-ASCII
|
44
|
-
string: ''
|
45
|
-
headers:
|
46
|
-
User-Agent:
|
47
|
-
- chartmogul-ruby/3.0.2
|
48
|
-
Content-Type:
|
49
|
-
- application/json
|
50
|
-
Authorization:
|
51
|
-
- Basic hidden
|
52
|
-
response:
|
53
|
-
status:
|
54
|
-
code: 200
|
55
|
-
message: OK
|
56
|
-
headers:
|
57
|
-
access-control-allow-credentials:
|
58
|
-
- 'true'
|
59
|
-
content-type:
|
60
|
-
- application/json
|
61
|
-
date:
|
62
|
-
- Fri, 10 Mar 2023 10:43:40 GMT
|
63
|
-
content-length:
|
64
|
-
- '490'
|
65
|
-
connection:
|
66
|
-
- keep-alive
|
67
|
-
body:
|
68
|
-
encoding: UTF-8
|
69
|
-
string: '{"entries":[{"uuid":"con_6342518e-bf30-11ed-8542-5fe570cf19d7","customer_uuid":"cus_54cde7bc-bf30-11ed-a51a-2325f065834f","customer_external_id":"11234","data_source_uuid":"ds_80251880-bef5-11ed-a88b-db28feaa7eba","position":1,"first_name":"Test","last_name":"Again","title":null,"email":null,"phone":null,"linked_in":null,"twitter":null,"notes":null,"custom":{}}],"cursor":"MjAyMy0wMy0xMFQxMDo0MzoyNi4yOTE4ODgwMDBaJmNvbl82MzQyNTE4ZS1iZjMwLTExZWQtODU0Mi01ZmU1NzBjZjE5ZDc=","has_more":false}'
|
70
|
-
http_version:
|
71
|
-
recorded_at: Fri, 10 Mar 2023 10:43:40 GMT
|
72
|
-
recorded_with: VCR 5.1.0
|