transferzero-sdk 1.19.5 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/lib/transferzero-sdk/api_client.rb +1 -1
  4. data/lib/transferzero-sdk/models/payout_method_details_ngn_bank.rb +1 -1
  5. data/lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb +1 -1
  6. data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +3 -0
  7. data/lib/transferzero-sdk/version.rb +1 -1
  8. data/spec/api/documents_api_spec.rb +0 -15
  9. data/spec/api/payin_methods_api_spec.rb +2 -2
  10. data/spec/api/payout_methods_api_spec.rb +1 -1
  11. data/spec/api/recipients_api_spec.rb +13 -1
  12. data/spec/api/senders_api_spec.rb +1 -1
  13. data/spec/api/transactions_api_spec.rb +1 -0
  14. data/spec/models/account_validation_request_spec.rb +14 -2
  15. data/spec/models/currency_exchange_spec.rb +0 -6
  16. data/spec/models/currency_opposite_spec.rb +4 -4
  17. data/spec/models/currency_spec.rb +0 -6
  18. data/spec/models/document_spec.rb +20 -2
  19. data/spec/models/payin_method_details_mobile_spec.rb +7 -1
  20. data/spec/models/payin_method_details_spec.rb +13 -1
  21. data/spec/models/payin_method_spec.rb +25 -1
  22. data/spec/models/payout_method_details_kes_bank_spec.rb +6 -0
  23. data/spec/models/payout_method_details_kes_mobile_spec.rb +6 -0
  24. data/spec/models/payout_method_details_mobile_spec.rb +6 -0
  25. data/spec/models/payout_method_details_spec.rb +108 -0
  26. data/spec/models/payout_method_details_xof_bank_spec.rb +12 -0
  27. data/spec/models/payout_method_details_xof_cash_spec.rb +3 -9
  28. data/spec/models/payout_method_details_xof_mobile_spec.rb +12 -0
  29. data/spec/models/payout_method_details_zar_bank_spec.rb +48 -0
  30. data/spec/models/recipient_spec.rb +22 -0
  31. data/spec/models/sender_spec.rb +169 -19
  32. metadata +9 -42
  33. data/Gemfile.lock +0 -92
  34. data/docs/CurrencyExchangeAllOf.md +0 -17
  35. data/docs/CurrencyOppositeAllOf.md +0 -21
  36. data/docs/DocumentWebhookAllOf.md +0 -17
  37. data/docs/PayoutMethodWebhookAllOf.md +0 -17
  38. data/docs/RecipientWebhookAllOf.md +0 -17
  39. data/docs/SenderWebhookAllOf.md +0 -17
  40. data/docs/TransactionWebhookAllOf.md +0 -17
  41. data/lib/transferzero-sdk/models/currency_exchange_all_of.rb +0 -205
  42. data/lib/transferzero-sdk/models/currency_opposite_all_of.rb +0 -223
  43. data/lib/transferzero-sdk/models/document_webhook_all_of.rb +0 -202
  44. data/lib/transferzero-sdk/models/payout_method_webhook_all_of.rb +0 -202
  45. data/lib/transferzero-sdk/models/recipient_webhook_all_of.rb +0 -202
  46. data/lib/transferzero-sdk/models/sender_webhook_all_of.rb +0 -202
  47. data/lib/transferzero-sdk/models/transaction_webhook_all_of.rb +0 -202
  48. data/spec/models/currency_exchange_all_of_spec.rb +0 -41
  49. data/spec/models/currency_opposite_all_of_spec.rb +0 -53
  50. data/spec/models/document_webhook_all_of_spec.rb +0 -41
  51. data/spec/models/payout_method_webhook_all_of_spec.rb +0 -41
  52. data/spec/models/recipient_webhook_all_of_spec.rb +0 -41
  53. data/spec/models/sender_webhook_all_of_spec.rb +0 -41
  54. data/spec/models/transaction_webhook_all_of_spec.rb +0 -41
  55. data/transferzero-sdk-1.19.0.gem +0 -0
  56. data/transferzero-sdk-1.19.2.gem +0 -0
  57. data/transferzero-sdk-1.19.3.gem +0 -0
  58. data/transferzero-sdk-1.19.4.gem +0 -0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transferzero-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.5
4
+ version: 1.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TransferZero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-02 00:00:00.000000000 Z
11
+ date: 2022-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -68,22 +68,22 @@ dependencies:
68
68
  name: rspec
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: 3.6.0
74
71
  - - "~>"
75
72
  - !ruby/object:Gem::Version
76
73
  version: '3.6'
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: 3.6.0
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: 3.6.0
84
81
  - - "~>"
85
82
  - !ruby/object:Gem::Version
86
83
  version: '3.6'
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: 3.6.0
87
87
  description: Ruby library for the TransferZero API
88
88
  email:
89
89
  - engineers@transferzero.com
@@ -92,7 +92,6 @@ extensions: []
92
92
  extra_rdoc_files: []
93
93
  files:
94
94
  - Gemfile
95
- - Gemfile.lock
96
95
  - LICENSE
97
96
  - README.md
98
97
  - Rakefile
@@ -113,12 +112,10 @@ files:
113
112
  - docs/ApiLogResponse.md
114
113
  - docs/Currency.md
115
114
  - docs/CurrencyExchange.md
116
- - docs/CurrencyExchangeAllOf.md
117
115
  - docs/CurrencyExchangeListResponse.md
118
116
  - docs/CurrencyInfoApi.md
119
117
  - docs/CurrencyListResponse.md
120
118
  - docs/CurrencyOpposite.md
121
- - docs/CurrencyOppositeAllOf.md
122
119
  - docs/Debit.md
123
120
  - docs/DebitListRequest.md
124
121
  - docs/DebitListResponse.md
@@ -130,7 +127,6 @@ files:
130
127
  - docs/DocumentRequest.md
131
128
  - docs/DocumentResponse.md
132
129
  - docs/DocumentWebhook.md
133
- - docs/DocumentWebhookAllOf.md
134
130
  - docs/DocumentsApi.md
135
131
  - docs/ErrorStatus.md
136
132
  - docs/FieldDescription.md
@@ -187,7 +183,6 @@ files:
187
183
  - docs/PayoutMethodResponse.md
188
184
  - docs/PayoutMethodTransferReasonEnum.md
189
185
  - docs/PayoutMethodWebhook.md
190
- - docs/PayoutMethodWebhookAllOf.md
191
186
  - docs/PayoutMethodsApi.md
192
187
  - docs/PoliticallyExposedPerson.md
193
188
  - docs/ProofOfPayment.md
@@ -199,7 +194,6 @@ files:
199
194
  - docs/RecipientState.md
200
195
  - docs/RecipientStateReasonDetails.md
201
196
  - docs/RecipientWebhook.md
202
- - docs/RecipientWebhookAllOf.md
203
197
  - docs/RecipientsApi.md
204
198
  - docs/Sender.md
205
199
  - docs/SenderListResponse.md
@@ -209,7 +203,6 @@ files:
209
203
  - docs/SenderResponseMeta.md
210
204
  - docs/SenderState.md
211
205
  - docs/SenderWebhook.md
212
- - docs/SenderWebhookAllOf.md
213
206
  - docs/SendersApi.md
214
207
  - docs/StateReasonDetails.md
215
208
  - docs/Transaction.md
@@ -221,7 +214,6 @@ files:
221
214
  - docs/TransactionState.md
222
215
  - docs/TransactionTraits.md
223
216
  - docs/TransactionWebhook.md
224
- - docs/TransactionWebhookAllOf.md
225
217
  - docs/TransactionsApi.md
226
218
  - docs/ValidationErrorDescription.md
227
219
  - docs/Webhook.md
@@ -270,11 +262,9 @@ files:
270
262
  - lib/transferzero-sdk/models/api_log_response.rb
271
263
  - lib/transferzero-sdk/models/currency.rb
272
264
  - lib/transferzero-sdk/models/currency_exchange.rb
273
- - lib/transferzero-sdk/models/currency_exchange_all_of.rb
274
265
  - lib/transferzero-sdk/models/currency_exchange_list_response.rb
275
266
  - lib/transferzero-sdk/models/currency_list_response.rb
276
267
  - lib/transferzero-sdk/models/currency_opposite.rb
277
- - lib/transferzero-sdk/models/currency_opposite_all_of.rb
278
268
  - lib/transferzero-sdk/models/debit.rb
279
269
  - lib/transferzero-sdk/models/debit_list_request.rb
280
270
  - lib/transferzero-sdk/models/debit_list_response.rb
@@ -286,7 +276,6 @@ files:
286
276
  - lib/transferzero-sdk/models/document_request.rb
287
277
  - lib/transferzero-sdk/models/document_response.rb
288
278
  - lib/transferzero-sdk/models/document_webhook.rb
289
- - lib/transferzero-sdk/models/document_webhook_all_of.rb
290
279
  - lib/transferzero-sdk/models/error_status.rb
291
280
  - lib/transferzero-sdk/models/field_description.rb
292
281
  - lib/transferzero-sdk/models/field_select_validation.rb
@@ -339,7 +328,6 @@ files:
339
328
  - lib/transferzero-sdk/models/payout_method_response.rb
340
329
  - lib/transferzero-sdk/models/payout_method_transfer_reason_enum.rb
341
330
  - lib/transferzero-sdk/models/payout_method_webhook.rb
342
- - lib/transferzero-sdk/models/payout_method_webhook_all_of.rb
343
331
  - lib/transferzero-sdk/models/politically_exposed_person.rb
344
332
  - lib/transferzero-sdk/models/proof_of_payment.rb
345
333
  - lib/transferzero-sdk/models/proof_of_payment_list_response.rb
@@ -350,7 +338,6 @@ files:
350
338
  - lib/transferzero-sdk/models/recipient_state.rb
351
339
  - lib/transferzero-sdk/models/recipient_state_reason_details.rb
352
340
  - lib/transferzero-sdk/models/recipient_webhook.rb
353
- - lib/transferzero-sdk/models/recipient_webhook_all_of.rb
354
341
  - lib/transferzero-sdk/models/sender.rb
355
342
  - lib/transferzero-sdk/models/sender_list_response.rb
356
343
  - lib/transferzero-sdk/models/sender_request.rb
@@ -359,7 +346,6 @@ files:
359
346
  - lib/transferzero-sdk/models/sender_response_meta.rb
360
347
  - lib/transferzero-sdk/models/sender_state.rb
361
348
  - lib/transferzero-sdk/models/sender_webhook.rb
362
- - lib/transferzero-sdk/models/sender_webhook_all_of.rb
363
349
  - lib/transferzero-sdk/models/state_reason_details.rb
364
350
  - lib/transferzero-sdk/models/transaction.rb
365
351
  - lib/transferzero-sdk/models/transaction_list_response.rb
@@ -370,7 +356,6 @@ files:
370
356
  - lib/transferzero-sdk/models/transaction_state.rb
371
357
  - lib/transferzero-sdk/models/transaction_traits.rb
372
358
  - lib/transferzero-sdk/models/transaction_webhook.rb
373
- - lib/transferzero-sdk/models/transaction_webhook_all_of.rb
374
359
  - lib/transferzero-sdk/models/validation_error_description.rb
375
360
  - lib/transferzero-sdk/models/webhook.rb
376
361
  - lib/transferzero-sdk/models/webhook_definition.rb
@@ -411,11 +396,9 @@ files:
411
396
  - spec/models/api_log_list_response_spec.rb
412
397
  - spec/models/api_log_response_spec.rb
413
398
  - spec/models/api_log_spec.rb
414
- - spec/models/currency_exchange_all_of_spec.rb
415
399
  - spec/models/currency_exchange_list_response_spec.rb
416
400
  - spec/models/currency_exchange_spec.rb
417
401
  - spec/models/currency_list_response_spec.rb
418
- - spec/models/currency_opposite_all_of_spec.rb
419
402
  - spec/models/currency_opposite_spec.rb
420
403
  - spec/models/currency_spec.rb
421
404
  - spec/models/debit_list_request_spec.rb
@@ -428,7 +411,6 @@ files:
428
411
  - spec/models/document_request_spec.rb
429
412
  - spec/models/document_response_spec.rb
430
413
  - spec/models/document_spec.rb
431
- - spec/models/document_webhook_all_of_spec.rb
432
414
  - spec/models/document_webhook_spec.rb
433
415
  - spec/models/error_status_spec.rb
434
416
  - spec/models/field_description_spec.rb
@@ -481,7 +463,6 @@ files:
481
463
  - spec/models/payout_method_response_spec.rb
482
464
  - spec/models/payout_method_spec.rb
483
465
  - spec/models/payout_method_transfer_reason_enum_spec.rb
484
- - spec/models/payout_method_webhook_all_of_spec.rb
485
466
  - spec/models/payout_method_webhook_spec.rb
486
467
  - spec/models/politically_exposed_person_spec.rb
487
468
  - spec/models/proof_of_payment_list_response_spec.rb
@@ -492,7 +473,6 @@ files:
492
473
  - spec/models/recipient_spec.rb
493
474
  - spec/models/recipient_state_reason_details_spec.rb
494
475
  - spec/models/recipient_state_spec.rb
495
- - spec/models/recipient_webhook_all_of_spec.rb
496
476
  - spec/models/recipient_webhook_spec.rb
497
477
  - spec/models/sender_list_response_spec.rb
498
478
  - spec/models/sender_request_spec.rb
@@ -501,7 +481,6 @@ files:
501
481
  - spec/models/sender_response_spec.rb
502
482
  - spec/models/sender_spec.rb
503
483
  - spec/models/sender_state_spec.rb
504
- - spec/models/sender_webhook_all_of_spec.rb
505
484
  - spec/models/sender_webhook_spec.rb
506
485
  - spec/models/state_reason_details_spec.rb
507
486
  - spec/models/transaction_list_response_spec.rb
@@ -512,7 +491,6 @@ files:
512
491
  - spec/models/transaction_spec.rb
513
492
  - spec/models/transaction_state_spec.rb
514
493
  - spec/models/transaction_traits_spec.rb
515
- - spec/models/transaction_webhook_all_of_spec.rb
516
494
  - spec/models/transaction_webhook_spec.rb
517
495
  - spec/models/validation_error_description_spec.rb
518
496
  - spec/models/webhook_definition_event_list_response_spec.rb
@@ -528,10 +506,6 @@ files:
528
506
  - spec/models/webhook_log_spec.rb
529
507
  - spec/models/webhook_spec.rb
530
508
  - spec/spec_helper.rb
531
- - transferzero-sdk-1.19.0.gem
532
- - transferzero-sdk-1.19.2.gem
533
- - transferzero-sdk-1.19.3.gem
534
- - transferzero-sdk-1.19.4.gem
535
509
  - transferzero-sdk.gemspec
536
510
  homepage: https://github.com/transferzero/transferzero-sdk-ruby
537
511
  licenses:
@@ -552,7 +526,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
552
526
  - !ruby/object:Gem::Version
553
527
  version: '0'
554
528
  requirements: []
555
- rubygems_version: 3.0.3
529
+ rubygems_version: 3.1.6
556
530
  signing_key:
557
531
  specification_version: 4
558
532
  summary: TransferZero API Ruby Gem
@@ -585,7 +559,6 @@ test_files:
585
559
  - spec/models/webhook_log_metadata_response_spec.rb
586
560
  - spec/models/currency_list_response_spec.rb
587
561
  - spec/models/debit_response_spec.rb
588
- - spec/models/currency_opposite_all_of_spec.rb
589
562
  - spec/models/webhook_definition_event_list_response_spec.rb
590
563
  - spec/models/debit_spec.rb
591
564
  - spec/models/payin_method_details_btc_spec.rb
@@ -595,19 +568,16 @@ test_files:
595
568
  - spec/models/webhook_definition_request_spec.rb
596
569
  - spec/models/sender_state_spec.rb
597
570
  - spec/models/payout_method_request_spec.rb
598
- - spec/models/document_webhook_all_of_spec.rb
599
571
  - spec/models/payout_method_details_kes_mobile_spec.rb
600
572
  - spec/models/payout_method_details_gbp_bank_spec.rb
601
573
  - spec/models/webhook_log_metadata_request_spec.rb
602
574
  - spec/models/recipient_webhook_spec.rb
603
- - spec/models/recipient_webhook_all_of_spec.rb
604
575
  - spec/models/api_log_list_response_spec.rb
605
576
  - spec/models/debit_list_response_spec.rb
606
577
  - spec/models/pagination_meta_spec.rb
607
578
  - spec/models/account_validation_result_spec.rb
608
579
  - spec/models/debit_request_wrapper_spec.rb
609
580
  - spec/models/document_webhook_spec.rb
610
- - spec/models/transaction_webhook_all_of_spec.rb
611
581
  - spec/models/payout_method_details_zar_bank_spec.rb
612
582
  - spec/models/payout_method_gender_enum_spec.rb
613
583
  - spec/models/payout_method_legal_entity_type_enum_spec.rb
@@ -615,7 +585,6 @@ test_files:
615
585
  - spec/models/payin_method_spec.rb
616
586
  - spec/models/sender_response_spec.rb
617
587
  - spec/models/payin_method_details_mobile_spec.rb
618
- - spec/models/currency_exchange_all_of_spec.rb
619
588
  - spec/models/payout_method_details_mad_cash_spec.rb
620
589
  - spec/models/account_validation_response_spec.rb
621
590
  - spec/models/payout_method_details_btc_spec.rb
@@ -629,7 +598,6 @@ test_files:
629
598
  - spec/models/transaction_webhook_spec.rb
630
599
  - spec/models/payout_method_details_xof_bank_spec.rb
631
600
  - spec/models/webhook_log_metadata_spec.rb
632
- - spec/models/sender_webhook_all_of_spec.rb
633
601
  - spec/models/account_list_response_spec.rb
634
602
  - spec/models/document_list_response_spec.rb
635
603
  - spec/models/transaction_spec.rb
@@ -663,7 +631,6 @@ test_files:
663
631
  - spec/models/account_response_spec.rb
664
632
  - spec/models/recipient_request_spec.rb
665
633
  - spec/models/recipient_state_reason_details_spec.rb
666
- - spec/models/payout_method_webhook_all_of_spec.rb
667
634
  - spec/models/payout_method_webhook_spec.rb
668
635
  - spec/models/sender_response_meta_spec.rb
669
636
  - spec/models/payout_method_nature_of_business_enum_spec.rb
data/Gemfile.lock DELETED
@@ -1,92 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- transferzero-sdk (1.11.0)
5
- activesupport (>= 4)
6
- json (>= 1.4)
7
- typhoeus (~> 1.0, >= 1.0.1)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- ZenTest (4.12.0)
13
- activesupport (6.1.3)
14
- concurrent-ruby (~> 1.0, >= 1.0.2)
15
- i18n (>= 1.6, < 2)
16
- minitest (>= 5.1)
17
- tzinfo (~> 2.0)
18
- zeitwerk (~> 2.3)
19
- addressable (2.7.0)
20
- public_suffix (>= 2.0.2, < 5.0)
21
- autotest (4.4.6)
22
- ZenTest (>= 4.4.1)
23
- autotest-fsevent (0.2.17)
24
- sys-uname
25
- autotest-growl (0.2.16)
26
- autotest-rails-pure (4.1.2)
27
- byebug (11.1.3)
28
- coderay (1.1.3)
29
- concurrent-ruby (1.1.8)
30
- crack (0.4.4)
31
- diff-lcs (1.4.4)
32
- ethon (0.12.0)
33
- ffi (>= 1.3.0)
34
- ffi (1.13.1)
35
- hashdiff (1.0.1)
36
- i18n (1.8.9)
37
- concurrent-ruby (~> 1.0)
38
- json (2.5.1)
39
- method_source (1.0.0)
40
- minitest (5.14.3)
41
- pry (0.13.1)
42
- coderay (~> 1.1)
43
- method_source (~> 1.0)
44
- pry-byebug (3.9.0)
45
- byebug (~> 11.0)
46
- pry (~> 0.13.0)
47
- public_suffix (4.0.6)
48
- rake (12.0.0)
49
- rspec (3.10.0)
50
- rspec-core (~> 3.10.0)
51
- rspec-expectations (~> 3.10.0)
52
- rspec-mocks (~> 3.10.0)
53
- rspec-core (3.10.0)
54
- rspec-support (~> 3.10.0)
55
- rspec-expectations (3.10.0)
56
- diff-lcs (>= 1.2.0, < 2.0)
57
- rspec-support (~> 3.10.0)
58
- rspec-mocks (3.10.0)
59
- diff-lcs (>= 1.2.0, < 2.0)
60
- rspec-support (~> 3.10.0)
61
- rspec-support (3.10.0)
62
- sys-uname (1.2.2)
63
- ffi (~> 1.1)
64
- typhoeus (1.4.0)
65
- ethon (>= 0.9.0)
66
- tzinfo (2.0.4)
67
- concurrent-ruby (~> 1.0)
68
- vcr (3.0.3)
69
- webmock (1.24.6)
70
- addressable (>= 2.3.6)
71
- crack (>= 0.3.2)
72
- hashdiff
73
- zeitwerk (2.4.2)
74
-
75
- PLATFORMS
76
- ruby
77
-
78
- DEPENDENCIES
79
- ZenTest (~> 4.11, >= 4.11.2)
80
- autotest (~> 4.4, >= 4.4.6)
81
- autotest-fsevent (~> 0.2, >= 0.2.12)
82
- autotest-growl (~> 0.2, >= 0.2.16)
83
- autotest-rails-pure (~> 4.1, >= 4.1.2)
84
- pry-byebug
85
- rake (~> 12.0.0)
86
- rspec (~> 3.6, >= 3.6.0)
87
- transferzero-sdk!
88
- vcr (~> 3.0, >= 3.0.1)
89
- webmock (~> 1.24, >= 1.24.3)
90
-
91
- BUNDLED WITH
92
- 1.17.3
@@ -1,17 +0,0 @@
1
- # TransferZero::CurrencyExchangeAllOf
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **opposites** | [**Array&lt;CurrencyOpposite&gt;**](CurrencyOpposite.md) | Lists the currencies where you can exchange from this one | [optional]
8
-
9
- ## Code Sample
10
-
11
- ```ruby
12
- require 'TransferZero'
13
-
14
- instance = TransferZero::CurrencyExchangeAllOf.new(opposites: null)
15
- ```
16
-
17
-
@@ -1,21 +0,0 @@
1
- # TransferZero::CurrencyOppositeAllOf
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **rate** | **Float** | The rate of this particular currency with the base one | [optional]
8
- **mtm_rate** | **Float** | Mark to market rate of this particular currency against the base one with the margin factored in | [optional]
9
- **margin** | **String** | The margin set for transactions of this particular currency with the base one | [optional]
10
-
11
- ## Code Sample
12
-
13
- ```ruby
14
- require 'TransferZero'
15
-
16
- instance = TransferZero::CurrencyOppositeAllOf.new(rate: null,
17
- mtm_rate: null,
18
- margin: null)
19
- ```
20
-
21
-
@@ -1,17 +0,0 @@
1
- # TransferZero::DocumentWebhookAllOf
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **object** | [**Document**](Document.md) | | [optional]
8
-
9
- ## Code Sample
10
-
11
- ```ruby
12
- require 'TransferZero'
13
-
14
- instance = TransferZero::DocumentWebhookAllOf.new(object: null)
15
- ```
16
-
17
-
@@ -1,17 +0,0 @@
1
- # TransferZero::PayoutMethodWebhookAllOf
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **object** | [**PayoutMethod**](PayoutMethod.md) | | [optional]
8
-
9
- ## Code Sample
10
-
11
- ```ruby
12
- require 'TransferZero'
13
-
14
- instance = TransferZero::PayoutMethodWebhookAllOf.new(object: null)
15
- ```
16
-
17
-
@@ -1,17 +0,0 @@
1
- # TransferZero::RecipientWebhookAllOf
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **object** | [**Recipient**](Recipient.md) | | [optional]
8
-
9
- ## Code Sample
10
-
11
- ```ruby
12
- require 'TransferZero'
13
-
14
- instance = TransferZero::RecipientWebhookAllOf.new(object: null)
15
- ```
16
-
17
-
@@ -1,17 +0,0 @@
1
- # TransferZero::SenderWebhookAllOf
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **object** | [**Sender**](Sender.md) | | [optional]
8
-
9
- ## Code Sample
10
-
11
- ```ruby
12
- require 'TransferZero'
13
-
14
- instance = TransferZero::SenderWebhookAllOf.new(object: null)
15
- ```
16
-
17
-
@@ -1,17 +0,0 @@
1
- # TransferZero::TransactionWebhookAllOf
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **object** | [**Transaction**](Transaction.md) | | [optional]
8
-
9
- ## Code Sample
10
-
11
- ```ruby
12
- require 'TransferZero'
13
-
14
- instance = TransferZero::TransactionWebhookAllOf.new(object: null)
15
- ```
16
-
17
-
@@ -1,205 +0,0 @@
1
- =begin
2
- #TransferZero API
3
-
4
- #Reference documentation for the TransferZero API V1
5
-
6
- The version of the OpenAPI document: 1.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.1.1
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module TransferZero
16
- class CurrencyExchangeAllOf
17
- # Lists the currencies where you can exchange from this one
18
- attr_accessor :opposites
19
-
20
- # Attribute mapping from ruby-style variable name to JSON key.
21
- def self.attribute_map
22
- {
23
- :'opposites' => :'opposites'
24
- }
25
- end
26
-
27
- # Attribute type mapping.
28
- def self.openapi_types
29
- {
30
- :'opposites' => :'Array<CurrencyOpposite>'
31
- }
32
- end
33
-
34
- # Initializes the object
35
- # @param [Hash] attributes Model attributes in the form of hash
36
- def initialize(attributes = {})
37
- if (!attributes.is_a?(Hash))
38
- fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::CurrencyExchangeAllOf` initialize method"
39
- end
40
-
41
- # check to see if the attribute exists and convert string to symbol for hash key
42
- attributes = attributes.each_with_object({}) { |(k, v), h|
43
- if (!self.class.attribute_map.key?(k.to_sym))
44
- fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::CurrencyExchangeAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
45
- end
46
- h[k.to_sym] = v
47
- }
48
-
49
- if attributes.key?(:'opposites')
50
- if (value = attributes[:'opposites']).is_a?(Array)
51
- self.opposites = value
52
- end
53
- end
54
- end
55
-
56
- # Show invalid properties with the reasons. Usually used together with valid?
57
- # @return Array for valid properties with the reasons
58
- def list_invalid_properties
59
- invalid_properties = Array.new
60
- invalid_properties
61
- end
62
-
63
- # Check to see if the all the properties in the model are valid
64
- # @return true if the model is valid
65
- def valid?
66
- true
67
- end
68
-
69
- # Checks equality by comparing each attribute.
70
- # @param [Object] Object to be compared
71
- def ==(o)
72
- return true if self.equal?(o)
73
- self.class == o.class &&
74
- opposites == o.opposites
75
- end
76
-
77
- # @see the `==` method
78
- # @param [Object] Object to be compared
79
- def eql?(o)
80
- self == o
81
- end
82
-
83
- # Calculates hash code according to all attributes.
84
- # @return [Integer] Hash code
85
- def hash
86
- [opposites].hash
87
- end
88
-
89
- require 'active_support/core_ext/hash'
90
- require 'active_support/hash_with_indifferent_access.rb'
91
- # Builds the object from hash
92
- # @param [Hash] attributes Model attributes in the form of hash
93
- # @return [Object] Returns the model itself
94
- def build_from_hash(attributes)
95
- return nil unless attributes.is_a?(Hash)
96
- self.class.openapi_types.each_pair do |key, type|
97
- if type =~ /\AArray<(.*)>/i
98
- # check to ensure the input is an array given that the the attribute
99
- # is documented as an array but the input is not
100
- if attributes[self.class.attribute_map[key]].is_a?(Array)
101
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
102
- end
103
- elsif !attributes[self.class.attribute_map[key]].nil?
104
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
105
- end # or else data not found in attributes(hash), not an issue as the data can be optional
106
- end
107
-
108
- self
109
- end
110
-
111
- # Deserializes the data based on type
112
- # @param string type Data type
113
- # @param string value Value to be deserialized
114
- # @return [Object] Deserialized data
115
- def _deserialize(type, value)
116
- case type.to_sym
117
- when :DateTime
118
- DateTime.parse(value)
119
- when :Date
120
- Date.parse(value)
121
- when :String
122
- value.to_s
123
- when :Integer
124
- value.to_i
125
- when :Float
126
- value.to_f
127
- when :Boolean
128
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
129
- true
130
- else
131
- false
132
- end
133
- when :Object
134
- # generic object (usually a Hash), return directly
135
- value
136
- when /\AArray<(?<inner_type>.+)>\z/
137
- inner_type = Regexp.last_match[:inner_type]
138
- value.map { |v| _deserialize(inner_type, v) }
139
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
140
- k_type = Regexp.last_match[:k_type]
141
- v_type = Regexp.last_match[:v_type]
142
- {}.tap do |hash|
143
- value.each do |k, v|
144
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
145
- end
146
- end
147
- else # model
148
- temp_model = TransferZero.const_get(type).new
149
- temp_model.build_from_hash(value)
150
- end
151
- end
152
-
153
- # Returns the string representation of the object
154
- # @return [String] String presentation of the object
155
- def to_s
156
- to_hash.to_s
157
- end
158
-
159
- # to_body is an alias to to_hash (backward compatibility)
160
- # @return [Hash] Returns the object in the form of hash
161
- def to_body
162
- to_hash
163
- end
164
-
165
- # Returns the object in the form of hash
166
- # @return [Hash] Returns the object in the form of hash
167
- def to_hash
168
- hash = {}
169
- self.class.attribute_map.each_pair do |attr, param|
170
- value = self.send(attr)
171
- next if value.nil?
172
- hash[param] = _to_hash(value)
173
- end
174
- ::ActiveSupport::HashWithIndifferentAccess.new(hash)
175
- end
176
-
177
- def [](key)
178
- to_hash[key]
179
- end
180
-
181
- def dig(*args)
182
- to_hash.dig(*args)
183
- end
184
-
185
- # Outputs non-array value in the form of hash
186
- # For object, use to_hash. Otherwise, just return the value
187
- # @param [Object] value Any valid value
188
- # @return [Hash] Returns the value in the form of hash
189
- def _to_hash(value)
190
- if value.is_a?(Array)
191
- value.compact.map { |v| _to_hash(v) }
192
- elsif value.is_a?(Hash)
193
- {}.tap do |hash|
194
- value.each { |k, v| hash[k] = _to_hash(v) }
195
- end
196
- elsif value.respond_to? :to_hash
197
- value.to_hash
198
- else
199
- value
200
- end
201
- end
202
-
203
- end
204
-
205
- end