zuora_rest_client 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 115df4810eb4ad874e5c6a34aa923165e6f3dd1e
4
- data.tar.gz: 19738b359e7e501c2ea6107135adc5667ff3f021
2
+ SHA256:
3
+ metadata.gz: fb94d9d97233ea022a233f444dd524af3e3715b9f3e3ecad5b99a12d17a146c5
4
+ data.tar.gz: d1b151606e24d694ee4ff9bf04a0504f15c23f879a51914a04f5fd947d24b1af
5
5
  SHA512:
6
- metadata.gz: 86e950689eae90ead0e5c0b9baa7a70d54d80e86ebbd8607673a7ce6d097c6b4a53d976a986a004845ba4578a61d3e338e48157a4b68cf52463f9656504cfa54
7
- data.tar.gz: 54d330b69d9dc323f66d22090d87a4ea7156cba821e1c6078659dddbb2e84bf0231857c35ccc54d39ac498ddd77de71316a0ec1cca2c61021b8f51f4d40a8eb7
6
+ metadata.gz: e635a94f2eece955e628cc15f928fa9955ea857d26fb491cf22c831cdcb57c854a09fff02060551e23179bf8fbb1420f2a61d78489ebccee151a714908309b61
7
+ data.tar.gz: 47c243bd7ccafaf1268cfcd929fcb181883eb7e79f31a5f9a379b58d9a9aa8b120a1051a067ae5bd4f50ef88bf76babf9c68cb78d3d97b173131d78200ddb348
@@ -52,7 +52,7 @@ module ZuoraRestClient
52
52
 
53
53
  def rest_get(path, zuora_version = nil)
54
54
  response = rest_connection(use_api_proxy?(path)).get do |request|
55
- request.url [ ZUORA_REST_MAJOR_VERSION, path ].join('/')
55
+ request.url [ ZUORA_REST_MAJOR_VERSION, path ].join('')
56
56
  request.headers = rest_headers(zuora_version)
57
57
  end
58
58
  process_response(response)
@@ -66,7 +66,7 @@ module ZuoraRestClient
66
66
  endpoint_uri = Addressable::URI.parse(zuora_endpoint.rest)
67
67
  Net::HTTP.start(endpoint_uri.normalized_host, endpoint_uri.normalized_port,
68
68
  use_ssl: endpoint_uri.normalized_scheme == 'https') do |http|
69
- request = Net::HTTP::Get.new [ endpoint_uri.normalized_path, ZUORA_REST_MAJOR_VERSION, path ].join('/')
69
+ request = Net::HTTP::Get.new [ endpoint_uri.normalized_path, ZUORA_REST_MAJOR_VERSION, path ].join('')
70
70
  rest_headers(zuora_version).each_pair do |header_key, header_value|
71
71
  request[header_key] = header_value
72
72
  end
@@ -89,7 +89,7 @@ module ZuoraRestClient
89
89
 
90
90
  def rest_post(path, post_data = nil, zuora_version = nil, is_json = true)
91
91
  response = rest_connection(use_api_proxy?(path)).post do |request|
92
- request.url [ ZUORA_REST_MAJOR_VERSION, path ].join('/')
92
+ request.url [ ZUORA_REST_MAJOR_VERSION, path ].join('')
93
93
  request.headers = rest_headers(zuora_version)
94
94
  request.body = MultiJson.dump(post_data) if !post_data.nil? && is_json
95
95
  request.body = post_data if !post_data.nil? && !is_json
@@ -99,7 +99,7 @@ module ZuoraRestClient
99
99
 
100
100
  def rest_put(path, put_data = nil, zuora_version = nil, is_json = true)
101
101
  response = rest_connection(use_api_proxy?(path)).put do |request|
102
- request.url [ ZUORA_REST_MAJOR_VERSION, path ].join('/')
102
+ request.url [ ZUORA_REST_MAJOR_VERSION, path ].join('')
103
103
  request.headers = rest_headers(zuora_version)
104
104
  request.body = MultiJson.dump(put_data) if !put_data.nil? && is_json
105
105
  request.body = put_data if !put_data.nil? && !is_json
@@ -109,7 +109,7 @@ module ZuoraRestClient
109
109
 
110
110
  def rest_delete(path, zuora_version = nil)
111
111
  response = rest_connection(use_api_proxy?(path)).delete do |request|
112
- request.url [ ZUORA_REST_MAJOR_VERSION, path ].join('/')
112
+ request.url [ ZUORA_REST_MAJOR_VERSION, path ].join('')
113
113
  request.headers = rest_headers(zuora_version)
114
114
  end
115
115
  process_response(response)
@@ -1,3 +1,3 @@
1
1
  module ZuoraRestClient
2
- VERSION = '1.1.6'
2
+ VERSION = '1.1.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_rest_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Massad
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-31 00:00:00.000000000 Z
11
+ date: 2019-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -308,22 +308,6 @@ files:
308
308
  - Rakefile
309
309
  - bin/console
310
310
  - bin/setup
311
- - fixtures/vcr_cassettes/zuora/create_account_object_success.yml
312
- - fixtures/vcr_cassettes/zuora/create_account_success.yml
313
- - fixtures/vcr_cassettes/zuora/delete_account_object_success.yml
314
- - fixtures/vcr_cassettes/zuora/describe_account.yml
315
- - fixtures/vcr_cassettes/zuora/describe_account_related_objects.yml
316
- - fixtures/vcr_cassettes/zuora/describe_all_account_fields.yml
317
- - fixtures/vcr_cassettes/zuora/describe_all_zobjects.yml
318
- - fixtures/vcr_cassettes/zuora/describe_exportable_account_fields.yml
319
- - fixtures/vcr_cassettes/zuora/describe_non_exportable_account_fields.yml
320
- - fixtures/vcr_cassettes/zuora/describe_non_updateable_account_fields.yml
321
- - fixtures/vcr_cassettes/zuora/describe_updateable_account_fields.yml
322
- - fixtures/vcr_cassettes/zuora/get_account_object_success.yml
323
- - fixtures/vcr_cassettes/zuora/get_account_success.yml
324
- - fixtures/vcr_cassettes/zuora/get_account_summary_success.yml
325
- - fixtures/vcr_cassettes/zuora/update_account_object_success.yml
326
- - fixtures/vcr_cassettes/zuora/update_account_success.yml
327
311
  - lib/zuora_rest_client.rb
328
312
  - lib/zuora_rest_client/client.rb
329
313
  - lib/zuora_rest_client/connection.rb
@@ -350,7 +334,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
350
334
  version: '0'
351
335
  requirements: []
352
336
  rubyforge_project:
353
- rubygems_version: 2.6.12
337
+ rubygems_version: 2.7.8
354
338
  signing_key:
355
339
  specification_version: 4
356
340
  summary: Zuora REST Client
@@ -1,51 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://rest.zuora.com/v1/object/account
6
- body:
7
- encoding: UTF-8
8
- string: '{"Batch":"Batch1","BillCycleDay":15,"Currency":"USD","Name":"Test Account","PaymentTerm":"Due
9
- Upon Receipt","Status":"Draft"}'
10
- headers:
11
- Content-Type:
12
- - application/json
13
- apiAccessKeyId:
14
- - "{ZUORA_USERNAME}"
15
- apiSecretAccessKey:
16
- - "{ZUORA_PASSWORD}"
17
- response:
18
- status:
19
- code: 200
20
- message: OK
21
- headers:
22
- Content-Type:
23
- - application/json; charset=utf-8
24
- Server:
25
- - kong/0.9.9
26
- zuora-request-id:
27
- - 969aa2b4-de4d-443b-aa9c-dd0deff7f500
28
- X-Kong-Upstream-Latency:
29
- - '334'
30
- X-Kong-Proxy-Latency:
31
- - '0'
32
- Expires:
33
- - Thu, 31 Jan 2019 22:14:49 GMT
34
- Cache-Control:
35
- - max-age=0, no-cache, no-store
36
- Pragma:
37
- - no-cache
38
- Date:
39
- - Thu, 31 Jan 2019 22:14:49 GMT
40
- Content-Length:
41
- - '57'
42
- Connection:
43
- - keep-alive
44
- body:
45
- encoding: UTF-8
46
- string: '{"Success":true,"Id":"2c92a0ff68a2d89b0168a5fa940c7133"}
47
-
48
- '
49
- http_version:
50
- recorded_at: Thu, 31 Jan 2019 22:14:49 GMT
51
- recorded_with: VCR 4.0.0
@@ -1,64 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://rest.zuora.com/v1/accounts
6
- body:
7
- encoding: UTF-8
8
- string: '{"batch":"Batch1","billCycleDay":15,"billToContact":{"country":"US","firstName":"Test","lastName":"User","state":"TX"},"creditCard":{"cardHolderInfo":{"addressLine1":"123
9
- Anystreet Lane","cardHolderName":"Test User","city":"Anytown","country":"US","state":"TX","zipCode":"00000"},"cardNumber":"4111111111111111","cardType":"Visa","expirationMonth":"12","expirationYear":"2099","securityCode":"123"},"currency":"USD","name":"Test
10
- Account","paymentTerm":"Due Upon Receipt"}'
11
- headers:
12
- Content-Type:
13
- - application/json
14
- apiAccessKeyId:
15
- - "{ZUORA_USERNAME}"
16
- apiSecretAccessKey:
17
- - "{ZUORA_PASSWORD}"
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Content-Type:
24
- - application/json;charset=utf-8
25
- Content-Security-Policy-Report-Only:
26
- - media-src 'none'; img-src 'self' *.zuora.com; object-src *.zuora.com; script-src
27
- 'unsafe-inline' 'unsafe-eval' 'self' https://api.tcell.io/; manifest-src 'none';
28
- style-src 'unsafe-inline' 'self'; font-src 'self'; child-src 'none'; frame-src
29
- 'none'; connect-src 'self' https://api.tcell.io/ https://input.tcell.io/;
30
- report-uri https://input.tcell.io/csp/8abeff14fea5928cf9f25296fca62aa1a75fa57a6f06ad15ea451d64a579f75c?rid=-451839198
31
- Server:
32
- - Zuora App
33
- zuora-request-id:
34
- - 57593793-3724-4c43-97fe-2d8a52d27a8d
35
- X-Kong-Upstream-Latency:
36
- - '111'
37
- X-Kong-Proxy-Latency:
38
- - '0'
39
- Expires:
40
- - Thu, 31 Jan 2019 22:14:47 GMT
41
- Cache-Control:
42
- - max-age=0, no-cache, no-store
43
- Pragma:
44
- - no-cache
45
- Date:
46
- - Thu, 31 Jan 2019 22:14:47 GMT
47
- Content-Length:
48
- - '165'
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
- "accountId" : "2c92a00768a2b3890168a5fa8dd84414",
59
- "accountNumber" : "Z00324159",
60
- "paymentMethodId" : "2c92a00768a2b3890168a5fa8de6441a"
61
- }
62
- http_version:
63
- recorded_at: Thu, 31 Jan 2019 22:14:47 GMT
64
- recorded_with: VCR 4.0.0
@@ -1,191 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: delete
5
- uri: https://rest.zuora.com/v1/object/account/2c92a00768a2b3890168a5fa8dd84414
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Content-Type:
11
- - application/json
12
- apiAccessKeyId:
13
- - "{ZUORA_USERNAME}"
14
- apiSecretAccessKey:
15
- - "{ZUORA_PASSWORD}"
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Content-Type:
22
- - application/json; charset=utf-8
23
- Server:
24
- - kong/0.9.9
25
- zuora-request-id:
26
- - a809db7a-3936-4189-9eef-4a7b9c6458d1
27
- X-Kong-Upstream-Latency:
28
- - '72'
29
- X-Kong-Proxy-Latency:
30
- - '0'
31
- Expires:
32
- - Thu, 31 Jan 2019 22:14:50 GMT
33
- Cache-Control:
34
- - max-age=0, no-cache, no-store
35
- Pragma:
36
- - no-cache
37
- Date:
38
- - Thu, 31 Jan 2019 22:14:50 GMT
39
- Content-Length:
40
- - '57'
41
- Connection:
42
- - keep-alive
43
- body:
44
- encoding: UTF-8
45
- string: '{"id":"2c92a00768a2b3890168a5fa8dd84414","success":true}
46
-
47
- '
48
- http_version:
49
- recorded_at: Thu, 31 Jan 2019 22:14:50 GMT
50
- - request:
51
- method: get
52
- uri: https://rest.zuora.com/v1/object/account/2c92a00768a2b3890168a5fa8dd84414
53
- body:
54
- encoding: US-ASCII
55
- string: ''
56
- headers:
57
- Content-Type:
58
- - application/json
59
- apiAccessKeyId:
60
- - "{ZUORA_USERNAME}"
61
- apiSecretAccessKey:
62
- - "{ZUORA_PASSWORD}"
63
- response:
64
- status:
65
- code: 404
66
- message: Not Found
67
- headers:
68
- Content-Type:
69
- - application/json; charset=utf-8
70
- Server:
71
- - kong/0.9.9
72
- zuora-request-id:
73
- - a9527ff8-7778-452e-8cc4-9ef0e0871cf6
74
- X-Kong-Upstream-Latency:
75
- - '109'
76
- X-Kong-Proxy-Latency:
77
- - '0'
78
- Expires:
79
- - Thu, 31 Jan 2019 22:14:55 GMT
80
- Cache-Control:
81
- - max-age=0, no-cache, no-store
82
- Pragma:
83
- - no-cache
84
- Date:
85
- - Thu, 31 Jan 2019 22:14:55 GMT
86
- Content-Length:
87
- - '36'
88
- Connection:
89
- - keep-alive
90
- body:
91
- encoding: UTF-8
92
- string: '{"records":[],"size":0,"done":true}
93
-
94
- '
95
- http_version:
96
- recorded_at: Thu, 31 Jan 2019 22:14:55 GMT
97
- - request:
98
- method: delete
99
- uri: https://rest.zuora.com/v1/object/account/2c92a0ff68a2d89b0168a5fa940c7133
100
- body:
101
- encoding: US-ASCII
102
- string: ''
103
- headers:
104
- Content-Type:
105
- - application/json
106
- apiAccessKeyId:
107
- - "{ZUORA_USERNAME}"
108
- apiSecretAccessKey:
109
- - "{ZUORA_PASSWORD}"
110
- response:
111
- status:
112
- code: 200
113
- message: OK
114
- headers:
115
- Content-Type:
116
- - application/json; charset=utf-8
117
- Server:
118
- - kong/0.9.9
119
- zuora-request-id:
120
- - 28986cec-af7a-4332-a0bb-1212734cc731
121
- X-Kong-Upstream-Latency:
122
- - '112'
123
- X-Kong-Proxy-Latency:
124
- - '0'
125
- Expires:
126
- - Thu, 31 Jan 2019 22:14:56 GMT
127
- Cache-Control:
128
- - max-age=0, no-cache, no-store
129
- Pragma:
130
- - no-cache
131
- Date:
132
- - Thu, 31 Jan 2019 22:14:56 GMT
133
- Content-Length:
134
- - '57'
135
- Connection:
136
- - keep-alive
137
- body:
138
- encoding: UTF-8
139
- string: '{"id":"2c92a0ff68a2d89b0168a5fa940c7133","success":true}
140
-
141
- '
142
- http_version:
143
- recorded_at: Thu, 31 Jan 2019 22:14:56 GMT
144
- - request:
145
- method: get
146
- uri: https://rest.zuora.com/v1/object/account/2c92a0ff68a2d89b0168a5fa940c7133
147
- body:
148
- encoding: US-ASCII
149
- string: ''
150
- headers:
151
- Content-Type:
152
- - application/json
153
- apiAccessKeyId:
154
- - "{ZUORA_USERNAME}"
155
- apiSecretAccessKey:
156
- - "{ZUORA_PASSWORD}"
157
- response:
158
- status:
159
- code: 404
160
- message: Not Found
161
- headers:
162
- Content-Type:
163
- - application/json; charset=utf-8
164
- Server:
165
- - kong/0.9.9
166
- zuora-request-id:
167
- - d40736dd-dd3f-4ffb-a579-978f216aae4f
168
- X-Kong-Upstream-Latency:
169
- - '39'
170
- X-Kong-Proxy-Latency:
171
- - '0'
172
- Expires:
173
- - Thu, 31 Jan 2019 22:15:01 GMT
174
- Cache-Control:
175
- - max-age=0, no-cache, no-store
176
- Pragma:
177
- - no-cache
178
- Date:
179
- - Thu, 31 Jan 2019 22:15:01 GMT
180
- Content-Length:
181
- - '36'
182
- Connection:
183
- - keep-alive
184
- body:
185
- encoding: UTF-8
186
- string: '{"records":[],"size":0,"done":true}
187
-
188
- '
189
- http_version:
190
- recorded_at: Thu, 31 Jan 2019 22:15:01 GMT
191
- recorded_with: VCR 4.0.0