fat_zebra 3.2.1 → 3.2.2

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.
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
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/authenticate/session
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"test":true}'
8
+ string: '{"currency":"AUD","test":true}'
9
9
  headers:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -31,14 +31,14 @@ http_interactions:
31
31
  X-Request-Version:
32
32
  - 1.21.8
33
33
  X-Request-Id:
34
- - 6345f4aa83efe6a86cda2508096718f6
34
+ - f8699db95ab7438ea25dc80ee560467a
35
35
  X-Runtime:
36
- - '0.026720'
36
+ - '0.032563'
37
37
  Transfer-Encoding:
38
38
  - chunked
39
39
  body:
40
40
  encoding: UTF-8
41
- string: '{"successful":true,"response":{"jwt":"eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzE3MzY5NDIsImlhdCI6MTU3MTcyMjU0MiwiaXNzIjoiNTgyZTBhMjAzM2ZhZGQxMjYwZjk5MGY2IiwianRpIjoiNWU4YjQ1YzQtYWNjNS00NjM0LTgxZDEtOTUyNzlmMzA0NTc2IiwiT3JnVW5pdElkIjoiNTgyYmU5ZGVkYTUyOTMyYTk0NmM0NWM0IiwiT2JqZWN0aWZ5UGF5bG9hZCI6dHJ1ZSwiUmVmZXJlbmNlSWQiOiI2ZjVlMmY0NC1jMDdhLTRkY2MtOGU1MC1iYTZlZDk2MjI2NzAifQ.1y_D9q827OGFeRFfKdMebP4aiXmd0ATTIKNkZHFWy98","reference_id":"6f5e2f44-c07a-4dcc-8e50-ba6ed9622670"},"errors":null,"test":true}'
41
+ string: '{"successful":true,"response":{"jwt":"eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzYyMTI3NzYsImlhdCI6MTU3NjE5ODM3NiwiaXNzIjoiNWRjM2VhMzVhZmE4MGQyZWEwZWUxMGU3IiwianRpIjoiZWIyYWFiZjQtY2E3Yy00NTk3LTk5NjQtMGVmOTAxNDQzMjUwIiwiT3JnVW5pdElkIjoiNWRiMTVhMzQwMDViOTMwZmM0MGM4OWVlIiwiT2JqZWN0aWZ5UGF5bG9hZCI6dHJ1ZSwiUGF5bG9hZCI6eyJPcmRlckRldGFpbHMiOnsiQ3VycmVuY3lDb2RlIjoiMDM2In19fQ.ZfDGDc_NQWQLhCdaCwz-lg94KTuH-B1HrcT95SeGNys"},"errors":[],"test":true}'
42
42
  http_version:
43
- recorded_at: Tue, 22 Oct 2019 05:35:42 GMT
43
+ recorded_at: Fri, 13 Dec 2019 00:52:56 GMT
44
44
  recorded_with: VCR 3.0.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/authenticate/session
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"reference_id":"xxxx-xxxx-xxxx","confirm_url":"https://example.com","order_number":"xxxx-xxxx-xxxx","currency":"AUD","amount":"INVALID","test":true}'
8
+ string: '{"currency":"AUD","amount":"INVALID","test":true}'
9
9
  headers:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -31,14 +31,14 @@ http_interactions:
31
31
  X-Request-Version:
32
32
  - 1.21.8
33
33
  X-Request-Id:
34
- - 419d283db39c727ebe7c4f2cf473af23
34
+ - 452a31b97f48c753edb5e0d323075739
35
35
  X-Runtime:
36
- - '0.025645'
36
+ - '0.033447'
37
37
  Transfer-Encoding:
38
38
  - chunked
39
39
  body:
40
40
  encoding: UTF-8
41
- string: '{"successful":false,"response":null,"errors":"Amount is invalid","test":true}'
41
+ string: '{"successful":false,"response":null,"errors":["Amount is invalid"],"test":true}'
42
42
  http_version:
43
- recorded_at: Tue, 22 Oct 2019 05:35:42 GMT
43
+ recorded_at: Fri, 13 Dec 2019 00:52:56 GMT
44
44
  recorded_with: VCR 3.0.3
@@ -0,0 +1,46 @@
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: '{"currency":"INVALID","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: 422
23
+ message: Unprocessable Entity
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
+ - 267a96eede70c812d9d7603b2c500400
35
+ X-Runtime:
36
+ - '0.022172'
37
+ Transfer-Encoding:
38
+ - chunked
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"successful":false,"response":null,"errors":["INVALID is not valid
42
+ for this merchant. Permitted currencies: USD, EUR, GBP, AUD, CAD, JPY, CHF,
43
+ HKD, NZD, SGD, and JPY"],"test":true}'
44
+ http_version:
45
+ recorded_at: Fri, 13 Dec 2019 00:52:56 GMT
46
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,111 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/credit_cards
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"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
+ Date:
26
+ - Wed, 10 Jun 2020 06:59:24 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Status:
34
+ - 200 OK
35
+ Cache-Control:
36
+ - no-store
37
+ X-Request-Version:
38
+ - 1.21.8
39
+ X-Runtime:
40
+ - '0.319736'
41
+ Pragma:
42
+ - no-cache
43
+ X-Request-Id:
44
+ - f6b8f8d29b19d3ad76bfe293
45
+ X-Backend:
46
+ - gateway
47
+ Strict-Transport-Security:
48
+ - max-age=31536000; includeSubDomains
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"successful":true,"response":{"token":"awy21sdeq8og9wxwk2dl","card_holder":"Matthew
52
+ Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","card_issuer":"Afriland
53
+ First Bank","card_country":"Benin","authorized":true,"transaction_count":0,"alias":null},"errors":[],"test":true}'
54
+ http_version:
55
+ recorded_at: Wed, 10 Jun 2020 06:59:24 GMT
56
+ - request:
57
+ method: get
58
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/credit_cards/awy21sdeq8og9wxwk2dl?test=true
59
+ body:
60
+ encoding: US-ASCII
61
+ string: ''
62
+ headers:
63
+ Accept-Encoding:
64
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
65
+ Accept:
66
+ - application/json
67
+ User-Agent:
68
+ - Ruby
69
+ Host:
70
+ - gateway.sandbox.fatzebra.com.au
71
+ Authorization:
72
+ - Basic VEVTVDpURVNU
73
+ Content-Type:
74
+ - application/json
75
+ response:
76
+ status:
77
+ code: 200
78
+ message: OK
79
+ headers:
80
+ Date:
81
+ - Wed, 10 Jun 2020 06:59:24 GMT
82
+ Content-Type:
83
+ - application/json; charset=utf-8
84
+ Transfer-Encoding:
85
+ - chunked
86
+ Connection:
87
+ - keep-alive
88
+ Status:
89
+ - 200 OK
90
+ Cache-Control:
91
+ - no-store
92
+ X-Request-Version:
93
+ - 1.21.8
94
+ X-Runtime:
95
+ - '0.013428'
96
+ Pragma:
97
+ - no-cache
98
+ X-Request-Id:
99
+ - 7287ce40a99b0454d28eb1fc
100
+ X-Backend:
101
+ - gateway
102
+ Strict-Transport-Security:
103
+ - max-age=31536000; includeSubDomains
104
+ body:
105
+ encoding: UTF-8
106
+ string: '{"successful":true,"response":{"token":"awy21sdeq8og9wxwk2dl","card_holder":"Matthew
107
+ Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","card_issuer":"Afriland
108
+ First Bank","card_country":"Benin","authorized":true,"transaction_count":0,"alias":null},"errors":[],"test":true}'
109
+ http_version:
110
+ recorded_at: Wed, 10 Jun 2020 06:59:24 GMT
111
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,111 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/credit_cards
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"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
+ Date:
26
+ - Wed, 10 Jun 2020 06:59:24 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Status:
34
+ - 200 OK
35
+ Cache-Control:
36
+ - no-store
37
+ X-Request-Version:
38
+ - 1.21.8
39
+ X-Runtime:
40
+ - '0.315215'
41
+ Pragma:
42
+ - no-cache
43
+ X-Request-Id:
44
+ - e7dcee7439ed04a0b1eea668
45
+ X-Backend:
46
+ - gateway
47
+ Strict-Transport-Security:
48
+ - max-age=31536000; includeSubDomains
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"successful":true,"response":{"token":"o723qqzihmdogtbe1yz7","card_holder":"Matthew
52
+ Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","card_issuer":"Afriland
53
+ First Bank","card_country":"Benin","authorized":true,"transaction_count":0,"alias":null},"errors":[],"test":true}'
54
+ http_version:
55
+ recorded_at: Wed, 10 Jun 2020 06:59:25 GMT
56
+ - request:
57
+ method: get
58
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/credit_cards/o723qqzihmdogtbe1yz7?test=true
59
+ body:
60
+ encoding: US-ASCII
61
+ string: ''
62
+ headers:
63
+ Accept-Encoding:
64
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
65
+ Accept:
66
+ - application/json
67
+ User-Agent:
68
+ - Ruby
69
+ Host:
70
+ - gateway.sandbox.fatzebra.com.au
71
+ Authorization:
72
+ - Basic VEVTVDpURVNU
73
+ Content-Type:
74
+ - application/json
75
+ response:
76
+ status:
77
+ code: 200
78
+ message: OK
79
+ headers:
80
+ Date:
81
+ - Wed, 10 Jun 2020 06:59:25 GMT
82
+ Content-Type:
83
+ - application/json; charset=utf-8
84
+ Transfer-Encoding:
85
+ - chunked
86
+ Connection:
87
+ - keep-alive
88
+ Status:
89
+ - 200 OK
90
+ Cache-Control:
91
+ - no-store
92
+ X-Request-Version:
93
+ - 1.21.8
94
+ X-Runtime:
95
+ - '0.013891'
96
+ Pragma:
97
+ - no-cache
98
+ X-Request-Id:
99
+ - 67099342b9cfd39845f5a7fa
100
+ X-Backend:
101
+ - gateway
102
+ Strict-Transport-Security:
103
+ - max-age=31536000; includeSubDomains
104
+ body:
105
+ encoding: UTF-8
106
+ string: '{"successful":true,"response":{"token":"o723qqzihmdogtbe1yz7","card_holder":"Matthew
107
+ Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","card_issuer":"Afriland
108
+ First Bank","card_country":"Benin","authorized":true,"transaction_count":0,"alias":null},"errors":[],"test":true}'
109
+ http_version:
110
+ recorded_at: Wed, 10 Jun 2020 06:59:25 GMT
111
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,45 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/authorizations/071-PPA-3AM3CXFFKMFYI3QM/capture
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"amount":200,"final_Capture":false,"note_to_payer":"test capture $2","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
+ - f417482028fb56c5853115e2355ab566
35
+ X-Runtime:
36
+ - '9.242708'
37
+ Transfer-Encoding:
38
+ - chunked
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"successful":true,"response":{"id":"071-PPC-1VD9NBDKP4EFQUYW","amount":200,"decimal_amount":2.0,"captured_amount":200,"successful":true,"message":"Approved","reference":"ref_12345_420768","captured":true,"currency":"AUD","transaction_id":"071-PPC-1VD9NBDKP4EFQUYW","transaction_date":"2020-08-07T14:01:30+10:00","response_code":"00","invoice_id":"071-PPC-1VD9NBDKP4EFQUYW","paypal_fee":35,"seller_receivable_net_amount":165,"note_to_payer":"test
42
+ capture $2","is_final_capture":false,"refunded_amount":0,"balance_available_for_refund":200,"balance_available_for_capture":13400,"authorization":"071-PPA-3AM3CXFFKMFYI3QM","order":"071-PPO-QMNDDIFZMCX0LA0G"},"errors":[],"test":true}'
43
+ http_version:
44
+ recorded_at: Fri, 07 Aug 2020 04:01:39 GMT
45
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/authorizations/071-PPA-3AM3CXFFKMFYI3QM?test=true
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
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
+ Host:
17
+ - gateway.sandbox.fatzebra.com.au
18
+ Authorization:
19
+ - Basic VEVTVDpURVNU
20
+ Content-Type:
21
+ - application/json
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Cache-Control:
28
+ - no-store
29
+ Pragma:
30
+ - no-cache
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ X-Request-Version:
34
+ - 1.21.8
35
+ X-Request-Id:
36
+ - 8b0862c2a71babb0067cf4d3a565a9f0
37
+ X-Runtime:
38
+ - '0.063998'
39
+ Transfer-Encoding:
40
+ - chunked
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"successful":true,"response":{"id":"071-PPA-3AM3CXFFKMFYI3QM","amount":12000,"decimal_amount":120.0,"captured_amount":0,"successful":true,"captured":false,"currency":"AUD","transaction_id":"071-PPA-3AM3CXFFKMFYI3QM","transaction_date":"2020-08-06T23:17:27+10:00","message":"Approved","response_code":"00","reference":"ref_12345_420768","refunded_amount":0,"balance_available_for_capture":13800,"order":"071-PPO-QMNDDIFZMCX0LA0G"},"errors":[],"test":true}'
44
+ http_version:
45
+ recorded_at: Thu, 06 Aug 2020 13:39:51 GMT
46
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/authorizations?from=2020/08/05&limit=10&offset=0&test=true
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
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
+ Host:
17
+ - gateway.sandbox.fatzebra.com.au
18
+ Authorization:
19
+ - Basic VEVTVDpURVNU
20
+ Content-Type:
21
+ - application/json
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Cache-Control:
28
+ - no-store
29
+ Pragma:
30
+ - no-cache
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ X-Request-Version:
34
+ - 1.21.8
35
+ X-Request-Id:
36
+ - fabf10d0564100be367e755ef180cfc0
37
+ X-Runtime:
38
+ - '0.054100'
39
+ Transfer-Encoding:
40
+ - chunked
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"successful":true,"response":[{"id":"071-PPA-3AM3CXFFKMFYI3QM","amount":12000,"decimal_amount":120.0,"captured_amount":200,"successful":true,"captured":false,"currency":"AUD","transaction_id":"071-PPA-3AM3CXFFKMFYI3QM","transaction_date":"2020-08-06T23:17:27+10:00","message":"Approved","response_code":"00","reference":"ref_12345_420768","refunded_amount":0,"balance_available_for_capture":13600,"order":"071-PPO-QMNDDIFZMCX0LA0G"},{"id":"071-PPA-QPIVKACDAHBNH3LO","amount":12000,"decimal_amount":120.0,"captured_amount":0,"successful":true,"captured":false,"currency":"AUD","transaction_id":"071-PPA-QPIVKACDAHBNH3LO","transaction_date":"2020-08-06T23:40:58+10:00","message":"Approved","response_code":"00","reference":"ref_12345_108143","refunded_amount":0,"balance_available_for_capture":13800,"order":"071-PPO-TKJOIWAQBL0FUXIY"}],"errors":[],"test":true,"records":2,"total_records":2,"page":1,"total_pages":1}'
44
+ http_version:
45
+ recorded_at: Thu, 06 Aug 2020 13:43:13 GMT
46
+ recorded_with: VCR 3.0.3