fat_zebra_multi 3.2.0.1 → 3.2.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/.travis.yml +3 -3
  4. data/README.md +5 -4
  5. data/fat_zebra_multi.gemspec +4 -3
  6. data/lib/fat_zebra/authenticate.rb +64 -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/util.rb +1 -1
  14. data/lib/fat_zebra/version.rb +1 -1
  15. data/lib/fat_zebra.rb +8 -1
  16. data/spec/cassettes/FatZebra_Authenticate/_authenticate/validations/1_3_5_1.yml +46 -0
  17. data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_1.yml +90 -0
  18. data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_2.yml +90 -0
  19. data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_1.yml +90 -0
  20. data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_2.yml +90 -0
  21. data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_1.yml +90 -0
  22. data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_2.yml +87 -0
  23. data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_3.yml +92 -0
  24. data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_4.yml +91 -0
  25. data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_type_validation/1_3_4_1.yml +46 -0
  26. data/spec/cassettes/FatZebra_Authenticate/_decode_session/when_token_is_invalid/returns_error_when_invalid_token.yml +47 -0
  27. data/spec/cassettes/FatZebra_Authenticate/_decode_session/when_token_is_valid/decodes_JWT.yml +87 -0
  28. data/spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_given_params.yml +44 -0
  29. data/spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_no_amount.yml +44 -0
  30. data/spec/cassettes/FatZebra_Authenticate/_session/returns_error_when_amount_is_invalid.yml +44 -0
  31. data/spec/cassettes/FatZebra_Authenticate/_session/returns_error_when_currency_is_invalid.yml +46 -0
  32. data/spec/cassettes/FatZebra_Card/_find/1_3_1.yml +111 -0
  33. data/spec/cassettes/FatZebra_Card/_find/1_3_2.yml +111 -0
  34. data/spec/cassettes/FatZebra_Paypal_Authorization/_capture/returns_a_new_capture_record.yml +45 -0
  35. data/spec/cassettes/{FatZebra_Authorise/_jwt_token/returns_JWT_with_no_params.yml → FatZebra_Paypal_Authorization/_find/when_found/returns_authorization.yml} +5 -5
  36. data/spec/cassettes/FatZebra_Paypal_Authorization/_search/with_date_filter/returns_records_created_after_start_date.yml +46 -0
  37. data/spec/cassettes/FatZebra_Paypal_Authorization/_void/returns_a_voided_capture_record.yml +44 -0
  38. data/spec/cassettes/FatZebra_Paypal_BillingAgreement/_charge/Valid_payload/returns_a_new_order_record.yml +48 -0
  39. data/spec/cassettes/FatZebra_Paypal_BillingAgreement/_find/when_found/returns_billing_agreement.yml +48 -0
  40. data/spec/cassettes/FatZebra_Paypal_BillingAgreement/_search/with_date_filter/returns_records_created_after_start_date.yml +48 -0
  41. data/spec/cassettes/FatZebra_Paypal_Capture/_find/when_found/returns_capture.yml +47 -0
  42. data/spec/cassettes/FatZebra_Paypal_Capture/_refund/returns_a_new_refund_record.yml +45 -0
  43. data/spec/cassettes/FatZebra_Paypal_Capture/_search/with_date_filter/returns_records_created_after_start_date.yml +49 -0
  44. data/spec/cassettes/FatZebra_Paypal_Order/_find/when_found/returns_order.yml +48 -0
  45. data/spec/cassettes/FatZebra_Paypal_Order/_search/with_date_filter/returns_orders_created_after_start_date.yml +55 -0
  46. data/spec/cassettes/{FatZebra_Authorise/_jwt_token/returns_JWT_with_some_params.yml → FatZebra_Paypal_Refund/_find/when_found/returns_refund.yml} +6 -5
  47. data/spec/cassettes/FatZebra_Paypal_Refund/_search/with_date_filter/returns_all_refund_records_created_after_start_date.yml +50 -0
  48. data/spec/lib/fat_zebra/authenticate_spec.rb +187 -0
  49. data/spec/lib/fat_zebra/card_spec.rb +8 -0
  50. data/spec/lib/fat_zebra/paypal/authorization_spec.rb +79 -0
  51. data/spec/lib/fat_zebra/paypal/billing_agreement_spec.rb +62 -0
  52. data/spec/lib/fat_zebra/paypal/capture_spec.rb +60 -0
  53. data/spec/lib/fat_zebra/paypal/order_spec.rb +35 -0
  54. data/spec/lib/fat_zebra/paypal/refund_spec.rb +36 -0
  55. data/spec/spec_helper.rb +0 -1
  56. data/spec/support/payloads.rb +129 -36
  57. metadata +65 -18
  58. data/lib/fat_zebra/authorise.rb +0 -49
  59. data/spec/cassettes/FatZebra_Authorise/_authorise/with_challenge_response/1_2_3_1.yml +0 -48
  60. data/spec/cassettes/FatZebra_Authorise/_authorise/with_challenge_response/1_2_3_2.yml +0 -48
  61. data/spec/cassettes/FatZebra_Authorise/_authorise/with_frictionless_response/1_2_2_1.yml +0 -48
  62. data/spec/cassettes/FatZebra_Authorise/_authorise/with_frictionless_response/1_2_2_2.yml +0 -48
  63. data/spec/cassettes/FatZebra_Authorise/_authorise/with_invalid_input/1_2_1_1.yml +0 -50
  64. data/spec/cassettes/FatZebra_Authorise/_jwt_token/returns_JWT_with_given_params.yml +0 -46
  65. data/spec/lib/fat_zebra/authorise_spec.rb +0 -101
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/billing_agreements/071-PBA-PYG1L6M4CV4DYHTZ/charge
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"reference":"677a1d99-5274-4eb2-a666-888985a2b162","amount":1100,"currency":"AUD","customer_ip":"1.2.3.4","options":{"brand_name":"EXAMPLE
9
+ INC"},"purchases":[{"description":"Sporting Goods","custom_id":"CUST-HighFashions","soft_descriptor":"HighFashions","amount":{"item_total":900,"shipping":200},"items":[{"name":"T-Shirt","unit_amount":900,"qty":1,"category":"PHYSICAL_GOODS"}],"shipping_address":{"method":"United
10
+ States Postal Service 1","address":{"first_name":"John","last_name":"Doe","address_1":"100
11
+ Kent Street","address_2":"Cafe Lane","city":"Sydney","state":"NSW","postcode":"2000","country":"AU"}}}],"test":true}'
12
+ headers:
13
+ Accept-Encoding:
14
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
15
+ Accept:
16
+ - application/json
17
+ User-Agent:
18
+ - Ruby
19
+ Authorization:
20
+ - Basic VEVTVDpURVNU
21
+ Content-Type:
22
+ - application/json
23
+ response:
24
+ status:
25
+ code: 200
26
+ message: OK
27
+ headers:
28
+ Cache-Control:
29
+ - no-store
30
+ Pragma:
31
+ - no-cache
32
+ Content-Type:
33
+ - application/json; charset=utf-8
34
+ X-Request-Version:
35
+ - 1.21.8
36
+ X-Request-Id:
37
+ - 37b760682e49d4a1400f205cf7f58dd3
38
+ X-Runtime:
39
+ - '7.284475'
40
+ Transfer-Encoding:
41
+ - chunked
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"successful":true,"response":{"id":"071-PPO-YTDFUYE0K14LAKEY","reference":"677a1d99-5274-4eb2-a666-888985a2b162","amount":1100,"decimal_amount":11.0,"successful":true,"message":"Approved","currency":"AUD","transaction_id":"071-PPO-YTDFUYE0K14LAKEY","transaction_date":"2020-08-07T14:01:48+10:00","intent":"CAPTURE","paypal_reference":"677a1d99-5274-4eb2-a666-888985a2b162","invoice_id":"677a1d99-5274-4eb2-a666-888985a2b162","billing_agreement_id":"071-PBA-PYG1L6M4CV4DYHTZ","status":"COMPLETED","payment_source":"BILLING_AGREEMENT","authorized_amount":0.0,"captured_amount":11.0,"refunded_amount":0.0,"authorizations":[],"captures":[{"id":"071-PPC-CSHGL09PIO4NLU4V","amount":1100,"decimal_amount":11.0,"captured_amount":1100,"successful":true,"message":"Approved","reference":"677a1d99-5274-4eb2-a666-888985a2b162","captured":true,"currency":"AUD","transaction_id":"071-PPC-CSHGL09PIO4NLU4V","transaction_date":"2020-08-07T14:01:48+10:00","response_code":"00","invoice_id":"677a1d99-5274-4eb2-a666-888985a2b162","paypal_fee":56,"seller_receivable_net_amount":1044,"note_to_payer":"Sporting
45
+ Goods","is_final_capture":true,"refunded_amount":0,"balance_available_for_refund":1100,"order":"071-PPO-YTDFUYE0K14LAKEY"}],"refunds":[],"payer":{"id":"CV5LBGRHGTXHY","email":"sb-qxxvi1315481@personal.example.com","address":{"country_code":"AU"}},"payee":{"id":"GE53HS375QX4J","email":"test-seller@example.com"}},"errors":[],"test":true}'
46
+ http_version:
47
+ recorded_at: Fri, 07 Aug 2020 04:01:52 GMT
48
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/billing_agreements/071-PBA-PYG1L6M4CV4DYHTZ?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
+ - 5b3e68af9cf621142f49ccdffc8116d8
37
+ X-Runtime:
38
+ - '0.036524'
39
+ Transfer-Encoding:
40
+ - chunked
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"successful":true,"response":{"id":"071-PBA-PYG1L6M4CV4DYHTZ","name":"Sample
44
+ Billing Agreement","description":"Stored PayPal account","state":"ACTIVE","payer":{"payer_info":{"email":"sb-qxxvi1315481@personal.example.com","first_name":"John","last_name":"Doe","payer_id":"CV5LBGRHGTXHY"}},"shipping_address":{"first_name":"John","last_name":"Doe","address_1":"100
45
+ Kent Street","address_2":"Cafe Lane","city":"Sydney","state":"NSW","postcode":"2000","country":"AU"},"merchant_custom_data":"\u003cUUID\u003e","created_at":"2020-08-06T23:23:01+10:00"},"errors":[],"test":true}'
46
+ http_version:
47
+ recorded_at: Fri, 07 Aug 2020 03:09:56 GMT
48
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/billing_agreements?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
+ - c101aad30f97840b3c4a4efe5d4eb30a
37
+ X-Runtime:
38
+ - '0.035274'
39
+ Transfer-Encoding:
40
+ - chunked
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"successful":true,"response":[{"id":"071-PBA-PYG1L6M4CV4DYHTZ","name":"Sample
44
+ Billing Agreement","description":"Stored PayPal account","state":"ACTIVE","payer":{"payer_info":{"email":"sb-qxxvi1315481@personal.example.com","first_name":"John","last_name":"Doe","payer_id":"CV5LBGRHGTXHY"}},"shipping_address":{"first_name":"John","last_name":"Doe","address_1":"100
45
+ Kent Street","address_2":"Cafe Lane","city":"Sydney","state":"NSW","postcode":"2000","country":"AU"},"merchant_custom_data":"\u003cUUID\u003e","created_at":"2020-08-06T23:23:01+10:00"}],"errors":[],"test":true,"records":1,"total_records":1,"page":1,"total_pages":1}'
46
+ http_version:
47
+ recorded_at: Fri, 07 Aug 2020 03:09:56 GMT
48
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/captures/071-PPC-TUOHT8YJHBY7SBJU?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
+ - c58a5a533d15c569513e509323a18388
37
+ X-Runtime:
38
+ - '0.040104'
39
+ Transfer-Encoding:
40
+ - chunked
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"successful":true,"response":{"id":"071-PPC-TUOHT8YJHBY7SBJU","amount":12000,"decimal_amount":120.0,"captured_amount":12000,"successful":true,"message":"Approved","reference":"ref_12345_771673","captured":true,"currency":"AUD","transaction_id":"071-PPC-TUOHT8YJHBY7SBJU","transaction_date":"2020-08-06T23:19:37+10:00","response_code":"00","invoice_id":"ref_12345_771673","paypal_fee":318,"seller_receivable_net_amount":11682,"note_to_payer":"Sporting
44
+ Goods","is_final_capture":true,"refunded_amount":0,"balance_available_for_refund":12000,"order":"071-PPO-U7RRMGM3OY3V2ZMN"},"errors":[],"test":true}'
45
+ http_version:
46
+ recorded_at: Thu, 06 Aug 2020 13:26:56 GMT
47
+ 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/captures/071-PPC-TUOHT8YJHBY7SBJU/refund
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"amount":100,"note_to_payer":"test note","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
+ - e0ebe48b6e87dd8ee5c32ba79ab48b68
35
+ X-Runtime:
36
+ - '6.572899'
37
+ Transfer-Encoding:
38
+ - chunked
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"successful":true,"response":{"id":"071-PPR-MZJV3I5XDDXODL91","amount":100,"refunded":"Approved","message":"Approved","transaction_id":"071-PPR-MZJV3I5XDDXODL91","currency":"AUD","successful":true,"transaction_date":"2020-08-07T14:01:58+10:00","response_code":"00","standalone":false,"note_to_payer":"test
42
+ note","invoice_id":"071-PPR-MZJV3I5XDDXODL91","decimal_amount":1.0,"paypal_fee":3,"seller_payable_net_amount":97,"balance_available_for_refund":11800,"capture":"071-PPC-TUOHT8YJHBY7SBJU","order":"071-PPO-U7RRMGM3OY3V2ZMN"},"errors":[],"test":true}'
43
+ http_version:
44
+ recorded_at: Fri, 07 Aug 2020 04:02:05 GMT
45
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/captures?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
+ - 2a6624340cee60843d3a02133af59e2b
37
+ X-Runtime:
38
+ - '0.051010'
39
+ Transfer-Encoding:
40
+ - chunked
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"successful":true,"response":[{"id":"071-PPC-JUNNKEGCHIOL1CFR","amount":11000,"decimal_amount":110.0,"captured_amount":11000,"successful":true,"message":"Approved","reference":"82a8bc984e1dda3d10780a1c10eb5cb4","captured":true,"currency":"AUD","transaction_id":"071-PPC-JUNNKEGCHIOL1CFR","transaction_date":"2020-08-05T06:27:55+10:00","response_code":"00","invoice_id":"82a8bc984e1dda3d10780a1c10eb5cb4","paypal_fee":294,"seller_receivable_net_amount":10706,"note_to_payer":"Sporting
44
+ Goods","is_final_capture":true,"refunded_amount":11000,"balance_available_for_refund":0,"order":"071-PPO-RXFR2E6ILCIE6HKI"},{"id":"071-PPC-RBJV9SSA7PWXVXFB","amount":1100,"decimal_amount":11.0,"captured_amount":1100,"successful":true,"message":"Approved","reference":"f551972b-e61e-4403-bab1-dc2cdc99c7ff","captured":true,"currency":"AUD","transaction_id":"071-PPC-RBJV9SSA7PWXVXFB","transaction_date":"2020-08-05T10:38:47+10:00","response_code":"00","invoice_id":"f551972b-e61e-4403-bab1-dc2cdc99c7ff","paypal_fee":56,"seller_receivable_net_amount":1044,"note_to_payer":"Sporting
45
+ Goods","is_final_capture":true,"refunded_amount":1100,"balance_available_for_refund":0,"order":"071-PPO-5ICGTHBIMG9T7D4I"},{"id":"071-PPC-TUOHT8YJHBY7SBJU","amount":12000,"decimal_amount":120.0,"captured_amount":12000,"successful":true,"message":"Approved","reference":"ref_12345_771673","captured":true,"currency":"AUD","transaction_id":"071-PPC-TUOHT8YJHBY7SBJU","transaction_date":"2020-08-06T23:19:37+10:00","response_code":"00","invoice_id":"ref_12345_771673","paypal_fee":318,"seller_receivable_net_amount":11682,"note_to_payer":"Sporting
46
+ Goods","is_final_capture":true,"refunded_amount":0,"balance_available_for_refund":12000,"order":"071-PPO-U7RRMGM3OY3V2ZMN"}],"errors":[],"test":true,"records":3,"total_records":3,"page":1,"total_pages":1}'
47
+ http_version:
48
+ recorded_at: Thu, 06 Aug 2020 13:26:56 GMT
49
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/orders/071-PPO-U7RRMGM3OY3V2ZMN?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
+ - 3b84871376becb04242c5c5eed2befcb
37
+ X-Runtime:
38
+ - '0.037029'
39
+ Transfer-Encoding:
40
+ - chunked
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"successful":true,"response":{"id":"071-PPO-U7RRMGM3OY3V2ZMN","reference":"ref_12345_771673","amount":11900,"decimal_amount":119.0,"successful":true,"message":"Approved","currency":"AUD","transaction_id":"071-PPO-U7RRMGM3OY3V2ZMN","transaction_date":"2020-08-06T23:19:37+10:00","intent":"CAPTURE","paypal_reference":"ref_12345_771673","invoice_id":"ref_12345_771673","status":"COMPLETED","authorized_amount":0.0,"captured_amount":120.0,"refunded_amount":1.0,"authorizations":[],"captures":[{"id":"071-PPC-TUOHT8YJHBY7SBJU","amount":12000,"decimal_amount":120.0,"captured_amount":12000,"successful":true,"message":"Approved","reference":"ref_12345_771673","captured":true,"currency":"AUD","transaction_id":"071-PPC-TUOHT8YJHBY7SBJU","transaction_date":"2020-08-06T23:19:37+10:00","response_code":"00","invoice_id":"ref_12345_771673","paypal_fee":318,"seller_receivable_net_amount":11682,"note_to_payer":"Sporting
44
+ Goods","is_final_capture":true,"refunded_amount":100,"balance_available_for_refund":11900,"order":"071-PPO-U7RRMGM3OY3V2ZMN"}],"refunds":[{"id":"071-PPR-SRR9FP7ZKXT9IXU3","amount":100,"refunded":"Approved","message":"Approved","transaction_id":"071-PPR-SRR9FP7ZKXT9IXU3","currency":"AUD","successful":true,"transaction_date":"2020-08-06T23:26:56+10:00","response_code":"00","standalone":false,"note_to_payer":"test
45
+ note","invoice_id":"071-PPR-SRR9FP7ZKXT9IXU3","decimal_amount":1.0,"paypal_fee":2,"seller_payable_net_amount":98,"balance_available_for_refund":11900,"capture":"071-PPC-TUOHT8YJHBY7SBJU","order":"071-PPO-U7RRMGM3OY3V2ZMN"}],"payer":{"id":"CV5LBGRHGTXHY","email":"sb-qxxvi1315481@personal.example.com","address":{"country_code":"AU"}},"payee":{"id":"GE53HS375QX4J","email":"test-seller@example.com"}},"errors":[],"test":true}'
46
+ http_version:
47
+ recorded_at: Fri, 07 Aug 2020 00:03:08 GMT
48
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/orders?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
+ - bc019811b9c6e7d6522c2fd383a7d12c
37
+ X-Runtime:
38
+ - '0.141446'
39
+ Transfer-Encoding:
40
+ - chunked
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"successful":true,"response":[{"id":"071-PPO-RXFR2E6ILCIE6HKI","reference":"82a8bc984e1dda3d10780a1c10eb5cb4","amount":0,"decimal_amount":0.0,"successful":true,"message":"Approved","currency":"AUD","transaction_id":"071-PPO-RXFR2E6ILCIE6HKI","transaction_date":"2020-08-05T06:27:55+10:00","intent":"CAPTURE","paypal_reference":"82a8bc984e1dda3d10780a1c10eb5cb4","invoice_id":"82a8bc984e1dda3d10780a1c10eb5cb4","status":"COMPLETED","authorized_amount":0.0,"captured_amount":110.0,"refunded_amount":110.0,"authorizations":[],"captures":[{"id":"071-PPC-JUNNKEGCHIOL1CFR","amount":11000,"decimal_amount":110.0,"captured_amount":11000,"successful":true,"message":"Approved","reference":"82a8bc984e1dda3d10780a1c10eb5cb4","captured":true,"currency":"AUD","transaction_id":"071-PPC-JUNNKEGCHIOL1CFR","transaction_date":"2020-08-05T06:27:55+10:00","response_code":"00","invoice_id":"82a8bc984e1dda3d10780a1c10eb5cb4","paypal_fee":294,"seller_receivable_net_amount":10706,"note_to_payer":"Sporting
44
+ Goods","is_final_capture":true,"refunded_amount":11000,"balance_available_for_refund":0,"order":"071-PPO-RXFR2E6ILCIE6HKI"}],"refunds":[{"id":"071-PPR-7BIDZCFHPCCBUSJH","amount":100,"refunded":"Approved","message":"Approved","transaction_id":"071-PPR-7BIDZCFHPCCBUSJH","currency":"AUD","successful":true,"transaction_date":"2020-08-05T11:24:24+10:00","response_code":"00","standalone":false,"note_to_payer":"refund
45
+ the rest","invoice_id":"071-PPR-7BIDZCFHPCCBUSJH","decimal_amount":1.0,"paypal_fee":2,"seller_payable_net_amount":98,"balance_available_for_refund":0,"capture":"071-PPC-JUNNKEGCHIOL1CFR","order":"071-PPO-RXFR2E6ILCIE6HKI"},{"id":"071-PPR-10HDHDI4QRHVDOGV","amount":10900,"refunded":"Approved","message":"Approved","transaction_id":"071-PPR-10HDHDI4QRHVDOGV","currency":"AUD","successful":true,"transaction_date":"2020-08-05T16:54:15+10:00","response_code":"00","standalone":false,"invoice_id":"071-PPR-10HDHDI4QRHVDOGV","decimal_amount":109.0,"paypal_fee":262,"seller_payable_net_amount":10638,"balance_available_for_refund":0,"capture":"071-PPC-JUNNKEGCHIOL1CFR","order":"071-PPO-RXFR2E6ILCIE6HKI"}],"payer":{"id":"CV5LBGRHGTXHY","email":"sb-qxxvi1315481@personal.example.com","address":{"country_code":"AU"}},"payee":{"id":"GE53HS375QX4J","email":"test-seller@example.com"}},{"id":"071-PPO-5ICGTHBIMG9T7D4I","reference":"f551972b-e61e-4403-bab1-dc2cdc99c7ff","amount":0,"decimal_amount":0.0,"successful":true,"message":"Approved","currency":"AUD","transaction_id":"071-PPO-5ICGTHBIMG9T7D4I","transaction_date":"2020-08-05T10:38:47+10:00","intent":"CAPTURE","paypal_reference":"f551972b-e61e-4403-bab1-dc2cdc99c7ff","invoice_id":"f551972b-e61e-4403-bab1-dc2cdc99c7ff","billing_agreement_token":"pb-dba1bbi7chtnpdrj2hbo","status":"COMPLETED","payment_source":"BILLING_AGREEMENT","authorized_amount":0.0,"captured_amount":11.0,"refunded_amount":11.0,"authorizations":[],"captures":[{"id":"071-PPC-RBJV9SSA7PWXVXFB","amount":1100,"decimal_amount":11.0,"captured_amount":1100,"successful":true,"message":"Approved","reference":"f551972b-e61e-4403-bab1-dc2cdc99c7ff","captured":true,"currency":"AUD","transaction_id":"071-PPC-RBJV9SSA7PWXVXFB","transaction_date":"2020-08-05T10:38:47+10:00","response_code":"00","invoice_id":"f551972b-e61e-4403-bab1-dc2cdc99c7ff","paypal_fee":56,"seller_receivable_net_amount":1044,"note_to_payer":"Sporting
46
+ Goods","is_final_capture":true,"refunded_amount":1100,"balance_available_for_refund":0,"order":"071-PPO-5ICGTHBIMG9T7D4I"}],"refunds":[{"id":"071-PPR-6FOW2YDJYBPSDBNB","amount":100,"refunded":"Approved","message":"Approved","transaction_id":"071-PPR-6FOW2YDJYBPSDBNB","currency":"AUD","successful":true,"transaction_date":"2020-08-05T10:40:07+10:00","response_code":"00","standalone":false,"note_to_payer":"refund
47
+ billing agreement","invoice_id":"071-PPR-6FOW2YDJYBPSDBNB","decimal_amount":1.0,"paypal_fee":2,"seller_payable_net_amount":98,"balance_available_for_refund":0,"capture":"071-PPC-RBJV9SSA7PWXVXFB","order":"071-PPO-5ICGTHBIMG9T7D4I"},{"id":"071-PPR-WXEAYHCGZY7DJYZ2","amount":1000,"refunded":"Approved","message":"Approved","transaction_id":"071-PPR-WXEAYHCGZY7DJYZ2","currency":"AUD","successful":true,"transaction_date":"2020-08-05T10:46:21+10:00","response_code":"00","standalone":false,"note_to_payer":"refund
48
+ the rest","invoice_id":"071-PPR-WXEAYHCGZY7DJYZ2","decimal_amount":10.0,"paypal_fee":24,"seller_payable_net_amount":976,"balance_available_for_refund":0,"capture":"071-PPC-RBJV9SSA7PWXVXFB","order":"071-PPO-5ICGTHBIMG9T7D4I"}],"payer":{"id":"CV5LBGRHGTXHY","email":"sb-qxxvi1315481@personal.example.com","address":{"country_code":"AU"}},"payee":{"id":"GE53HS375QX4J","email":"test-seller@example.com"}},{"id":"071-PPO-U7RRMGM3OY3V2ZMN","reference":"ref_12345_771673","amount":11900,"decimal_amount":119.0,"successful":true,"message":"Approved","currency":"AUD","transaction_id":"071-PPO-U7RRMGM3OY3V2ZMN","transaction_date":"2020-08-06T23:19:37+10:00","intent":"CAPTURE","paypal_reference":"ref_12345_771673","invoice_id":"ref_12345_771673","status":"COMPLETED","authorized_amount":0.0,"captured_amount":120.0,"refunded_amount":1.0,"authorizations":[],"captures":[{"id":"071-PPC-TUOHT8YJHBY7SBJU","amount":12000,"decimal_amount":120.0,"captured_amount":12000,"successful":true,"message":"Approved","reference":"ref_12345_771673","captured":true,"currency":"AUD","transaction_id":"071-PPC-TUOHT8YJHBY7SBJU","transaction_date":"2020-08-06T23:19:37+10:00","response_code":"00","invoice_id":"ref_12345_771673","paypal_fee":318,"seller_receivable_net_amount":11682,"note_to_payer":"Sporting
49
+ Goods","is_final_capture":true,"refunded_amount":100,"balance_available_for_refund":11900,"order":"071-PPO-U7RRMGM3OY3V2ZMN"}],"refunds":[{"id":"071-PPR-SRR9FP7ZKXT9IXU3","amount":100,"refunded":"Approved","message":"Approved","transaction_id":"071-PPR-SRR9FP7ZKXT9IXU3","currency":"AUD","successful":true,"transaction_date":"2020-08-06T23:26:56+10:00","response_code":"00","standalone":false,"note_to_payer":"test
50
+ note","invoice_id":"071-PPR-SRR9FP7ZKXT9IXU3","decimal_amount":1.0,"paypal_fee":2,"seller_payable_net_amount":98,"balance_available_for_refund":11900,"capture":"071-PPC-TUOHT8YJHBY7SBJU","order":"071-PPO-U7RRMGM3OY3V2ZMN"}],"payer":{"id":"CV5LBGRHGTXHY","email":"sb-qxxvi1315481@personal.example.com","address":{"country_code":"AU"}},"payee":{"id":"GE53HS375QX4J","email":"test-seller@example.com"}},{"id":"071-PPO-QMNDDIFZMCX0LA0G","reference":"ref_12345_420768","amount":200,"decimal_amount":2.0,"successful":true,"message":"Approved","currency":"AUD","transaction_id":"071-PPO-QMNDDIFZMCX0LA0G","transaction_date":"2020-08-06T23:17:27+10:00","intent":"AUTHORIZE","paypal_reference":"ref_12345_420768","invoice_id":"ref_12345_420768","status":"COMPLETED","authorized_amount":120.0,"captured_amount":2.0,"refunded_amount":0.0,"authorizations":[{"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"}],"captures":[{"id":"071-PPC-J78XU85CJEZWO1GM","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-J78XU85CJEZWO1GM","transaction_date":"2020-08-06T23:39:51+10:00","response_code":"00","invoice_id":"071-PPC-J78XU85CJEZWO1GM","paypal_fee":35,"seller_receivable_net_amount":165,"note_to_payer":"test
51
+ capture $2","is_final_capture":false,"refunded_amount":0,"balance_available_for_refund":200,"balance_available_for_capture":13600,"authorization":"071-PPA-3AM3CXFFKMFYI3QM","order":"071-PPO-QMNDDIFZMCX0LA0G"}],"refunds":[],"payer":{"id":"CV5LBGRHGTXHY","email":"sb-qxxvi1315481@personal.example.com","address":{"country_code":"AU"}},"payee":{"id":"GE53HS375QX4J","email":"test-seller@example.com"}},{"id":"071-PPO-TKJOIWAQBL0FUXIY","reference":"ref_12345_108143","amount":12000,"decimal_amount":120.0,"successful":true,"message":"Approved","currency":"AUD","transaction_id":"071-PPO-TKJOIWAQBL0FUXIY","transaction_date":"2020-08-06T23:40:58+10:00","intent":"AUTHORIZE","paypal_reference":"ref_12345_108143","invoice_id":"ref_12345_108143","status":"COMPLETED","authorized_amount":120.0,"captured_amount":120.0,"refunded_amount":0.0,"authorizations":[{"id":"071-PPA-QPIVKACDAHBNH3LO","amount":12000,"decimal_amount":120.0,"captured_amount":12000,"successful":true,"captured":true,"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":0,"order":"071-PPO-TKJOIWAQBL0FUXIY"}],"captures":[{"id":"071-PPC-CJEJFDYDGVANRLT2","amount":12000,"decimal_amount":120.0,"captured_amount":12000,"successful":true,"message":"Approved","reference":"ref_12345_108143","captured":true,"currency":"AUD","transaction_id":"071-PPC-CJEJFDYDGVANRLT2","transaction_date":"2020-08-06T23:53:12+10:00","response_code":"00","invoice_id":"071-PPC-CJEJFDYDGVANRLT2","paypal_fee":318,"seller_receivable_net_amount":12000,"is_final_capture":true,"refunded_amount":0,"balance_available_for_refund":12000,"balance_available_for_capture":0,"authorization":"071-PPA-QPIVKACDAHBNH3LO","order":"071-PPO-TKJOIWAQBL0FUXIY"}],"refunds":[],"payer":{"id":"CV5LBGRHGTXHY","email":"sb-qxxvi1315481@personal.example.com","address":{"country_code":"AU"}},"payee":{"id":"GE53HS375QX4J","email":"test-seller@example.com"}},{"id":"071-PPO-9RTUTZIBA391BSDD","reference":"ref_12345_730288","amount":12000,"decimal_amount":120.0,"successful":true,"message":"Approved","currency":"AUD","transaction_id":"071-PPO-9RTUTZIBA391BSDD","transaction_date":"2020-08-06T23:59:05+10:00","intent":"AUTHORIZE","paypal_reference":"ref_12345_730288","invoice_id":"ref_12345_730288","status":"COMPLETED","authorized_amount":120.0,"captured_amount":0.0,"refunded_amount":0.0,"authorizations":[{"id":"071-PPA-SBABZAXAMF38JQMP","amount":12000,"decimal_amount":120.0,"captured_amount":0,"successful":true,"captured":false,"currency":"AUD","transaction_id":"071-PPA-SBABZAXAMF38JQMP","transaction_date":"2020-08-06T23:59:05+10:00","message":"Approved","response_code":"00","reference":"ref_12345_730288","refunded_amount":0,"balance_available_for_capture":0,"order":"071-PPO-9RTUTZIBA391BSDD"}],"captures":[],"refunds":[],"payer":{"id":"CV5LBGRHGTXHY","email":"sb-qxxvi1315481@personal.example.com","address":{"country_code":"AU"}},"payee":{"id":"GE53HS375QX4J","email":"test-seller@example.com"}},{"id":"071-PPO-AQT7Z9AXY48KUSQA","reference":"d71cb7a9-ff8b-4206-9800-91c01eb2dfba","amount":1100,"decimal_amount":11.0,"successful":true,"message":"Approved","currency":"AUD","transaction_id":"071-PPO-AQT7Z9AXY48KUSQA","transaction_date":"2020-08-07T09:51:21+10:00","intent":"CAPTURE","paypal_reference":"d71cb7a9-ff8b-4206-9800-91c01eb2dfba","invoice_id":"d71cb7a9-ff8b-4206-9800-91c01eb2dfba","billing_agreement_id":"071-PBA-PYG1L6M4CV4DYHTZ","status":"COMPLETED","payment_source":"BILLING_AGREEMENT","authorized_amount":0.0,"captured_amount":11.0,"refunded_amount":0.0,"authorizations":[],"captures":[{"id":"071-PPC-XNH6TBLSBKY36TXA","amount":1100,"decimal_amount":11.0,"captured_amount":1100,"successful":true,"message":"Approved","reference":"d71cb7a9-ff8b-4206-9800-91c01eb2dfba","captured":true,"currency":"AUD","transaction_id":"071-PPC-XNH6TBLSBKY36TXA","transaction_date":"2020-08-07T09:51:21+10:00","response_code":"00","invoice_id":"d71cb7a9-ff8b-4206-9800-91c01eb2dfba","paypal_fee":56,"seller_receivable_net_amount":1044,"note_to_payer":"Sporting
52
+ Goods","is_final_capture":true,"refunded_amount":0,"balance_available_for_refund":1100,"order":"071-PPO-AQT7Z9AXY48KUSQA"}],"refunds":[],"payer":{"id":"CV5LBGRHGTXHY","email":"sb-qxxvi1315481@personal.example.com","address":{"country_code":"AU"}},"payee":{"id":"GE53HS375QX4J","email":"test-seller@example.com"}}],"errors":[],"test":true,"records":7,"total_records":7,"page":1,"total_pages":1}'
53
+ http_version:
54
+ recorded_at: Fri, 07 Aug 2020 00:03:08 GMT
55
+ recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/authorise/jwt_token?amount=100&confirm_url=https://example.com&currency_code=036&order_number=xxxx-xxxx-xxxx&test=true
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/refunds/071-PPR-SRR9FP7ZKXT9IXU3?test=true
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -33,14 +33,15 @@ http_interactions:
33
33
  X-Request-Version:
34
34
  - 1.21.8
35
35
  X-Request-Id:
36
- - baa38892840aad6e85125b672b0f3264
36
+ - 81ed057ef02e3ab46dab74f50b58e581
37
37
  X-Runtime:
38
- - '0.265561'
38
+ - '0.060300'
39
39
  Transfer-Encoding:
40
40
  - chunked
41
41
  body:
42
42
  encoding: UTF-8
43
- string: '{"successful":true,"response":{"jwt":"eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NjczOTkyMDMsImlhdCI6MTU2NzM4NDgwMywiaXNzIjoiNTgyZTBhMjAzM2ZhZGQxMjYwZjk5MGY2IiwianRpIjoiZDZkMTFjYzItYzJlNS00MDk1LWJhMjktMmY2NDhiNzJjNzU1IiwiT3JnVW5pdElkIjoiNTgyYmU5ZGVkYTUyOTMyYTk0NmM0NWM0IiwiT2JqZWN0aWZ5UGF5bG9hZCI6dHJ1ZSwiUmVmZXJlbmNlSWQiOiJiODg2MDAzZi1lYTJiLTQwMjAtOGVlNC01NjFlYTdjMTI3MzEifQ.w2EKM09LU0lF7iq5luyVbpwXx6p_np3DApXsP5XpTWw","reference_id":"b886003f-ea2b-4020-8ee4-561ea7c12731"},"errors":[],"test":true}'
43
+ string: '{"successful":true,"response":{"id":"071-PPR-SRR9FP7ZKXT9IXU3","amount":100,"refunded":"Approved","message":"Approved","transaction_id":"071-PPR-SRR9FP7ZKXT9IXU3","currency":"AUD","successful":true,"transaction_date":"2020-08-06T23:26:56+10:00","response_code":"00","standalone":false,"note_to_payer":"test
44
+ note","invoice_id":"071-PPR-SRR9FP7ZKXT9IXU3","decimal_amount":1.0,"paypal_fee":2,"seller_payable_net_amount":98,"balance_available_for_refund":11900,"capture":"071-PPC-TUOHT8YJHBY7SBJU","order":"071-PPO-U7RRMGM3OY3V2ZMN"},"errors":[],"test":true}'
44
45
  http_version:
45
- recorded_at: Mon, 02 Sep 2019 00:40:03 GMT
46
+ recorded_at: Fri, 07 Aug 2020 00:03:14 GMT
46
47
  recorded_with: VCR 3.0.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/refunds?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
+ - f9e0e746bb7c4611132605c0fefbd352
37
+ X-Runtime:
38
+ - '0.086558'
39
+ Transfer-Encoding:
40
+ - chunked
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"successful":true,"response":[{"id":"071-PPR-SRR9FP7ZKXT9IXU3","amount":100,"refunded":"Approved","message":"Approved","transaction_id":"071-PPR-SRR9FP7ZKXT9IXU3","currency":"AUD","successful":true,"transaction_date":"2020-08-06T23:26:56+10:00","response_code":"00","standalone":false,"note_to_payer":"test
44
+ note","invoice_id":"071-PPR-SRR9FP7ZKXT9IXU3","decimal_amount":1.0,"paypal_fee":2,"seller_payable_net_amount":98,"balance_available_for_refund":11900,"capture":"071-PPC-TUOHT8YJHBY7SBJU","order":"071-PPO-U7RRMGM3OY3V2ZMN"},{"id":"071-PPR-10HDHDI4QRHVDOGV","amount":10900,"refunded":"Approved","message":"Approved","transaction_id":"071-PPR-10HDHDI4QRHVDOGV","currency":"AUD","successful":true,"transaction_date":"2020-08-05T16:54:15+10:00","response_code":"00","standalone":false,"invoice_id":"071-PPR-10HDHDI4QRHVDOGV","decimal_amount":109.0,"paypal_fee":262,"seller_payable_net_amount":10638,"balance_available_for_refund":0,"capture":"071-PPC-JUNNKEGCHIOL1CFR","order":"071-PPO-RXFR2E6ILCIE6HKI"},{"id":"071-PPR-7BIDZCFHPCCBUSJH","amount":100,"refunded":"Approved","message":"Approved","transaction_id":"071-PPR-7BIDZCFHPCCBUSJH","currency":"AUD","successful":true,"transaction_date":"2020-08-05T11:24:24+10:00","response_code":"00","standalone":false,"note_to_payer":"refund
45
+ the rest","invoice_id":"071-PPR-7BIDZCFHPCCBUSJH","decimal_amount":1.0,"paypal_fee":2,"seller_payable_net_amount":98,"balance_available_for_refund":0,"capture":"071-PPC-JUNNKEGCHIOL1CFR","order":"071-PPO-RXFR2E6ILCIE6HKI"},{"id":"071-PPR-WXEAYHCGZY7DJYZ2","amount":1000,"refunded":"Approved","message":"Approved","transaction_id":"071-PPR-WXEAYHCGZY7DJYZ2","currency":"AUD","successful":true,"transaction_date":"2020-08-05T10:46:21+10:00","response_code":"00","standalone":false,"note_to_payer":"refund
46
+ the rest","invoice_id":"071-PPR-WXEAYHCGZY7DJYZ2","decimal_amount":10.0,"paypal_fee":24,"seller_payable_net_amount":976,"balance_available_for_refund":0,"capture":"071-PPC-RBJV9SSA7PWXVXFB","order":"071-PPO-5ICGTHBIMG9T7D4I"},{"id":"071-PPR-6FOW2YDJYBPSDBNB","amount":100,"refunded":"Approved","message":"Approved","transaction_id":"071-PPR-6FOW2YDJYBPSDBNB","currency":"AUD","successful":true,"transaction_date":"2020-08-05T10:40:07+10:00","response_code":"00","standalone":false,"note_to_payer":"refund
47
+ billing agreement","invoice_id":"071-PPR-6FOW2YDJYBPSDBNB","decimal_amount":1.0,"paypal_fee":2,"seller_payable_net_amount":98,"balance_available_for_refund":0,"capture":"071-PPC-RBJV9SSA7PWXVXFB","order":"071-PPO-5ICGTHBIMG9T7D4I"}],"errors":[],"test":true,"records":5,"total_records":5,"page":1,"total_pages":1}'
48
+ http_version:
49
+ recorded_at: Fri, 07 Aug 2020 00:03:14 GMT
50
+ recorded_with: VCR 3.0.3