zuora_rest_client 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +53 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +5 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE +18 -0
  7. data/README.md +56 -0
  8. data/Rakefile +6 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/fixtures/vcr_cassettes/zuora/create_account_object_success.yml +59 -0
  12. data/fixtures/vcr_cassettes/zuora/create_account_success.yml +66 -0
  13. data/fixtures/vcr_cassettes/zuora/delete_account_object_success.yml +223 -0
  14. data/fixtures/vcr_cassettes/zuora/describe_account.yml +577 -0
  15. data/fixtures/vcr_cassettes/zuora/describe_account_related_objects.yml +577 -0
  16. data/fixtures/vcr_cassettes/zuora/describe_all_account_fields.yml +577 -0
  17. data/fixtures/vcr_cassettes/zuora/describe_all_zobjects.yml +176 -0
  18. data/fixtures/vcr_cassettes/zuora/describe_exportable_account_fields.yml +577 -0
  19. data/fixtures/vcr_cassettes/zuora/describe_non_exportable_account_fields.yml +577 -0
  20. data/fixtures/vcr_cassettes/zuora/describe_non_updateable_account_fields.yml +577 -0
  21. data/fixtures/vcr_cassettes/zuora/describe_updateable_account_fields.yml +577 -0
  22. data/fixtures/vcr_cassettes/zuora/get_account_object_success.yml +60 -0
  23. data/fixtures/vcr_cassettes/zuora/get_account_success.yml +149 -0
  24. data/fixtures/vcr_cassettes/zuora/get_account_summary_success.yml +141 -0
  25. data/fixtures/vcr_cassettes/zuora/update_account_object_success.yml +115 -0
  26. data/fixtures/vcr_cassettes/zuora/update_account_success.yml +207 -0
  27. data/lib/zuora_rest_client/client.rb +1917 -0
  28. data/lib/zuora_rest_client/connection.rb +189 -0
  29. data/lib/zuora_rest_client/result.rb +8 -0
  30. data/lib/zuora_rest_client/version.rb +3 -0
  31. data/lib/zuora_rest_client.rb +7 -0
  32. data/zuora_rest_client.gemspec +45 -0
  33. metadata +383 -0
@@ -0,0 +1,60 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://rest.zuora.com/v1/object/account/2c92a0fe5c7d8185015c8defa5374aa8
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.3, ruby 2.4.1 (2017-03-22))
12
+ Accept:
13
+ - "*/*"
14
+ Accept-Encoding:
15
+ - gzip,deflate
16
+ Date:
17
+ - Fri, 09 Jun 2017 17:38:31 GMT
18
+ Content-Type:
19
+ - application/json
20
+ Apiaccesskeyid:
21
+ - "{ZUORA_USERNAME}"
22
+ Apisecretaccesskey:
23
+ - "{ZUORA_PASSWORD}"
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Server:
32
+ - kong/0.9.9
33
+ X-Request-Id:
34
+ - 4a535982-8e4b-4c04-99da-d11ca7f35b9e
35
+ X-Kong-Upstream-Latency:
36
+ - '98'
37
+ X-Kong-Proxy-Latency:
38
+ - '0'
39
+ Expires:
40
+ - Fri, 09 Jun 2017 17:38:32 GMT
41
+ Cache-Control:
42
+ - max-age=0, no-cache, no-store
43
+ Pragma:
44
+ - no-cache
45
+ Date:
46
+ - Fri, 09 Jun 2017 17:38:32 GMT
47
+ Content-Length:
48
+ - '662'
49
+ Connection:
50
+ - keep-alive
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"AccountNumber":"Z00324060","AllowInvoiceEdit":false,"InvoiceTemplateId":"2c92a0fb49377eae0149505ce4814ece","AutoPay":false,"InvoiceDeliveryPrefsPrint":false,"UpdatedDate":"2017-06-09T13:38:31.000-04:00","CreditBalance":0,"BillCycleDay":15,"BcdSettingOption":"ManualSet","PaymentTerm":"Due
54
+ Upon Receipt","SuppressDunning__c":"false","Batch":"Batch1","CreatedById":"4028e487327fd45a0132840d6f4c3135","CreatedDate":"2017-06-09T13:38:31.000-04:00","Name":"Test
55
+ Account","Balance":0,"Id":"2c92a0fe5c7d8185015c8defa5374aa8","InvoiceDeliveryPrefsEmail":false,"Currency":"USD","Status":"Draft","TotalInvoiceBalance":0,"UpdatedById":"4028e487327fd45a0132840d6f4c3135"}
56
+
57
+ '
58
+ http_version:
59
+ recorded_at: Fri, 09 Jun 2017 17:38:32 GMT
60
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,149 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://rest.zuora.com/v1/accounts/2c92a0fd5c832adb015c8def9fd9081c
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.3, ruby 2.4.1 (2017-03-22))
12
+ Accept:
13
+ - "*/*"
14
+ Accept-Encoding:
15
+ - gzip,deflate
16
+ Date:
17
+ - Fri, 09 Jun 2017 17:38:30 GMT
18
+ Content-Type:
19
+ - application/json
20
+ Apiaccesskeyid:
21
+ - "{ZUORA_USERNAME}"
22
+ Apisecretaccesskey:
23
+ - "{ZUORA_PASSWORD}"
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Content-Type:
30
+ - application/json;charset=utf-8
31
+ Server:
32
+ - Zuora App
33
+ X-Request-Id:
34
+ - 2256a6e6-e413-4b67-b23f-3aa3b97e90dc
35
+ X-Kong-Upstream-Latency:
36
+ - '59'
37
+ X-Kong-Proxy-Latency:
38
+ - '0'
39
+ Expires:
40
+ - Fri, 09 Jun 2017 17:38:30 GMT
41
+ Cache-Control:
42
+ - max-age=0, no-cache, no-store
43
+ Pragma:
44
+ - no-cache
45
+ Date:
46
+ - Fri, 09 Jun 2017 17:38:30 GMT
47
+ Content-Length:
48
+ - '2305'
49
+ Connection:
50
+ - keep-alive
51
+ Set-Cookie:
52
+ - ZSession={ZUORA_SESSION_ID}; Path=/; Secure; HttpOnly
53
+ body:
54
+ encoding: UTF-8
55
+ string: |-
56
+ {
57
+ "basicInfo" : {
58
+ "id" : "2c92a0fd5c832adb015c8def9fd9081c",
59
+ "name" : "Test Account",
60
+ "accountNumber" : "Z00324059",
61
+ "notes" : null,
62
+ "status" : "Active",
63
+ "crmId" : null,
64
+ "batch" : "Batch1",
65
+ "invoiceTemplateId" : "2c92a0fb49377eae0149505ce4814ece",
66
+ "communicationProfileId" : null,
67
+ "Bucket2__c" : null,
68
+ "Bucket3__c" : null,
69
+ "Bucket4__c" : null,
70
+ "Bucket1__c" : null,
71
+ "memberid__c" : null,
72
+ "LineofBusiness__c" : null,
73
+ "BucketTotal__c" : null,
74
+ "BusinessUnit__c" : null,
75
+ "VATNumber__c" : null,
76
+ "ProfileGroup__c" : null,
77
+ "LatestDunningEmailSubject__c" : null,
78
+ "TestAccountField__c" : null,
79
+ "SuppressDunning__c" : null,
80
+ "ACHVerificationCode__c" : null,
81
+ "publisher__c" : null,
82
+ "DellAffinityNo__c" : null,
83
+ "ACHVerificationTimestamp__c" : null
84
+ },
85
+ "billingAndPayment" : {
86
+ "billCycleDay" : 15,
87
+ "currency" : "USD",
88
+ "paymentTerm" : "Due Upon Receipt",
89
+ "paymentGateway" : null,
90
+ "invoiceDeliveryPrefsPrint" : false,
91
+ "invoiceDeliveryPrefsEmail" : false,
92
+ "additionalEmailAddresses" : [ ]
93
+ },
94
+ "metrics" : {
95
+ "balance" : 0E-9,
96
+ "totalInvoiceBalance" : 0E-9,
97
+ "creditBalance" : 0E-9,
98
+ "contractedMrr" : 0E-9
99
+ },
100
+ "billToContact" : {
101
+ "address1" : null,
102
+ "address2" : null,
103
+ "city" : null,
104
+ "country" : "United States",
105
+ "county" : null,
106
+ "fax" : null,
107
+ "firstName" : "Test",
108
+ "homePhone" : null,
109
+ "lastName" : "User",
110
+ "mobilePhone" : null,
111
+ "nickname" : null,
112
+ "otherPhone" : null,
113
+ "otherPhoneType" : null,
114
+ "personalEmail" : null,
115
+ "state" : "Texas",
116
+ "taxRegion" : null,
117
+ "workEmail" : null,
118
+ "workPhone" : null,
119
+ "zipCode" : null,
120
+ "State2__c" : null
121
+ },
122
+ "soldToContact" : {
123
+ "address1" : null,
124
+ "address2" : null,
125
+ "city" : null,
126
+ "country" : "United States",
127
+ "county" : null,
128
+ "fax" : null,
129
+ "firstName" : "Test",
130
+ "homePhone" : null,
131
+ "lastName" : "User",
132
+ "mobilePhone" : null,
133
+ "nickname" : null,
134
+ "otherPhone" : null,
135
+ "otherPhoneType" : null,
136
+ "personalEmail" : null,
137
+ "state" : "Texas",
138
+ "taxRegion" : null,
139
+ "workEmail" : null,
140
+ "workPhone" : null,
141
+ "zipCode" : null,
142
+ "State2__c" : null
143
+ },
144
+ "taxInfo" : null,
145
+ "success" : true
146
+ }
147
+ http_version:
148
+ recorded_at: Fri, 09 Jun 2017 17:38:30 GMT
149
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,141 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://rest.zuora.com/v1/accounts/2c92a0fd5c832adb015c8def9fd9081c/summary
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.3, ruby 2.4.1 (2017-03-22))
12
+ Accept:
13
+ - "*/*"
14
+ Accept-Encoding:
15
+ - gzip,deflate
16
+ Date:
17
+ - Fri, 09 Jun 2017 17:38:30 GMT
18
+ Content-Type:
19
+ - application/json
20
+ Apiaccesskeyid:
21
+ - "{ZUORA_USERNAME}"
22
+ Apisecretaccesskey:
23
+ - "{ZUORA_PASSWORD}"
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Content-Type:
30
+ - application/json;charset=utf-8
31
+ Server:
32
+ - Zuora App
33
+ X-Request-Id:
34
+ - 6c962773-d167-443d-a6c4-d39492a539dd
35
+ X-Kong-Upstream-Latency:
36
+ - '174'
37
+ X-Kong-Proxy-Latency:
38
+ - '0'
39
+ Expires:
40
+ - Fri, 09 Jun 2017 17:38:31 GMT
41
+ Cache-Control:
42
+ - max-age=0, no-cache, no-store
43
+ Pragma:
44
+ - no-cache
45
+ Date:
46
+ - Fri, 09 Jun 2017 17:38:31 GMT
47
+ Content-Length:
48
+ - '2204'
49
+ Connection:
50
+ - keep-alive
51
+ Set-Cookie:
52
+ - ZSession={ZUORA_SESSION_ID}; Path=/; Secure; HttpOnly
53
+ body:
54
+ encoding: UTF-8
55
+ string: |-
56
+ {
57
+ "basicInfo" : {
58
+ "id" : "2c92a0fd5c832adb015c8def9fd9081c",
59
+ "name" : "Test Account",
60
+ "accountNumber" : "Z00324059",
61
+ "balance" : 0E-9,
62
+ "lastInvoiceDate" : null,
63
+ "lastPaymentDate" : null,
64
+ "lastPaymentAmount" : null,
65
+ "currency" : "USD",
66
+ "status" : "Active",
67
+ "batch" : "Batch1",
68
+ "billCycleDay" : 15,
69
+ "invoiceDeliveryPrefsPrint" : false,
70
+ "invoiceDeliveryPrefsEmail" : false,
71
+ "additionalEmailAddresses" : [ ],
72
+ "Bucket2__c" : null,
73
+ "Bucket3__c" : null,
74
+ "Bucket4__c" : null,
75
+ "Bucket1__c" : null,
76
+ "memberid__c" : null,
77
+ "LineofBusiness__c" : null,
78
+ "BucketTotal__c" : null,
79
+ "BusinessUnit__c" : null,
80
+ "VATNumber__c" : null,
81
+ "ProfileGroup__c" : null,
82
+ "LatestDunningEmailSubject__c" : null,
83
+ "TestAccountField__c" : null,
84
+ "SuppressDunning__c" : null,
85
+ "ACHVerificationCode__c" : null,
86
+ "publisher__c" : null,
87
+ "DellAffinityNo__c" : null,
88
+ "ACHVerificationTimestamp__c" : null,
89
+ "defaultPaymentMethod" : {
90
+ "id" : "2c92a0fd5c832adb015c8def9fff0822",
91
+ "paymentMethodType" : "CreditCard",
92
+ "creditCardNumber" : "************1111",
93
+ "creditCardExpirationMonth" : 12,
94
+ "creditCardExpirationYear" : 2099,
95
+ "creditCardType" : "Visa"
96
+ }
97
+ },
98
+ "billToContact" : {
99
+ "id" : "2c92a0fd5c832adb015c8def9fe5081d",
100
+ "firstName" : "Test",
101
+ "lastName" : "User",
102
+ "address1" : null,
103
+ "address2" : null,
104
+ "city" : null,
105
+ "county" : null,
106
+ "state" : "Texas",
107
+ "zipCode" : null,
108
+ "country" : "United States",
109
+ "workEmail" : null,
110
+ "workPhone" : null,
111
+ "taxRegion" : null,
112
+ "fax" : null,
113
+ "State2__c" : null
114
+ },
115
+ "soldToContact" : {
116
+ "id" : "2c92a0fd5c832adb015c8def9fed081f",
117
+ "firstName" : "Test",
118
+ "lastName" : "User",
119
+ "address1" : null,
120
+ "address2" : null,
121
+ "city" : null,
122
+ "county" : null,
123
+ "state" : "Texas",
124
+ "zipCode" : null,
125
+ "country" : "United States",
126
+ "workEmail" : null,
127
+ "workPhone" : null,
128
+ "taxRegion" : null,
129
+ "fax" : null,
130
+ "State2__c" : null
131
+ },
132
+ "taxInfo" : null,
133
+ "subscriptions" : [ ],
134
+ "invoices" : [ ],
135
+ "payments" : [ ],
136
+ "usage" : [ ],
137
+ "success" : true
138
+ }
139
+ http_version:
140
+ recorded_at: Fri, 09 Jun 2017 17:38:31 GMT
141
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,115 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://rest.zuora.com/v1/object/account/2c92a0fe5c7d8185015c8defa5374aa8
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"Batch":"Batch2"}'
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.3, ruby 2.4.1 (2017-03-22))
12
+ Accept:
13
+ - "*/*"
14
+ Accept-Encoding:
15
+ - gzip,deflate
16
+ Date:
17
+ - Fri, 09 Jun 2017 17:38:32 GMT
18
+ Content-Type:
19
+ - application/json
20
+ Apiaccesskeyid:
21
+ - "{ZUORA_USERNAME}"
22
+ Apisecretaccesskey:
23
+ - "{ZUORA_PASSWORD}"
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Server:
32
+ - kong/0.9.9
33
+ X-Request-Id:
34
+ - 5b2ded52-032f-493c-a08e-b25c6683bfe7
35
+ X-Kong-Upstream-Latency:
36
+ - '102'
37
+ X-Kong-Proxy-Latency:
38
+ - '0'
39
+ Expires:
40
+ - Fri, 09 Jun 2017 17:38:32 GMT
41
+ Cache-Control:
42
+ - max-age=0, no-cache, no-store
43
+ Pragma:
44
+ - no-cache
45
+ Date:
46
+ - Fri, 09 Jun 2017 17:38:32 GMT
47
+ Content-Length:
48
+ - '57'
49
+ Connection:
50
+ - keep-alive
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"Success":true,"Id":"2c92a0fe5c7d8185015c8defa5374aa8"}
54
+
55
+ '
56
+ http_version:
57
+ recorded_at: Fri, 09 Jun 2017 17:38:32 GMT
58
+ - request:
59
+ method: get
60
+ uri: https://rest.zuora.com/v1/object/account/2c92a0fe5c7d8185015c8defa5374aa8
61
+ body:
62
+ encoding: UTF-8
63
+ string: ''
64
+ headers:
65
+ User-Agent:
66
+ - HTTPClient/1.0 (2.8.3, ruby 2.4.1 (2017-03-22))
67
+ Accept:
68
+ - "*/*"
69
+ Accept-Encoding:
70
+ - gzip,deflate
71
+ Date:
72
+ - Fri, 09 Jun 2017 17:38:32 GMT
73
+ Content-Type:
74
+ - application/json
75
+ Apiaccesskeyid:
76
+ - "{ZUORA_USERNAME}"
77
+ Apisecretaccesskey:
78
+ - "{ZUORA_PASSWORD}"
79
+ response:
80
+ status:
81
+ code: 200
82
+ message: OK
83
+ headers:
84
+ Content-Type:
85
+ - application/json; charset=utf-8
86
+ Server:
87
+ - kong/0.9.9
88
+ X-Request-Id:
89
+ - e56750cd-72ed-4e74-8f41-04c3bb51344b
90
+ X-Kong-Upstream-Latency:
91
+ - '88'
92
+ X-Kong-Proxy-Latency:
93
+ - '0'
94
+ Expires:
95
+ - Fri, 09 Jun 2017 17:38:32 GMT
96
+ Cache-Control:
97
+ - max-age=0, no-cache, no-store
98
+ Pragma:
99
+ - no-cache
100
+ Date:
101
+ - Fri, 09 Jun 2017 17:38:32 GMT
102
+ Content-Length:
103
+ - '662'
104
+ Connection:
105
+ - keep-alive
106
+ body:
107
+ encoding: UTF-8
108
+ string: '{"AccountNumber":"Z00324060","AllowInvoiceEdit":false,"InvoiceTemplateId":"2c92a0fb49377eae0149505ce4814ece","AutoPay":false,"InvoiceDeliveryPrefsPrint":false,"UpdatedDate":"2017-06-09T13:38:32.000-04:00","CreditBalance":0,"BillCycleDay":15,"BcdSettingOption":"ManualSet","PaymentTerm":"Due
109
+ Upon Receipt","SuppressDunning__c":"false","Batch":"Batch2","CreatedById":"4028e487327fd45a0132840d6f4c3135","CreatedDate":"2017-06-09T13:38:31.000-04:00","Name":"Test
110
+ Account","Balance":0,"Id":"2c92a0fe5c7d8185015c8defa5374aa8","InvoiceDeliveryPrefsEmail":false,"Currency":"USD","Status":"Draft","TotalInvoiceBalance":0,"UpdatedById":"4028e487327fd45a0132840d6f4c3135"}
111
+
112
+ '
113
+ http_version:
114
+ recorded_at: Fri, 09 Jun 2017 17:38:32 GMT
115
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,207 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://rest.zuora.com/v1/accounts/2c92a0fd5c832adb015c8def9fd9081c
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"batch":"Batch2"}'
9
+ headers:
10
+ User-Agent:
11
+ - HTTPClient/1.0 (2.8.3, ruby 2.4.1 (2017-03-22))
12
+ Accept:
13
+ - "*/*"
14
+ Accept-Encoding:
15
+ - gzip,deflate
16
+ Date:
17
+ - Fri, 09 Jun 2017 17:38:31 GMT
18
+ Content-Type:
19
+ - application/json
20
+ Apiaccesskeyid:
21
+ - "{ZUORA_USERNAME}"
22
+ Apisecretaccesskey:
23
+ - "{ZUORA_PASSWORD}"
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Content-Type:
30
+ - application/json;charset=utf-8
31
+ Server:
32
+ - Zuora App
33
+ X-Request-Id:
34
+ - 5dadccff-aa8f-4cb1-abb6-87363a2ea325
35
+ X-Kong-Upstream-Latency:
36
+ - '69'
37
+ X-Kong-Proxy-Latency:
38
+ - '0'
39
+ Expires:
40
+ - Fri, 09 Jun 2017 17:38:31 GMT
41
+ Cache-Control:
42
+ - max-age=0, no-cache, no-store
43
+ Pragma:
44
+ - no-cache
45
+ Date:
46
+ - Fri, 09 Jun 2017 17:38:31 GMT
47
+ Content-Length:
48
+ - '22'
49
+ Connection:
50
+ - keep-alive
51
+ Set-Cookie:
52
+ - ZSession={ZUORA_SESSION_ID}; Path=/; Secure; HttpOnly
53
+ body:
54
+ encoding: UTF-8
55
+ string: |-
56
+ {
57
+ "success" : true
58
+ }
59
+ http_version:
60
+ recorded_at: Fri, 09 Jun 2017 17:38:31 GMT
61
+ - request:
62
+ method: get
63
+ uri: https://rest.zuora.com/v1/accounts/2c92a0fd5c832adb015c8def9fd9081c
64
+ body:
65
+ encoding: UTF-8
66
+ string: ''
67
+ headers:
68
+ User-Agent:
69
+ - HTTPClient/1.0 (2.8.3, ruby 2.4.1 (2017-03-22))
70
+ Accept:
71
+ - "*/*"
72
+ Accept-Encoding:
73
+ - gzip,deflate
74
+ Date:
75
+ - Fri, 09 Jun 2017 17:38:31 GMT
76
+ Content-Type:
77
+ - application/json
78
+ Apiaccesskeyid:
79
+ - "{ZUORA_USERNAME}"
80
+ Apisecretaccesskey:
81
+ - "{ZUORA_PASSWORD}"
82
+ response:
83
+ status:
84
+ code: 200
85
+ message: OK
86
+ headers:
87
+ Content-Type:
88
+ - application/json;charset=utf-8
89
+ Server:
90
+ - Zuora App
91
+ X-Request-Id:
92
+ - f868bc70-78b9-4bce-8008-c9b7b9d61877
93
+ X-Kong-Upstream-Latency:
94
+ - '61'
95
+ X-Kong-Proxy-Latency:
96
+ - '0'
97
+ Expires:
98
+ - Fri, 09 Jun 2017 17:38:31 GMT
99
+ Cache-Control:
100
+ - max-age=0, no-cache, no-store
101
+ Pragma:
102
+ - no-cache
103
+ Date:
104
+ - Fri, 09 Jun 2017 17:38:31 GMT
105
+ Content-Length:
106
+ - '2305'
107
+ Connection:
108
+ - keep-alive
109
+ Set-Cookie:
110
+ - ZSession={ZUORA_SESSION_ID}; Path=/; Secure; HttpOnly
111
+ body:
112
+ encoding: UTF-8
113
+ string: |-
114
+ {
115
+ "basicInfo" : {
116
+ "id" : "2c92a0fd5c832adb015c8def9fd9081c",
117
+ "name" : "Test Account",
118
+ "accountNumber" : "Z00324059",
119
+ "notes" : null,
120
+ "status" : "Active",
121
+ "crmId" : null,
122
+ "batch" : "Batch2",
123
+ "invoiceTemplateId" : "2c92a0fb49377eae0149505ce4814ece",
124
+ "communicationProfileId" : null,
125
+ "Bucket2__c" : null,
126
+ "Bucket3__c" : null,
127
+ "Bucket4__c" : null,
128
+ "Bucket1__c" : null,
129
+ "memberid__c" : null,
130
+ "LineofBusiness__c" : null,
131
+ "BucketTotal__c" : null,
132
+ "BusinessUnit__c" : null,
133
+ "VATNumber__c" : null,
134
+ "ProfileGroup__c" : null,
135
+ "LatestDunningEmailSubject__c" : null,
136
+ "TestAccountField__c" : null,
137
+ "SuppressDunning__c" : null,
138
+ "ACHVerificationCode__c" : null,
139
+ "publisher__c" : null,
140
+ "DellAffinityNo__c" : null,
141
+ "ACHVerificationTimestamp__c" : null
142
+ },
143
+ "billingAndPayment" : {
144
+ "billCycleDay" : 15,
145
+ "currency" : "USD",
146
+ "paymentTerm" : "Due Upon Receipt",
147
+ "paymentGateway" : null,
148
+ "invoiceDeliveryPrefsPrint" : false,
149
+ "invoiceDeliveryPrefsEmail" : false,
150
+ "additionalEmailAddresses" : [ ]
151
+ },
152
+ "metrics" : {
153
+ "balance" : 0E-9,
154
+ "totalInvoiceBalance" : 0E-9,
155
+ "creditBalance" : 0E-9,
156
+ "contractedMrr" : 0E-9
157
+ },
158
+ "billToContact" : {
159
+ "address1" : null,
160
+ "address2" : null,
161
+ "city" : null,
162
+ "country" : "United States",
163
+ "county" : null,
164
+ "fax" : null,
165
+ "firstName" : "Test",
166
+ "homePhone" : null,
167
+ "lastName" : "User",
168
+ "mobilePhone" : null,
169
+ "nickname" : null,
170
+ "otherPhone" : null,
171
+ "otherPhoneType" : null,
172
+ "personalEmail" : null,
173
+ "state" : "Texas",
174
+ "taxRegion" : null,
175
+ "workEmail" : null,
176
+ "workPhone" : null,
177
+ "zipCode" : null,
178
+ "State2__c" : null
179
+ },
180
+ "soldToContact" : {
181
+ "address1" : null,
182
+ "address2" : null,
183
+ "city" : null,
184
+ "country" : "United States",
185
+ "county" : null,
186
+ "fax" : null,
187
+ "firstName" : "Test",
188
+ "homePhone" : null,
189
+ "lastName" : "User",
190
+ "mobilePhone" : null,
191
+ "nickname" : null,
192
+ "otherPhone" : null,
193
+ "otherPhoneType" : null,
194
+ "personalEmail" : null,
195
+ "state" : "Texas",
196
+ "taxRegion" : null,
197
+ "workEmail" : null,
198
+ "workPhone" : null,
199
+ "zipCode" : null,
200
+ "State2__c" : null
201
+ },
202
+ "taxInfo" : null,
203
+ "success" : true
204
+ }
205
+ http_version:
206
+ recorded_at: Fri, 09 Jun 2017 17:38:31 GMT
207
+ recorded_with: VCR 3.0.3