straddle 0.1.1 → 0.2.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 (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +43 -0
  3. data/README.md +2 -2
  4. data/SECURITY.md +1 -1
  5. data/lib/straddle/client.rb +3 -3
  6. data/lib/straddle/errors.rb +25 -11
  7. data/lib/straddle/file_part.rb +10 -7
  8. data/lib/straddle/internal/page_number_schema.rb +1 -1
  9. data/lib/straddle/internal/transport/base_client.rb +12 -8
  10. data/lib/straddle/internal/transport/pooled_net_requester.rb +8 -19
  11. data/lib/straddle/internal/type/array_of.rb +1 -0
  12. data/lib/straddle/internal/type/base_model.rb +4 -9
  13. data/lib/straddle/internal/type/base_page.rb +1 -1
  14. data/lib/straddle/internal/type/converter.rb +27 -0
  15. data/lib/straddle/internal/type/file_input.rb +7 -4
  16. data/lib/straddle/internal/type/hash_of.rb +1 -0
  17. data/lib/straddle/internal/type/union.rb +9 -7
  18. data/lib/straddle/internal/util.rb +4 -3
  19. data/lib/straddle/models/bridge/link_bank_account_params.rb +9 -5
  20. data/lib/straddle/models/bridge/link_create_paykey_params.rb +9 -5
  21. data/lib/straddle/models/bridge/link_create_tan_params.rb +9 -5
  22. data/lib/straddle/models/bridge/link_plaid_params.rb +8 -1
  23. data/lib/straddle/models/bridge_initialize_params.rb +8 -1
  24. data/lib/straddle/models/charge_cancel_params.rb +8 -1
  25. data/lib/straddle/models/charge_create_params.rb +8 -1
  26. data/lib/straddle/models/charge_hold_params.rb +8 -1
  27. data/lib/straddle/models/charge_release_params.rb +8 -1
  28. data/lib/straddle/models/charge_update_params.rb +8 -1
  29. data/lib/straddle/models/customer_create_params.rb +8 -1
  30. data/lib/straddle/models/customer_delete_params.rb +7 -1
  31. data/lib/straddle/models/customer_refresh_review_params.rb +7 -1
  32. data/lib/straddle/models/customer_unmasked_v1.rb +1 -4
  33. data/lib/straddle/models/customer_update_params.rb +8 -1
  34. data/lib/straddle/models/customers/customer_review_v1.rb +15 -50
  35. data/lib/straddle/models/customers/review_decision_params.rb +8 -1
  36. data/lib/straddle/models/embed/account_create_params.rb +8 -1
  37. data/lib/straddle/models/embed/account_onboard_params.rb +7 -1
  38. data/lib/straddle/models/embed/account_paged_v1.rb +3 -12
  39. data/lib/straddle/models/embed/account_simulate_params.rb +7 -1
  40. data/lib/straddle/models/embed/account_update_params.rb +8 -1
  41. data/lib/straddle/models/embed/account_v1.rb +2 -8
  42. data/lib/straddle/models/embed/accounts/capability_request_create_params.rb +8 -1
  43. data/lib/straddle/models/embed/accounts/capability_request_paged_v1.rb +3 -11
  44. data/lib/straddle/models/embed/linked_bank_account_cancel_params.rb +34 -0
  45. data/lib/straddle/models/embed/linked_bank_account_create_params.rb +51 -4
  46. data/lib/straddle/models/embed/linked_bank_account_paged_v1.rb +33 -13
  47. data/lib/straddle/models/embed/linked_bank_account_unmask_v1.rb +3 -8
  48. data/lib/straddle/models/embed/linked_bank_account_update_params.rb +8 -1
  49. data/lib/straddle/models/embed/linked_bank_account_v1.rb +30 -1
  50. data/lib/straddle/models/embed/organization_create_params.rb +8 -1
  51. data/lib/straddle/models/embed/representative.rb +10 -1
  52. data/lib/straddle/models/embed/representative_create_params.rb +17 -1
  53. data/lib/straddle/models/embed/representative_paged.rb +10 -1
  54. data/lib/straddle/models/embed/representative_update_params.rb +17 -1
  55. data/lib/straddle/models/paykey_cancel_params.rb +7 -1
  56. data/lib/straddle/models/paykey_review_params.rb +54 -0
  57. data/lib/straddle/models/payout_cancel_params.rb +8 -1
  58. data/lib/straddle/models/payout_create_params.rb +8 -1
  59. data/lib/straddle/models/payout_hold_params.rb +8 -1
  60. data/lib/straddle/models/payout_release_params.rb +8 -1
  61. data/lib/straddle/models/payout_update_params.rb +8 -1
  62. data/lib/straddle/models.rb +2 -0
  63. data/lib/straddle/resources/bridge/link.rb +16 -4
  64. data/lib/straddle/resources/bridge.rb +4 -1
  65. data/lib/straddle/resources/charges.rb +20 -5
  66. data/lib/straddle/resources/customers/review.rb +4 -1
  67. data/lib/straddle/resources/customers.rb +16 -4
  68. data/lib/straddle/resources/embed/accounts/capability_requests.rb +5 -2
  69. data/lib/straddle/resources/embed/accounts.rb +19 -7
  70. data/lib/straddle/resources/embed/linked_bank_accounts.rb +51 -5
  71. data/lib/straddle/resources/embed/organizations.rb +5 -2
  72. data/lib/straddle/resources/embed/representatives.rb +14 -4
  73. data/lib/straddle/resources/paykeys.rb +47 -1
  74. data/lib/straddle/resources/payouts.rb +20 -5
  75. data/lib/straddle/version.rb +1 -1
  76. data/lib/straddle.rb +2 -0
  77. data/rbi/straddle/client.rbi +4 -4
  78. data/rbi/straddle/errors.rbi +31 -4
  79. data/rbi/straddle/file_part.rbi +1 -1
  80. data/rbi/straddle/internal/transport/base_client.rbi +5 -6
  81. data/rbi/straddle/internal/type/base_page.rbi +1 -1
  82. data/rbi/straddle/internal/type/converter.rbi +54 -0
  83. data/rbi/straddle/internal/type/union.rbi +9 -2
  84. data/rbi/straddle/internal/util.rbi +1 -1
  85. data/rbi/straddle/models/bridge/link_bank_account_params.rbi +9 -0
  86. data/rbi/straddle/models/bridge/link_create_paykey_params.rbi +9 -0
  87. data/rbi/straddle/models/bridge/link_create_tan_params.rbi +9 -0
  88. data/rbi/straddle/models/bridge/link_plaid_params.rbi +9 -0
  89. data/rbi/straddle/models/bridge_initialize_params.rbi +9 -0
  90. data/rbi/straddle/models/charge_cancel_params.rbi +9 -0
  91. data/rbi/straddle/models/charge_create_params.rbi +9 -0
  92. data/rbi/straddle/models/charge_hold_params.rbi +9 -0
  93. data/rbi/straddle/models/charge_release_params.rbi +9 -0
  94. data/rbi/straddle/models/charge_update_params.rbi +9 -0
  95. data/rbi/straddle/models/customer_create_params.rbi +9 -0
  96. data/rbi/straddle/models/customer_delete_params.rbi +9 -0
  97. data/rbi/straddle/models/customer_refresh_review_params.rbi +9 -0
  98. data/rbi/straddle/models/customer_update_params.rbi +9 -0
  99. data/rbi/straddle/models/customers/review_decision_params.rbi +9 -0
  100. data/rbi/straddle/models/embed/account_create_params.rbi +9 -0
  101. data/rbi/straddle/models/embed/account_onboard_params.rbi +9 -0
  102. data/rbi/straddle/models/embed/account_simulate_params.rbi +9 -0
  103. data/rbi/straddle/models/embed/account_update_params.rbi +9 -0
  104. data/rbi/straddle/models/embed/accounts/capability_request_create_params.rbi +9 -0
  105. data/rbi/straddle/models/embed/linked_bank_account_cancel_params.rbi +67 -0
  106. data/rbi/straddle/models/embed/linked_bank_account_create_params.rbi +95 -3
  107. data/rbi/straddle/models/embed/linked_bank_account_paged_v1.rbi +72 -0
  108. data/rbi/straddle/models/embed/linked_bank_account_unmask_v1.rbi +5 -0
  109. data/rbi/straddle/models/embed/linked_bank_account_update_params.rbi +9 -0
  110. data/rbi/straddle/models/embed/linked_bank_account_v1.rbi +72 -0
  111. data/rbi/straddle/models/embed/organization_create_params.rbi +9 -0
  112. data/rbi/straddle/models/embed/representative.rbi +10 -0
  113. data/rbi/straddle/models/embed/representative_create_params.rbi +19 -0
  114. data/rbi/straddle/models/embed/representative_paged.rbi +10 -0
  115. data/rbi/straddle/models/embed/representative_update_params.rbi +19 -0
  116. data/rbi/straddle/models/paykey_cancel_params.rbi +9 -0
  117. data/rbi/straddle/models/paykey_review_params.rbi +98 -0
  118. data/rbi/straddle/models/payout_cancel_params.rbi +9 -0
  119. data/rbi/straddle/models/payout_create_params.rbi +9 -0
  120. data/rbi/straddle/models/payout_hold_params.rbi +9 -0
  121. data/rbi/straddle/models/payout_release_params.rbi +9 -0
  122. data/rbi/straddle/models/payout_update_params.rbi +9 -0
  123. data/rbi/straddle/models.rbi +2 -0
  124. data/rbi/straddle/resources/bridge/link.rbi +12 -0
  125. data/rbi/straddle/resources/bridge.rbi +3 -0
  126. data/rbi/straddle/resources/charges.rbi +15 -0
  127. data/rbi/straddle/resources/customers/review.rbi +3 -0
  128. data/rbi/straddle/resources/customers.rbi +12 -0
  129. data/rbi/straddle/resources/embed/accounts/capability_requests.rbi +3 -0
  130. data/rbi/straddle/resources/embed/accounts.rbi +12 -0
  131. data/rbi/straddle/resources/embed/linked_bank_accounts.rbi +46 -1
  132. data/rbi/straddle/resources/embed/organizations.rbi +3 -0
  133. data/rbi/straddle/resources/embed/representatives.rbi +14 -0
  134. data/rbi/straddle/resources/paykeys.rbi +34 -0
  135. data/rbi/straddle/resources/payouts.rbi +15 -0
  136. data/sig/straddle/client.rbs +2 -2
  137. data/sig/straddle/errors.rbs +7 -0
  138. data/sig/straddle/file_part.rbs +1 -1
  139. data/sig/straddle/internal/transport/base_client.rbs +1 -1
  140. data/sig/straddle/internal/type/converter.rbs +17 -0
  141. data/sig/straddle/internal/type/union.rbs +2 -2
  142. data/sig/straddle/models/bridge/link_bank_account_params.rbs +7 -0
  143. data/sig/straddle/models/bridge/link_create_paykey_params.rbs +7 -0
  144. data/sig/straddle/models/bridge/link_create_tan_params.rbs +7 -0
  145. data/sig/straddle/models/bridge/link_plaid_params.rbs +7 -0
  146. data/sig/straddle/models/bridge_initialize_params.rbs +7 -0
  147. data/sig/straddle/models/charge_cancel_params.rbs +7 -0
  148. data/sig/straddle/models/charge_create_params.rbs +7 -0
  149. data/sig/straddle/models/charge_hold_params.rbs +7 -0
  150. data/sig/straddle/models/charge_release_params.rbs +7 -0
  151. data/sig/straddle/models/charge_update_params.rbs +7 -0
  152. data/sig/straddle/models/customer_create_params.rbs +7 -0
  153. data/sig/straddle/models/customer_delete_params.rbs +7 -0
  154. data/sig/straddle/models/customer_refresh_review_params.rbs +7 -0
  155. data/sig/straddle/models/customer_update_params.rbs +7 -0
  156. data/sig/straddle/models/customers/review_decision_params.rbs +7 -0
  157. data/sig/straddle/models/embed/account_create_params.rbs +7 -0
  158. data/sig/straddle/models/embed/account_onboard_params.rbs +7 -0
  159. data/sig/straddle/models/embed/account_simulate_params.rbs +7 -0
  160. data/sig/straddle/models/embed/account_update_params.rbs +7 -0
  161. data/sig/straddle/models/embed/accounts/capability_request_create_params.rbs +7 -0
  162. data/sig/straddle/models/embed/linked_bank_account_cancel_params.rbs +40 -0
  163. data/sig/straddle/models/embed/linked_bank_account_create_params.rbs +38 -4
  164. data/sig/straddle/models/embed/linked_bank_account_paged_v1.rbs +25 -1
  165. data/sig/straddle/models/embed/linked_bank_account_unmask_v1.rbs +3 -1
  166. data/sig/straddle/models/embed/linked_bank_account_update_params.rbs +7 -0
  167. data/sig/straddle/models/embed/linked_bank_account_v1.rbs +25 -1
  168. data/sig/straddle/models/embed/organization_create_params.rbs +7 -0
  169. data/sig/straddle/models/embed/representative.rbs +5 -0
  170. data/sig/straddle/models/embed/representative_create_params.rbs +12 -0
  171. data/sig/straddle/models/embed/representative_paged.rbs +5 -0
  172. data/sig/straddle/models/embed/representative_update_params.rbs +12 -0
  173. data/sig/straddle/models/paykey_cancel_params.rbs +7 -0
  174. data/sig/straddle/models/paykey_review_params.rbs +65 -0
  175. data/sig/straddle/models/payout_cancel_params.rbs +7 -0
  176. data/sig/straddle/models/payout_create_params.rbs +7 -0
  177. data/sig/straddle/models/payout_hold_params.rbs +7 -0
  178. data/sig/straddle/models/payout_release_params.rbs +7 -0
  179. data/sig/straddle/models/payout_update_params.rbs +7 -0
  180. data/sig/straddle/models.rbs +2 -0
  181. data/sig/straddle/resources/bridge/link.rbs +4 -0
  182. data/sig/straddle/resources/bridge.rbs +1 -0
  183. data/sig/straddle/resources/charges.rbs +5 -0
  184. data/sig/straddle/resources/customers/review.rbs +1 -0
  185. data/sig/straddle/resources/customers.rbs +4 -0
  186. data/sig/straddle/resources/embed/accounts/capability_requests.rbs +1 -0
  187. data/sig/straddle/resources/embed/accounts.rbs +4 -0
  188. data/sig/straddle/resources/embed/linked_bank_accounts.rbs +14 -1
  189. data/sig/straddle/resources/embed/organizations.rbs +1 -0
  190. data/sig/straddle/resources/embed/representatives.rbs +4 -0
  191. data/sig/straddle/resources/paykeys.rbs +11 -0
  192. data/sig/straddle/resources/payouts.rbs +5 -0
  193. metadata +9 -3
@@ -38,6 +38,11 @@ module Straddle
38
38
  # @return [String, nil]
39
39
  optional :correlation_id, String
40
40
 
41
+ # @!attribute idempotency_key
42
+ #
43
+ # @return [String, nil]
44
+ optional :idempotency_key, String
45
+
41
46
  # @!attribute request_id
42
47
  #
43
48
  # @return [String, nil]
@@ -48,7 +53,7 @@ module Straddle
48
53
  # @return [String, nil]
49
54
  optional :straddle_account_id, String
50
55
 
51
- # @!method initialize(customer_id:, quiltt_token:, config: nil, metadata: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
56
+ # @!method initialize(customer_id:, quiltt_token:, config: nil, metadata: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
52
57
  # Some parameter documentations has been truncated, see
53
58
  # {Straddle::Models::Bridge::LinkCreatePaykeyParams} for more details.
54
59
  #
@@ -62,6 +67,8 @@ module Straddle
62
67
  #
63
68
  # @param correlation_id [String]
64
69
  #
70
+ # @param idempotency_key [String]
71
+ #
65
72
  # @param request_id [String]
66
73
  #
67
74
  # @param straddle_account_id [String]
@@ -72,10 +79,7 @@ module Straddle
72
79
  # @!attribute sandbox_outcome
73
80
  #
74
81
  # @return [Symbol, Straddle::Models::Bridge::LinkCreatePaykeyParams::Config::SandboxOutcome, nil]
75
- optional :sandbox_outcome,
76
- enum: -> {
77
- Straddle::Bridge::LinkCreatePaykeyParams::Config::SandboxOutcome
78
- }
82
+ optional :sandbox_outcome, enum: -> { Straddle::Bridge::LinkCreatePaykeyParams::Config::SandboxOutcome }
79
83
 
80
84
  # @!method initialize(sandbox_outcome: nil)
81
85
  # @param sandbox_outcome [Symbol, Straddle::Models::Bridge::LinkCreatePaykeyParams::Config::SandboxOutcome]
@@ -48,6 +48,11 @@ module Straddle
48
48
  # @return [String, nil]
49
49
  optional :correlation_id, String
50
50
 
51
+ # @!attribute idempotency_key
52
+ #
53
+ # @return [String, nil]
54
+ optional :idempotency_key, String
55
+
51
56
  # @!attribute request_id
52
57
  #
53
58
  # @return [String, nil]
@@ -58,7 +63,7 @@ module Straddle
58
63
  # @return [String, nil]
59
64
  optional :straddle_account_id, String
60
65
 
61
- # @!method initialize(account_type:, customer_id:, routing_number:, tan:, config: nil, metadata: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
66
+ # @!method initialize(account_type:, customer_id:, routing_number:, tan:, config: nil, metadata: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
62
67
  # Some parameter documentations has been truncated, see
63
68
  # {Straddle::Models::Bridge::LinkCreateTanParams} for more details.
64
69
  #
@@ -76,6 +81,8 @@ module Straddle
76
81
  #
77
82
  # @param correlation_id [String]
78
83
  #
84
+ # @param idempotency_key [String]
85
+ #
79
86
  # @param request_id [String]
80
87
  #
81
88
  # @param straddle_account_id [String]
@@ -96,10 +103,7 @@ module Straddle
96
103
  # @!attribute sandbox_outcome
97
104
  #
98
105
  # @return [Symbol, Straddle::Models::Bridge::LinkCreateTanParams::Config::SandboxOutcome, nil]
99
- optional :sandbox_outcome,
100
- enum: -> {
101
- Straddle::Bridge::LinkCreateTanParams::Config::SandboxOutcome
102
- }
106
+ optional :sandbox_outcome, enum: -> { Straddle::Bridge::LinkCreateTanParams::Config::SandboxOutcome }
103
107
 
104
108
  # @!method initialize(sandbox_outcome: nil)
105
109
  # @param sandbox_outcome [Symbol, Straddle::Models::Bridge::LinkCreateTanParams::Config::SandboxOutcome]
@@ -38,6 +38,11 @@ module Straddle
38
38
  # @return [String, nil]
39
39
  optional :correlation_id, String
40
40
 
41
+ # @!attribute idempotency_key
42
+ #
43
+ # @return [String, nil]
44
+ optional :idempotency_key, String
45
+
41
46
  # @!attribute request_id
42
47
  #
43
48
  # @return [String, nil]
@@ -48,7 +53,7 @@ module Straddle
48
53
  # @return [String, nil]
49
54
  optional :straddle_account_id, String
50
55
 
51
- # @!method initialize(customer_id:, plaid_token:, config: nil, metadata: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
56
+ # @!method initialize(customer_id:, plaid_token:, config: nil, metadata: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
52
57
  # Some parameter documentations has been truncated, see
53
58
  # {Straddle::Models::Bridge::LinkPlaidParams} for more details.
54
59
  #
@@ -62,6 +67,8 @@ module Straddle
62
67
  #
63
68
  # @param correlation_id [String]
64
69
  #
70
+ # @param idempotency_key [String]
71
+ #
65
72
  # @param request_id [String]
66
73
  #
67
74
  # @param straddle_account_id [String]
@@ -24,6 +24,11 @@ module Straddle
24
24
  # @return [String, nil]
25
25
  optional :correlation_id, String
26
26
 
27
+ # @!attribute idempotency_key
28
+ #
29
+ # @return [String, nil]
30
+ optional :idempotency_key, String
31
+
27
32
  # @!attribute request_id
28
33
  #
29
34
  # @return [String, nil]
@@ -34,7 +39,7 @@ module Straddle
34
39
  # @return [String, nil]
35
40
  optional :straddle_account_id, String
36
41
 
37
- # @!method initialize(customer_id:, config: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
42
+ # @!method initialize(customer_id:, config: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
38
43
  # Some parameter documentations has been truncated, see
39
44
  # {Straddle::Models::BridgeInitializeParams} for more details.
40
45
  #
@@ -44,6 +49,8 @@ module Straddle
44
49
  #
45
50
  # @param correlation_id [String]
46
51
  #
52
+ # @param idempotency_key [String]
53
+ #
47
54
  # @param request_id [String]
48
55
  #
49
56
  # @param straddle_account_id [String]
@@ -18,6 +18,11 @@ module Straddle
18
18
  # @return [String, nil]
19
19
  optional :correlation_id, String
20
20
 
21
+ # @!attribute idempotency_key
22
+ #
23
+ # @return [String, nil]
24
+ optional :idempotency_key, String
25
+
21
26
  # @!attribute request_id
22
27
  #
23
28
  # @return [String, nil]
@@ -28,11 +33,13 @@ module Straddle
28
33
  # @return [String, nil]
29
34
  optional :straddle_account_id, String
30
35
 
31
- # @!method initialize(reason: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
36
+ # @!method initialize(reason: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
32
37
  # @param reason [String, nil] Details about why the charge status was updated.
33
38
  #
34
39
  # @param correlation_id [String]
35
40
  #
41
+ # @param idempotency_key [String]
42
+ #
36
43
  # @param request_id [String]
37
44
  #
38
45
  # @param straddle_account_id [String]
@@ -76,6 +76,11 @@ module Straddle
76
76
  # @return [String, nil]
77
77
  optional :correlation_id, String
78
78
 
79
+ # @!attribute idempotency_key
80
+ #
81
+ # @return [String, nil]
82
+ optional :idempotency_key, String
83
+
79
84
  # @!attribute request_id
80
85
  #
81
86
  # @return [String, nil]
@@ -86,7 +91,7 @@ module Straddle
86
91
  # @return [String, nil]
87
92
  optional :straddle_account_id, String
88
93
 
89
- # @!method initialize(amount:, config:, consent_type:, currency:, description:, device:, external_id:, paykey:, payment_date:, metadata: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
94
+ # @!method initialize(amount:, config:, consent_type:, currency:, description:, device:, external_id:, paykey:, payment_date:, metadata: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
90
95
  # Some parameter documentations has been truncated, see
91
96
  # {Straddle::Models::ChargeCreateParams} for more details.
92
97
  #
@@ -112,6 +117,8 @@ module Straddle
112
117
  #
113
118
  # @param correlation_id [String]
114
119
  #
120
+ # @param idempotency_key [String]
121
+ #
115
122
  # @param request_id [String]
116
123
  #
117
124
  # @param straddle_account_id [String]
@@ -18,6 +18,11 @@ module Straddle
18
18
  # @return [String, nil]
19
19
  optional :correlation_id, String
20
20
 
21
+ # @!attribute idempotency_key
22
+ #
23
+ # @return [String, nil]
24
+ optional :idempotency_key, String
25
+
21
26
  # @!attribute request_id
22
27
  #
23
28
  # @return [String, nil]
@@ -28,11 +33,13 @@ module Straddle
28
33
  # @return [String, nil]
29
34
  optional :straddle_account_id, String
30
35
 
31
- # @!method initialize(reason: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
36
+ # @!method initialize(reason: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
32
37
  # @param reason [String, nil] Details about why the charge status was updated.
33
38
  #
34
39
  # @param correlation_id [String]
35
40
  #
41
+ # @param idempotency_key [String]
42
+ #
36
43
  # @param request_id [String]
37
44
  #
38
45
  # @param straddle_account_id [String]
@@ -18,6 +18,11 @@ module Straddle
18
18
  # @return [String, nil]
19
19
  optional :correlation_id, String
20
20
 
21
+ # @!attribute idempotency_key
22
+ #
23
+ # @return [String, nil]
24
+ optional :idempotency_key, String
25
+
21
26
  # @!attribute request_id
22
27
  #
23
28
  # @return [String, nil]
@@ -28,11 +33,13 @@ module Straddle
28
33
  # @return [String, nil]
29
34
  optional :straddle_account_id, String
30
35
 
31
- # @!method initialize(reason: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
36
+ # @!method initialize(reason: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
32
37
  # @param reason [String, nil] Details about why the charge status was updated.
33
38
  #
34
39
  # @param correlation_id [String]
35
40
  #
41
+ # @param idempotency_key [String]
42
+ #
36
43
  # @param request_id [String]
37
44
  #
38
45
  # @param straddle_account_id [String]
@@ -38,6 +38,11 @@ module Straddle
38
38
  # @return [String, nil]
39
39
  optional :correlation_id, String
40
40
 
41
+ # @!attribute idempotency_key
42
+ #
43
+ # @return [String, nil]
44
+ optional :idempotency_key, String
45
+
41
46
  # @!attribute request_id
42
47
  #
43
48
  # @return [String, nil]
@@ -48,7 +53,7 @@ module Straddle
48
53
  # @return [String, nil]
49
54
  optional :straddle_account_id, String
50
55
 
51
- # @!method initialize(amount:, description:, payment_date:, metadata: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
56
+ # @!method initialize(amount:, description:, payment_date:, metadata: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
52
57
  # Some parameter documentations has been truncated, see
53
58
  # {Straddle::Models::ChargeUpdateParams} for more details.
54
59
  #
@@ -62,6 +67,8 @@ module Straddle
62
67
  #
63
68
  # @param correlation_id [String]
64
69
  #
70
+ # @param idempotency_key [String]
71
+ #
65
72
  # @param request_id [String]
66
73
  #
67
74
  # @param straddle_account_id [String]
@@ -77,6 +77,11 @@ module Straddle
77
77
  # @return [String, nil]
78
78
  optional :correlation_id, String
79
79
 
80
+ # @!attribute idempotency_key
81
+ #
82
+ # @return [String, nil]
83
+ optional :idempotency_key, String
84
+
80
85
  # @!attribute request_id
81
86
  #
82
87
  # @return [String, nil]
@@ -87,7 +92,7 @@ module Straddle
87
92
  # @return [String, nil]
88
93
  optional :straddle_account_id, String
89
94
 
90
- # @!method initialize(device:, email:, name:, phone:, type:, address: nil, compliance_profile: nil, config: nil, external_id: nil, metadata: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
95
+ # @!method initialize(device:, email:, name:, phone:, type:, address: nil, compliance_profile: nil, config: nil, external_id: nil, metadata: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
91
96
  # Some parameter documentations has been truncated, see
92
97
  # {Straddle::Models::CustomerCreateParams} for more details.
93
98
  #
@@ -113,6 +118,8 @@ module Straddle
113
118
  #
114
119
  # @param correlation_id [String]
115
120
  #
121
+ # @param idempotency_key [String]
122
+ #
116
123
  # @param request_id [String]
117
124
  #
118
125
  # @param straddle_account_id [String]
@@ -12,6 +12,11 @@ module Straddle
12
12
  # @return [String, nil]
13
13
  optional :correlation_id, String
14
14
 
15
+ # @!attribute idempotency_key
16
+ #
17
+ # @return [String, nil]
18
+ optional :idempotency_key, String
19
+
15
20
  # @!attribute request_id
16
21
  #
17
22
  # @return [String, nil]
@@ -22,8 +27,9 @@ module Straddle
22
27
  # @return [String, nil]
23
28
  optional :straddle_account_id, String
24
29
 
25
- # @!method initialize(correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
30
+ # @!method initialize(correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
26
31
  # @param correlation_id [String]
32
+ # @param idempotency_key [String]
27
33
  # @param request_id [String]
28
34
  # @param straddle_account_id [String]
29
35
  # @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
@@ -12,6 +12,11 @@ module Straddle
12
12
  # @return [String, nil]
13
13
  optional :correlation_id, String
14
14
 
15
+ # @!attribute idempotency_key
16
+ #
17
+ # @return [String, nil]
18
+ optional :idempotency_key, String
19
+
15
20
  # @!attribute request_id
16
21
  #
17
22
  # @return [String, nil]
@@ -22,8 +27,9 @@ module Straddle
22
27
  # @return [String, nil]
23
28
  optional :straddle_account_id, String
24
29
 
25
- # @!method initialize(correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
30
+ # @!method initialize(correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
26
31
  # @param correlation_id [String]
32
+ # @param idempotency_key [String]
27
33
  # @param request_id [String]
28
34
  # @param straddle_account_id [String]
29
35
  # @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
@@ -299,10 +299,7 @@ module Straddle
299
299
  # @!attribute processing_method
300
300
  #
301
301
  # @return [Symbol, Straddle::Models::CustomerUnmaskedV1::Data::Config::ProcessingMethod, nil]
302
- optional :processing_method,
303
- enum: -> {
304
- Straddle::CustomerUnmaskedV1::Data::Config::ProcessingMethod
305
- }
302
+ optional :processing_method, enum: -> { Straddle::CustomerUnmaskedV1::Data::Config::ProcessingMethod }
306
303
 
307
304
  # @!attribute sandbox_outcome
308
305
  #
@@ -71,6 +71,11 @@ module Straddle
71
71
  # @return [String, nil]
72
72
  optional :correlation_id, String
73
73
 
74
+ # @!attribute idempotency_key
75
+ #
76
+ # @return [String, nil]
77
+ optional :idempotency_key, String
78
+
74
79
  # @!attribute request_id
75
80
  #
76
81
  # @return [String, nil]
@@ -81,7 +86,7 @@ module Straddle
81
86
  # @return [String, nil]
82
87
  optional :straddle_account_id, String
83
88
 
84
- # @!method initialize(device:, email:, name:, phone:, status:, address: nil, compliance_profile: nil, external_id: nil, metadata: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
89
+ # @!method initialize(device:, email:, name:, phone:, status:, address: nil, compliance_profile: nil, external_id: nil, metadata: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
85
90
  # Some parameter documentations has been truncated, see
86
91
  # {Straddle::Models::CustomerUpdateParams} for more details.
87
92
  #
@@ -105,6 +110,8 @@ module Straddle
105
110
  #
106
111
  # @param correlation_id [String]
107
112
  #
113
+ # @param idempotency_key [String]
114
+ #
108
115
  # @param request_id [String]
109
116
  #
110
117
  # @param straddle_account_id [String]
@@ -89,10 +89,7 @@ module Straddle
89
89
  # @!attribute status
90
90
  #
91
91
  # @return [Symbol, Straddle::Models::Customers::CustomerReviewV1::Data::CustomerDetails::Status]
92
- required :status,
93
- enum: -> {
94
- Straddle::Customers::CustomerReviewV1::Data::CustomerDetails::Status
95
- }
92
+ required :status, enum: -> { Straddle::Customers::CustomerReviewV1::Data::CustomerDetails::Status }
96
93
 
97
94
  # @!attribute type
98
95
  #
@@ -211,14 +208,10 @@ module Straddle
211
208
  extend Straddle::Internal::Type::Union
212
209
 
213
210
  # PII required to trigger Patriot Act compliant KYC verification.
214
- variant -> {
215
- Straddle::Customers::CustomerReviewV1::Data::CustomerDetails::ComplianceProfile::IndividualComplianceProfile
216
- }
211
+ variant -> { Straddle::Customers::CustomerReviewV1::Data::CustomerDetails::ComplianceProfile::IndividualComplianceProfile }
217
212
 
218
213
  # Business registration data required to trigger Patriot Act compliant KYB verification.
219
- variant -> {
220
- Straddle::Customers::CustomerReviewV1::Data::CustomerDetails::ComplianceProfile::BusinessComplianceProfile
221
- }
214
+ variant -> { Straddle::Customers::CustomerReviewV1::Data::CustomerDetails::ComplianceProfile::BusinessComplianceProfile }
222
215
 
223
216
  class IndividualComplianceProfile < Straddle::Internal::Type::BaseModel
224
217
  # @!attribute dob
@@ -323,17 +316,13 @@ module Straddle
323
316
  #
324
317
  # @return [Symbol, Straddle::Models::Customers::CustomerReviewV1::Data::CustomerDetails::Config::ProcessingMethod, nil]
325
318
  optional :processing_method,
326
- enum: -> {
327
- Straddle::Customers::CustomerReviewV1::Data::CustomerDetails::Config::ProcessingMethod
328
- }
319
+ enum: -> { Straddle::Customers::CustomerReviewV1::Data::CustomerDetails::Config::ProcessingMethod }
329
320
 
330
321
  # @!attribute sandbox_outcome
331
322
  #
332
323
  # @return [Symbol, Straddle::Models::Customers::CustomerReviewV1::Data::CustomerDetails::Config::SandboxOutcome, nil]
333
324
  optional :sandbox_outcome,
334
- enum: -> {
335
- Straddle::Customers::CustomerReviewV1::Data::CustomerDetails::Config::SandboxOutcome
336
- }
325
+ enum: -> { Straddle::Customers::CustomerReviewV1::Data::CustomerDetails::Config::SandboxOutcome }
337
326
 
338
327
  # @!method initialize(processing_method: nil, sandbox_outcome: nil)
339
328
  # @param processing_method [Symbol, Straddle::Models::Customers::CustomerReviewV1::Data::CustomerDetails::Config::ProcessingMethod]
@@ -390,10 +379,7 @@ module Straddle
390
379
  # risk scores, correlation score, and more.
391
380
  #
392
381
  # @return [Straddle::Models::Customers::CustomerReviewV1::Data::IdentityDetails::Breakdown]
393
- required :breakdown,
394
- -> {
395
- Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::Breakdown
396
- }
382
+ required :breakdown, -> { Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::Breakdown }
397
383
 
398
384
  # @!attribute created_at
399
385
  # Timestamp of when the review was initiated.
@@ -404,10 +390,7 @@ module Straddle
404
390
  # @!attribute decision
405
391
  #
406
392
  # @return [Symbol, Straddle::Models::Customers::CustomerReviewV1::Data::IdentityDetails::Decision]
407
- required :decision,
408
- enum: -> {
409
- Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::Decision
410
- }
393
+ required :decision, enum: -> { Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::Decision }
411
394
 
412
395
  # @!attribute review_id
413
396
  # Unique identifier for the review.
@@ -441,18 +424,12 @@ module Straddle
441
424
  # @!attribute reputation
442
425
  #
443
426
  # @return [Straddle::Models::Customers::CustomerReviewV1::Data::IdentityDetails::Reputation, nil]
444
- optional :reputation,
445
- -> {
446
- Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::Reputation
447
- }
427
+ optional :reputation, -> { Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::Reputation }
448
428
 
449
429
  # @!attribute watch_list
450
430
  #
451
431
  # @return [Straddle::Models::Customers::CustomerReviewV1::Data::IdentityDetails::WatchList, nil]
452
- optional :watch_list,
453
- -> {
454
- Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::WatchList
455
- }
432
+ optional :watch_list, -> { Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::WatchList }
456
433
 
457
434
  # @!method initialize(breakdown:, created_at:, decision:, review_id:, updated_at:, kyc: nil, messages: nil, network_alerts: nil, reputation: nil, watch_list: nil)
458
435
  # Some parameter documentations has been truncated, see
@@ -566,9 +543,7 @@ module Straddle
566
543
  #
567
544
  # @return [Symbol, Straddle::Models::Customers::CustomerReviewV1::Data::IdentityDetails::KYC::Decision, nil]
568
545
  optional :decision,
569
- enum: -> {
570
- Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::KYC::Decision
571
- }
546
+ enum: -> { Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::KYC::Decision }
572
547
 
573
548
  # @!method initialize(validations:, codes: nil, decision: nil)
574
549
  # @param validations [Straddle::Models::Customers::CustomerReviewV1::Data::IdentityDetails::KYC::Validations] Boolean values indicating the result of each validation in the KYC process.
@@ -675,9 +650,7 @@ module Straddle
675
650
  #
676
651
  # @return [Symbol, Straddle::Models::Customers::CustomerReviewV1::Data::IdentityDetails::NetworkAlerts::Decision, nil]
677
652
  optional :decision,
678
- enum: -> {
679
- Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::NetworkAlerts::Decision
680
- }
653
+ enum: -> { Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::NetworkAlerts::Decision }
681
654
 
682
655
  # @!method initialize(alerts: nil, codes: nil, decision: nil)
683
656
  # @param alerts [Array<String>, nil] Any alerts or flags raised during the consortium alert screening.
@@ -711,17 +684,13 @@ module Straddle
711
684
  #
712
685
  # @return [Symbol, Straddle::Models::Customers::CustomerReviewV1::Data::IdentityDetails::Reputation::Decision, nil]
713
686
  optional :decision,
714
- enum: -> {
715
- Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::Reputation::Decision
716
- }
687
+ enum: -> { Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::Reputation::Decision }
717
688
 
718
689
  # @!attribute insights
719
690
  #
720
691
  # @return [Straddle::Models::Customers::CustomerReviewV1::Data::IdentityDetails::Reputation::Insights, nil]
721
692
  optional :insights,
722
- -> {
723
- Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::Reputation::Insights
724
- }
693
+ -> { Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::Reputation::Insights }
725
694
 
726
695
  # @!attribute risk_score
727
696
  #
@@ -967,9 +936,7 @@ module Straddle
967
936
  #
968
937
  # @return [Symbol, Straddle::Models::Customers::CustomerReviewV1::Data::IdentityDetails::WatchList::Decision, nil]
969
938
  optional :decision,
970
- enum: -> {
971
- Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::WatchList::Decision
972
- }
939
+ enum: -> { Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::WatchList::Decision }
973
940
 
974
941
  # @!attribute matched
975
942
  # Information about any matches found during screening.
@@ -1013,9 +980,7 @@ module Straddle
1013
980
  #
1014
981
  # @return [Symbol, Straddle::Models::Customers::CustomerReviewV1::Data::IdentityDetails::WatchList::Match::Correlation]
1015
982
  required :correlation,
1016
- enum: -> {
1017
- Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::WatchList::Match::Correlation
1018
- }
983
+ enum: -> { Straddle::Customers::CustomerReviewV1::Data::IdentityDetails::WatchList::Match::Correlation }
1019
984
 
1020
985
  # @!attribute list_name
1021
986
  # The name of the list the match was found.
@@ -19,6 +19,11 @@ module Straddle
19
19
  # @return [String, nil]
20
20
  optional :correlation_id, String
21
21
 
22
+ # @!attribute idempotency_key
23
+ #
24
+ # @return [String, nil]
25
+ optional :idempotency_key, String
26
+
22
27
  # @!attribute request_id
23
28
  #
24
29
  # @return [String, nil]
@@ -29,11 +34,13 @@ module Straddle
29
34
  # @return [String, nil]
30
35
  optional :straddle_account_id, String
31
36
 
32
- # @!method initialize(status:, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
37
+ # @!method initialize(status:, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
33
38
  # @param status [Symbol, Straddle::Models::Customers::ReviewDecisionParams::Status] The final status of the customer review.
34
39
  #
35
40
  # @param correlation_id [String]
36
41
  #
42
+ # @param idempotency_key [String]
43
+ #
37
44
  # @param request_id [String]
38
45
  #
39
46
  # @param straddle_account_id [String]
@@ -51,12 +51,17 @@ module Straddle
51
51
  # @return [String, nil]
52
52
  optional :correlation_id, String
53
53
 
54
+ # @!attribute idempotency_key
55
+ #
56
+ # @return [String, nil]
57
+ optional :idempotency_key, String
58
+
54
59
  # @!attribute request_id
55
60
  #
56
61
  # @return [String, nil]
57
62
  optional :request_id, String
58
63
 
59
- # @!method initialize(access_level:, account_type:, business_profile:, organization_id:, external_id: nil, metadata: nil, correlation_id: nil, request_id: nil, request_options: {})
64
+ # @!method initialize(access_level:, account_type:, business_profile:, organization_id:, external_id: nil, metadata: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
60
65
  # Some parameter documentations has been truncated, see
61
66
  # {Straddle::Models::Embed::AccountCreateParams} for more details.
62
67
  #
@@ -74,6 +79,8 @@ module Straddle
74
79
  #
75
80
  # @param correlation_id [String]
76
81
  #
82
+ # @param idempotency_key [String]
83
+ #
77
84
  # @param request_id [String]
78
85
  #
79
86
  # @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
@@ -18,14 +18,20 @@ module Straddle
18
18
  # @return [String, nil]
19
19
  optional :correlation_id, String
20
20
 
21
+ # @!attribute idempotency_key
22
+ #
23
+ # @return [String, nil]
24
+ optional :idempotency_key, String
25
+
21
26
  # @!attribute request_id
22
27
  #
23
28
  # @return [String, nil]
24
29
  optional :request_id, String
25
30
 
26
- # @!method initialize(terms_of_service:, correlation_id: nil, request_id: nil, request_options: {})
31
+ # @!method initialize(terms_of_service:, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
27
32
  # @param terms_of_service [Straddle::Models::Embed::TermsOfServiceV1]
28
33
  # @param correlation_id [String]
34
+ # @param idempotency_key [String]
29
35
  # @param request_id [String]
30
36
  # @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
31
37
  end