fat_zebra 3.1.0 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +1 -1
  3. data/lib/fat_zebra.rb +1 -0
  4. data/lib/fat_zebra/authorise.rb +49 -0
  5. data/lib/fat_zebra/version.rb +1 -1
  6. data/spec/cassettes/FatZebra_Authorise/_authorise/with_challenge_response/1_2_3_1.yml +48 -0
  7. data/spec/cassettes/FatZebra_Authorise/_authorise/with_challenge_response/1_2_3_2.yml +48 -0
  8. data/spec/cassettes/FatZebra_Authorise/_authorise/with_frictionless_response/1_2_2_1.yml +48 -0
  9. data/spec/cassettes/FatZebra_Authorise/_authorise/with_frictionless_response/1_2_2_2.yml +48 -0
  10. data/spec/cassettes/FatZebra_Authorise/_authorise/with_invalid_input/1_2_1_1.yml +50 -0
  11. data/spec/cassettes/FatZebra_Authorise/_jwt_token/returns_JWT_with_given_params.yml +46 -0
  12. data/spec/cassettes/FatZebra_Authorise/_jwt_token/returns_JWT_with_no_params.yml +46 -0
  13. data/spec/cassettes/FatZebra_Authorise/_jwt_token/returns_JWT_with_some_params.yml +46 -0
  14. data/spec/cassettes/FatZebra_BankAccount/_create/1_1_1.yml +8 -14
  15. data/spec/cassettes/FatZebra_BankAccount/_create/1_1_2.yml +8 -14
  16. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml +30 -30
  17. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_2.yml +30 -30
  18. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_3.yml +30 -30
  19. data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_1.yml +11 -17
  20. data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_2.yml +11 -17
  21. data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_1.yml +11 -17
  22. data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_2.yml +11 -17
  23. data/spec/cassettes/FatZebra_Batch/_find/1_2_1.yml +19 -31
  24. data/spec/cassettes/FatZebra_Batch/_find/1_2_2.yml +19 -31
  25. data/spec/cassettes/FatZebra_Batch/_result/1_4_1.yml +26 -44
  26. data/spec/cassettes/FatZebra_Batch/_search/1_3_1.yml +6 -6
  27. data/spec/cassettes/FatZebra_Batch/_search/1_3_2.yml +6 -6
  28. data/spec/cassettes/FatZebra_Batch/_search/1_3_3.yml +6 -6
  29. data/spec/cassettes/FatZebra_Card/_create/1_1_1.yml +7 -13
  30. data/spec/cassettes/FatZebra_Card/_create/1_1_2.yml +7 -13
  31. data/spec/cassettes/FatZebra_Card/_create/1_1_3.yml +7 -13
  32. data/spec/cassettes/FatZebra_Card/_create/1_1_4.yml +7 -13
  33. data/spec/cassettes/FatZebra_Card/_create/1_1_5.yml +7 -13
  34. data/spec/cassettes/FatZebra_Card/_create/1_1_6.yml +7 -13
  35. data/spec/cassettes/FatZebra_Card/_update/1_2_1.yml +15 -27
  36. data/spec/cassettes/FatZebra_Card/_update/1_2_2.yml +15 -27
  37. data/spec/cassettes/FatZebra_Card/_update/1_2_3.yml +15 -27
  38. data/spec/cassettes/FatZebra_Card/_update/validations/1_2_4_1.yml +7 -13
  39. data/spec/cassettes/FatZebra_Customer/_create/1_1_1.yml +9 -15
  40. data/spec/cassettes/FatZebra_Customer/_create/1_1_2.yml +9 -15
  41. data/spec/cassettes/FatZebra_Customer/_create/1_1_3.yml +9 -15
  42. data/spec/cassettes/FatZebra_Customer/_create/1_1_4.yml +9 -15
  43. data/spec/cassettes/FatZebra_Customer/_create/1_1_5.yml +9 -15
  44. data/spec/cassettes/FatZebra_Customer/_create/1_1_6.yml +9 -15
  45. data/spec/cassettes/FatZebra_Customer/_delete/1_5_1.yml +18 -30
  46. data/spec/cassettes/FatZebra_Customer/_find/1_3_1.yml +18 -30
  47. data/spec/cassettes/FatZebra_Customer/_find/1_3_2.yml +18 -30
  48. data/spec/cassettes/FatZebra_Customer/_search/1_2_1.yml +12 -16
  49. data/spec/cassettes/FatZebra_Customer/_search/1_2_2.yml +12 -16
  50. data/spec/cassettes/FatZebra_Customer/_search/1_2_3.yml +12 -16
  51. data/spec/cassettes/FatZebra_Customer/_update/1_4_1.yml +19 -31
  52. data/spec/cassettes/FatZebra_Customer/_update/1_4_2.yml +19 -31
  53. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_1.yml +8 -14
  54. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_2.yml +8 -14
  55. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_3.yml +8 -14
  56. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_4.yml +8 -14
  57. data/spec/cassettes/FatZebra_DirectCredit/_create/validations/valid/1_1_5_1_1.yml +7 -13
  58. data/spec/cassettes/FatZebra_DirectCredit/_delete/1_4_1.yml +16 -28
  59. data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_1.yml +16 -28
  60. data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_2.yml +16 -28
  61. data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_3.yml +13 -13
  62. data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml +20 -20
  63. data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml +20 -20
  64. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_1.yml +8 -14
  65. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_2.yml +8 -14
  66. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_3.yml +8 -14
  67. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_4.yml +8 -14
  68. data/spec/cassettes/FatZebra_DirectDebit/_create/validations/valid/1_1_5_1_1.yml +7 -13
  69. data/spec/cassettes/FatZebra_DirectDebit/_delete/1_4_1.yml +16 -28
  70. data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_1.yml +16 -28
  71. data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_2.yml +16 -28
  72. data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_3.yml +13 -13
  73. data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml +20 -20
  74. data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml +20 -20
  75. data/spec/cassettes/FatZebra_Information/_ping/1_1_1.yml +7 -13
  76. data/spec/cassettes/FatZebra_Information/_ping/1_1_2.yml +7 -13
  77. data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_1.yml +48 -48
  78. data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_2.yml +48 -48
  79. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_1.yml +20 -20
  80. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_2.yml +20 -20
  81. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_3.yml +20 -20
  82. data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_1.yml +28 -28
  83. data/spec/cassettes/FatZebra_PaymentPlan/_destroy/1_6_1.yml +28 -28
  84. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_1.yml +32 -32
  85. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_2.yml +32 -32
  86. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_3.yml +32 -32
  87. data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_1.yml +34 -34
  88. data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_2.yml +34 -34
  89. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_1.yml +28 -28
  90. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_2.yml +28 -28
  91. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml +28 -28
  92. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml +34 -34
  93. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml +34 -34
  94. data/spec/cassettes/FatZebra_Purchase/_create/1_1_1.yml +9 -15
  95. data/spec/cassettes/FatZebra_Purchase/_create/1_1_10.yml +9 -15
  96. data/spec/cassettes/FatZebra_Purchase/_create/1_1_11.yml +9 -15
  97. data/spec/cassettes/FatZebra_Purchase/_create/1_1_12.yml +9 -15
  98. data/spec/cassettes/FatZebra_Purchase/_create/1_1_13.yml +9 -15
  99. data/spec/cassettes/FatZebra_Purchase/_create/1_1_2.yml +9 -15
  100. data/spec/cassettes/FatZebra_Purchase/_create/1_1_3.yml +9 -15
  101. data/spec/cassettes/FatZebra_Purchase/_create/1_1_4.yml +9 -15
  102. data/spec/cassettes/FatZebra_Purchase/_create/1_1_5.yml +9 -15
  103. data/spec/cassettes/FatZebra_Purchase/_create/1_1_6.yml +9 -15
  104. data/spec/cassettes/FatZebra_Purchase/_create/1_1_7.yml +9 -15
  105. data/spec/cassettes/FatZebra_Purchase/_create/1_1_8.yml +9 -15
  106. data/spec/cassettes/FatZebra_Purchase/_create/1_1_9.yml +9 -15
  107. data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_1.yml +11 -17
  108. data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_2.yml +11 -17
  109. data/spec/cassettes/FatZebra_Purchase/_void/1_6_1.yml +18 -30
  110. data/spec/cassettes/FatZebra_Purchase/_void/1_6_2.yml +18 -30
  111. data/spec/cassettes/FatZebra_Purchase/_void/1_6_3.yml +18 -30
  112. data/spec/cassettes/FatZebra_Purchase/_void/1_6_4.yml +18 -30
  113. data/spec/cassettes/FatZebra_Purchase/_void/1_7_1.yml +18 -30
  114. data/spec/cassettes/FatZebra_Purchase/_void/1_7_2.yml +18 -30
  115. data/spec/cassettes/FatZebra_Purchase/_void/1_7_3.yml +18 -30
  116. data/spec/cassettes/FatZebra_Purchase/_void/1_7_4.yml +18 -30
  117. data/spec/cassettes/FatZebra_Refund/_create/1_1_1.yml +16 -16
  118. data/spec/cassettes/FatZebra_Refund/_create/1_1_10.yml +16 -16
  119. data/spec/cassettes/FatZebra_Refund/_create/1_1_2.yml +16 -16
  120. data/spec/cassettes/FatZebra_Refund/_create/1_1_3.yml +16 -16
  121. data/spec/cassettes/FatZebra_Refund/_create/1_1_4.yml +16 -16
  122. data/spec/cassettes/FatZebra_Refund/_create/1_1_5.yml +16 -16
  123. data/spec/cassettes/FatZebra_Refund/_create/1_1_6.yml +16 -16
  124. data/spec/cassettes/FatZebra_Refund/_create/1_1_7.yml +16 -16
  125. data/spec/cassettes/FatZebra_Refund/_create/1_1_8.yml +16 -16
  126. data/spec/cassettes/FatZebra_Refund/_create/1_1_9.yml +16 -16
  127. data/spec/cassettes/FatZebra_Refund/_find/1_2_1.yml +24 -24
  128. data/spec/cassettes/FatZebra_Refund/_find/1_2_2.yml +24 -24
  129. data/spec/cassettes/FatZebra_Refund/_find/1_2_3.yml +24 -24
  130. data/spec/cassettes/FatZebra_Refund/_search/responds_with_the_newly-created_refunds.yml +40 -40
  131. data/spec/cassettes/FatZebra_Refund/_void/1_4_1.yml +24 -24
  132. data/spec/cassettes/FatZebra_Refund/_void/1_4_2.yml +24 -24
  133. data/spec/cassettes/FatZebra_Refund/_void/1_4_3.yml +24 -24
  134. data/spec/cassettes/FatZebra_Refund/_void/1_4_4.yml +24 -24
  135. data/spec/cassettes/FatZebra_WebHook/_create/1_1_1.yml +7 -13
  136. data/spec/cassettes/FatZebra_WebHook/_create/1_1_2.yml +7 -13
  137. data/spec/cassettes/FatZebra_WebHook/_create/1_1_3.yml +7 -13
  138. data/spec/cassettes/FatZebra_WebHook/_delete/1_4_1.yml +15 -27
  139. data/spec/cassettes/FatZebra_WebHook/_search/1_2_1.yml +160 -133
  140. data/spec/cassettes/FatZebra_WebHook/_search/1_2_2.yml +162 -135
  141. data/spec/cassettes/FatZebra_WebHook/_update/1_3_1.yml +15 -27
  142. data/spec/cassettes/FatZebra_WebHook/_update/1_3_2.yml +15 -27
  143. data/spec/lib/fat_zebra/authorise_spec.rb +101 -0
  144. data/spec/lib/fat_zebra/purchase_spec.rb +3 -3
  145. data/spec/lib/fat_zebra/refund_spec.rb +1 -1
  146. data/spec/support/payloads.rb +42 -0
  147. metadata +13 -4
  148. data/spec/cassettes/FatZebra_DirectDebit/_create/validations/failed_with_non-float/1_1_5_3_1.yml +0 -52
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/customers
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"first_name":"Harrold","last_name":"Humphries","reference":"d9864aaf15db9667e37d2f81c6bf0a2f","email":"hhump@test.com","ip_address":"180.200.33.181","card":{"card_holder":"Harrold
8
+ string: '{"first_name":"Harrold","last_name":"Humphries","reference":"8b833ef1519d8c7e32943c85b3725c68","email":"hhump@test.com","ip_address":"180.200.33.181","card":{"card_holder":"Harrold
9
9
  Humphries Senior","card_number":"5123456789012346","expiry_date":"05/2023","cvv":"123"},"address":{"address":"1
10
10
  Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"test":true}'
11
11
  headers:
@@ -25,7 +25,7 @@ http_interactions:
25
25
  message: OK
26
26
  headers:
27
27
  Date:
28
- - Thu, 12 Jul 2018 03:20:57 GMT
28
+ - Mon, 29 Apr 2019 09:17:17 GMT
29
29
  Content-Type:
30
30
  - application/json; charset=utf-8
31
31
  Transfer-Encoding:
@@ -37,27 +37,27 @@ http_interactions:
37
37
  Cache-Control:
38
38
  - no-store
39
39
  X-Request-Version:
40
- - 1.16.9-3459@214bedf
40
+ - 1.16.9-3941@c1d8236
41
41
  X-Runtime:
42
- - '0.445334'
42
+ - '0.476457'
43
43
  Pragma:
44
44
  - no-cache
45
45
  X-Request-Id:
46
- - 1ccbffbf9471be3781e99179
46
+ - 72b213b40c0736e44ab66568
47
47
  X-Backend:
48
48
  - sbox-priv-gateway-a
49
49
  body:
50
50
  encoding: UTF-8
51
- string: '{"successful":true,"response":{"id":"071-C-8S6K05Y1","email":null,"reference":"d9864aaf15db9667e37d2f81c6bf0a2f","first_name":"Harrold","last_name":"Humphries","created_at":"2018-07-12T13:20:57+10:00","address":{"address":"1
52
- Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke83pp0","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
51
+ string: '{"successful":true,"response":{"id":"071-C-HSN6E22U","email":null,"reference":"8b833ef1519d8c7e32943c85b3725c68","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:17:16+10:00","address":{"address":"1
52
+ Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"06u4752fyciliw2tzynz","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
53
53
  http_version:
54
- recorded_at: Thu, 12 Jul 2018 03:20:57 GMT
54
+ recorded_at: Mon, 29 Apr 2019 09:17:17 GMT
55
55
  - request:
56
56
  method: post
57
57
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans
58
58
  body:
59
59
  encoding: UTF-8
60
- string: '{"payment_method":"Credit Card","customer":"071-C-8S6K05Y1","reference":"cc0fd20e5aede3aa3869e38b926c1e69","setup_fee":0,"amount":100,"start_date":"2018-10-10","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"test":true}'
60
+ string: '{"payment_method":"Credit Card","customer":"071-C-HSN6E22U","reference":"1837325e6d495250c063ec205bd27f67","setup_fee":0,"amount":100,"start_date":"2019-07-28","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"test":true}'
61
61
  headers:
62
62
  Accept-Encoding:
63
63
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -75,7 +75,7 @@ http_interactions:
75
75
  message: Created
76
76
  headers:
77
77
  Date:
78
- - Thu, 12 Jul 2018 03:20:58 GMT
78
+ - Mon, 29 Apr 2019 09:17:17 GMT
79
79
  Content-Type:
80
80
  - application/json; charset=utf-8
81
81
  Transfer-Encoding:
@@ -87,37 +87,37 @@ http_interactions:
87
87
  Cache-Control:
88
88
  - no-store
89
89
  X-Request-Version:
90
- - 1.16.9-3459@214bedf
90
+ - 1.16.9-3941@c1d8236
91
91
  X-Runtime:
92
- - '0.241804'
92
+ - '0.275908'
93
93
  Pragma:
94
94
  - no-cache
95
95
  X-Request-Id:
96
- - c407d3b938d5ce18a3e65523
96
+ - 44216bbca19b2858e8509290
97
97
  X-Backend:
98
98
  - sbox-priv-gateway-a
99
99
  body:
100
100
  encoding: UTF-8
101
- string: '{"successful":true,"response":{"id":"071-PP-2P2C1WZP","customer":"071-C-8S6K05Y1","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2018-10-10","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
102
- Card","reference":"cc0fd20e5aede3aa3869e38b926c1e69","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:58+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-93LIX06V","payment_plan":"071-PP-2P2C1WZP","reference":"cc0fd20e5aede3aa3869e38b926c1e69-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
103
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-PGLVHE1T","payment_plan":"071-PP-2P2C1WZP","reference":"cc0fd20e5aede3aa3869e38b926c1e69-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
104
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-V792T7ZI","payment_plan":"071-PP-2P2C1WZP","reference":"cc0fd20e5aede3aa3869e38b926c1e69-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
105
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-PEI8S7C3","payment_plan":"071-PP-2P2C1WZP","reference":"cc0fd20e5aede3aa3869e38b926c1e69-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
106
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-LSUD0N7N","payment_plan":"071-PP-2P2C1WZP","reference":"cc0fd20e5aede3aa3869e38b926c1e69-0005","amount":100,"currency":null,"scheduled_date":"2018-11-09","payment_method":"Credit
101
+ string: '{"successful":true,"response":{"id":"071-PP-JW42FXZU","customer":"071-C-HSN6E22U","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
102
+ Card","reference":"1837325e6d495250c063ec205bd27f67","description":null,"status":"Active","status_reason":"None","created_at":"2019-04-29T19:17:17+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-OSCP3Y2U","payment_plan":"071-PP-JW42FXZU","reference":"1837325e6d495250c063ec205bd27f67-0001","amount":100,"currency":null,"scheduled_date":"2019-08-02","payment_method":"Credit
103
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-HLXRDHRL","payment_plan":"071-PP-JW42FXZU","reference":"1837325e6d495250c063ec205bd27f67-0002","amount":100,"currency":null,"scheduled_date":"2019-08-09","payment_method":"Credit
104
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-A7NOZ788","payment_plan":"071-PP-JW42FXZU","reference":"1837325e6d495250c063ec205bd27f67-0003","amount":100,"currency":null,"scheduled_date":"2019-08-16","payment_method":"Credit
105
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-IH146WB5","payment_plan":"071-PP-JW42FXZU","reference":"1837325e6d495250c063ec205bd27f67-0004","amount":100,"currency":null,"scheduled_date":"2019-08-23","payment_method":"Credit
106
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-S4CFUH82","payment_plan":"071-PP-JW42FXZU","reference":"1837325e6d495250c063ec205bd27f67-0005","amount":100,"currency":null,"scheduled_date":"2019-08-30","payment_method":"Credit
107
107
  Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
108
108
  http_version:
109
- recorded_at: Thu, 12 Jul 2018 03:20:57 GMT
109
+ recorded_at: Mon, 29 Apr 2019 09:17:17 GMT
110
110
  - request:
111
111
  method: put
112
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-2P2C1WZP
112
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-JW42FXZU
113
113
  body:
114
114
  encoding: UTF-8
115
- string: '{"customer":"071-C-8S6K05Y1","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2018-10-10","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
116
- Card","reference":"cc0fd20e5aede3aa3869e38b926c1e69","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:58+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-93LIX06V","payment_plan":"071-PP-2P2C1WZP","reference":"cc0fd20e5aede3aa3869e38b926c1e69-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
117
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-PGLVHE1T","payment_plan":"071-PP-2P2C1WZP","reference":"cc0fd20e5aede3aa3869e38b926c1e69-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
118
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-V792T7ZI","payment_plan":"071-PP-2P2C1WZP","reference":"cc0fd20e5aede3aa3869e38b926c1e69-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
119
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-PEI8S7C3","payment_plan":"071-PP-2P2C1WZP","reference":"cc0fd20e5aede3aa3869e38b926c1e69-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
120
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-LSUD0N7N","payment_plan":"071-PP-2P2C1WZP","reference":"cc0fd20e5aede3aa3869e38b926c1e69-0005","amount":100,"currency":null,"scheduled_date":"2018-11-09","payment_method":"Credit
115
+ string: '{"customer":"071-C-HSN6E22U","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
116
+ Card","reference":"1837325e6d495250c063ec205bd27f67","description":null,"status":"Active","status_reason":"None","created_at":"2019-04-29T19:17:17+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-OSCP3Y2U","payment_plan":"071-PP-JW42FXZU","reference":"1837325e6d495250c063ec205bd27f67-0001","amount":100,"currency":null,"scheduled_date":"2019-08-02","payment_method":"Credit
117
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-HLXRDHRL","payment_plan":"071-PP-JW42FXZU","reference":"1837325e6d495250c063ec205bd27f67-0002","amount":100,"currency":null,"scheduled_date":"2019-08-09","payment_method":"Credit
118
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-A7NOZ788","payment_plan":"071-PP-JW42FXZU","reference":"1837325e6d495250c063ec205bd27f67-0003","amount":100,"currency":null,"scheduled_date":"2019-08-16","payment_method":"Credit
119
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-IH146WB5","payment_plan":"071-PP-JW42FXZU","reference":"1837325e6d495250c063ec205bd27f67-0004","amount":100,"currency":null,"scheduled_date":"2019-08-23","payment_method":"Credit
120
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-S4CFUH82","payment_plan":"071-PP-JW42FXZU","reference":"1837325e6d495250c063ec205bd27f67-0005","amount":100,"currency":null,"scheduled_date":"2019-08-30","payment_method":"Credit
121
121
  Card","status":"Scheduled","result":null,"records":[]}],"new_status":"Suspended","test":true}'
122
122
  headers:
123
123
  Accept-Encoding:
@@ -136,7 +136,7 @@ http_interactions:
136
136
  message: OK
137
137
  headers:
138
138
  Date:
139
- - Thu, 12 Jul 2018 03:20:58 GMT
139
+ - Mon, 29 Apr 2019 09:17:17 GMT
140
140
  Content-Type:
141
141
  - application/json; charset=utf-8
142
142
  Transfer-Encoding:
@@ -148,19 +148,19 @@ http_interactions:
148
148
  Cache-Control:
149
149
  - no-store
150
150
  X-Request-Version:
151
- - 1.16.9-3459@214bedf
151
+ - 1.16.9-3941@c1d8236
152
152
  X-Runtime:
153
- - '0.132040'
153
+ - '0.143026'
154
154
  Pragma:
155
155
  - no-cache
156
156
  X-Request-Id:
157
- - 47f455a78aab8174bc03cdc2
157
+ - 3d59d8609efcaf64c72b18f0
158
158
  X-Backend:
159
159
  - sbox-priv-gateway-a
160
160
  body:
161
161
  encoding: UTF-8
162
- string: '{"successful":true,"response":{"id":"071-PP-2P2C1WZP","customer":"071-C-8S6K05Y1","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2018-10-10","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
163
- Card","reference":"cc0fd20e5aede3aa3869e38b926c1e69","description":null,"status":"Suspended","status_reason":"Other","created_at":"2018-07-12T13:20:58+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
162
+ string: '{"successful":true,"response":{"id":"071-PP-JW42FXZU","customer":"071-C-HSN6E22U","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
163
+ Card","reference":"1837325e6d495250c063ec205bd27f67","description":null,"status":"Suspended","status_reason":"Other","created_at":"2019-04-29T19:17:17+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
164
164
  http_version:
165
- recorded_at: Thu, 12 Jul 2018 03:20:57 GMT
165
+ recorded_at: Mon, 29 Apr 2019 09:17:17 GMT
166
166
  recorded_with: VCR 3.0.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/customers
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"first_name":"Harrold","last_name":"Humphries","reference":"86bd2ff29a2af402bda9c299735161c6","email":"hhump@test.com","ip_address":"180.200.33.181","card":{"card_holder":"Harrold
8
+ string: '{"first_name":"Harrold","last_name":"Humphries","reference":"68e4f742b151e8f0d6f164fa9ace3c55","email":"hhump@test.com","ip_address":"180.200.33.181","card":{"card_holder":"Harrold
9
9
  Humphries Senior","card_number":"5123456789012346","expiry_date":"05/2023","cvv":"123"},"address":{"address":"1
10
10
  Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"test":true}'
11
11
  headers:
@@ -25,7 +25,7 @@ http_interactions:
25
25
  message: OK
26
26
  headers:
27
27
  Date:
28
- - Thu, 12 Jul 2018 03:20:36 GMT
28
+ - Mon, 29 Apr 2019 09:17:07 GMT
29
29
  Content-Type:
30
30
  - application/json; charset=utf-8
31
31
  Transfer-Encoding:
@@ -37,27 +37,27 @@ http_interactions:
37
37
  Cache-Control:
38
38
  - no-store
39
39
  X-Request-Version:
40
- - 1.16.9-3459@214bedf
40
+ - 1.16.9-3941@c1d8236
41
41
  X-Runtime:
42
- - '0.439575'
42
+ - '0.439083'
43
43
  Pragma:
44
44
  - no-cache
45
45
  X-Request-Id:
46
- - b694fa905cba57e2c1a806f4
46
+ - aa9e43b637b20046b3d78698
47
47
  X-Backend:
48
48
  - sbox-priv-gateway-a
49
49
  body:
50
50
  encoding: UTF-8
51
- string: '{"successful":true,"response":{"id":"071-C-KQURPWNT","email":null,"reference":"86bd2ff29a2af402bda9c299735161c6","first_name":"Harrold","last_name":"Humphries","created_at":"2018-07-12T13:20:36+10:00","address":{"address":"1
52
- Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke8ogfk","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
51
+ string: '{"successful":true,"response":{"id":"071-C-S5UC2SFR","email":null,"reference":"68e4f742b151e8f0d6f164fa9ace3c55","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:17:07+10:00","address":{"address":"1
52
+ Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"rlupkdgvwoc27cbope2j","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
53
53
  http_version:
54
- recorded_at: Thu, 12 Jul 2018 03:20:35 GMT
54
+ recorded_at: Mon, 29 Apr 2019 09:17:07 GMT
55
55
  - request:
56
56
  method: post
57
57
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans
58
58
  body:
59
59
  encoding: UTF-8
60
- string: '{"payment_method":"Credit Card","customer":"071-C-KQURPWNT","reference":"4af1e77241ad47a3b992592f4696dfed","setup_fee":0,"amount":100,"start_date":"2018-10-10","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"test":true}'
60
+ string: '{"payment_method":"Credit Card","customer":"071-C-S5UC2SFR","reference":"da9d06a8469853ac8c9aee9038060e96","setup_fee":0,"amount":100,"start_date":"2019-07-28","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"test":true}'
61
61
  headers:
62
62
  Accept-Encoding:
63
63
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -75,7 +75,7 @@ http_interactions:
75
75
  message: Created
76
76
  headers:
77
77
  Date:
78
- - Thu, 12 Jul 2018 03:20:36 GMT
78
+ - Mon, 29 Apr 2019 09:17:08 GMT
79
79
  Content-Type:
80
80
  - application/json; charset=utf-8
81
81
  Transfer-Encoding:
@@ -87,29 +87,29 @@ http_interactions:
87
87
  Cache-Control:
88
88
  - no-store
89
89
  X-Request-Version:
90
- - 1.16.9-3459@214bedf
90
+ - 1.16.9-3941@c1d8236
91
91
  X-Runtime:
92
- - '0.249261'
92
+ - '0.347006'
93
93
  Pragma:
94
94
  - no-cache
95
95
  X-Request-Id:
96
- - 5cb0ba01ad71a37bf620b4f5
96
+ - 1a93687414493ff0bb48e7d0
97
97
  X-Backend:
98
98
  - sbox-priv-gateway-a
99
99
  body:
100
100
  encoding: UTF-8
101
- string: '{"successful":true,"response":{"id":"071-PP-EP8C7XO0","customer":"071-C-KQURPWNT","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2018-10-10","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
102
- Card","reference":"4af1e77241ad47a3b992592f4696dfed","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:36+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-PCAZIUNU","payment_plan":"071-PP-EP8C7XO0","reference":"4af1e77241ad47a3b992592f4696dfed-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
103
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-2CD5VZDV","payment_plan":"071-PP-EP8C7XO0","reference":"4af1e77241ad47a3b992592f4696dfed-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
104
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-PTGZ3LO6","payment_plan":"071-PP-EP8C7XO0","reference":"4af1e77241ad47a3b992592f4696dfed-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
105
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-EQYGD7O0","payment_plan":"071-PP-EP8C7XO0","reference":"4af1e77241ad47a3b992592f4696dfed-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
106
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-VJY8M3ZO","payment_plan":"071-PP-EP8C7XO0","reference":"4af1e77241ad47a3b992592f4696dfed-0005","amount":100,"currency":null,"scheduled_date":"2018-11-09","payment_method":"Credit
101
+ string: '{"successful":true,"response":{"id":"071-PP-L2354V1J","customer":"071-C-S5UC2SFR","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
102
+ Card","reference":"da9d06a8469853ac8c9aee9038060e96","description":null,"status":"Active","status_reason":"None","created_at":"2019-04-29T19:17:07+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-FWFJGVWA","payment_plan":"071-PP-L2354V1J","reference":"da9d06a8469853ac8c9aee9038060e96-0001","amount":100,"currency":null,"scheduled_date":"2019-08-02","payment_method":"Credit
103
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-YKFRZ23R","payment_plan":"071-PP-L2354V1J","reference":"da9d06a8469853ac8c9aee9038060e96-0002","amount":100,"currency":null,"scheduled_date":"2019-08-09","payment_method":"Credit
104
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-71QJLIJY","payment_plan":"071-PP-L2354V1J","reference":"da9d06a8469853ac8c9aee9038060e96-0003","amount":100,"currency":null,"scheduled_date":"2019-08-16","payment_method":"Credit
105
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-YYBWUB8Y","payment_plan":"071-PP-L2354V1J","reference":"da9d06a8469853ac8c9aee9038060e96-0004","amount":100,"currency":null,"scheduled_date":"2019-08-23","payment_method":"Credit
106
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-1A4HRMZO","payment_plan":"071-PP-L2354V1J","reference":"da9d06a8469853ac8c9aee9038060e96-0005","amount":100,"currency":null,"scheduled_date":"2019-08-30","payment_method":"Credit
107
107
  Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
108
108
  http_version:
109
- recorded_at: Thu, 12 Jul 2018 03:20:36 GMT
109
+ recorded_at: Mon, 29 Apr 2019 09:17:08 GMT
110
110
  - request:
111
111
  method: put
112
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-EP8C7XO0
112
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-L2354V1J
113
113
  body:
114
114
  encoding: UTF-8
115
115
  string: '{"new_status":"Suspended","test":true}'
@@ -130,7 +130,7 @@ http_interactions:
130
130
  message: OK
131
131
  headers:
132
132
  Date:
133
- - Thu, 12 Jul 2018 03:20:37 GMT
133
+ - Mon, 29 Apr 2019 09:17:08 GMT
134
134
  Content-Type:
135
135
  - application/json; charset=utf-8
136
136
  Transfer-Encoding:
@@ -142,19 +142,19 @@ http_interactions:
142
142
  Cache-Control:
143
143
  - no-store
144
144
  X-Request-Version:
145
- - 1.16.9-3459@214bedf
145
+ - 1.16.9-3941@c1d8236
146
146
  X-Runtime:
147
- - '0.148689'
147
+ - '0.216752'
148
148
  Pragma:
149
149
  - no-cache
150
150
  X-Request-Id:
151
- - 99b01ca22c7cf23190e36000
151
+ - 51a390a269050cae33d9b0ac
152
152
  X-Backend:
153
153
  - sbox-priv-gateway-a
154
154
  body:
155
155
  encoding: UTF-8
156
- string: '{"successful":true,"response":{"id":"071-PP-EP8C7XO0","customer":"071-C-KQURPWNT","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2018-10-10","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
157
- Card","reference":"4af1e77241ad47a3b992592f4696dfed","description":null,"status":"Suspended","status_reason":"Other","created_at":"2018-07-12T13:20:36+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
156
+ string: '{"successful":true,"response":{"id":"071-PP-L2354V1J","customer":"071-C-S5UC2SFR","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
157
+ Card","reference":"da9d06a8469853ac8c9aee9038060e96","description":null,"status":"Suspended","status_reason":"Other","created_at":"2019-04-29T19:17:07+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
158
158
  http_version:
159
- recorded_at: Thu, 12 Jul 2018 03:20:37 GMT
159
+ recorded_at: Mon, 29 Apr 2019 09:17:08 GMT
160
160
  recorded_with: VCR 3.0.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/customers
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"first_name":"Harrold","last_name":"Humphries","reference":"4e12a52a1540d95b32650750cb5d869c","email":"hhump@test.com","ip_address":"180.200.33.181","card":{"card_holder":"Harrold
8
+ string: '{"first_name":"Harrold","last_name":"Humphries","reference":"ed13db3b7a1337b42c5e6b5bd8f060a0","email":"hhump@test.com","ip_address":"180.200.33.181","card":{"card_holder":"Harrold
9
9
  Humphries Senior","card_number":"5123456789012346","expiry_date":"05/2023","cvv":"123"},"address":{"address":"1
10
10
  Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"test":true}'
11
11
  headers:
@@ -25,7 +25,7 @@ http_interactions:
25
25
  message: OK
26
26
  headers:
27
27
  Date:
28
- - Thu, 12 Jul 2018 03:20:38 GMT
28
+ - Mon, 29 Apr 2019 09:17:09 GMT
29
29
  Content-Type:
30
30
  - application/json; charset=utf-8
31
31
  Transfer-Encoding:
@@ -37,27 +37,27 @@ http_interactions:
37
37
  Cache-Control:
38
38
  - no-store
39
39
  X-Request-Version:
40
- - 1.16.9-3459@214bedf
40
+ - 1.16.9-3941@c1d8236
41
41
  X-Runtime:
42
- - '0.454033'
42
+ - '0.456193'
43
43
  Pragma:
44
44
  - no-cache
45
45
  X-Request-Id:
46
- - c1c21530a2b280fc0bfef149
46
+ - a8ea02d474d5d7b0af7f9c68
47
47
  X-Backend:
48
48
  - sbox-priv-gateway-a
49
49
  body:
50
50
  encoding: UTF-8
51
- string: '{"successful":true,"response":{"id":"071-C-X1NFA2UX","email":null,"reference":"4e12a52a1540d95b32650750cb5d869c","first_name":"Harrold","last_name":"Humphries","created_at":"2018-07-12T13:20:38+10:00","address":{"address":"1
52
- Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke8a9hs","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
51
+ string: '{"successful":true,"response":{"id":"071-C-YV0KC8Q6","email":null,"reference":"ed13db3b7a1337b42c5e6b5bd8f060a0","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:17:08+10:00","address":{"address":"1
52
+ Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"wzh9d38q1hjoe8485n86","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
53
53
  http_version:
54
- recorded_at: Thu, 12 Jul 2018 03:20:37 GMT
54
+ recorded_at: Mon, 29 Apr 2019 09:17:09 GMT
55
55
  - request:
56
56
  method: post
57
57
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans
58
58
  body:
59
59
  encoding: UTF-8
60
- string: '{"payment_method":"Credit Card","customer":"071-C-X1NFA2UX","reference":"f16dd1b3c039e9b4842003ab4eec4837","setup_fee":0,"amount":100,"start_date":"2018-10-10","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"test":true}'
60
+ string: '{"payment_method":"Credit Card","customer":"071-C-YV0KC8Q6","reference":"f1bc27225b059d338c628c9fb7dc5e1e","setup_fee":0,"amount":100,"start_date":"2019-07-28","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"test":true}'
61
61
  headers:
62
62
  Accept-Encoding:
63
63
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -75,7 +75,7 @@ http_interactions:
75
75
  message: Created
76
76
  headers:
77
77
  Date:
78
- - Thu, 12 Jul 2018 03:20:39 GMT
78
+ - Mon, 29 Apr 2019 09:17:09 GMT
79
79
  Content-Type:
80
80
  - application/json; charset=utf-8
81
81
  Transfer-Encoding:
@@ -87,29 +87,29 @@ http_interactions:
87
87
  Cache-Control:
88
88
  - no-store
89
89
  X-Request-Version:
90
- - 1.16.9-3459@214bedf
90
+ - 1.16.9-3941@c1d8236
91
91
  X-Runtime:
92
- - '0.249886'
92
+ - '0.278268'
93
93
  Pragma:
94
94
  - no-cache
95
95
  X-Request-Id:
96
- - 4969c83af1f7f92a4c9053ef
96
+ - d3388fe45bb16a2c08b0fb84
97
97
  X-Backend:
98
98
  - sbox-priv-gateway-a
99
99
  body:
100
100
  encoding: UTF-8
101
- string: '{"successful":true,"response":{"id":"071-PP-98RFR915","customer":"071-C-X1NFA2UX","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2018-10-10","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
102
- Card","reference":"f16dd1b3c039e9b4842003ab4eec4837","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:38+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-A2GW3R0A","payment_plan":"071-PP-98RFR915","reference":"f16dd1b3c039e9b4842003ab4eec4837-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
103
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-MTLYB5QA","payment_plan":"071-PP-98RFR915","reference":"f16dd1b3c039e9b4842003ab4eec4837-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
104
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-PWO9RPRU","payment_plan":"071-PP-98RFR915","reference":"f16dd1b3c039e9b4842003ab4eec4837-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
105
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-6YF48OYV","payment_plan":"071-PP-98RFR915","reference":"f16dd1b3c039e9b4842003ab4eec4837-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
106
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-PLA0K2YW","payment_plan":"071-PP-98RFR915","reference":"f16dd1b3c039e9b4842003ab4eec4837-0005","amount":100,"currency":null,"scheduled_date":"2018-11-09","payment_method":"Credit
101
+ string: '{"successful":true,"response":{"id":"071-PP-GB22YQY2","customer":"071-C-YV0KC8Q6","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
102
+ Card","reference":"f1bc27225b059d338c628c9fb7dc5e1e","description":null,"status":"Active","status_reason":"None","created_at":"2019-04-29T19:17:09+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-ZIN0WVAR","payment_plan":"071-PP-GB22YQY2","reference":"f1bc27225b059d338c628c9fb7dc5e1e-0001","amount":100,"currency":null,"scheduled_date":"2019-08-02","payment_method":"Credit
103
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-ZGZG11BP","payment_plan":"071-PP-GB22YQY2","reference":"f1bc27225b059d338c628c9fb7dc5e1e-0002","amount":100,"currency":null,"scheduled_date":"2019-08-09","payment_method":"Credit
104
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-JYHGSZBR","payment_plan":"071-PP-GB22YQY2","reference":"f1bc27225b059d338c628c9fb7dc5e1e-0003","amount":100,"currency":null,"scheduled_date":"2019-08-16","payment_method":"Credit
105
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-AMX4BXG8","payment_plan":"071-PP-GB22YQY2","reference":"f1bc27225b059d338c628c9fb7dc5e1e-0004","amount":100,"currency":null,"scheduled_date":"2019-08-23","payment_method":"Credit
106
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-R483N5BD","payment_plan":"071-PP-GB22YQY2","reference":"f1bc27225b059d338c628c9fb7dc5e1e-0005","amount":100,"currency":null,"scheduled_date":"2019-08-30","payment_method":"Credit
107
107
  Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
108
108
  http_version:
109
- recorded_at: Thu, 12 Jul 2018 03:20:38 GMT
109
+ recorded_at: Mon, 29 Apr 2019 09:17:09 GMT
110
110
  - request:
111
111
  method: put
112
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-98RFR915
112
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-GB22YQY2
113
113
  body:
114
114
  encoding: UTF-8
115
115
  string: '{"new_status":"Suspended","test":true}'
@@ -130,7 +130,7 @@ http_interactions:
130
130
  message: OK
131
131
  headers:
132
132
  Date:
133
- - Thu, 12 Jul 2018 03:20:39 GMT
133
+ - Mon, 29 Apr 2019 09:17:09 GMT
134
134
  Content-Type:
135
135
  - application/json; charset=utf-8
136
136
  Transfer-Encoding:
@@ -142,19 +142,19 @@ http_interactions:
142
142
  Cache-Control:
143
143
  - no-store
144
144
  X-Request-Version:
145
- - 1.16.9-3459@214bedf
145
+ - 1.16.9-3941@c1d8236
146
146
  X-Runtime:
147
- - '0.123866'
147
+ - '0.128665'
148
148
  Pragma:
149
149
  - no-cache
150
150
  X-Request-Id:
151
- - ae00499587b1752d603ee127
151
+ - 4ea36df469395df0db62d050
152
152
  X-Backend:
153
153
  - sbox-priv-gateway-a
154
154
  body:
155
155
  encoding: UTF-8
156
- string: '{"successful":true,"response":{"id":"071-PP-98RFR915","customer":"071-C-X1NFA2UX","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2018-10-10","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
157
- Card","reference":"f16dd1b3c039e9b4842003ab4eec4837","description":null,"status":"Suspended","status_reason":"Other","created_at":"2018-07-12T13:20:38+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
156
+ string: '{"successful":true,"response":{"id":"071-PP-GB22YQY2","customer":"071-C-YV0KC8Q6","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
157
+ Card","reference":"f1bc27225b059d338c628c9fb7dc5e1e","description":null,"status":"Suspended","status_reason":"Other","created_at":"2019-04-29T19:17:09+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
158
158
  http_version:
159
- recorded_at: Thu, 12 Jul 2018 03:20:39 GMT
159
+ recorded_at: Mon, 29 Apr 2019 09:17:09 GMT
160
160
  recorded_with: VCR 3.0.3
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/customers
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"first_name":"Harrold","last_name":"Humphries","reference":"b936c129068e8609ecf222e9a16cf0ff","email":"hhump@test.com","ip_address":"180.200.33.181","card":{"card_holder":"Harrold
8
+ string: '{"first_name":"Harrold","last_name":"Humphries","reference":"cbb5ef096f634a90506a542c7233acef","email":"hhump@test.com","ip_address":"180.200.33.181","card":{"card_holder":"Harrold
9
9
  Humphries Senior","card_number":"5123456789012346","expiry_date":"05/2023","cvv":"123"},"address":{"address":"1
10
10
  Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"test":true}'
11
11
  headers:
@@ -25,7 +25,7 @@ http_interactions:
25
25
  message: OK
26
26
  headers:
27
27
  Date:
28
- - Thu, 12 Jul 2018 03:20:41 GMT
28
+ - Mon, 29 Apr 2019 09:17:10 GMT
29
29
  Content-Type:
30
30
  - application/json; charset=utf-8
31
31
  Transfer-Encoding:
@@ -37,27 +37,27 @@ http_interactions:
37
37
  Cache-Control:
38
38
  - no-store
39
39
  X-Request-Version:
40
- - 1.16.9-3459@214bedf
40
+ - 1.16.9-3941@c1d8236
41
41
  X-Runtime:
42
- - '0.460807'
42
+ - '0.433573'
43
43
  Pragma:
44
44
  - no-cache
45
45
  X-Request-Id:
46
- - 65c8a66e05ca49117afb83f8
46
+ - 49a3ab4c8ffcfa2cd327d918
47
47
  X-Backend:
48
48
  - sbox-priv-gateway-a
49
49
  body:
50
50
  encoding: UTF-8
51
- string: '{"successful":true,"response":{"id":"071-C-LCF26DLD","email":null,"reference":"b936c129068e8609ecf222e9a16cf0ff","first_name":"Harrold","last_name":"Humphries","created_at":"2018-07-12T13:20:40+10:00","address":{"address":"1
52
- Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke8uf3e","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
51
+ string: '{"successful":true,"response":{"id":"071-C-NO0K1ST","email":null,"reference":"cbb5ef096f634a90506a542c7233acef","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:17:09+10:00","address":{"address":"1
52
+ Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"15z2gtb7wzekn8lw1q1u","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
53
53
  http_version:
54
- recorded_at: Thu, 12 Jul 2018 03:20:40 GMT
54
+ recorded_at: Mon, 29 Apr 2019 09:17:10 GMT
55
55
  - request:
56
56
  method: post
57
57
  uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans
58
58
  body:
59
59
  encoding: UTF-8
60
- string: '{"payment_method":"Credit Card","customer":"071-C-LCF26DLD","reference":"758646dc116d47d2978d33aa2d75e78e","setup_fee":0,"amount":100,"start_date":"2018-10-10","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"test":true}'
60
+ string: '{"payment_method":"Credit Card","customer":"071-C-NO0K1ST","reference":"20ca5d8ec4a119ddaf4729454b9328e1","setup_fee":0,"amount":100,"start_date":"2019-07-28","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"test":true}'
61
61
  headers:
62
62
  Accept-Encoding:
63
63
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -75,7 +75,7 @@ http_interactions:
75
75
  message: Created
76
76
  headers:
77
77
  Date:
78
- - Thu, 12 Jul 2018 03:20:42 GMT
78
+ - Mon, 29 Apr 2019 09:17:10 GMT
79
79
  Content-Type:
80
80
  - application/json; charset=utf-8
81
81
  Transfer-Encoding:
@@ -87,29 +87,29 @@ http_interactions:
87
87
  Cache-Control:
88
88
  - no-store
89
89
  X-Request-Version:
90
- - 1.16.9-3459@214bedf
90
+ - 1.16.9-3941@c1d8236
91
91
  X-Runtime:
92
- - '0.258762'
92
+ - '0.259474'
93
93
  Pragma:
94
94
  - no-cache
95
95
  X-Request-Id:
96
- - e054b0a9159030d0c345221a
96
+ - b4dfa103d932127c27372e4f
97
97
  X-Backend:
98
98
  - sbox-priv-gateway-a
99
99
  body:
100
100
  encoding: UTF-8
101
- string: '{"successful":true,"response":{"id":"071-PP-67WFO2N2","customer":"071-C-LCF26DLD","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2018-10-10","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
102
- Card","reference":"758646dc116d47d2978d33aa2d75e78e","description":null,"status":"Active","status_reason":"None","created_at":"2018-07-12T13:20:41+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-P6LT8GPZ","payment_plan":"071-PP-67WFO2N2","reference":"758646dc116d47d2978d33aa2d75e78e-0001","amount":100,"currency":null,"scheduled_date":"2018-10-12","payment_method":"Credit
103
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-MC8A1MNN","payment_plan":"071-PP-67WFO2N2","reference":"758646dc116d47d2978d33aa2d75e78e-0002","amount":100,"currency":null,"scheduled_date":"2018-10-19","payment_method":"Credit
104
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-7KTNC7PJ","payment_plan":"071-PP-67WFO2N2","reference":"758646dc116d47d2978d33aa2d75e78e-0003","amount":100,"currency":null,"scheduled_date":"2018-10-26","payment_method":"Credit
105
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-EHV34CZG","payment_plan":"071-PP-67WFO2N2","reference":"758646dc116d47d2978d33aa2d75e78e-0004","amount":100,"currency":null,"scheduled_date":"2018-11-02","payment_method":"Credit
106
- Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-CJZ0JBZW","payment_plan":"071-PP-67WFO2N2","reference":"758646dc116d47d2978d33aa2d75e78e-0005","amount":100,"currency":null,"scheduled_date":"2018-11-09","payment_method":"Credit
101
+ string: '{"successful":true,"response":{"id":"071-PP-9EXAB6WM","customer":"071-C-NO0K1ST","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
102
+ Card","reference":"20ca5d8ec4a119ddaf4729454b9328e1","description":null,"status":"Active","status_reason":"None","created_at":"2019-04-29T19:17:10+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-LWWOLUKE","payment_plan":"071-PP-9EXAB6WM","reference":"20ca5d8ec4a119ddaf4729454b9328e1-0001","amount":100,"currency":null,"scheduled_date":"2019-08-02","payment_method":"Credit
103
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-OMWCQ30","payment_plan":"071-PP-9EXAB6WM","reference":"20ca5d8ec4a119ddaf4729454b9328e1-0002","amount":100,"currency":null,"scheduled_date":"2019-08-09","payment_method":"Credit
104
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-IIZVQ9V6","payment_plan":"071-PP-9EXAB6WM","reference":"20ca5d8ec4a119ddaf4729454b9328e1-0003","amount":100,"currency":null,"scheduled_date":"2019-08-16","payment_method":"Credit
105
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-FGVB7R9F","payment_plan":"071-PP-9EXAB6WM","reference":"20ca5d8ec4a119ddaf4729454b9328e1-0004","amount":100,"currency":null,"scheduled_date":"2019-08-23","payment_method":"Credit
106
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-7EKVEETC","payment_plan":"071-PP-9EXAB6WM","reference":"20ca5d8ec4a119ddaf4729454b9328e1-0005","amount":100,"currency":null,"scheduled_date":"2019-08-30","payment_method":"Credit
107
107
  Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
108
108
  http_version:
109
- recorded_at: Thu, 12 Jul 2018 03:20:41 GMT
109
+ recorded_at: Mon, 29 Apr 2019 09:17:10 GMT
110
110
  - request:
111
111
  method: put
112
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-67WFO2N2
112
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-9EXAB6WM
113
113
  body:
114
114
  encoding: UTF-8
115
115
  string: '{"new_status":"Suspended","test":true}'
@@ -130,7 +130,7 @@ http_interactions:
130
130
  message: OK
131
131
  headers:
132
132
  Date:
133
- - Thu, 12 Jul 2018 03:20:42 GMT
133
+ - Mon, 29 Apr 2019 09:17:10 GMT
134
134
  Content-Type:
135
135
  - application/json; charset=utf-8
136
136
  Transfer-Encoding:
@@ -142,19 +142,19 @@ http_interactions:
142
142
  Cache-Control:
143
143
  - no-store
144
144
  X-Request-Version:
145
- - 1.16.9-3459@214bedf
145
+ - 1.16.9-3941@c1d8236
146
146
  X-Runtime:
147
- - '0.117293'
147
+ - '0.153423'
148
148
  Pragma:
149
149
  - no-cache
150
150
  X-Request-Id:
151
- - a1fcb79df0a6cd5dc7a9abf2
151
+ - aed71068fdda2df4f8f9c24c
152
152
  X-Backend:
153
153
  - sbox-priv-gateway-a
154
154
  body:
155
155
  encoding: UTF-8
156
- string: '{"successful":true,"response":{"id":"071-PP-67WFO2N2","customer":"071-C-LCF26DLD","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2018-10-10","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
157
- Card","reference":"758646dc116d47d2978d33aa2d75e78e","description":null,"status":"Suspended","status_reason":"Other","created_at":"2018-07-12T13:20:41+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
156
+ string: '{"successful":true,"response":{"id":"071-PP-9EXAB6WM","customer":"071-C-NO0K1ST","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
157
+ Card","reference":"20ca5d8ec4a119ddaf4729454b9328e1","description":null,"status":"Suspended","status_reason":"Other","created_at":"2019-04-29T19:17:10+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
158
158
  http_version:
159
- recorded_at: Thu, 12 Jul 2018 03:20:41 GMT
159
+ recorded_at: Mon, 29 Apr 2019 09:17:10 GMT
160
160
  recorded_with: VCR 3.0.3