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