fat_zebra_multi 3.1.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 (57) 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 +5 -4
  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 -0
  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_Paypal_Authorization/_find/when_found/returns_authorization.yml +46 -0
  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_Paypal_Refund/_find/when_found/returns_refund.yml +47 -0
  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 +4 -3
  56. data/spec/support/payloads.rb +135 -0
  57. metadata +70 -10
metadata CHANGED
@@ -1,15 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fat_zebra_multi
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.1
4
+ version: 3.2.3.2
5
5
  platform: ruby
6
6
  authors:
7
- - Matthew Savage
7
+ - Fat Zebra
8
+ - Aidan Samuel
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2019-06-04 00:00:00.000000000 Z
12
+ date: 2022-03-01 00:00:00.000000000 Z
12
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: byebug
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
13
28
  - !ruby/object:Gem::Dependency
14
29
  name: pry
15
30
  requirement: !ruby/object:Gem::Requirement
@@ -94,10 +109,12 @@ dependencies:
94
109
  - - "~>"
95
110
  - !ruby/object:Gem::Version
96
111
  version: '3.0'
97
- description: Provides integration with the Fat Zebra internet payment gateway (www.fatzebra.com.au),
98
- including purchase, refund, auth, capture and recurring billing functionality.
112
+ description: Unofficial fork. Integrate with the Fat Zebra internet payment gateway
113
+ (www.fatzebra.com.au), including purchase, refund, auth, capture and recurring billing
114
+ functionality.
99
115
  email:
100
- - matt@amasses.net
116
+ - support@fatzebra.com
117
+ - aidan.samuel@supporterhub.com
101
118
  executables: []
102
119
  extensions: []
103
120
  extra_rdoc_files: []
@@ -118,6 +135,7 @@ files:
118
135
  - lib/fat_zebra/api_operation/search.rb
119
136
  - lib/fat_zebra/api_operation/void.rb
120
137
  - lib/fat_zebra/api_resource.rb
138
+ - lib/fat_zebra/authenticate.rb
121
139
  - lib/fat_zebra/bank_account.rb
122
140
  - lib/fat_zebra/batch.rb
123
141
  - lib/fat_zebra/card.rb
@@ -130,6 +148,11 @@ files:
130
148
  - lib/fat_zebra/information.rb
131
149
  - lib/fat_zebra/object_helper.rb
132
150
  - lib/fat_zebra/payment_plan.rb
151
+ - lib/fat_zebra/paypal/authorization.rb
152
+ - lib/fat_zebra/paypal/billing_agreement.rb
153
+ - lib/fat_zebra/paypal/capture.rb
154
+ - lib/fat_zebra/paypal/order.rb
155
+ - lib/fat_zebra/paypal/refund.rb
133
156
  - lib/fat_zebra/purchase.rb
134
157
  - lib/fat_zebra/refund.rb
135
158
  - lib/fat_zebra/request.rb
@@ -142,6 +165,22 @@ files:
142
165
  - lib/fat_zebra/validation.rb
143
166
  - lib/fat_zebra/version.rb
144
167
  - lib/fat_zebra/web_hook.rb
168
+ - spec/cassettes/FatZebra_Authenticate/_authenticate/validations/1_3_5_1.yml
169
+ - spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_1.yml
170
+ - spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_2.yml
171
+ - spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_1.yml
172
+ - spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_2.yml
173
+ - spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_1.yml
174
+ - spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_2.yml
175
+ - spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_3.yml
176
+ - spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_4.yml
177
+ - spec/cassettes/FatZebra_Authenticate/_authenticate/with_type_validation/1_3_4_1.yml
178
+ - spec/cassettes/FatZebra_Authenticate/_decode_session/when_token_is_invalid/returns_error_when_invalid_token.yml
179
+ - spec/cassettes/FatZebra_Authenticate/_decode_session/when_token_is_valid/decodes_JWT.yml
180
+ - spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_given_params.yml
181
+ - spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_no_amount.yml
182
+ - spec/cassettes/FatZebra_Authenticate/_session/returns_error_when_amount_is_invalid.yml
183
+ - spec/cassettes/FatZebra_Authenticate/_session/returns_error_when_currency_is_invalid.yml
145
184
  - spec/cassettes/FatZebra_BankAccount/_create/1_1_1.yml
146
185
  - spec/cassettes/FatZebra_BankAccount/_create/1_1_2.yml
147
186
  - spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml
@@ -163,6 +202,8 @@ files:
163
202
  - spec/cassettes/FatZebra_Card/_create/1_1_4.yml
164
203
  - spec/cassettes/FatZebra_Card/_create/1_1_5.yml
165
204
  - spec/cassettes/FatZebra_Card/_create/1_1_6.yml
205
+ - spec/cassettes/FatZebra_Card/_find/1_3_1.yml
206
+ - spec/cassettes/FatZebra_Card/_find/1_3_2.yml
166
207
  - spec/cassettes/FatZebra_Card/_update/1_2_1.yml
167
208
  - spec/cassettes/FatZebra_Card/_update/1_2_2.yml
168
209
  - spec/cassettes/FatZebra_Card/_update/1_2_3.yml
@@ -222,6 +263,20 @@ files:
222
263
  - spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml
223
264
  - spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml
224
265
  - spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml
266
+ - spec/cassettes/FatZebra_Paypal_Authorization/_capture/returns_a_new_capture_record.yml
267
+ - spec/cassettes/FatZebra_Paypal_Authorization/_find/when_found/returns_authorization.yml
268
+ - spec/cassettes/FatZebra_Paypal_Authorization/_search/with_date_filter/returns_records_created_after_start_date.yml
269
+ - spec/cassettes/FatZebra_Paypal_Authorization/_void/returns_a_voided_capture_record.yml
270
+ - spec/cassettes/FatZebra_Paypal_BillingAgreement/_charge/Valid_payload/returns_a_new_order_record.yml
271
+ - spec/cassettes/FatZebra_Paypal_BillingAgreement/_find/when_found/returns_billing_agreement.yml
272
+ - spec/cassettes/FatZebra_Paypal_BillingAgreement/_search/with_date_filter/returns_records_created_after_start_date.yml
273
+ - spec/cassettes/FatZebra_Paypal_Capture/_find/when_found/returns_capture.yml
274
+ - spec/cassettes/FatZebra_Paypal_Capture/_refund/returns_a_new_refund_record.yml
275
+ - spec/cassettes/FatZebra_Paypal_Capture/_search/with_date_filter/returns_records_created_after_start_date.yml
276
+ - spec/cassettes/FatZebra_Paypal_Order/_find/when_found/returns_order.yml
277
+ - spec/cassettes/FatZebra_Paypal_Order/_search/with_date_filter/returns_orders_created_after_start_date.yml
278
+ - spec/cassettes/FatZebra_Paypal_Refund/_find/when_found/returns_refund.yml
279
+ - spec/cassettes/FatZebra_Paypal_Refund/_search/with_date_filter/returns_all_refund_records_created_after_start_date.yml
225
280
  - spec/cassettes/FatZebra_Purchase/_capture/1_5_1.yml
226
281
  - spec/cassettes/FatZebra_Purchase/_capture/1_5_2.yml
227
282
  - spec/cassettes/FatZebra_Purchase/_capture/1_5_3.yml
@@ -291,6 +346,7 @@ files:
291
346
  - spec/cassettes/Multiple_accounts/The_basics/1_1_6.yml
292
347
  - spec/fixtures/batch_test.csv
293
348
  - spec/lib/fat_zebra/api_resource_spec.rb
349
+ - spec/lib/fat_zebra/authenticate_spec.rb
294
350
  - spec/lib/fat_zebra/bank_account_spec.rb
295
351
  - spec/lib/fat_zebra/batch_spec.rb
296
352
  - spec/lib/fat_zebra/card_spec.rb
@@ -302,6 +358,11 @@ files:
302
358
  - spec/lib/fat_zebra/information_spec.rb
303
359
  - spec/lib/fat_zebra/multiple_accounts_spec.rb
304
360
  - spec/lib/fat_zebra/payment_plan_spec.rb
361
+ - spec/lib/fat_zebra/paypal/authorization_spec.rb
362
+ - spec/lib/fat_zebra/paypal/billing_agreement_spec.rb
363
+ - spec/lib/fat_zebra/paypal/capture_spec.rb
364
+ - spec/lib/fat_zebra/paypal/order_spec.rb
365
+ - spec/lib/fat_zebra/paypal/refund_spec.rb
305
366
  - spec/lib/fat_zebra/purchase_spec.rb
306
367
  - spec/lib/fat_zebra/refund_spec.rb
307
368
  - spec/lib/fat_zebra/request_spec.rb
@@ -320,17 +381,16 @@ require_paths:
320
381
  - lib
321
382
  required_ruby_version: !ruby/object:Gem::Requirement
322
383
  requirements:
323
- - - "~>"
384
+ - - ">="
324
385
  - !ruby/object:Gem::Version
325
- version: '2.3'
386
+ version: 2.3.0
326
387
  required_rubygems_version: !ruby/object:Gem::Requirement
327
388
  requirements:
328
389
  - - ">="
329
390
  - !ruby/object:Gem::Version
330
391
  version: '0'
331
392
  requirements: []
332
- rubyforge_project:
333
- rubygems_version: 2.7.6.2
393
+ rubygems_version: 3.2.5
334
394
  signing_key:
335
395
  specification_version: 4
336
396
  summary: Unofficial fork of the Fat Zebra API client - integrate your Ruby app with