zuora_rest_client 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ffa2bba7d559335da881a023371512cefdd36e9
4
- data.tar.gz: caa87d11bd5301ddb798aff431051e32315b1373
3
+ metadata.gz: 66fa36458100b0aa7f4a1f81153c214a9050f3b9
4
+ data.tar.gz: 2d49f1be74ed062bdcf01d32452eb912bd1cbe67
5
5
  SHA512:
6
- metadata.gz: 658497f935b078480156627dd0c1461960795ffcc2cbe7fd9de079b66cd440ab513475683378c902c247fb363a45307954593c3d6f0863fcdfbcd3b1b7d3e7c1
7
- data.tar.gz: 7d52655a35f4644b4115de1c941af6a065642e86d03de2f5c5258426f72ddc512de8df7d1a6bcb65bd30681cf1252696f3559f347452cc23ca7a2e8c91535991
6
+ metadata.gz: 372327b1d0cfa59539c58db7cf039785852b2c3ce21dd153867412035d977868fa7bd080ddee12366b96b66e99a5cf2370bf51bee624d443af84c4cd8fd6398b
7
+ data.tar.gz: 55147497dfd605642a28987b5314ddcaba5d74b7fd381b406eb81261e034b7cf8e9e8743307675879d19c6028873ecc4107b2a84dbad7f0bbff7c0ce38e05970
data/README.md CHANGED
@@ -38,6 +38,14 @@ For a sandbox tenant, you can specify the following:
38
38
  client = ZuoraRestClient::Client.new(username, password, :api_sandbox) # Create an api sandbox client
39
39
  ```
40
40
 
41
+ For a "serivces*NNN*" tenant, where *NNN* is the number that follows "services", you may also need an
42
+ API proxy port number to invoke calls to `/action/*` and `/object/*`. Assuming your services tenant is `services000`
43
+ and your API proxy port number is `1234`, you can specify the following:
44
+
45
+ ```ruby
46
+ client = ZuoraRestClient::Client.new(username, password, :services000, api_proxy_port: 1234) # Create an api services000 client
47
+ ```
48
+
41
49
  Call one of the client methods. For example, to create an account:
42
50
  ```ruby
43
51
  account_to_create = {
@@ -15,7 +15,7 @@ http_interactions:
15
15
  Accept-Encoding:
16
16
  - gzip,deflate
17
17
  Date:
18
- - Fri, 09 Jun 2017 17:38:31 GMT
18
+ - Wed, 02 Aug 2017 14:48:10 GMT
19
19
  Content-Type:
20
20
  - application/json
21
21
  Apiaccesskeyid:
@@ -32,28 +32,28 @@ http_interactions:
32
32
  Server:
33
33
  - kong/0.9.9
34
34
  X-Request-Id:
35
- - 5c7bf3bb-9808-4343-9843-b3bac54d3445
35
+ - bf151689-f22f-4944-a60e-83b4b6770ba6
36
36
  X-Kong-Upstream-Latency:
37
- - '363'
37
+ - '119'
38
38
  X-Kong-Proxy-Latency:
39
39
  - '0'
40
40
  Expires:
41
- - Fri, 09 Jun 2017 17:38:31 GMT
41
+ - Wed, 02 Aug 2017 14:48:11 GMT
42
42
  Cache-Control:
43
43
  - max-age=0, no-cache, no-store
44
44
  Pragma:
45
45
  - no-cache
46
46
  Date:
47
- - Fri, 09 Jun 2017 17:38:31 GMT
47
+ - Wed, 02 Aug 2017 14:48:11 GMT
48
48
  Content-Length:
49
49
  - '57'
50
50
  Connection:
51
51
  - keep-alive
52
52
  body:
53
53
  encoding: UTF-8
54
- string: '{"Success":true,"Id":"2c92a0fe5c7d8185015c8defa5374aa8"}
54
+ string: '{"Success":true,"Id":"2c92a0fc5d8298f5015da36b18a34507"}
55
55
 
56
56
  '
57
57
  http_version:
58
- recorded_at: Fri, 09 Jun 2017 17:38:31 GMT
58
+ recorded_at: Wed, 02 Aug 2017 14:48:11 GMT
59
59
  recorded_with: VCR 3.0.3
@@ -16,7 +16,7 @@ http_interactions:
16
16
  Accept-Encoding:
17
17
  - gzip,deflate
18
18
  Date:
19
- - Fri, 09 Jun 2017 17:38:30 GMT
19
+ - Wed, 02 Aug 2017 14:48:10 GMT
20
20
  Content-Type:
21
21
  - application/json
22
22
  Apiaccesskeyid:
@@ -33,19 +33,19 @@ http_interactions:
33
33
  Server:
34
34
  - Zuora App
35
35
  X-Request-Id:
36
- - 7ab05a60-723b-4a2e-9f5b-fa352908261f
36
+ - f3ecba32-8807-4312-8891-905029229c0d
37
37
  X-Kong-Upstream-Latency:
38
- - '188'
38
+ - '145'
39
39
  X-Kong-Proxy-Latency:
40
40
  - '0'
41
41
  Expires:
42
- - Fri, 09 Jun 2017 17:38:30 GMT
42
+ - Wed, 02 Aug 2017 14:48:10 GMT
43
43
  Cache-Control:
44
44
  - max-age=0, no-cache, no-store
45
45
  Pragma:
46
46
  - no-cache
47
47
  Date:
48
- - Fri, 09 Jun 2017 17:38:30 GMT
48
+ - Wed, 02 Aug 2017 14:48:10 GMT
49
49
  Content-Length:
50
50
  - '165'
51
51
  Connection:
@@ -57,10 +57,10 @@ http_interactions:
57
57
  string: |-
58
58
  {
59
59
  "success" : true,
60
- "accountId" : "2c92a0fd5c832adb015c8def9fd9081c",
61
- "accountNumber" : "Z00324059",
62
- "paymentMethodId" : "2c92a0fd5c832adb015c8def9fff0822"
60
+ "accountId" : "2c92a0fc5d8298f6015da36b14df1d04",
61
+ "accountNumber" : "Z00324067",
62
+ "paymentMethodId" : "2c92a0fc5d8298f6015da36b14f31d0a"
63
63
  }
64
64
  http_version:
65
- recorded_at: Fri, 09 Jun 2017 17:38:30 GMT
65
+ recorded_at: Wed, 02 Aug 2017 14:48:10 GMT
66
66
  recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: delete
5
- uri: https://rest.zuora.com/v1/object/account/2c92a0fd5c832adb015c8def9fd9081c
5
+ uri: https://rest.zuora.com/v1/object/account/2c92a0fc5d8298f6015da36b14df1d04
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: ''
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Accept-Encoding:
15
15
  - gzip,deflate
16
16
  Date:
17
- - Fri, 09 Jun 2017 17:38:32 GMT
17
+ - Wed, 02 Aug 2017 14:48:11 GMT
18
18
  Content-Type:
19
19
  - application/json
20
20
  Apiaccesskeyid:
@@ -31,33 +31,33 @@ http_interactions:
31
31
  Server:
32
32
  - kong/0.9.9
33
33
  X-Request-Id:
34
- - 13ee5884-cbc3-4803-8948-db99ac4436fc
34
+ - 493033c5-b69c-4dc5-8aea-24a2fa3430e2
35
35
  X-Kong-Upstream-Latency:
36
- - '262'
36
+ - '220'
37
37
  X-Kong-Proxy-Latency:
38
38
  - '0'
39
39
  Expires:
40
- - Fri, 09 Jun 2017 17:38:32 GMT
40
+ - Wed, 02 Aug 2017 14:48:12 GMT
41
41
  Cache-Control:
42
42
  - max-age=0, no-cache, no-store
43
43
  Pragma:
44
44
  - no-cache
45
45
  Date:
46
- - Fri, 09 Jun 2017 17:38:32 GMT
46
+ - Wed, 02 Aug 2017 14:48:12 GMT
47
47
  Content-Length:
48
48
  - '57'
49
49
  Connection:
50
50
  - keep-alive
51
51
  body:
52
52
  encoding: UTF-8
53
- string: '{"id":"2c92a0fd5c832adb015c8def9fd9081c","success":true}
53
+ string: '{"id":"2c92a0fc5d8298f6015da36b14df1d04","success":true}
54
54
 
55
55
  '
56
56
  http_version:
57
- recorded_at: Fri, 09 Jun 2017 17:38:32 GMT
57
+ recorded_at: Wed, 02 Aug 2017 14:48:12 GMT
58
58
  - request:
59
59
  method: get
60
- uri: https://rest.zuora.com/v1/object/account/2c92a0fd5c832adb015c8def9fd9081c
60
+ uri: https://rest.zuora.com/v1/object/account/2c92a0fc5d8298f6015da36b14df1d04
61
61
  body:
62
62
  encoding: UTF-8
63
63
  string: ''
@@ -69,7 +69,7 @@ http_interactions:
69
69
  Accept-Encoding:
70
70
  - gzip,deflate
71
71
  Date:
72
- - Fri, 09 Jun 2017 17:38:32 GMT
72
+ - Wed, 02 Aug 2017 14:48:12 GMT
73
73
  Content-Type:
74
74
  - application/json
75
75
  Apiaccesskeyid:
@@ -86,19 +86,19 @@ http_interactions:
86
86
  Server:
87
87
  - kong/0.9.9
88
88
  X-Request-Id:
89
- - 5a5b0781-f65c-463b-a032-71e7b4ff47a8
89
+ - e26bbf36-5d3a-49c0-8cd5-cb8ab6832942
90
90
  X-Kong-Upstream-Latency:
91
- - '84'
91
+ - '2632'
92
92
  X-Kong-Proxy-Latency:
93
93
  - '0'
94
94
  Expires:
95
- - Fri, 09 Jun 2017 17:38:33 GMT
95
+ - Wed, 02 Aug 2017 14:48:14 GMT
96
96
  Cache-Control:
97
97
  - max-age=0, no-cache, no-store
98
98
  Pragma:
99
99
  - no-cache
100
100
  Date:
101
- - Fri, 09 Jun 2017 17:38:33 GMT
101
+ - Wed, 02 Aug 2017 14:48:14 GMT
102
102
  Content-Length:
103
103
  - '36'
104
104
  Connection:
@@ -109,10 +109,10 @@ http_interactions:
109
109
 
110
110
  '
111
111
  http_version:
112
- recorded_at: Fri, 09 Jun 2017 17:38:33 GMT
112
+ recorded_at: Wed, 02 Aug 2017 14:48:14 GMT
113
113
  - request:
114
114
  method: delete
115
- uri: https://rest.zuora.com/v1/object/account/2c92a0fe5c7d8185015c8defa5374aa8
115
+ uri: https://rest.zuora.com/v1/object/account/2c92a0fc5d8298f5015da36b18a34507
116
116
  body:
117
117
  encoding: UTF-8
118
118
  string: ''
@@ -124,7 +124,7 @@ http_interactions:
124
124
  Accept-Encoding:
125
125
  - gzip,deflate
126
126
  Date:
127
- - Fri, 09 Jun 2017 17:38:33 GMT
127
+ - Wed, 02 Aug 2017 14:48:14 GMT
128
128
  Content-Type:
129
129
  - application/json
130
130
  Apiaccesskeyid:
@@ -141,33 +141,33 @@ http_interactions:
141
141
  Server:
142
142
  - kong/0.9.9
143
143
  X-Request-Id:
144
- - 5a6fc2fc-2b07-46fd-853a-35c61b8fc770
144
+ - a08578f2-1192-4a2c-ac5a-6af32390ae81
145
145
  X-Kong-Upstream-Latency:
146
- - '200'
146
+ - '249'
147
147
  X-Kong-Proxy-Latency:
148
148
  - '0'
149
149
  Expires:
150
- - Fri, 09 Jun 2017 17:38:33 GMT
150
+ - Wed, 02 Aug 2017 14:48:15 GMT
151
151
  Cache-Control:
152
152
  - max-age=0, no-cache, no-store
153
153
  Pragma:
154
154
  - no-cache
155
155
  Date:
156
- - Fri, 09 Jun 2017 17:38:33 GMT
156
+ - Wed, 02 Aug 2017 14:48:15 GMT
157
157
  Content-Length:
158
158
  - '57'
159
159
  Connection:
160
160
  - keep-alive
161
161
  body:
162
162
  encoding: UTF-8
163
- string: '{"id":"2c92a0fe5c7d8185015c8defa5374aa8","success":true}
163
+ string: '{"id":"2c92a0fc5d8298f5015da36b18a34507","success":true}
164
164
 
165
165
  '
166
166
  http_version:
167
- recorded_at: Fri, 09 Jun 2017 17:38:33 GMT
167
+ recorded_at: Wed, 02 Aug 2017 14:48:15 GMT
168
168
  - request:
169
169
  method: get
170
- uri: https://rest.zuora.com/v1/object/account/2c92a0fe5c7d8185015c8defa5374aa8
170
+ uri: https://rest.zuora.com/v1/object/account/2c92a0fc5d8298f5015da36b18a34507
171
171
  body:
172
172
  encoding: UTF-8
173
173
  string: ''
@@ -179,7 +179,7 @@ http_interactions:
179
179
  Accept-Encoding:
180
180
  - gzip,deflate
181
181
  Date:
182
- - Fri, 09 Jun 2017 17:38:33 GMT
182
+ - Wed, 02 Aug 2017 14:48:15 GMT
183
183
  Content-Type:
184
184
  - application/json
185
185
  Apiaccesskeyid:
@@ -196,19 +196,19 @@ http_interactions:
196
196
  Server:
197
197
  - kong/0.9.9
198
198
  X-Request-Id:
199
- - 64cf96fb-47c0-49f1-9df3-28fd8f714843
199
+ - 7a8af6a0-6a18-42db-a393-5634960806c0
200
200
  X-Kong-Upstream-Latency:
201
- - '289'
201
+ - '96'
202
202
  X-Kong-Proxy-Latency:
203
203
  - '0'
204
204
  Expires:
205
- - Fri, 09 Jun 2017 17:38:33 GMT
205
+ - Wed, 02 Aug 2017 14:48:15 GMT
206
206
  Cache-Control:
207
207
  - max-age=0, no-cache, no-store
208
208
  Pragma:
209
209
  - no-cache
210
210
  Date:
211
- - Fri, 09 Jun 2017 17:38:33 GMT
211
+ - Wed, 02 Aug 2017 14:48:15 GMT
212
212
  Content-Length:
213
213
  - '36'
214
214
  Connection:
@@ -219,5 +219,5 @@ http_interactions:
219
219
 
220
220
  '
221
221
  http_version:
222
- recorded_at: Fri, 09 Jun 2017 17:38:33 GMT
222
+ recorded_at: Wed, 02 Aug 2017 14:48:15 GMT
223
223
  recorded_with: VCR 3.0.3
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Accept-Encoding:
15
15
  - gzip,deflate
16
16
  Date:
17
- - Fri, 09 Jun 2017 17:38:25 GMT
17
+ - Wed, 02 Aug 2017 14:48:08 GMT
18
18
  Content-Type:
19
19
  - application/json
20
20
  Apiaccesskeyid:
@@ -33,9 +33,9 @@ http_interactions:
33
33
  Server:
34
34
  - Zuora App
35
35
  X-Request-Id:
36
- - 17feeb0c-67b1-4270-b4cb-ea3804538935
36
+ - 233cc6e1-495e-44aa-9d94-8668252c0a38
37
37
  X-Kong-Upstream-Latency:
38
- - '57'
38
+ - '58'
39
39
  X-Kong-Proxy-Latency:
40
40
  - '0'
41
41
  Vary:
@@ -43,13 +43,13 @@ http_interactions:
43
43
  Content-Encoding:
44
44
  - gzip
45
45
  Expires:
46
- - Fri, 09 Jun 2017 17:38:25 GMT
46
+ - Wed, 02 Aug 2017 14:48:08 GMT
47
47
  Cache-Control:
48
48
  - max-age=0, no-cache, no-store
49
49
  Pragma:
50
50
  - no-cache
51
51
  Date:
52
- - Fri, 09 Jun 2017 17:38:25 GMT
52
+ - Wed, 02 Aug 2017 14:48:08 GMT
53
53
  Content-Length:
54
54
  - '2689'
55
55
  Connection:
@@ -573,5 +573,5 @@ http_interactions:
573
573
  \ <name>SoldToContact</name>\r\n <label>Sold To</label> \r\n
574
574
  \ </object>\r\n </related-objects>\r\n</object>\r\n\r\n"
575
575
  http_version:
576
- recorded_at: Fri, 09 Jun 2017 17:38:25 GMT
576
+ recorded_at: Wed, 02 Aug 2017 14:48:08 GMT
577
577
  recorded_with: VCR 3.0.3
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Accept-Encoding:
15
15
  - gzip,deflate
16
16
  Date:
17
- - Fri, 09 Jun 2017 17:38:29 GMT
17
+ - Wed, 02 Aug 2017 14:48:09 GMT
18
18
  Content-Type:
19
19
  - application/json
20
20
  Apiaccesskeyid:
@@ -33,9 +33,9 @@ http_interactions:
33
33
  Server:
34
34
  - Zuora App
35
35
  X-Request-Id:
36
- - 86d4ac97-7f6e-4fdc-a05b-c8b45a755a7b
36
+ - 24281428-0fb6-49d3-96ba-df3c46c45a0e
37
37
  X-Kong-Upstream-Latency:
38
- - '46'
38
+ - '94'
39
39
  X-Kong-Proxy-Latency:
40
40
  - '0'
41
41
  Vary:
@@ -43,13 +43,13 @@ http_interactions:
43
43
  Content-Encoding:
44
44
  - gzip
45
45
  Expires:
46
- - Fri, 09 Jun 2017 17:38:30 GMT
46
+ - Wed, 02 Aug 2017 14:48:09 GMT
47
47
  Cache-Control:
48
48
  - max-age=0, no-cache, no-store
49
49
  Pragma:
50
50
  - no-cache
51
51
  Date:
52
- - Fri, 09 Jun 2017 17:38:30 GMT
52
+ - Wed, 02 Aug 2017 14:48:09 GMT
53
53
  Content-Length:
54
54
  - '2689'
55
55
  Connection:
@@ -573,5 +573,5 @@ http_interactions:
573
573
  \ <name>SoldToContact</name>\r\n <label>Sold To</label> \r\n
574
574
  \ </object>\r\n </related-objects>\r\n</object>\r\n\r\n"
575
575
  http_version:
576
- recorded_at: Fri, 09 Jun 2017 17:38:30 GMT
576
+ recorded_at: Wed, 02 Aug 2017 14:48:09 GMT
577
577
  recorded_with: VCR 3.0.3
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Accept-Encoding:
15
15
  - gzip,deflate
16
16
  Date:
17
- - Fri, 09 Jun 2017 17:38:25 GMT
17
+ - Wed, 02 Aug 2017 14:48:08 GMT
18
18
  Content-Type:
19
19
  - application/json
20
20
  Apiaccesskeyid:
@@ -33,9 +33,9 @@ http_interactions:
33
33
  Server:
34
34
  - Zuora App
35
35
  X-Request-Id:
36
- - 9095f7a9-b09e-49d6-b9e9-c66717a42a0c
36
+ - 84d6b09e-a275-4e7e-a366-6d36bbbe7739
37
37
  X-Kong-Upstream-Latency:
38
- - '60'
38
+ - '62'
39
39
  X-Kong-Proxy-Latency:
40
40
  - '0'
41
41
  Vary:
@@ -43,13 +43,13 @@ http_interactions:
43
43
  Content-Encoding:
44
44
  - gzip
45
45
  Expires:
46
- - Fri, 09 Jun 2017 17:38:26 GMT
46
+ - Wed, 02 Aug 2017 14:48:08 GMT
47
47
  Cache-Control:
48
48
  - max-age=0, no-cache, no-store
49
49
  Pragma:
50
50
  - no-cache
51
51
  Date:
52
- - Fri, 09 Jun 2017 17:38:26 GMT
52
+ - Wed, 02 Aug 2017 14:48:08 GMT
53
53
  Content-Length:
54
54
  - '2689'
55
55
  Connection:
@@ -573,5 +573,5 @@ http_interactions:
573
573
  \ <name>SoldToContact</name>\r\n <label>Sold To</label> \r\n
574
574
  \ </object>\r\n </related-objects>\r\n</object>\r\n\r\n"
575
575
  http_version:
576
- recorded_at: Fri, 09 Jun 2017 17:38:26 GMT
576
+ recorded_at: Wed, 02 Aug 2017 14:48:08 GMT
577
577
  recorded_with: VCR 3.0.3
@@ -14,7 +14,7 @@ http_interactions:
14
14
  Accept-Encoding:
15
15
  - gzip,deflate
16
16
  Date:
17
- - Fri, 09 Jun 2017 17:38:30 GMT
17
+ - Wed, 02 Aug 2017 14:48:09 GMT
18
18
  Content-Type:
19
19
  - application/json
20
20
  Apiaccesskeyid:
@@ -33,9 +33,9 @@ http_interactions:
33
33
  Server:
34
34
  - Zuora App
35
35
  X-Request-Id:
36
- - b61beccb-bb3d-4a0e-8cb9-37405e26b434
36
+ - ae8fb6ab-41a5-4971-aa20-c95700c735a0
37
37
  X-Kong-Upstream-Latency:
38
- - '31'
38
+ - '52'
39
39
  X-Kong-Proxy-Latency:
40
40
  - '0'
41
41
  Vary:
@@ -43,13 +43,13 @@ http_interactions:
43
43
  Content-Encoding:
44
44
  - gzip
45
45
  Expires:
46
- - Fri, 09 Jun 2017 17:38:30 GMT
46
+ - Wed, 02 Aug 2017 14:48:10 GMT
47
47
  Cache-Control:
48
48
  - max-age=0, no-cache, no-store
49
49
  Pragma:
50
50
  - no-cache
51
51
  Date:
52
- - Fri, 09 Jun 2017 17:38:30 GMT
52
+ - Wed, 02 Aug 2017 14:48:10 GMT
53
53
  Content-Length:
54
54
  - '1066'
55
55
  Connection:
@@ -172,5 +172,5 @@ http_interactions:
172
172
  \ <label>Updater Batch</label>\r\n</object>\r\n\r\n\r\n\r\n\t<object href=\"https://api.zuora.com/rest/api/describe/Usage\">\r\n
173
173
  \ <name>Usage</name>\r\n <label>Usage</label>\r\n</object>\r\n\r\n\r\n\r\n</objects>\r\n"
174
174
  http_version:
175
- recorded_at: Fri, 09 Jun 2017 17:38:30 GMT
175
+ recorded_at: Wed, 02 Aug 2017 14:48:10 GMT
176
176
  recorded_with: VCR 3.0.3