tesser-api-sdk 1.0.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 (101) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +148 -0
  4. data/bin/console +15 -0
  5. data/lib/tesser_apiv1/api_helper.rb +10 -0
  6. data/lib/tesser_apiv1/client.rb +118 -0
  7. data/lib/tesser_apiv1/configuration.rb +182 -0
  8. data/lib/tesser_apiv1/controllers/accounts_controller.rb +193 -0
  9. data/lib/tesser_apiv1/controllers/base_controller.rb +60 -0
  10. data/lib/tesser_apiv1/controllers/counterparties_controller.rb +171 -0
  11. data/lib/tesser_apiv1/controllers/currencies_controller.rb +39 -0
  12. data/lib/tesser_apiv1/controllers/experimental_controller.rb +49 -0
  13. data/lib/tesser_apiv1/controllers/health_controller.rb +24 -0
  14. data/lib/tesser_apiv1/controllers/networks_controller.rb +39 -0
  15. data/lib/tesser_apiv1/controllers/payments_controller.rb +202 -0
  16. data/lib/tesser_apiv1/controllers/tenants_controller.rb +156 -0
  17. data/lib/tesser_apiv1/controllers/treasury_controller.rb +77 -0
  18. data/lib/tesser_apiv1/exceptions/api_exception.rb +21 -0
  19. data/lib/tesser_apiv1/http/auth/o_auth2.rb +53 -0
  20. data/lib/tesser_apiv1/http/http_call_back.rb +10 -0
  21. data/lib/tesser_apiv1/http/http_method_enum.rb +10 -0
  22. data/lib/tesser_apiv1/http/http_request.rb +10 -0
  23. data/lib/tesser_apiv1/http/http_response.rb +10 -0
  24. data/lib/tesser_apiv1/http/proxy_settings.rb +22 -0
  25. data/lib/tesser_apiv1/models/account.rb +230 -0
  26. data/lib/tesser_apiv1/models/account_list_item.rb +230 -0
  27. data/lib/tesser_apiv1/models/account_list_response.rb +69 -0
  28. data/lib/tesser_apiv1/models/account_response.rb +60 -0
  29. data/lib/tesser_apiv1/models/account_safe.rb +218 -0
  30. data/lib/tesser_apiv1/models/balance_status1_enum.rb +40 -0
  31. data/lib/tesser_apiv1/models/balance_status_enum.rb +40 -0
  32. data/lib/tesser_apiv1/models/base_model.rb +110 -0
  33. data/lib/tesser_apiv1/models/classification7_enum.rb +36 -0
  34. data/lib/tesser_apiv1/models/classification_enum.rb +36 -0
  35. data/lib/tesser_apiv1/models/counterparty.rb +411 -0
  36. data/lib/tesser_apiv1/models/counterparty_list_response.rb +69 -0
  37. data/lib/tesser_apiv1/models/counterparty_response.rb +60 -0
  38. data/lib/tesser_apiv1/models/create_bank_request.rb +122 -0
  39. data/lib/tesser_apiv1/models/create_bank_response.rb +60 -0
  40. data/lib/tesser_apiv1/models/create_counterparty_request.rb +350 -0
  41. data/lib/tesser_apiv1/models/create_counterparty_response.rb +60 -0
  42. data/lib/tesser_apiv1/models/create_deposit_request.rb +119 -0
  43. data/lib/tesser_apiv1/models/create_payment_request.rb +168 -0
  44. data/lib/tesser_apiv1/models/create_tenant_request.rb +183 -0
  45. data/lib/tesser_apiv1/models/create_tenant_response.rb +60 -0
  46. data/lib/tesser_apiv1/models/create_wallet_request.rb +112 -0
  47. data/lib/tesser_apiv1/models/create_wallet_response.rb +60 -0
  48. data/lib/tesser_apiv1/models/create_withdrawal_request.rb +130 -0
  49. data/lib/tesser_apiv1/models/currencies_response.rb +69 -0
  50. data/lib/tesser_apiv1/models/currency.rb +119 -0
  51. data/lib/tesser_apiv1/models/data.rb +221 -0
  52. data/lib/tesser_apiv1/models/data6.rb +242 -0
  53. data/lib/tesser_apiv1/models/data7.rb +419 -0
  54. data/lib/tesser_apiv1/models/data8.rb +200 -0
  55. data/lib/tesser_apiv1/models/direction1_enum.rb +40 -0
  56. data/lib/tesser_apiv1/models/direction_enum.rb +40 -0
  57. data/lib/tesser_apiv1/models/execute_payment_request_dto.rb +71 -0
  58. data/lib/tesser_apiv1/models/fee.rb +117 -0
  59. data/lib/tesser_apiv1/models/fee1.rb +117 -0
  60. data/lib/tesser_apiv1/models/network.rb +68 -0
  61. data/lib/tesser_apiv1/models/networks_response.rb +69 -0
  62. data/lib/tesser_apiv1/models/pagination.rb +104 -0
  63. data/lib/tesser_apiv1/models/payment.rb +421 -0
  64. data/lib/tesser_apiv1/models/payment_list_response.rb +79 -0
  65. data/lib/tesser_apiv1/models/payment_response.rb +60 -0
  66. data/lib/tesser_apiv1/models/payment_type3_enum.rb +52 -0
  67. data/lib/tesser_apiv1/models/payment_type_enum.rb +54 -0
  68. data/lib/tesser_apiv1/models/provider_key1_enum.rb +36 -0
  69. data/lib/tesser_apiv1/models/provider_key_enum.rb +36 -0
  70. data/lib/tesser_apiv1/models/response.rb +81 -0
  71. data/lib/tesser_apiv1/models/review_payment_request.rb +60 -0
  72. data/lib/tesser_apiv1/models/risk_status_enum.rb +44 -0
  73. data/lib/tesser_apiv1/models/status1_enum.rb +52 -0
  74. data/lib/tesser_apiv1/models/status_enum.rb +48 -0
  75. data/lib/tesser_apiv1/models/step.rb +421 -0
  76. data/lib/tesser_apiv1/models/step_type_enum.rb +44 -0
  77. data/lib/tesser_apiv1/models/tenant.rb +275 -0
  78. data/lib/tesser_apiv1/models/tenant_api_credentials.rb +88 -0
  79. data/lib/tesser_apiv1/models/tenant_list_response.rb +69 -0
  80. data/lib/tesser_apiv1/models/tenant_response.rb +60 -0
  81. data/lib/tesser_apiv1/models/transfer_step.rb +422 -0
  82. data/lib/tesser_apiv1/models/turnkey_stamp.rb +81 -0
  83. data/lib/tesser_apiv1/models/type3_enum.rb +40 -0
  84. data/lib/tesser_apiv1/models/type4_enum.rb +44 -0
  85. data/lib/tesser_apiv1/models/type_enum.rb +44 -0
  86. data/lib/tesser_apiv1/models/update_account_request.rb +62 -0
  87. data/lib/tesser_apiv1/models/update_account_response.rb +60 -0
  88. data/lib/tesser_apiv1/models/update_counterparty_request.rb +166 -0
  89. data/lib/tesser_apiv1/models/update_counterparty_response.rb +60 -0
  90. data/lib/tesser_apiv1/models/update_payment_request.rb +100 -0
  91. data/lib/tesser_apiv1/models/update_tenant_request.rb +111 -0
  92. data/lib/tesser_apiv1/models/update_tenant_response.rb +60 -0
  93. data/lib/tesser_apiv1/utilities/date_time_helper.rb +11 -0
  94. data/lib/tesser_apiv1/utilities/file_wrapper.rb +28 -0
  95. data/lib/tesser_apiv1/utilities/union_type_lookup.rb +1234 -0
  96. data/lib/tesser_apiv1.rb +116 -0
  97. data/test/controllers/controller_test_base.rb +23 -0
  98. data/test/controllers/test_health_controller.rb +31 -0
  99. data/test/controllers/test_tenants_controller.rb +133 -0
  100. data/test/http_response_catcher.rb +19 -0
  101. metadata +212 -0
@@ -0,0 +1,1234 @@
1
+ # tesser_apiv1
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module TesserApiv1
7
+ # The `UnionTypeLookUp` class serves as a utility class for
8
+ # storing and managing type combinator templates. It acts as a container for the templates
9
+ # used in handling various oneof/anyof instances within the sdk.
10
+ class UnionTypeLookUp
11
+ include CoreLibrary
12
+ # rubocop:disable Lint/RedundantCopDisableDirective, Style/HashSyntax, Layout/FirstArgumentIndentation
13
+ def self.union_types
14
+ {
15
+ :AccountTenantId => AnyOf.new(
16
+ [
17
+ LeafType.new(String)
18
+ ],
19
+ UnionTypeContext.new(
20
+ is_optional: true
21
+ )
22
+ ),
23
+
24
+ :AccountCounterpartyId => AnyOf.new(
25
+ [
26
+ LeafType.new(String)
27
+ ],
28
+ UnionTypeContext.new(
29
+ is_optional: true
30
+ )
31
+ ),
32
+
33
+ :AccountBankName => AnyOf.new(
34
+ [
35
+ LeafType.new(String)
36
+ ],
37
+ UnionTypeContext.new(
38
+ is_optional: true
39
+ )
40
+ ),
41
+
42
+ :AccountBankCodeType => AnyOf.new(
43
+ [
44
+ LeafType.new(String)
45
+ ],
46
+ UnionTypeContext.new(
47
+ is_optional: true
48
+ )
49
+ ),
50
+
51
+ :AccountBankIdentifierCode => AnyOf.new(
52
+ [
53
+ LeafType.new(String)
54
+ ],
55
+ UnionTypeContext.new(
56
+ is_optional: true
57
+ )
58
+ ),
59
+
60
+ :AccountCryptoWalletAddress => AnyOf.new(
61
+ [
62
+ LeafType.new(String)
63
+ ],
64
+ UnionTypeContext.new(
65
+ is_optional: true
66
+ )
67
+ ),
68
+
69
+ :AccountBankAccountNumber => AnyOf.new(
70
+ [
71
+ LeafType.new(String)
72
+ ],
73
+ UnionTypeContext.new(
74
+ is_optional: true
75
+ )
76
+ ),
77
+
78
+ :AccountListItemTenantId => AnyOf.new(
79
+ [
80
+ LeafType.new(String)
81
+ ],
82
+ UnionTypeContext.new(
83
+ is_optional: true
84
+ )
85
+ ),
86
+
87
+ :AccountListItemCounterpartyId => AnyOf.new(
88
+ [
89
+ LeafType.new(String)
90
+ ],
91
+ UnionTypeContext.new(
92
+ is_optional: true
93
+ )
94
+ ),
95
+
96
+ :AccountListItemBankName => AnyOf.new(
97
+ [
98
+ LeafType.new(String)
99
+ ],
100
+ UnionTypeContext.new(
101
+ is_optional: true
102
+ )
103
+ ),
104
+
105
+ :AccountListItemBankCodeType => AnyOf.new(
106
+ [
107
+ LeafType.new(String)
108
+ ],
109
+ UnionTypeContext.new(
110
+ is_optional: true
111
+ )
112
+ ),
113
+
114
+ :AccountListItemBankIdentifierCode => AnyOf.new(
115
+ [
116
+ LeafType.new(String)
117
+ ],
118
+ UnionTypeContext.new(
119
+ is_optional: true
120
+ )
121
+ ),
122
+
123
+ :AccountListItemCryptoWalletAddress => AnyOf.new(
124
+ [
125
+ LeafType.new(String)
126
+ ],
127
+ UnionTypeContext.new(
128
+ is_optional: true
129
+ )
130
+ ),
131
+
132
+ :AccountListItemBankAccountNumber => AnyOf.new(
133
+ [
134
+ LeafType.new(String)
135
+ ],
136
+ UnionTypeContext.new(
137
+ is_optional: true
138
+ )
139
+ ),
140
+
141
+ :AccountSafeTenantId => AnyOf.new(
142
+ [
143
+ LeafType.new(String)
144
+ ],
145
+ UnionTypeContext.new(
146
+ is_optional: true
147
+ )
148
+ ),
149
+
150
+ :AccountSafeCounterpartyId => AnyOf.new(
151
+ [
152
+ LeafType.new(String)
153
+ ],
154
+ UnionTypeContext.new(
155
+ is_optional: true
156
+ )
157
+ ),
158
+
159
+ :AccountSafeBankName => AnyOf.new(
160
+ [
161
+ LeafType.new(String)
162
+ ],
163
+ UnionTypeContext.new(
164
+ is_optional: true
165
+ )
166
+ ),
167
+
168
+ :AccountSafeBankCodeType => AnyOf.new(
169
+ [
170
+ LeafType.new(String)
171
+ ],
172
+ UnionTypeContext.new(
173
+ is_optional: true
174
+ )
175
+ ),
176
+
177
+ :AccountSafeBankIdentifierCode => AnyOf.new(
178
+ [
179
+ LeafType.new(String)
180
+ ],
181
+ UnionTypeContext.new(
182
+ is_optional: true
183
+ )
184
+ ),
185
+
186
+ :AccountSafeCryptoWalletAddress => AnyOf.new(
187
+ [
188
+ LeafType.new(String)
189
+ ],
190
+ UnionTypeContext.new(
191
+ is_optional: true
192
+ )
193
+ ),
194
+
195
+ :CounterpartyTenantId => AnyOf.new(
196
+ [
197
+ LeafType.new(String)
198
+ ],
199
+ UnionTypeContext.new(
200
+ is_optional: true
201
+ )
202
+ ),
203
+
204
+ :CounterpartyIndividualFirstName => AnyOf.new(
205
+ [
206
+ LeafType.new(String)
207
+ ],
208
+ UnionTypeContext.new(
209
+ is_optional: true
210
+ )
211
+ ),
212
+
213
+ :CounterpartyIndividualLastName => AnyOf.new(
214
+ [
215
+ LeafType.new(String)
216
+ ],
217
+ UnionTypeContext.new(
218
+ is_optional: true
219
+ )
220
+ ),
221
+
222
+ :CounterpartyIndividualAddressCountry => AnyOf.new(
223
+ [
224
+ LeafType.new(String)
225
+ ],
226
+ UnionTypeContext.new(
227
+ is_optional: true
228
+ )
229
+ ),
230
+
231
+ :CounterpartyIndividualDateOfBirth => AnyOf.new(
232
+ [
233
+ LeafType.new(String)
234
+ ],
235
+ UnionTypeContext.new(
236
+ is_optional: true
237
+ )
238
+ ),
239
+
240
+ :CounterpartyIndividualNationalIdentificationNumber => AnyOf.new(
241
+ [
242
+ LeafType.new(String)
243
+ ],
244
+ UnionTypeContext.new(
245
+ is_optional: true
246
+ )
247
+ ),
248
+
249
+ :CounterpartyIndividualStreetAddress1 => AnyOf.new(
250
+ [
251
+ LeafType.new(String)
252
+ ],
253
+ UnionTypeContext.new(
254
+ is_optional: true
255
+ )
256
+ ),
257
+
258
+ :CounterpartyIndividualStreetAddress2 => AnyOf.new(
259
+ [
260
+ LeafType.new(String)
261
+ ],
262
+ UnionTypeContext.new(
263
+ is_optional: true
264
+ )
265
+ ),
266
+
267
+ :CounterpartyIndividualCity => AnyOf.new(
268
+ [
269
+ LeafType.new(String)
270
+ ],
271
+ UnionTypeContext.new(
272
+ is_optional: true
273
+ )
274
+ ),
275
+
276
+ :CounterpartyIndividualState => AnyOf.new(
277
+ [
278
+ LeafType.new(String)
279
+ ],
280
+ UnionTypeContext.new(
281
+ is_optional: true
282
+ )
283
+ ),
284
+
285
+ :CounterpartyIndividualPostalCode => AnyOf.new(
286
+ [
287
+ LeafType.new(String)
288
+ ],
289
+ UnionTypeContext.new(
290
+ is_optional: true
291
+ )
292
+ ),
293
+
294
+ :CounterpartyBusinessLegalName => AnyOf.new(
295
+ [
296
+ LeafType.new(String)
297
+ ],
298
+ UnionTypeContext.new(
299
+ is_optional: true
300
+ )
301
+ ),
302
+
303
+ :CounterpartyBusinessDba => AnyOf.new(
304
+ [
305
+ LeafType.new(String)
306
+ ],
307
+ UnionTypeContext.new(
308
+ is_optional: true
309
+ )
310
+ ),
311
+
312
+ :CounterpartyBusinessAddressCountry => AnyOf.new(
313
+ [
314
+ LeafType.new(String)
315
+ ],
316
+ UnionTypeContext.new(
317
+ is_optional: true
318
+ )
319
+ ),
320
+
321
+ :CounterpartyBusinessStreetAddress1 => AnyOf.new(
322
+ [
323
+ LeafType.new(String)
324
+ ],
325
+ UnionTypeContext.new(
326
+ is_optional: true
327
+ )
328
+ ),
329
+
330
+ :CounterpartyBusinessStreetAddress2 => AnyOf.new(
331
+ [
332
+ LeafType.new(String)
333
+ ],
334
+ UnionTypeContext.new(
335
+ is_optional: true
336
+ )
337
+ ),
338
+
339
+ :CounterpartyBusinessCity => AnyOf.new(
340
+ [
341
+ LeafType.new(String)
342
+ ],
343
+ UnionTypeContext.new(
344
+ is_optional: true
345
+ )
346
+ ),
347
+
348
+ :CounterpartyBusinessState => AnyOf.new(
349
+ [
350
+ LeafType.new(String)
351
+ ],
352
+ UnionTypeContext.new(
353
+ is_optional: true
354
+ )
355
+ ),
356
+
357
+ :CounterpartyBusinessLegalEntityIdentifier => AnyOf.new(
358
+ [
359
+ LeafType.new(String)
360
+ ],
361
+ UnionTypeContext.new(
362
+ is_optional: true
363
+ )
364
+ ),
365
+
366
+ :CreateCounterpartyRequestTenantId => AnyOf.new(
367
+ [
368
+ LeafType.new(String)
369
+ ],
370
+ UnionTypeContext.new(
371
+ is_optional: true
372
+ )
373
+ ),
374
+
375
+ :CreateCounterpartyRequestIndividualFirstName => AnyOf.new(
376
+ [
377
+ LeafType.new(String)
378
+ ],
379
+ UnionTypeContext.new(
380
+ is_optional: true
381
+ )
382
+ ),
383
+
384
+ :CreateCounterpartyRequestIndividualLastName => AnyOf.new(
385
+ [
386
+ LeafType.new(String)
387
+ ],
388
+ UnionTypeContext.new(
389
+ is_optional: true
390
+ )
391
+ ),
392
+
393
+ :CreateCounterpartyRequestIndividualAddressCountry => AnyOf.new(
394
+ [
395
+ LeafType.new(String)
396
+ ],
397
+ UnionTypeContext.new(
398
+ is_optional: true
399
+ )
400
+ ),
401
+
402
+ :CreateCounterpartyRequestIndividualDateOfBirth => AnyOf.new(
403
+ [
404
+ LeafType.new(String)
405
+ ],
406
+ UnionTypeContext.new(
407
+ is_optional: true
408
+ )
409
+ ),
410
+
411
+ :CreateCounterpartyRequestIndividualNationalIdentificationNumber => AnyOf.new(
412
+ [
413
+ LeafType.new(String)
414
+ ],
415
+ UnionTypeContext.new(
416
+ is_optional: true
417
+ )
418
+ ),
419
+
420
+ :CreateCounterpartyRequestIndividualStreetAddress1 => AnyOf.new(
421
+ [
422
+ LeafType.new(String)
423
+ ],
424
+ UnionTypeContext.new(
425
+ is_optional: true
426
+ )
427
+ ),
428
+
429
+ :CreateCounterpartyRequestIndividualStreetAddress2 => AnyOf.new(
430
+ [
431
+ LeafType.new(String)
432
+ ],
433
+ UnionTypeContext.new(
434
+ is_optional: true
435
+ )
436
+ ),
437
+
438
+ :CreateCounterpartyRequestIndividualCity => AnyOf.new(
439
+ [
440
+ LeafType.new(String)
441
+ ],
442
+ UnionTypeContext.new(
443
+ is_optional: true
444
+ )
445
+ ),
446
+
447
+ :CreateCounterpartyRequestIndividualState => AnyOf.new(
448
+ [
449
+ LeafType.new(String)
450
+ ],
451
+ UnionTypeContext.new(
452
+ is_optional: true
453
+ )
454
+ ),
455
+
456
+ :CreateCounterpartyRequestIndividualPostalCode => AnyOf.new(
457
+ [
458
+ LeafType.new(String)
459
+ ],
460
+ UnionTypeContext.new(
461
+ is_optional: true
462
+ )
463
+ ),
464
+
465
+ :CreateCounterpartyRequestBusinessLegalName => AnyOf.new(
466
+ [
467
+ LeafType.new(String)
468
+ ],
469
+ UnionTypeContext.new(
470
+ is_optional: true
471
+ )
472
+ ),
473
+
474
+ :CreateCounterpartyRequestBusinessDba => AnyOf.new(
475
+ [
476
+ LeafType.new(String)
477
+ ],
478
+ UnionTypeContext.new(
479
+ is_optional: true
480
+ )
481
+ ),
482
+
483
+ :CreateCounterpartyRequestBusinessAddressCountry => AnyOf.new(
484
+ [
485
+ LeafType.new(String)
486
+ ],
487
+ UnionTypeContext.new(
488
+ is_optional: true
489
+ )
490
+ ),
491
+
492
+ :CreateCounterpartyRequestBusinessStreetAddress1 => AnyOf.new(
493
+ [
494
+ LeafType.new(String)
495
+ ],
496
+ UnionTypeContext.new(
497
+ is_optional: true
498
+ )
499
+ ),
500
+
501
+ :CreateCounterpartyRequestBusinessStreetAddress2 => AnyOf.new(
502
+ [
503
+ LeafType.new(String)
504
+ ],
505
+ UnionTypeContext.new(
506
+ is_optional: true
507
+ )
508
+ ),
509
+
510
+ :CreateCounterpartyRequestBusinessCity => AnyOf.new(
511
+ [
512
+ LeafType.new(String)
513
+ ],
514
+ UnionTypeContext.new(
515
+ is_optional: true
516
+ )
517
+ ),
518
+
519
+ :CreateCounterpartyRequestBusinessState => AnyOf.new(
520
+ [
521
+ LeafType.new(String)
522
+ ],
523
+ UnionTypeContext.new(
524
+ is_optional: true
525
+ )
526
+ ),
527
+
528
+ :CreateCounterpartyRequestBusinessLegalEntityIdentifier => AnyOf.new(
529
+ [
530
+ LeafType.new(String)
531
+ ],
532
+ UnionTypeContext.new(
533
+ is_optional: true
534
+ )
535
+ ),
536
+
537
+ :UpdateCounterpartyRequestTenantId => AnyOf.new(
538
+ [
539
+ LeafType.new(String)
540
+ ],
541
+ UnionTypeContext.new(
542
+ is_optional: true
543
+ )
544
+ ),
545
+
546
+ :UpdateCounterpartyRequestIndividualFirstName => AnyOf.new(
547
+ [
548
+ LeafType.new(String)
549
+ ],
550
+ UnionTypeContext.new(
551
+ is_optional: true
552
+ )
553
+ ),
554
+
555
+ :UpdateCounterpartyRequestIndividualLastName => AnyOf.new(
556
+ [
557
+ LeafType.new(String)
558
+ ],
559
+ UnionTypeContext.new(
560
+ is_optional: true
561
+ )
562
+ ),
563
+
564
+ :UpdateCounterpartyRequestIndividualAddressCountry => AnyOf.new(
565
+ [
566
+ LeafType.new(String)
567
+ ],
568
+ UnionTypeContext.new(
569
+ is_optional: true
570
+ )
571
+ ),
572
+
573
+ :UpdateCounterpartyRequestBusinessLegalName => AnyOf.new(
574
+ [
575
+ LeafType.new(String)
576
+ ],
577
+ UnionTypeContext.new(
578
+ is_optional: true
579
+ )
580
+ ),
581
+
582
+ :UpdateCounterpartyRequestBusinessDba => AnyOf.new(
583
+ [
584
+ LeafType.new(String)
585
+ ],
586
+ UnionTypeContext.new(
587
+ is_optional: true
588
+ )
589
+ ),
590
+
591
+ :UpdateCounterpartyRequestBusinessAddressCountry => AnyOf.new(
592
+ [
593
+ LeafType.new(String)
594
+ ],
595
+ UnionTypeContext.new(
596
+ is_optional: true
597
+ )
598
+ ),
599
+
600
+ :CurrencyNetwork => AnyOf.new(
601
+ [
602
+ LeafType.new(String)
603
+ ]
604
+ ),
605
+
606
+ :FeeMetadata => AnyOf.new(
607
+ [
608
+ LeafType.new(Object)
609
+ ],
610
+ UnionTypeContext.new(
611
+ is_optional: true
612
+ )
613
+ ),
614
+
615
+ :TransferStepFromAccountAssetId => AnyOf.new(
616
+ [
617
+ LeafType.new(String)
618
+ ],
619
+ UnionTypeContext.new(
620
+ is_optional: true
621
+ )
622
+ ),
623
+
624
+ :TransferStepToAccountAssetId => AnyOf.new(
625
+ [
626
+ LeafType.new(String)
627
+ ],
628
+ UnionTypeContext.new(
629
+ is_optional: true
630
+ )
631
+ ),
632
+
633
+ :TransferStepTransactionHash => AnyOf.new(
634
+ [
635
+ LeafType.new(String)
636
+ ],
637
+ UnionTypeContext.new(
638
+ is_optional: true
639
+ )
640
+ ),
641
+
642
+ :TransferStepProviderKey => AnyOf.new(
643
+ [
644
+ LeafType.new(ProviderKeyEnum)
645
+ ],
646
+ UnionTypeContext.new(
647
+ is_optional: true,
648
+ is_nullable: true
649
+ )
650
+ ),
651
+
652
+ :TransferStepSubmittedAt => AnyOf.new(
653
+ [
654
+ LeafType.new(DateTime, UnionTypeContext.new(
655
+ date_time_converter: ->(dt_string) { DateTimeHelper.to_rfc3339(dt_string) },
656
+ date_time_format: DateTimeFormat::RFC3339_DATE_TIME
657
+ ))
658
+ ],
659
+ UnionTypeContext.new(
660
+ is_optional: true
661
+ )
662
+ ),
663
+
664
+ :TransferStepConfirmedAt => AnyOf.new(
665
+ [
666
+ LeafType.new(DateTime, UnionTypeContext.new(
667
+ date_time_converter: ->(dt_string) { DateTimeHelper.to_rfc3339(dt_string) },
668
+ date_time_format: DateTimeFormat::RFC3339_DATE_TIME
669
+ ))
670
+ ],
671
+ UnionTypeContext.new(
672
+ is_optional: true
673
+ )
674
+ ),
675
+
676
+ :TransferStepFinalizedAt => AnyOf.new(
677
+ [
678
+ LeafType.new(DateTime, UnionTypeContext.new(
679
+ date_time_converter: ->(dt_string) { DateTimeHelper.to_rfc3339(dt_string) },
680
+ date_time_format: DateTimeFormat::RFC3339_DATE_TIME
681
+ ))
682
+ ],
683
+ UnionTypeContext.new(
684
+ is_optional: true
685
+ )
686
+ ),
687
+
688
+ :TransferStepCompletedAt => AnyOf.new(
689
+ [
690
+ LeafType.new(DateTime, UnionTypeContext.new(
691
+ date_time_converter: ->(dt_string) { DateTimeHelper.to_rfc3339(dt_string) },
692
+ date_time_format: DateTimeFormat::RFC3339_DATE_TIME
693
+ ))
694
+ ],
695
+ UnionTypeContext.new(
696
+ is_optional: true
697
+ )
698
+ ),
699
+
700
+ :TransferStepFailedAt => AnyOf.new(
701
+ [
702
+ LeafType.new(DateTime, UnionTypeContext.new(
703
+ date_time_converter: ->(dt_string) { DateTimeHelper.to_rfc3339(dt_string) },
704
+ date_time_format: DateTimeFormat::RFC3339_DATE_TIME
705
+ ))
706
+ ],
707
+ UnionTypeContext.new(
708
+ is_optional: true
709
+ )
710
+ ),
711
+
712
+ :TransferStepFromAccountId => AnyOf.new(
713
+ [
714
+ LeafType.new(String)
715
+ ],
716
+ UnionTypeContext.new(
717
+ is_optional: true
718
+ )
719
+ ),
720
+
721
+ :TransferStepToAccountId => AnyOf.new(
722
+ [
723
+ LeafType.new(String)
724
+ ],
725
+ UnionTypeContext.new(
726
+ is_optional: true
727
+ )
728
+ ),
729
+
730
+ :PaymentOrganizationReferenceId => AnyOf.new(
731
+ [
732
+ LeafType.new(String)
733
+ ],
734
+ UnionTypeContext.new(
735
+ is_optional: true
736
+ )
737
+ ),
738
+
739
+ :PaymentSourceAccountId => AnyOf.new(
740
+ [
741
+ LeafType.new(String)
742
+ ],
743
+ UnionTypeContext.new(
744
+ is_optional: true
745
+ )
746
+ ),
747
+
748
+ :PaymentOriginatorAccountId => AnyOf.new(
749
+ [
750
+ LeafType.new(String)
751
+ ],
752
+ UnionTypeContext.new(
753
+ is_optional: true
754
+ )
755
+ ),
756
+
757
+ :PaymentBeneficiaryAccountId => AnyOf.new(
758
+ [
759
+ LeafType.new(String)
760
+ ],
761
+ UnionTypeContext.new(
762
+ is_optional: true
763
+ )
764
+ ),
765
+
766
+ :PaymentFromNetwork => AnyOf.new(
767
+ [
768
+ LeafType.new(String)
769
+ ],
770
+ UnionTypeContext.new(
771
+ is_optional: true
772
+ )
773
+ ),
774
+
775
+ :PaymentToNetwork => AnyOf.new(
776
+ [
777
+ LeafType.new(String)
778
+ ],
779
+ UnionTypeContext.new(
780
+ is_optional: true
781
+ )
782
+ ),
783
+
784
+ :PaymentRiskReviewedBy => AnyOf.new(
785
+ [
786
+ LeafType.new(String)
787
+ ],
788
+ UnionTypeContext.new(
789
+ is_optional: true
790
+ )
791
+ ),
792
+
793
+ :PaymentRiskReviewedAt => AnyOf.new(
794
+ [
795
+ LeafType.new(DateTime, UnionTypeContext.new(
796
+ date_time_converter: ->(dt_string) { DateTimeHelper.to_rfc3339(dt_string) },
797
+ date_time_format: DateTimeFormat::RFC3339_DATE_TIME
798
+ ))
799
+ ],
800
+ UnionTypeContext.new(
801
+ is_optional: true
802
+ )
803
+ ),
804
+
805
+ :PaymentBalanceStatus => AnyOf.new(
806
+ [
807
+ LeafType.new(BalanceStatusEnum)
808
+ ],
809
+ UnionTypeContext.new(
810
+ is_optional: true,
811
+ is_nullable: true
812
+ )
813
+ ),
814
+
815
+ :PaymentBalanceReservedAt => AnyOf.new(
816
+ [
817
+ LeafType.new(DateTime, UnionTypeContext.new(
818
+ date_time_converter: ->(dt_string) { DateTimeHelper.to_rfc3339(dt_string) },
819
+ date_time_format: DateTimeFormat::RFC3339_DATE_TIME
820
+ ))
821
+ ],
822
+ UnionTypeContext.new(
823
+ is_optional: true
824
+ )
825
+ ),
826
+
827
+ :TenantBusinessLegalName => AnyOf.new(
828
+ [
829
+ LeafType.new(String)
830
+ ]
831
+ ),
832
+
833
+ :TenantBusinessDba => AnyOf.new(
834
+ [
835
+ LeafType.new(String)
836
+ ]
837
+ ),
838
+
839
+ :TenantBusinessAddressCountry => AnyOf.new(
840
+ [
841
+ LeafType.new(String)
842
+ ]
843
+ ),
844
+
845
+ :TenantBusinessStreetAddress1 => AnyOf.new(
846
+ [
847
+ LeafType.new(String)
848
+ ]
849
+ ),
850
+
851
+ :TenantBusinessStreetAddress2 => AnyOf.new(
852
+ [
853
+ LeafType.new(String)
854
+ ]
855
+ ),
856
+
857
+ :TenantBusinessCity => AnyOf.new(
858
+ [
859
+ LeafType.new(String)
860
+ ]
861
+ ),
862
+
863
+ :TenantBusinessState => AnyOf.new(
864
+ [
865
+ LeafType.new(String)
866
+ ]
867
+ ),
868
+
869
+ :TenantBusinessLegalEntityIdentifier => AnyOf.new(
870
+ [
871
+ LeafType.new(String)
872
+ ]
873
+ ),
874
+
875
+ :TenantCountry => AnyOf.new(
876
+ [
877
+ LeafType.new(String)
878
+ ]
879
+ ),
880
+
881
+ :TenantWebhookUrl => AnyOf.new(
882
+ [
883
+ LeafType.new(String)
884
+ ]
885
+ ),
886
+
887
+ :CreateTenantRequestBusinessDba => AnyOf.new(
888
+ [
889
+ LeafType.new(String)
890
+ ],
891
+ UnionTypeContext.new(
892
+ is_optional: true
893
+ )
894
+ ),
895
+
896
+ :CreateTenantRequestBusinessAddressCountry => AnyOf.new(
897
+ [
898
+ LeafType.new(String)
899
+ ],
900
+ UnionTypeContext.new(
901
+ is_optional: true
902
+ )
903
+ ),
904
+
905
+ :CreateTenantRequestBusinessStreetAddress1 => AnyOf.new(
906
+ [
907
+ LeafType.new(String)
908
+ ],
909
+ UnionTypeContext.new(
910
+ is_optional: true
911
+ )
912
+ ),
913
+
914
+ :CreateTenantRequestBusinessStreetAddress2 => AnyOf.new(
915
+ [
916
+ LeafType.new(String)
917
+ ],
918
+ UnionTypeContext.new(
919
+ is_optional: true
920
+ )
921
+ ),
922
+
923
+ :CreateTenantRequestBusinessCity => AnyOf.new(
924
+ [
925
+ LeafType.new(String)
926
+ ],
927
+ UnionTypeContext.new(
928
+ is_optional: true
929
+ )
930
+ ),
931
+
932
+ :CreateTenantRequestBusinessState => AnyOf.new(
933
+ [
934
+ LeafType.new(String)
935
+ ],
936
+ UnionTypeContext.new(
937
+ is_optional: true
938
+ )
939
+ ),
940
+
941
+ :CreateTenantRequestBusinessLegalEntityIdentifier => AnyOf.new(
942
+ [
943
+ LeafType.new(String)
944
+ ],
945
+ UnionTypeContext.new(
946
+ is_optional: true
947
+ )
948
+ ),
949
+
950
+ :CreateTenantRequestWebhookUrl => AnyOf.new(
951
+ [
952
+ LeafType.new(String)
953
+ ],
954
+ UnionTypeContext.new(
955
+ is_optional: true
956
+ )
957
+ ),
958
+
959
+ :UpdateTenantRequestBusinessDba => AnyOf.new(
960
+ [
961
+ LeafType.new(String)
962
+ ],
963
+ UnionTypeContext.new(
964
+ is_optional: true
965
+ )
966
+ ),
967
+
968
+ :UpdateTenantRequestBusinessAddressCountry => AnyOf.new(
969
+ [
970
+ LeafType.new(String)
971
+ ],
972
+ UnionTypeContext.new(
973
+ is_optional: true
974
+ )
975
+ ),
976
+
977
+ :UpdateTenantRequestWebhookUrl => AnyOf.new(
978
+ [
979
+ LeafType.new(String)
980
+ ],
981
+ UnionTypeContext.new(
982
+ is_optional: true
983
+ )
984
+ ),
985
+
986
+ :Data7OrganizationReferenceId => AnyOf.new(
987
+ [
988
+ LeafType.new(String)
989
+ ],
990
+ UnionTypeContext.new(
991
+ is_optional: true
992
+ )
993
+ ),
994
+
995
+ :Data7SourceAccountId => AnyOf.new(
996
+ [
997
+ LeafType.new(String)
998
+ ],
999
+ UnionTypeContext.new(
1000
+ is_optional: true
1001
+ )
1002
+ ),
1003
+
1004
+ :Data7OriginatorAccountId => AnyOf.new(
1005
+ [
1006
+ LeafType.new(String)
1007
+ ],
1008
+ UnionTypeContext.new(
1009
+ is_optional: true
1010
+ )
1011
+ ),
1012
+
1013
+ :Data7BeneficiaryAccountId => AnyOf.new(
1014
+ [
1015
+ LeafType.new(String)
1016
+ ],
1017
+ UnionTypeContext.new(
1018
+ is_optional: true
1019
+ )
1020
+ ),
1021
+
1022
+ :Data7FromNetwork => AnyOf.new(
1023
+ [
1024
+ LeafType.new(String)
1025
+ ],
1026
+ UnionTypeContext.new(
1027
+ is_optional: true
1028
+ )
1029
+ ),
1030
+
1031
+ :Data7ToNetwork => AnyOf.new(
1032
+ [
1033
+ LeafType.new(String)
1034
+ ],
1035
+ UnionTypeContext.new(
1036
+ is_optional: true
1037
+ )
1038
+ ),
1039
+
1040
+ :Data7RiskStatusReasons => AnyOf.new(
1041
+ [
1042
+ LeafType.new(String, UnionTypeContext.new(
1043
+ is_array: true
1044
+ ))
1045
+ ],
1046
+ UnionTypeContext.new(
1047
+ is_optional: true
1048
+ )
1049
+ ),
1050
+
1051
+ :Data7RiskReviewedBy => AnyOf.new(
1052
+ [
1053
+ LeafType.new(String)
1054
+ ],
1055
+ UnionTypeContext.new(
1056
+ is_optional: true
1057
+ )
1058
+ ),
1059
+
1060
+ :Data7RiskReviewedAt => AnyOf.new(
1061
+ [
1062
+ LeafType.new(DateTime, UnionTypeContext.new(
1063
+ date_time_converter: ->(dt_string) { DateTimeHelper.to_rfc3339(dt_string) },
1064
+ date_time_format: DateTimeFormat::RFC3339_DATE_TIME
1065
+ ))
1066
+ ],
1067
+ UnionTypeContext.new(
1068
+ is_optional: true
1069
+ )
1070
+ ),
1071
+
1072
+ :Data7BalanceStatus => AnyOf.new(
1073
+ [
1074
+ LeafType.new(BalanceStatusEnum)
1075
+ ],
1076
+ UnionTypeContext.new(
1077
+ is_optional: true
1078
+ )
1079
+ ),
1080
+
1081
+ :Data7BalanceReservedAt => AnyOf.new(
1082
+ [
1083
+ LeafType.new(DateTime, UnionTypeContext.new(
1084
+ date_time_converter: ->(dt_string) { DateTimeHelper.to_rfc3339(dt_string) },
1085
+ date_time_format: DateTimeFormat::RFC3339_DATE_TIME
1086
+ ))
1087
+ ],
1088
+ UnionTypeContext.new(
1089
+ is_optional: true
1090
+ )
1091
+ ),
1092
+
1093
+ :Fee1Metadata => AnyOf.new(
1094
+ [
1095
+ LeafType.new(Object)
1096
+ ],
1097
+ UnionTypeContext.new(
1098
+ is_optional: true
1099
+ )
1100
+ ),
1101
+
1102
+ :StepFromAccountAssetId => AnyOf.new(
1103
+ [
1104
+ LeafType.new(String)
1105
+ ],
1106
+ UnionTypeContext.new(
1107
+ is_optional: true
1108
+ )
1109
+ ),
1110
+
1111
+ :StepFromAccountId => AnyOf.new(
1112
+ [
1113
+ LeafType.new(String)
1114
+ ],
1115
+ UnionTypeContext.new(
1116
+ is_optional: true
1117
+ )
1118
+ ),
1119
+
1120
+ :StepToAccountAssetId => AnyOf.new(
1121
+ [
1122
+ LeafType.new(String)
1123
+ ],
1124
+ UnionTypeContext.new(
1125
+ is_optional: true
1126
+ )
1127
+ ),
1128
+
1129
+ :StepToAccountId => AnyOf.new(
1130
+ [
1131
+ LeafType.new(String)
1132
+ ],
1133
+ UnionTypeContext.new(
1134
+ is_optional: true
1135
+ )
1136
+ ),
1137
+
1138
+ :StepTransactionHash => AnyOf.new(
1139
+ [
1140
+ LeafType.new(String)
1141
+ ],
1142
+ UnionTypeContext.new(
1143
+ is_optional: true
1144
+ )
1145
+ ),
1146
+
1147
+ :StepProviderKey => AnyOf.new(
1148
+ [
1149
+ LeafType.new(ProviderKeyEnum)
1150
+ ],
1151
+ UnionTypeContext.new(
1152
+ is_optional: true
1153
+ )
1154
+ ),
1155
+
1156
+ :StepStatusReasons => AnyOf.new(
1157
+ [
1158
+ LeafType.new(String, UnionTypeContext.new(
1159
+ is_array: true
1160
+ ))
1161
+ ],
1162
+ UnionTypeContext.new(
1163
+ is_optional: true
1164
+ )
1165
+ ),
1166
+
1167
+ :StepSubmittedAt => AnyOf.new(
1168
+ [
1169
+ LeafType.new(DateTime, UnionTypeContext.new(
1170
+ date_time_converter: ->(dt_string) { DateTimeHelper.to_rfc3339(dt_string) },
1171
+ date_time_format: DateTimeFormat::RFC3339_DATE_TIME
1172
+ ))
1173
+ ],
1174
+ UnionTypeContext.new(
1175
+ is_optional: true
1176
+ )
1177
+ ),
1178
+
1179
+ :StepConfirmedAt => AnyOf.new(
1180
+ [
1181
+ LeafType.new(DateTime, UnionTypeContext.new(
1182
+ date_time_converter: ->(dt_string) { DateTimeHelper.to_rfc3339(dt_string) },
1183
+ date_time_format: DateTimeFormat::RFC3339_DATE_TIME
1184
+ ))
1185
+ ],
1186
+ UnionTypeContext.new(
1187
+ is_optional: true
1188
+ )
1189
+ ),
1190
+
1191
+ :StepFinalizedAt => AnyOf.new(
1192
+ [
1193
+ LeafType.new(DateTime, UnionTypeContext.new(
1194
+ date_time_converter: ->(dt_string) { DateTimeHelper.to_rfc3339(dt_string) },
1195
+ date_time_format: DateTimeFormat::RFC3339_DATE_TIME
1196
+ ))
1197
+ ],
1198
+ UnionTypeContext.new(
1199
+ is_optional: true
1200
+ )
1201
+ ),
1202
+
1203
+ :StepCompletedAt => AnyOf.new(
1204
+ [
1205
+ LeafType.new(DateTime, UnionTypeContext.new(
1206
+ date_time_converter: ->(dt_string) { DateTimeHelper.to_rfc3339(dt_string) },
1207
+ date_time_format: DateTimeFormat::RFC3339_DATE_TIME
1208
+ ))
1209
+ ],
1210
+ UnionTypeContext.new(
1211
+ is_optional: true
1212
+ )
1213
+ ),
1214
+
1215
+ :StepFailedAt => AnyOf.new(
1216
+ [
1217
+ LeafType.new(DateTime, UnionTypeContext.new(
1218
+ date_time_converter: ->(dt_string) { DateTimeHelper.to_rfc3339(dt_string) },
1219
+ date_time_format: DateTimeFormat::RFC3339_DATE_TIME
1220
+ ))
1221
+ ],
1222
+ UnionTypeContext.new(
1223
+ is_optional: true
1224
+ )
1225
+ )
1226
+ }
1227
+ end
1228
+ # rubocop:enable Lint/RedundantCopDisableDirective, Style/HashSyntax, Layout/FirstArgumentIndentation
1229
+
1230
+ def self.get(name)
1231
+ UnionTypeLookUp.union_types[name]
1232
+ end
1233
+ end
1234
+ end