fat_zebra 3.2.1 → 3.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -1
  3. data/.travis.yml +1 -0
  4. data/README.md +3 -3
  5. data/fat_zebra.gemspec +3 -3
  6. data/lib/fat_zebra.rb +7 -0
  7. data/lib/fat_zebra/card.rb +1 -0
  8. data/lib/fat_zebra/paypal/authorization.rb +49 -0
  9. data/lib/fat_zebra/paypal/billing_agreement.rb +56 -0
  10. data/lib/fat_zebra/paypal/capture.rb +36 -0
  11. data/lib/fat_zebra/paypal/order.rb +22 -0
  12. data/lib/fat_zebra/paypal/refund.rb +22 -0
  13. data/lib/fat_zebra/version.rb +1 -1
  14. data/spec/cassettes/FatZebra_Authenticate/_authenticate/validations/1_3_5_1.yml +46 -0
  15. data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_1.yml +12 -13
  16. data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_2.yml +12 -13
  17. data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_1.yml +12 -13
  18. data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_2.yml +12 -13
  19. data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_1.yml +12 -13
  20. data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_2.yml +8 -8
  21. data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_3.yml +14 -14
  22. data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_4.yml +13 -14
  23. data/spec/cassettes/FatZebra_Authenticate/_authenticate/{validations → with_type_validation}/1_3_4_1.yml +4 -4
  24. data/spec/cassettes/FatZebra_Authenticate/_decode_session/when_token_is_invalid/returns_error_when_invalid_token.yml +5 -5
  25. data/spec/cassettes/FatZebra_Authenticate/_decode_session/when_token_is_valid/decodes_JWT.yml +10 -10
  26. data/spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_given_params.yml +5 -5
  27. data/spec/cassettes/FatZebra_Authenticate/_session/{returns_JWT_with_no_params.yml → returns_JWT_with_no_amount.yml} +5 -5
  28. data/spec/cassettes/FatZebra_Authenticate/_session/returns_error_when_amount_is_invalid.yml +5 -5
  29. data/spec/cassettes/FatZebra_Authenticate/_session/returns_error_when_currency_is_invalid.yml +46 -0
  30. data/spec/cassettes/FatZebra_Card/_find/1_3_1.yml +111 -0
  31. data/spec/cassettes/FatZebra_Card/_find/1_3_2.yml +111 -0
  32. data/spec/cassettes/FatZebra_Paypal_Authorization/_capture/returns_a_new_capture_record.yml +45 -0
  33. data/spec/cassettes/FatZebra_Paypal_Authorization/_find/when_found/returns_authorization.yml +46 -0
  34. data/spec/cassettes/FatZebra_Paypal_Authorization/_search/with_date_filter/returns_records_created_after_start_date.yml +46 -0
  35. data/spec/cassettes/FatZebra_Paypal_Authorization/_void/returns_a_voided_capture_record.yml +44 -0
  36. data/spec/cassettes/FatZebra_Paypal_BillingAgreement/_charge/Valid_payload/returns_a_new_order_record.yml +48 -0
  37. data/spec/cassettes/FatZebra_Paypal_BillingAgreement/_find/when_found/returns_billing_agreement.yml +48 -0
  38. data/spec/cassettes/FatZebra_Paypal_BillingAgreement/_search/with_date_filter/returns_records_created_after_start_date.yml +48 -0
  39. data/spec/cassettes/FatZebra_Paypal_Capture/_find/when_found/returns_capture.yml +47 -0
  40. data/spec/cassettes/FatZebra_Paypal_Capture/_refund/returns_a_new_refund_record.yml +45 -0
  41. data/spec/cassettes/FatZebra_Paypal_Capture/_search/with_date_filter/returns_records_created_after_start_date.yml +49 -0
  42. data/spec/cassettes/FatZebra_Paypal_Order/_find/when_found/returns_order.yml +48 -0
  43. data/spec/cassettes/FatZebra_Paypal_Order/_search/with_date_filter/returns_orders_created_after_start_date.yml +55 -0
  44. data/spec/cassettes/FatZebra_Paypal_Refund/_find/when_found/returns_refund.yml +47 -0
  45. data/spec/cassettes/FatZebra_Paypal_Refund/_search/with_date_filter/returns_all_refund_records_created_after_start_date.yml +50 -0
  46. data/spec/lib/fat_zebra/authenticate_spec.rb +88 -45
  47. data/spec/lib/fat_zebra/card_spec.rb +8 -0
  48. data/spec/lib/fat_zebra/paypal/authorization_spec.rb +79 -0
  49. data/spec/lib/fat_zebra/paypal/billing_agreement_spec.rb +62 -0
  50. data/spec/lib/fat_zebra/paypal/capture_spec.rb +60 -0
  51. data/spec/lib/fat_zebra/paypal/order_spec.rb +35 -0
  52. data/spec/lib/fat_zebra/paypal/refund_spec.rb +36 -0
  53. data/spec/spec_helper.rb +0 -1
  54. data/spec/support/payloads.rb +129 -41
  55. metadata +39 -12
  56. data/spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_some_params.yml +0 -44
@@ -0,0 +1,35 @@
1
+ require 'spec_helper'
2
+
3
+ describe FatZebra::Paypal::Order do
4
+
5
+ describe '.find', :vcr do
6
+ subject(:order) { FatZebra::Paypal::Order.find(order_id) }
7
+
8
+ context 'when found' do
9
+ let(:order_id) { '071-PPO-U7RRMGM3OY3V2ZMN' }
10
+
11
+ it 'returns order' do
12
+ expect(order).to be_accepted
13
+ expect(order.id).to eq(order_id)
14
+ end
15
+ end
16
+ end
17
+
18
+ describe '.search', :vcr do
19
+ context 'with date filter' do
20
+ subject(:orders) { FatZebra::Paypal::Order.search(from: start) }
21
+
22
+ let(:start) { Date.parse('2020-08-05') }
23
+
24
+ it 'returns orders created after start date' do
25
+ created_date_check = orders.data.map { |rec| DateTime.strptime(rec.transaction_date, '%Y-%m-%dT%H:%M:%S%z').iso8601 >= start.iso8601 }
26
+
27
+ is_expected.to be_accepted
28
+
29
+ expect(orders.data).to be_a(Array)
30
+ expect(orders.data.first).to be_a(FatZebra::Paypal::Order)
31
+ expect(created_date_check.all?).to be(true)
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,36 @@
1
+ require 'spec_helper'
2
+
3
+ describe FatZebra::Paypal::Refund do
4
+
5
+ describe '.find', :vcr do
6
+ subject(:refund) { FatZebra::Paypal::Refund.find(refund_id) }
7
+
8
+ context 'when found' do
9
+ let(:refund_id) { '071-PPR-SRR9FP7ZKXT9IXU3' }
10
+
11
+ it 'returns refund' do
12
+ expect(refund).to be_accepted
13
+ expect(refund.id).to eq(refund_id)
14
+ expect(refund.order).to include('PPO')
15
+ end
16
+ end
17
+ end
18
+
19
+ describe '.search', :vcr do
20
+ context 'with date filter' do
21
+ subject(:refunds) { FatZebra::Paypal::Refund.search(from: start) }
22
+
23
+ let(:start) { Date.parse('2020-08-05') }
24
+
25
+ it 'returns all refund records created after start date' do
26
+ created_date_check = refunds.data.map { |rec| DateTime.strptime(rec.transaction_date, '%Y-%m-%dT%H:%M:%S%z').iso8601 >= start.iso8601 }
27
+
28
+ is_expected.to be_accepted
29
+
30
+ expect(refunds.data).to be_a(Array)
31
+ expect(refunds.data.first).to be_a(FatZebra::Paypal::Refund)
32
+ expect(created_date_check.all?).to be(true)
33
+ end
34
+ end
35
+ end
36
+ end
@@ -1,6 +1,5 @@
1
1
  require 'rubygems'
2
2
  require 'bundler/setup'
3
- require 'byebug'
4
3
  require 'rspec'
5
4
  require 'vcr'
6
5
  require 'webmock/rspec'
@@ -40,51 +40,139 @@ shared_context 'payloads' do
40
40
  }
41
41
  }}
42
42
 
43
- let(:valid_sca_authenticate_payload) {{
43
+ let(:valid_sca_enrollment_payload) {{
44
+ customer: {
45
+ address_1: '23 Smith Road',
46
+ address_2: 'North Shore',
47
+ city: 'Canberra',
48
+ country: 'AU',
49
+ state: 'NSW',
50
+ email: 'test@test.com',
51
+ first_name: 'James',
52
+ last_name: 'Smith',
53
+ phone_number: '0444555666',
54
+ post_code: '2000',
55
+ passport_number: 'X1234567890',
56
+ passport_country: '036',
57
+ account_changed_at: '20191210',
58
+ account_created_at: '20191210',
59
+ account_password_changed_at: '20191210'
60
+ },
61
+ shipping_address: {
62
+ address_1: '23 Smith Road',
63
+ address_2: 'North Shore',
64
+ city: 'Sydney',
65
+ country: 'AU',
66
+ state: 'NSW',
67
+ email: 'test@test.com',
68
+ first_name: 'James',
69
+ last_name: 'Smith',
70
+ phone_number: '0444555666',
71
+ post_code: '2000',
72
+ method: 'pickup',
73
+ destination_code: '01',
74
+ },
75
+ custom: {
76
+ transaction_mode: 'mobile',
77
+ reference_id: SecureRandom.hex,
78
+
79
+ merchant_name: 'TEST',
80
+ merchant_new_customer: true,
81
+ preorder: 1,
82
+
83
+ http_accept: 'text/html',
84
+ http_user_agent: 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0',
85
+
86
+ recurring_end_date: '20201201',
87
+ recurring_frequency: 3,
88
+ recurring_original_purchase_date: '2019120112:00:00'
89
+ },
90
+ items: [
91
+ {
92
+ unit_price: 23.3,
93
+ product_description: 'Widgets',
94
+ product_name: 'Watch',
95
+ quantity: 1,
96
+ product_sku: '9999',
97
+ passenger_first_name: 'John',
98
+ passenger_last_name: 'Smith',
99
+ }
100
+ ],
101
+ airline_data: {
102
+ legs: [
103
+ {
104
+ carrier_code: 'code',
105
+ departure_date: '20221012',
106
+ destination: 'SYD',
107
+ originating_airport_code: 'MEL',
108
+ }
109
+ ],
110
+ number_of_passengers: 2,
111
+ passengers: [
112
+ {
113
+ first_name: 'John',
114
+ last_name: 'Smith',
115
+ },
116
+ {
117
+ first_name: 'Megan',
118
+ last_name: 'Doe',
119
+ }
120
+ ]
121
+ }
122
+ }}
123
+
124
+ let(:valid_sca_validation_payload) {{
125
+ authentication_transaction_id: SecureRandom.hex,
126
+ signed_pares: SecureRandom.hex
127
+ }}
128
+
129
+ let(:valid_sca_authentication_payload) {{
44
130
  card_token: credit_card.token,
131
+ amount: 100,
132
+ currency: 'AUD',
133
+ customer_ip: '111.111.111.111',
45
134
  sca: {
46
- enabled: true,
47
- amount: 100,
48
- currency: 'AUD',
49
- df_reference_id: SecureRandom.hex(10),
50
- mobile_phone: '1234567890',
51
- email: 'dev@fatzebra.com.au',
52
- transaction_mode: 'mobile',
53
- transaction_type: 'C',
54
- order_number: SecureRandom.hex(10),
55
- billing: {
56
- address1: 'SOME ADDRESS',
57
- city: 'Sydney',
58
- country: 'AUS',
59
- first_name: 'John',
60
- last_name: 'Smith',
61
- postal_code: '2000',
62
- state: 'NSW'
63
- },
64
- shipping: {
65
- address1: 'SOME ADDRESS',
66
- state: 'NSW',
67
- city: 'Sydney',
68
- country: 'AUS',
69
- address2: 'SOME ADDRESS',
70
- address3: 'SOME ADDRESS',
71
- postal_code: '2000',
72
- },
73
- extra: {
74
- billing_phone: '1234567890',
75
- work_phone: '1234567890',
76
- billing_address2: 'SOME ADDRESS',
77
- billing_address3: 'SOME ADDRESS',
78
- authentication_indicator: '01',
79
- product_code: 'PHY'
135
+ type: 'enrollment',
136
+ merchant_reference_code: SecureRandom.uuid,
137
+ }
138
+ }}
139
+
140
+ let(:valid_charge_billing_agreement_payload) {{
141
+ reference: SecureRandom.uuid,
142
+ amount: 1100,
143
+ currency: "AUD",
144
+ customer_ip: '1.2.3.4',
145
+ options: {
146
+ brand_name: "EXAMPLE INC"
147
+ },
148
+ purchases: [{
149
+ description: "Sporting Goods",
150
+ custom_id: "CUST-HighFashions",
151
+ soft_descriptor: "HighFashions",
152
+ amount: {
153
+ item_total: 900,
154
+ shipping: 200
80
155
  },
81
- recurring: {
82
- installment: 2,
83
- purchase_date: DateTime.now.next_year.strftime('%Y%m%d%H%M%S'),
84
- recurring_end: DateTime.now.next_year.strftime('%Y%m%d'),
85
- recurring_frequency: 31
156
+ items: [{
157
+ name: "T-Shirt",
158
+ unit_amount: 900,
159
+ qty: 1,
160
+ category: "PHYSICAL_GOODS"
161
+ }],
162
+ shipping_address: {
163
+ method: "United States Postal Service 1",
164
+ address: {
165
+ first_name: "John",
166
+ last_name: "Doe",
167
+ address_1: "100 Kent Street",
168
+ address_2: "Cafe Lane",
169
+ city: "Sydney",
170
+ state: "NSW",
171
+ postcode: "2000",
172
+ country: "AU"
173
+ }
86
174
  }
87
- }
175
+ }]
88
176
  }}
89
177
 
90
178
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fat_zebra
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
- - Matthew Savage
8
- autorequire:
7
+ - Fat Zebra
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-12 00:00:00.000000000 Z
11
+ date: 2020-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
@@ -94,10 +94,10 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '3.0'
97
- description: Provides integration with the Fat Zebra internet payment gateway (www.fatzebra.com.au),
97
+ description: Provides integration with the Fat Zebra internet payment gateway (www.fatzebra.com),
98
98
  including purchase, refund, auth, capture and recurring billing functionality.
99
99
  email:
100
- - matt@amasses.net
100
+ - support@fatzebra.com
101
101
  executables: []
102
102
  extensions: []
103
103
  extra_rdoc_files: []
@@ -131,6 +131,11 @@ files:
131
131
  - lib/fat_zebra/information.rb
132
132
  - lib/fat_zebra/object_helper.rb
133
133
  - lib/fat_zebra/payment_plan.rb
134
+ - lib/fat_zebra/paypal/authorization.rb
135
+ - lib/fat_zebra/paypal/billing_agreement.rb
136
+ - lib/fat_zebra/paypal/capture.rb
137
+ - lib/fat_zebra/paypal/order.rb
138
+ - lib/fat_zebra/paypal/refund.rb
134
139
  - lib/fat_zebra/purchase.rb
135
140
  - lib/fat_zebra/refund.rb
136
141
  - lib/fat_zebra/request.rb
@@ -143,7 +148,7 @@ files:
143
148
  - lib/fat_zebra/validation.rb
144
149
  - lib/fat_zebra/version.rb
145
150
  - lib/fat_zebra/web_hook.rb
146
- - spec/cassettes/FatZebra_Authenticate/_authenticate/validations/1_3_4_1.yml
151
+ - spec/cassettes/FatZebra_Authenticate/_authenticate/validations/1_3_5_1.yml
147
152
  - spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_1.yml
148
153
  - spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_2.yml
149
154
  - spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_1.yml
@@ -152,12 +157,13 @@ files:
152
157
  - spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_2.yml
153
158
  - spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_3.yml
154
159
  - spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_4.yml
160
+ - spec/cassettes/FatZebra_Authenticate/_authenticate/with_type_validation/1_3_4_1.yml
155
161
  - spec/cassettes/FatZebra_Authenticate/_decode_session/when_token_is_invalid/returns_error_when_invalid_token.yml
156
162
  - spec/cassettes/FatZebra_Authenticate/_decode_session/when_token_is_valid/decodes_JWT.yml
157
163
  - spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_given_params.yml
158
- - spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_no_params.yml
159
- - spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_some_params.yml
164
+ - spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_no_amount.yml
160
165
  - spec/cassettes/FatZebra_Authenticate/_session/returns_error_when_amount_is_invalid.yml
166
+ - spec/cassettes/FatZebra_Authenticate/_session/returns_error_when_currency_is_invalid.yml
161
167
  - spec/cassettes/FatZebra_BankAccount/_create/1_1_1.yml
162
168
  - spec/cassettes/FatZebra_BankAccount/_create/1_1_2.yml
163
169
  - spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml
@@ -179,6 +185,8 @@ files:
179
185
  - spec/cassettes/FatZebra_Card/_create/1_1_4.yml
180
186
  - spec/cassettes/FatZebra_Card/_create/1_1_5.yml
181
187
  - spec/cassettes/FatZebra_Card/_create/1_1_6.yml
188
+ - spec/cassettes/FatZebra_Card/_find/1_3_1.yml
189
+ - spec/cassettes/FatZebra_Card/_find/1_3_2.yml
182
190
  - spec/cassettes/FatZebra_Card/_update/1_2_1.yml
183
191
  - spec/cassettes/FatZebra_Card/_update/1_2_2.yml
184
192
  - spec/cassettes/FatZebra_Card/_update/1_2_3.yml
@@ -238,6 +246,20 @@ files:
238
246
  - spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml
239
247
  - spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml
240
248
  - spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml
249
+ - spec/cassettes/FatZebra_Paypal_Authorization/_capture/returns_a_new_capture_record.yml
250
+ - spec/cassettes/FatZebra_Paypal_Authorization/_find/when_found/returns_authorization.yml
251
+ - spec/cassettes/FatZebra_Paypal_Authorization/_search/with_date_filter/returns_records_created_after_start_date.yml
252
+ - spec/cassettes/FatZebra_Paypal_Authorization/_void/returns_a_voided_capture_record.yml
253
+ - spec/cassettes/FatZebra_Paypal_BillingAgreement/_charge/Valid_payload/returns_a_new_order_record.yml
254
+ - spec/cassettes/FatZebra_Paypal_BillingAgreement/_find/when_found/returns_billing_agreement.yml
255
+ - spec/cassettes/FatZebra_Paypal_BillingAgreement/_search/with_date_filter/returns_records_created_after_start_date.yml
256
+ - spec/cassettes/FatZebra_Paypal_Capture/_find/when_found/returns_capture.yml
257
+ - spec/cassettes/FatZebra_Paypal_Capture/_refund/returns_a_new_refund_record.yml
258
+ - spec/cassettes/FatZebra_Paypal_Capture/_search/with_date_filter/returns_records_created_after_start_date.yml
259
+ - spec/cassettes/FatZebra_Paypal_Order/_find/when_found/returns_order.yml
260
+ - spec/cassettes/FatZebra_Paypal_Order/_search/with_date_filter/returns_orders_created_after_start_date.yml
261
+ - spec/cassettes/FatZebra_Paypal_Refund/_find/when_found/returns_refund.yml
262
+ - spec/cassettes/FatZebra_Paypal_Refund/_search/with_date_filter/returns_all_refund_records_created_after_start_date.yml
241
263
  - spec/cassettes/FatZebra_Purchase/_capture/1_5_1.yml
242
264
  - spec/cassettes/FatZebra_Purchase/_capture/1_5_2.yml
243
265
  - spec/cassettes/FatZebra_Purchase/_capture/1_5_3.yml
@@ -316,6 +338,11 @@ files:
316
338
  - spec/lib/fat_zebra/fat_zebra_object_spec.rb
317
339
  - spec/lib/fat_zebra/information_spec.rb
318
340
  - spec/lib/fat_zebra/payment_plan_spec.rb
341
+ - spec/lib/fat_zebra/paypal/authorization_spec.rb
342
+ - spec/lib/fat_zebra/paypal/billing_agreement_spec.rb
343
+ - spec/lib/fat_zebra/paypal/capture_spec.rb
344
+ - spec/lib/fat_zebra/paypal/order_spec.rb
345
+ - spec/lib/fat_zebra/paypal/refund_spec.rb
319
346
  - spec/lib/fat_zebra/purchase_spec.rb
320
347
  - spec/lib/fat_zebra/refund_spec.rb
321
348
  - spec/lib/fat_zebra/request_spec.rb
@@ -328,7 +355,7 @@ files:
328
355
  homepage: ''
329
356
  licenses: []
330
357
  metadata: {}
331
- post_install_message:
358
+ post_install_message:
332
359
  rdoc_options: []
333
360
  require_paths:
334
361
  - lib
@@ -343,8 +370,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
343
370
  - !ruby/object:Gem::Version
344
371
  version: '0'
345
372
  requirements: []
346
- rubygems_version: 3.0.6
347
- signing_key:
373
+ rubygems_version: 3.1.2
374
+ signing_key:
348
375
  specification_version: 4
349
376
  summary: Fat Zebra payments gem - integrate your ruby app with Fat Zebra
350
377
  test_files: []
@@ -1,44 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/authenticate/session
6
- body:
7
- encoding: UTF-8
8
- string: '{"confirm_url":"https://example.com","order_number":"xxxx-xxxx-xxxx","currency":"AUD","amount":100,"test":true}'
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - application/json
14
- User-Agent:
15
- - Ruby
16
- Authorization:
17
- - Basic VEVTVDpURVNU
18
- Content-Type:
19
- - application/json
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- Cache-Control:
26
- - no-store
27
- Pragma:
28
- - no-cache
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- X-Request-Version:
32
- - 1.21.8
33
- X-Request-Id:
34
- - 584bf4db9875ffabe6b02cb5edfcba04
35
- X-Runtime:
36
- - '0.031480'
37
- Transfer-Encoding:
38
- - chunked
39
- body:
40
- encoding: UTF-8
41
- string: '{"successful":true,"response":{"jwt":"eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzE3MzY5NDIsImlhdCI6MTU3MTcyMjU0MiwiaXNzIjoiNTgyZTBhMjAzM2ZhZGQxMjYwZjk5MGY2IiwianRpIjoiNTFkMDQ5NzUtMDU3Ny00ZTI5LTk0YjMtNzg5MmZjMjM0MDc5IiwiT3JnVW5pdElkIjoiNTgyYmU5ZGVkYTUyOTMyYTk0NmM0NWM0IiwiT2JqZWN0aWZ5UGF5bG9hZCI6dHJ1ZSwiQ29uZmlybVVybCI6Imh0dHBzOi8vZXhhbXBsZS5jb20iLCJSZWZlcmVuY2VJZCI6IjE3YzE4NmJhLWVkNjUtNDhlMC05MjM5LWZiNmFjYTBlNWI2YyIsIlBheWxvYWQiOnsiT3JkZXJEZXRhaWxzIjp7Ik9yZGVyTnVtYmVyIjoieHh4eC14eHh4LXh4eHgiLCJDdXJyZW5jeUNvZGUiOiIwMzYiLCJBbW91bnQiOiIxMDAifX19.JZloBRlb8WwRtQs3AhRvbf5kzHwVhgAwK-Oz3LIyq4s","reference_id":"17c186ba-ed65-48e0-9239-fb6aca0e5b6c"},"errors":null,"test":true}'
42
- http_version:
43
- recorded_at: Tue, 22 Oct 2019 05:35:42 GMT
44
- recorded_with: VCR 3.0.3