chartmogul-ruby 3.3.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 +1 -0
- data/lib/chartmogul/version.rb +1 -1
- metadata +4 -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/creates_a_new_subscription_event_through_initialization.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,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
|
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":200,"page":1}'
|
41
|
-
http_version:
|
42
|
-
recorded_at: Wed, 29 Jun 2016 12:47:11 GMT
|
43
|
-
recorded_with: VCR 3.0.3
|
data/fixtures/vcr_cassettes/ChartMogul_Customer/API_Interactions/updates_custom_attributes.yml
DELETED
@@ -1,81 +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
|
-
- '687'
|
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"],"custom":{"string_key":"String
|
39
|
-
Value","integer_key":1234,"timestamp_key":"2016-01-31T00:00:00.000Z","boolean_key":true}},"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/20268060-Adam_Smith","billing-system-type":"ImportApi","currency":"USD","currency-sign":"$"}'
|
41
|
-
http_version:
|
42
|
-
recorded_at: Wed, 29 Jun 2016 12:47:09 GMT
|
43
|
-
- request:
|
44
|
-
method: put
|
45
|
-
uri: https://api.chartmogul.com/v1/customers/cus_07393ece-aab1-4255-8bcd-0ef11e24b047/attributes/custom
|
46
|
-
body:
|
47
|
-
encoding: UTF-8
|
48
|
-
string: '{"custom":{"StringKey":"Another String Value","integer_key":5678,"timestamp_key":"2016-02-01
|
49
|
-
00:00:00 UTC","boolean_key":false}}'
|
50
|
-
headers:
|
51
|
-
User-Agent:
|
52
|
-
- Faraday v0.9.2
|
53
|
-
Content-Type:
|
54
|
-
- application/json
|
55
|
-
Authorization:
|
56
|
-
- Basic hidden
|
57
|
-
response:
|
58
|
-
status:
|
59
|
-
code: 200
|
60
|
-
message:
|
61
|
-
headers:
|
62
|
-
server:
|
63
|
-
- nginx/1.9.10
|
64
|
-
date:
|
65
|
-
- Wed, 29 Jun 2016 12:47:09 GMT
|
66
|
-
content-type:
|
67
|
-
- application/json
|
68
|
-
content-length:
|
69
|
-
- '129'
|
70
|
-
connection:
|
71
|
-
- close
|
72
|
-
status:
|
73
|
-
- 200 OK
|
74
|
-
access-control-allow-credentials:
|
75
|
-
- 'true'
|
76
|
-
body:
|
77
|
-
encoding: UTF-8
|
78
|
-
string: '{"custom":{"StringKey":"Another String Value","integer_key":5678,"timestamp_key":"2016-02-01T00:00:00.000Z","boolean_key":false}}'
|
79
|
-
http_version:
|
80
|
-
recorded_at: Wed, 29 Jun 2016 12:47:09 GMT
|
81
|
-
recorded_with: VCR 3.0.3
|
@@ -1,139 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.chartmogul.com/v1/customers/cus_782b0716-a728-11e6-8eab-a7d0e8cd5c1e
|
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.10.1
|
23
|
-
date:
|
24
|
-
- Thu, 10 Nov 2016 12:35:59 GMT
|
25
|
-
content-type:
|
26
|
-
- application/json
|
27
|
-
content-length:
|
28
|
-
- '1069'
|
29
|
-
connection:
|
30
|
-
- close
|
31
|
-
vary:
|
32
|
-
- Accept-Encoding
|
33
|
-
status:
|
34
|
-
- 200 OK
|
35
|
-
access-control-allow-credentials:
|
36
|
-
- 'true'
|
37
|
-
body:
|
38
|
-
encoding: UTF-8
|
39
|
-
string: '{"id":6474391,"uuid":"cus_782b0716-a728-11e6-8eab-a7d0e8cd5c1e","external_id":"14c58821-ad87-467d-956f-95f35f2cdd3d","name":"Update
|
40
|
-
Customer","email":"update@customer.com","status":"Lead","customer-since":null,"attributes":{"tags":[],"clearbit":{"company":{"category":{"industry":"Commercial
|
41
|
-
Services \u0026 Supplies","industryGroup":"Commercial \u0026 Professional
|
42
|
-
Services","sector":"Industrials","subIndustry":"Corporate \u0026 Business"},"geo":{"city":"Lakewood","country":"United
|
43
|
-
States","postalCode":"80228","state":"Colorado","streetName":"South Union
|
44
|
-
Boulevard","streetNumber":"165","subPremise":"260"},"metrics":{"alexaGlobalRank":3418524,"alexaUsRank":793393},"name":"CCG","timeZone":"America/Denver","twitter":{"followers":1449,"handle":"CustomerProfit"},"type":"private","utcOffset":-7}}},"address":{"country":"Armenia","state":null,"city":null,"address_zip":null},"mrr":0,"arr":0,"billing-system-url":null,"chartmogul-url":"https://app.chartmogul.com/#customers/6474391-Update_Customer","billing-system-type":"Manual","currency":"UGX","currency-sign":null}'
|
45
|
-
http_version:
|
46
|
-
recorded_at: Thu, 10 Nov 2016 12:36:00 GMT
|
47
|
-
- request:
|
48
|
-
method: patch
|
49
|
-
uri: https://api.chartmogul.com/v1/customers/cus_782b0716-a728-11e6-8eab-a7d0e8cd5c1e
|
50
|
-
body:
|
51
|
-
encoding: UTF-8
|
52
|
-
string: '{"name":"Currywurst","email":"curry@wurst.com","company":"Curry 36","country":"DE","state":"NY","city":"Berlin","lead_created_at":"2016-01-01
|
53
|
-
14:30:00 UTC","free_trial_started_at":"2016-02-02 22:40:00 UTC","attributes":{"tags":["wurst"],"clearbit":{"company":{"category":{"industry":"Commercial
|
54
|
-
Services & Supplies","industry_group":"Commercial & Professional Services","sector":"Industrials","sub_industry":"Corporate
|
55
|
-
& Business"},"geo":{"city":"Lakewood","country":"United States","postal_code":"80228","state":"Colorado","street_name":"South
|
56
|
-
Union Boulevard","street_number":"165","sub_premise":"260"},"metrics":{"alexa_global_rank":3418524,"alexa_us_rank":793393},"name":"CCG","time_zone":"America/Denver","twitter":{"followers":1449,"handle":"CustomerProfit"},"type":"private","utc_offset":-7}},"custom":{"meinung":["lecker"]}}}'
|
57
|
-
headers:
|
58
|
-
User-Agent:
|
59
|
-
- Faraday v0.9.2
|
60
|
-
Content-Type:
|
61
|
-
- application/json
|
62
|
-
Authorization:
|
63
|
-
- Basic hidden
|
64
|
-
response:
|
65
|
-
status:
|
66
|
-
code: 200
|
67
|
-
message:
|
68
|
-
headers:
|
69
|
-
server:
|
70
|
-
- nginx/1.10.1
|
71
|
-
date:
|
72
|
-
- Thu, 10 Nov 2016 12:36:00 GMT
|
73
|
-
content-type:
|
74
|
-
- application/json
|
75
|
-
content-length:
|
76
|
-
- '1354'
|
77
|
-
connection:
|
78
|
-
- close
|
79
|
-
vary:
|
80
|
-
- Accept-Encoding
|
81
|
-
status:
|
82
|
-
- 200 OK
|
83
|
-
access-control-allow-credentials:
|
84
|
-
- 'true'
|
85
|
-
body:
|
86
|
-
encoding: UTF-8
|
87
|
-
string: '{"id":6474391,"uuid":"cus_782b0716-a728-11e6-8eab-a7d0e8cd5c1e","external_id":"14c58821-ad87-467d-956f-95f35f2cdd3d","name":"Currywurst","email":"curry@wurst.com","status":"Lead","customer-since":null,"attributes":{"custom":{"meinung":["lecker"]},"clearbit":{"company":{"category":{"industry":"Commercial
|
88
|
-
Services & Supplies","industryGroup":"Commercial & Professional Services","sector":"Industrials","subIndustry":"Corporate
|
89
|
-
& Business"},"geo":{"city":"Lakewood","country":"United States","postalCode":"80228","state":"Colorado","streetName":"South
|
90
|
-
Union Boulevard","streetNumber":"165","subPremise":"260"},"metrics":{"alexaGlobalRank":3418524,"alexaUsRank":793393},"name":"CCG","timeZone":"America/Denver","twitter":{"followers":1449,"handle":"CustomerProfit"},"type":"private","utcOffset":-7}},"stripe":{},"tags":["wurst"]},"company":"Curry
|
91
|
-
36","country":"DE","state":"NY","city":"Berlin","zip":null,"lead_created_at":"2016-01-01T14:30:00.000Z","free_trial_started_at":"2016-02-02T22:40:00.000Z","address":{"country":"DE","state":"New
|
92
|
-
York","city":"Berlin","address_zip":null},"mrr":0,"arr":0,"chartmogul-url":"https://app.chartmogul.com/#customers/6474391-Currywurst","data_source_uuid":"ds_5ef7f768-62ea-11e6-8299-5bf2ca7f76bb","data_source_uuids":["ds_5ef7f768-62ea-11e6-8299-5bf2ca7f76bb"],"external_ids":["14c58821-ad87-467d-956f-95f35f2cdd3d"]}'
|
93
|
-
http_version:
|
94
|
-
recorded_at: Thu, 10 Nov 2016 12:36:00 GMT
|
95
|
-
- request:
|
96
|
-
method: get
|
97
|
-
uri: https://api.chartmogul.com/v1/customers/cus_782b0716-a728-11e6-8eab-a7d0e8cd5c1e
|
98
|
-
body:
|
99
|
-
encoding: UTF-8
|
100
|
-
string: "{}"
|
101
|
-
headers:
|
102
|
-
User-Agent:
|
103
|
-
- Faraday v0.9.2
|
104
|
-
Content-Type:
|
105
|
-
- application/json
|
106
|
-
Authorization:
|
107
|
-
- Basic hidden
|
108
|
-
response:
|
109
|
-
status:
|
110
|
-
code: 200
|
111
|
-
message:
|
112
|
-
headers:
|
113
|
-
server:
|
114
|
-
- nginx/1.10.1
|
115
|
-
date:
|
116
|
-
- Thu, 10 Nov 2016 12:36:00 GMT
|
117
|
-
content-type:
|
118
|
-
- application/json
|
119
|
-
content-length:
|
120
|
-
- '1104'
|
121
|
-
connection:
|
122
|
-
- close
|
123
|
-
vary:
|
124
|
-
- Accept-Encoding
|
125
|
-
status:
|
126
|
-
- 200 OK
|
127
|
-
access-control-allow-credentials:
|
128
|
-
- 'true'
|
129
|
-
body:
|
130
|
-
encoding: UTF-8
|
131
|
-
string: '{"id":6474391,"uuid":"cus_782b0716-a728-11e6-8eab-a7d0e8cd5c1e","external_id":"14c58821-ad87-467d-956f-95f35f2cdd3d","name":"Currywurst","email":"curry@wurst.com","status":"Lead","customer-since":null,"attributes":{"tags":["wurst"],"clearbit":{"company":{"category":{"industry":"Commercial
|
132
|
-
Services \u0026 Supplies","industryGroup":"Commercial \u0026 Professional
|
133
|
-
Services","sector":"Industrials","subIndustry":"Corporate \u0026 Business"},"geo":{"city":"Lakewood","country":"United
|
134
|
-
States","postalCode":"80228","state":"Colorado","streetName":"South Union
|
135
|
-
Boulevard","streetNumber":"165","subPremise":"260"},"metrics":{"alexaGlobalRank":3418524,"alexaUsRank":793393},"name":"CCG","timeZone":"America/Denver","twitter":{"followers":1449,"handle":"CustomerProfit"},"type":"private","utcOffset":-7}},"custom":{"meinung":["lecker"]}},"address":{"country":"Germany","state":"New
|
136
|
-
York","city":"Berlin","address_zip":null},"mrr":0,"arr":0,"billing-system-url":null,"chartmogul-url":"https://app.chartmogul.com/#customers/6474391-Currywurst","billing-system-type":"Manual","currency":"UGX","currency-sign":null}'
|
137
|
-
http_version:
|
138
|
-
recorded_at: Thu, 10 Nov 2016 12:36:00 GMT
|
139
|
-
recorded_with: VCR 3.0.3
|
@@ -1,53 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: patch
|
5
|
-
uri: https://api.chartmogul.com/v1/customers/cus_a29bbcb6-43ed-11e9-9bff-a3a747d175b1
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"attributes":{"custom":{"company_size":"just me"},"tags":["foobar"]},"email":"curry@example.com","company":"Curry
|
9
|
-
42","country":"IN","state":"NY","city":"Berlin","free_trial_started_at":"2020-02-02
|
10
|
-
22:40:00 UTC"}'
|
11
|
-
headers:
|
12
|
-
User-Agent:
|
13
|
-
- Faraday v0.17.3
|
14
|
-
Content-Type:
|
15
|
-
- application/json
|
16
|
-
Authorization:
|
17
|
-
- Basic hidden
|
18
|
-
Accept-Encoding:
|
19
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
-
Accept:
|
21
|
-
- "*/*"
|
22
|
-
response:
|
23
|
-
status:
|
24
|
-
code: 200
|
25
|
-
message: OK
|
26
|
-
headers:
|
27
|
-
Server:
|
28
|
-
- nginx/1.10.1
|
29
|
-
Date:
|
30
|
-
- Fri, 17 Jul 2020 12:10:11 GMT
|
31
|
-
Content-Type:
|
32
|
-
- application/json
|
33
|
-
Transfer-Encoding:
|
34
|
-
- chunked
|
35
|
-
Connection:
|
36
|
-
- keep-alive
|
37
|
-
Vary:
|
38
|
-
- Accept-Encoding
|
39
|
-
- Accept-Encoding
|
40
|
-
Status:
|
41
|
-
- 200 OK
|
42
|
-
Access-Control-Allow-Credentials:
|
43
|
-
- 'true'
|
44
|
-
body:
|
45
|
-
encoding: ASCII-8BIT
|
46
|
-
string: '{"id":33802170,"uuid":"cus_a29bbcb6-43ed-11e9-9bff-a3a747d175b1","external_id":"HngTohkREePdXBIx","name":"Currywurst","email":"curry@example.com","status":"Past
|
47
|
-
due","customer-since":"2018-12-29T00:00:00+00:00","attributes":{"custom":{"company_size":"just
|
48
|
-
me","Users":"1"},"clearbit":{},"stripe":{},"tags":["foobar"]},"data_source_uuid":"ds_b835f746-43eb-11e9-8169-9333ac374c59","data_source_uuids":["ds_b835f746-43eb-11e9-8169-9333ac374c59"],"external_ids":["HngTohkREePdXBIx"],"company":"Curry
|
49
|
-
42","country":"IN","state":"NY","city":"Berlin","zip":null,"lead_created_at":"2018-12-15T00:00:00.000Z","free_trial_started_at":"2020-02-02T22:40:00.000Z","address":{"country":"India","state":"New
|
50
|
-
York","city":"Berlin","address_zip":null},"mrr":4900,"arr":58800,"billing-system-url":"HngTohkREePdXBIx","chartmogul-url":"https://app.chartmogul.com/#customers/33802170-Currywurst","billing-system-type":"Chargebee","currency":"USD","currency-sign":"$"}'
|
51
|
-
http_version: null
|
52
|
-
recorded_at: Fri, 17 Jul 2020 12:10:11 GMT
|
53
|
-
recorded_with: VCR 5.1.0
|
@@ -1,102 +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":"ds_154b9620-a22a-478a-8b44-198d11cc9a85","external_id":"X1234","name":"Test
|
9
|
-
Customer","email":"test@example.com","company":null,"country":"DE","state":null,"city":"Berlin","zip":null}'
|
10
|
-
headers:
|
11
|
-
User-Agent:
|
12
|
-
- Faraday v0.9.1
|
13
|
-
Content-Type:
|
14
|
-
- application/json
|
15
|
-
Authorization:
|
16
|
-
- Basic hidden
|
17
|
-
response:
|
18
|
-
status:
|
19
|
-
code: 201
|
20
|
-
message:
|
21
|
-
headers:
|
22
|
-
server:
|
23
|
-
- nginx/1.9.10
|
24
|
-
date:
|
25
|
-
- Mon, 06 Jun 2016 15:26:39 GMT
|
26
|
-
content-type:
|
27
|
-
- application/json; charset=utf-8
|
28
|
-
transfer-encoding:
|
29
|
-
- chunked
|
30
|
-
connection:
|
31
|
-
- close
|
32
|
-
x-frame-options:
|
33
|
-
- SAMEORIGIN
|
34
|
-
x-xss-protection:
|
35
|
-
- 1; mode=block
|
36
|
-
x-content-type-options:
|
37
|
-
- nosniff
|
38
|
-
etag:
|
39
|
-
- W/"2bb61213c73b74bf7e3094b3a2814b1c"
|
40
|
-
cache-control:
|
41
|
-
- max-age=0, private, must-revalidate
|
42
|
-
x-request-id:
|
43
|
-
- 7a43eb0b-0099-4cef-b620-a6ac687ace2f
|
44
|
-
x-runtime:
|
45
|
-
- '0.202425'
|
46
|
-
strict-transport-security:
|
47
|
-
- max-age=15768000
|
48
|
-
body:
|
49
|
-
encoding: UTF-8
|
50
|
-
string: '{"uuid":"cus_c4babf63-3eb9-4125-8687-2a0d781b0af2","external_id":"X1234","name":"Test
|
51
|
-
Customer","company":"","email":"test@example.com","city":"Berlin","state":"","country":"DE","zip":"","data_source_uuid":"ds_154b9620-a22a-478a-8b44-198d11cc9a85"}'
|
52
|
-
http_version:
|
53
|
-
recorded_at: Mon, 06 Jun 2016 15:26:39 GMT
|
54
|
-
- request:
|
55
|
-
method: get
|
56
|
-
uri: https://api.chartmogul.com/v1/customers?external_id=X1234
|
57
|
-
body:
|
58
|
-
encoding: US-ASCII
|
59
|
-
string: ''
|
60
|
-
headers:
|
61
|
-
User-Agent:
|
62
|
-
- Faraday v0.9.1
|
63
|
-
Authorization:
|
64
|
-
- Basic hidden
|
65
|
-
response:
|
66
|
-
status:
|
67
|
-
code: 200
|
68
|
-
message:
|
69
|
-
headers:
|
70
|
-
server:
|
71
|
-
- nginx/1.9.10
|
72
|
-
date:
|
73
|
-
- Mon, 06 Jun 2016 15:26:40 GMT
|
74
|
-
content-type:
|
75
|
-
- application/json; charset=utf-8
|
76
|
-
transfer-encoding:
|
77
|
-
- chunked
|
78
|
-
connection:
|
79
|
-
- close
|
80
|
-
x-frame-options:
|
81
|
-
- SAMEORIGIN
|
82
|
-
x-xss-protection:
|
83
|
-
- 1; mode=block
|
84
|
-
x-content-type-options:
|
85
|
-
- nosniff
|
86
|
-
etag:
|
87
|
-
- W/"f8b194be146b71827424808d2de63994"
|
88
|
-
cache-control:
|
89
|
-
- max-age=0, private, must-revalidate
|
90
|
-
x-request-id:
|
91
|
-
- aa0a64af-9cd4-4b7d-9d43-d3b7c08ac7d1
|
92
|
-
x-runtime:
|
93
|
-
- '0.020597'
|
94
|
-
strict-transport-security:
|
95
|
-
- max-age=15768000
|
96
|
-
body:
|
97
|
-
encoding: UTF-8
|
98
|
-
string: '{"entries":[{"uuid":"cus_c4babf63-3eb9-4125-8687-2a0d781b0af2","external_id":"X1234","name":"Test
|
99
|
-
Customer","company":"","email":"test@example.com","city":"Berlin","state":"","country":"DE","zip":"","data_source_uuid":"ds_154b9620-a22a-478a-8b44-198d11cc9a85"}],"current_page":1,"total_pages":1}'
|
100
|
-
http_version:
|
101
|
-
recorded_at: Mon, 06 Jun 2016 15:26:40 GMT
|
102
|
-
recorded_with: VCR 3.0.3
|
@@ -1,101 +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":"ds_154b9620-a22a-478a-8b44-198d11cc9a85","external_id":"X1234","name":"Test
|
9
|
-
Customer","email":"test@example.com","company":null,"country":"DE","state":null,"city":"Berlin","zip":null}'
|
10
|
-
headers:
|
11
|
-
User-Agent:
|
12
|
-
- Faraday v0.9.1
|
13
|
-
Content-Type:
|
14
|
-
- application/json
|
15
|
-
Authorization:
|
16
|
-
- Basic hidden
|
17
|
-
response:
|
18
|
-
status:
|
19
|
-
code: 201
|
20
|
-
message:
|
21
|
-
headers:
|
22
|
-
server:
|
23
|
-
- nginx/1.9.10
|
24
|
-
date:
|
25
|
-
- Mon, 06 Jun 2016 15:26:39 GMT
|
26
|
-
content-type:
|
27
|
-
- application/json; charset=utf-8
|
28
|
-
transfer-encoding:
|
29
|
-
- chunked
|
30
|
-
connection:
|
31
|
-
- close
|
32
|
-
x-frame-options:
|
33
|
-
- SAMEORIGIN
|
34
|
-
x-xss-protection:
|
35
|
-
- 1; mode=block
|
36
|
-
x-content-type-options:
|
37
|
-
- nosniff
|
38
|
-
etag:
|
39
|
-
- W/"2bb61213c73b74bf7e3094b3a2814b1c"
|
40
|
-
cache-control:
|
41
|
-
- max-age=0, private, must-revalidate
|
42
|
-
x-request-id:
|
43
|
-
- 7a43eb0b-0099-4cef-b620-a6ac687ace2f
|
44
|
-
x-runtime:
|
45
|
-
- '0.202425'
|
46
|
-
strict-transport-security:
|
47
|
-
- max-age=15768000
|
48
|
-
body:
|
49
|
-
encoding: UTF-8
|
50
|
-
string: '{"uuid":"cus_c4babf63-3eb9-4125-8687-2a0d781b0af2","external_id":"X1234","name":"Test
|
51
|
-
Customer","company":"","email":"test@example.com","city":"Berlin","state":"","country":"DE","zip":"","data_source_uuid":"ds_154b9620-a22a-478a-8b44-198d11cc9a85"}'
|
52
|
-
http_version:
|
53
|
-
recorded_at: Mon, 06 Jun 2016 15:26:39 GMT
|
54
|
-
- request:
|
55
|
-
method: get
|
56
|
-
uri: https://api.chartmogul.com/v1/customers?external_id=nope
|
57
|
-
body:
|
58
|
-
encoding: US-ASCII
|
59
|
-
string: ''
|
60
|
-
headers:
|
61
|
-
User-Agent:
|
62
|
-
- Faraday v0.9.1
|
63
|
-
Authorization:
|
64
|
-
- Basic hidden
|
65
|
-
response:
|
66
|
-
status:
|
67
|
-
code: 200
|
68
|
-
message:
|
69
|
-
headers:
|
70
|
-
server:
|
71
|
-
- nginx/1.9.10
|
72
|
-
date:
|
73
|
-
- Mon, 06 Jun 2016 15:26:40 GMT
|
74
|
-
content-type:
|
75
|
-
- application/json; charset=utf-8
|
76
|
-
transfer-encoding:
|
77
|
-
- chunked
|
78
|
-
connection:
|
79
|
-
- close
|
80
|
-
x-frame-options:
|
81
|
-
- SAMEORIGIN
|
82
|
-
x-xss-protection:
|
83
|
-
- 1; mode=block
|
84
|
-
x-content-type-options:
|
85
|
-
- nosniff
|
86
|
-
etag:
|
87
|
-
- W/"f8b194be146b71827424808d2de63994"
|
88
|
-
cache-control:
|
89
|
-
- max-age=0, private, must-revalidate
|
90
|
-
x-request-id:
|
91
|
-
- aa0a64af-9cd4-4b7d-9d43-d3b7c08ac7d1
|
92
|
-
x-runtime:
|
93
|
-
- '0.020597'
|
94
|
-
strict-transport-security:
|
95
|
-
- max-age=15768000
|
96
|
-
body:
|
97
|
-
encoding: UTF-8
|
98
|
-
string: '{"entries":[]}'
|
99
|
-
http_version:
|
100
|
-
recorded_at: Mon, 06 Jun 2016 15:26:40 GMT
|
101
|
-
recorded_with: VCR 3.0.3
|