straddle 0.1.1 → 0.3.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 (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +66 -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 +19 -9
  10. data/lib/straddle/internal/transport/pooled_net_requester.rb +41 -42
  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 +9 -8
  19. data/lib/straddle/models/bridge/link_bank_account_params.rb +39 -6
  20. data/lib/straddle/models/bridge/link_create_paykey_params.rb +39 -6
  21. data/lib/straddle/models/bridge/link_create_paykey_response.rb +31 -2
  22. data/lib/straddle/models/bridge/link_create_tan_params.rb +38 -6
  23. data/lib/straddle/models/bridge/link_create_tan_response.rb +31 -2
  24. data/lib/straddle/models/bridge/link_plaid_params.rb +37 -2
  25. data/lib/straddle/models/bridge_initialize_params.rb +37 -2
  26. data/lib/straddle/models/charge_cancel_params.rb +8 -1
  27. data/lib/straddle/models/charge_create_params.rb +8 -1
  28. data/lib/straddle/models/charge_hold_params.rb +8 -1
  29. data/lib/straddle/models/charge_release_params.rb +8 -1
  30. data/lib/straddle/models/charge_update_params.rb +8 -1
  31. data/lib/straddle/models/customer_create_params.rb +8 -1
  32. data/lib/straddle/models/customer_delete_params.rb +7 -1
  33. data/lib/straddle/models/customer_unmasked_v1.rb +1 -4
  34. data/lib/straddle/models/customer_update_params.rb +8 -1
  35. data/lib/straddle/models/customers/customer_review_v1.rb +15 -50
  36. data/lib/straddle/models/customers/review_decision_params.rb +8 -1
  37. data/lib/straddle/models/customers/review_refresh_review_params.rb +40 -0
  38. data/lib/straddle/models/embed/account_create_params.rb +8 -1
  39. data/lib/straddle/models/embed/account_onboard_params.rb +7 -1
  40. data/lib/straddle/models/embed/account_paged_v1.rb +3 -12
  41. data/lib/straddle/models/embed/account_simulate_params.rb +7 -1
  42. data/lib/straddle/models/embed/account_update_params.rb +8 -1
  43. data/lib/straddle/models/embed/account_v1.rb +2 -8
  44. data/lib/straddle/models/embed/accounts/capability_request_create_params.rb +8 -1
  45. data/lib/straddle/models/embed/accounts/capability_request_paged_v1.rb +3 -11
  46. data/lib/straddle/models/embed/linked_bank_account_cancel_params.rb +34 -0
  47. data/lib/straddle/models/embed/linked_bank_account_create_params.rb +51 -4
  48. data/lib/straddle/models/embed/linked_bank_account_list_params.rb +51 -1
  49. data/lib/straddle/models/embed/linked_bank_account_paged_v1.rb +33 -13
  50. data/lib/straddle/models/embed/linked_bank_account_unmask_v1.rb +3 -8
  51. data/lib/straddle/models/embed/linked_bank_account_update_params.rb +8 -1
  52. data/lib/straddle/models/embed/linked_bank_account_v1.rb +30 -1
  53. data/lib/straddle/models/embed/organization_create_params.rb +8 -1
  54. data/lib/straddle/models/embed/representative.rb +10 -1
  55. data/lib/straddle/models/embed/representative_create_params.rb +17 -1
  56. data/lib/straddle/models/embed/representative_paged.rb +10 -1
  57. data/lib/straddle/models/embed/representative_update_params.rb +17 -1
  58. data/lib/straddle/models/funding_event_list_params.rb +9 -1
  59. data/lib/straddle/models/funding_event_summary_item_v1.rb +25 -1
  60. data/lib/straddle/models/funding_event_summary_paged_v1.rb +25 -1
  61. data/lib/straddle/models/paykey_cancel_params.rb +7 -1
  62. data/lib/straddle/models/paykey_reveal_response.rb +31 -2
  63. data/lib/straddle/models/paykey_summary_paged_v1.rb +30 -2
  64. data/lib/straddle/models/paykey_unmasked_v1.rb +30 -2
  65. data/lib/straddle/models/{customer_refresh_review_params.rb → paykey_update_balance_params.rb} +9 -3
  66. data/lib/straddle/models/paykey_v1.rb +30 -2
  67. data/lib/straddle/models/paykeys/review_decision_params.rb +56 -0
  68. data/lib/straddle/models/paykeys/review_get_params.rb +34 -0
  69. data/lib/straddle/models/paykeys/review_get_response.rb +642 -0
  70. data/lib/straddle/models/paykeys/review_refresh_review_params.rb +40 -0
  71. data/lib/straddle/models/payment_summary_paged_v1.rb +9 -1
  72. data/lib/straddle/models/payout_cancel_params.rb +8 -1
  73. data/lib/straddle/models/payout_create_params.rb +8 -1
  74. data/lib/straddle/models/payout_hold_params.rb +8 -1
  75. data/lib/straddle/models/payout_release_params.rb +8 -1
  76. data/lib/straddle/models/payout_update_params.rb +8 -1
  77. data/lib/straddle/models.rb +4 -2
  78. data/lib/straddle/resources/bridge/link.rb +24 -4
  79. data/lib/straddle/resources/bridge.rb +6 -1
  80. data/lib/straddle/resources/charges.rb +20 -5
  81. data/lib/straddle/resources/customers/review.rb +41 -1
  82. data/lib/straddle/resources/customers.rb +12 -37
  83. data/lib/straddle/resources/embed/accounts/capability_requests.rb +5 -2
  84. data/lib/straddle/resources/embed/accounts.rb +19 -7
  85. data/lib/straddle/resources/embed/linked_bank_accounts.rb +66 -7
  86. data/lib/straddle/resources/embed/organizations.rb +5 -2
  87. data/lib/straddle/resources/embed/representatives.rb +14 -4
  88. data/lib/straddle/resources/funding_events.rb +4 -1
  89. data/lib/straddle/resources/paykeys/review.rb +128 -0
  90. data/lib/straddle/resources/paykeys.rb +44 -1
  91. data/lib/straddle/resources/payouts.rb +20 -5
  92. data/lib/straddle/version.rb +1 -1
  93. data/lib/straddle.rb +9 -1
  94. data/manifest.yaml +1 -0
  95. data/rbi/straddle/client.rbi +4 -4
  96. data/rbi/straddle/errors.rbi +31 -4
  97. data/rbi/straddle/file_part.rbi +1 -1
  98. data/rbi/straddle/internal/transport/base_client.rbi +10 -6
  99. data/rbi/straddle/internal/transport/pooled_net_requester.rbi +6 -2
  100. data/rbi/straddle/internal/type/base_model.rbi +8 -4
  101. data/rbi/straddle/internal/type/base_page.rbi +1 -1
  102. data/rbi/straddle/internal/type/converter.rbi +54 -0
  103. data/rbi/straddle/internal/type/union.rbi +9 -2
  104. data/rbi/straddle/internal/util.rbi +1 -1
  105. data/rbi/straddle/models/bridge/link_bank_account_params.rbi +85 -1
  106. data/rbi/straddle/models/bridge/link_create_paykey_params.rbi +85 -1
  107. data/rbi/straddle/models/bridge/link_create_paykey_response.rbi +76 -1
  108. data/rbi/straddle/models/bridge/link_create_tan_params.rbi +85 -1
  109. data/rbi/straddle/models/bridge/link_create_tan_response.rbi +76 -1
  110. data/rbi/straddle/models/bridge/link_plaid_params.rbi +85 -1
  111. data/rbi/straddle/models/bridge_initialize_params.rbi +85 -1
  112. data/rbi/straddle/models/charge_cancel_params.rbi +9 -0
  113. data/rbi/straddle/models/charge_create_params.rbi +9 -0
  114. data/rbi/straddle/models/charge_hold_params.rbi +9 -0
  115. data/rbi/straddle/models/charge_release_params.rbi +9 -0
  116. data/rbi/straddle/models/charge_update_params.rbi +9 -0
  117. data/rbi/straddle/models/customer_create_params.rbi +9 -0
  118. data/rbi/straddle/models/customer_delete_params.rbi +9 -0
  119. data/rbi/straddle/models/customer_update_params.rbi +9 -0
  120. data/rbi/straddle/models/customers/review_decision_params.rbi +9 -0
  121. data/rbi/straddle/models/customers/review_refresh_review_params.rbi +76 -0
  122. data/rbi/straddle/models/embed/account_create_params.rbi +9 -0
  123. data/rbi/straddle/models/embed/account_onboard_params.rbi +9 -0
  124. data/rbi/straddle/models/embed/account_simulate_params.rbi +9 -0
  125. data/rbi/straddle/models/embed/account_update_params.rbi +9 -0
  126. data/rbi/straddle/models/embed/accounts/capability_request_create_params.rbi +9 -0
  127. data/rbi/straddle/models/embed/linked_bank_account_cancel_params.rbi +67 -0
  128. data/rbi/straddle/models/embed/linked_bank_account_create_params.rbi +95 -3
  129. data/rbi/straddle/models/embed/linked_bank_account_list_params.rbi +149 -0
  130. data/rbi/straddle/models/embed/linked_bank_account_paged_v1.rbi +72 -0
  131. data/rbi/straddle/models/embed/linked_bank_account_unmask_v1.rbi +5 -0
  132. data/rbi/straddle/models/embed/linked_bank_account_update_params.rbi +9 -0
  133. data/rbi/straddle/models/embed/linked_bank_account_v1.rbi +72 -0
  134. data/rbi/straddle/models/embed/organization_create_params.rbi +9 -0
  135. data/rbi/straddle/models/embed/representative.rbi +10 -0
  136. data/rbi/straddle/models/embed/representative_create_params.rbi +19 -0
  137. data/rbi/straddle/models/embed/representative_paged.rbi +10 -0
  138. data/rbi/straddle/models/embed/representative_update_params.rbi +19 -0
  139. data/rbi/straddle/models/funding_event_list_params.rbi +8 -0
  140. data/rbi/straddle/models/funding_event_summary_item_v1.rbi +24 -0
  141. data/rbi/straddle/models/funding_event_summary_paged_v1.rbi +24 -0
  142. data/rbi/straddle/models/paykey_cancel_params.rbi +9 -0
  143. data/rbi/straddle/models/paykey_reveal_response.rbi +76 -1
  144. data/rbi/straddle/models/paykey_summary_paged_v1.rbi +76 -1
  145. data/rbi/straddle/models/paykey_unmasked_v1.rbi +76 -1
  146. data/rbi/straddle/models/{customer_refresh_review_params.rbi → paykey_update_balance_params.rbi} +11 -2
  147. data/rbi/straddle/models/paykey_v1.rbi +76 -1
  148. data/rbi/straddle/models/paykeys/review_decision_params.rbi +115 -0
  149. data/rbi/straddle/models/paykeys/review_get_params.rbi +67 -0
  150. data/rbi/straddle/models/paykeys/review_get_response.rbi +1524 -0
  151. data/rbi/straddle/models/paykeys/review_refresh_review_params.rbi +76 -0
  152. data/rbi/straddle/models/payment_summary_paged_v1.rbi +8 -0
  153. data/rbi/straddle/models/payout_cancel_params.rbi +9 -0
  154. data/rbi/straddle/models/payout_create_params.rbi +9 -0
  155. data/rbi/straddle/models/payout_hold_params.rbi +9 -0
  156. data/rbi/straddle/models/payout_release_params.rbi +9 -0
  157. data/rbi/straddle/models/payout_update_params.rbi +9 -0
  158. data/rbi/straddle/models.rbi +4 -2
  159. data/rbi/straddle/resources/bridge/link.rbi +28 -0
  160. data/rbi/straddle/resources/bridge.rbi +7 -0
  161. data/rbi/straddle/resources/charges.rbi +15 -0
  162. data/rbi/straddle/resources/customers/review.rbi +30 -0
  163. data/rbi/straddle/resources/customers.rbi +9 -24
  164. data/rbi/straddle/resources/embed/accounts/capability_requests.rbi +3 -0
  165. data/rbi/straddle/resources/embed/accounts.rbi +12 -0
  166. data/rbi/straddle/resources/embed/linked_bank_accounts.rbi +56 -1
  167. data/rbi/straddle/resources/embed/organizations.rbi +3 -0
  168. data/rbi/straddle/resources/embed/representatives.rbi +14 -0
  169. data/rbi/straddle/resources/funding_events.rbi +3 -0
  170. data/rbi/straddle/resources/paykeys/review.rbi +94 -0
  171. data/rbi/straddle/resources/paykeys.rbi +32 -0
  172. data/rbi/straddle/resources/payouts.rbi +15 -0
  173. data/sig/straddle/client.rbs +2 -2
  174. data/sig/straddle/errors.rbs +7 -0
  175. data/sig/straddle/file_part.rbs +1 -1
  176. data/sig/straddle/internal/transport/base_client.rbs +3 -1
  177. data/sig/straddle/internal/transport/pooled_net_requester.rbs +4 -1
  178. data/sig/straddle/internal/type/converter.rbs +17 -0
  179. data/sig/straddle/internal/type/union.rbs +2 -2
  180. data/sig/straddle/models/bridge/link_bank_account_params.rbs +35 -1
  181. data/sig/straddle/models/bridge/link_create_paykey_params.rbs +35 -1
  182. data/sig/straddle/models/bridge/link_create_paykey_response.rbs +28 -1
  183. data/sig/straddle/models/bridge/link_create_tan_params.rbs +35 -1
  184. data/sig/straddle/models/bridge/link_create_tan_response.rbs +28 -1
  185. data/sig/straddle/models/bridge/link_plaid_params.rbs +35 -1
  186. data/sig/straddle/models/bridge_initialize_params.rbs +35 -1
  187. data/sig/straddle/models/charge_cancel_params.rbs +7 -0
  188. data/sig/straddle/models/charge_create_params.rbs +7 -0
  189. data/sig/straddle/models/charge_hold_params.rbs +7 -0
  190. data/sig/straddle/models/charge_release_params.rbs +7 -0
  191. data/sig/straddle/models/charge_update_params.rbs +7 -0
  192. data/sig/straddle/models/customer_create_params.rbs +7 -0
  193. data/sig/straddle/models/customer_delete_params.rbs +7 -0
  194. data/sig/straddle/models/customer_update_params.rbs +7 -0
  195. data/sig/straddle/models/customers/review_decision_params.rbs +7 -0
  196. data/sig/straddle/models/customers/review_refresh_review_params.rbs +51 -0
  197. data/sig/straddle/models/embed/account_create_params.rbs +7 -0
  198. data/sig/straddle/models/embed/account_onboard_params.rbs +7 -0
  199. data/sig/straddle/models/embed/account_simulate_params.rbs +7 -0
  200. data/sig/straddle/models/embed/account_update_params.rbs +7 -0
  201. data/sig/straddle/models/embed/accounts/capability_request_create_params.rbs +7 -0
  202. data/sig/straddle/models/embed/linked_bank_account_cancel_params.rbs +40 -0
  203. data/sig/straddle/models/embed/linked_bank_account_create_params.rbs +38 -4
  204. data/sig/straddle/models/embed/linked_bank_account_list_params.rbs +46 -0
  205. data/sig/straddle/models/embed/linked_bank_account_paged_v1.rbs +25 -1
  206. data/sig/straddle/models/embed/linked_bank_account_unmask_v1.rbs +3 -1
  207. data/sig/straddle/models/embed/linked_bank_account_update_params.rbs +7 -0
  208. data/sig/straddle/models/embed/linked_bank_account_v1.rbs +25 -1
  209. data/sig/straddle/models/embed/organization_create_params.rbs +7 -0
  210. data/sig/straddle/models/embed/representative.rbs +5 -0
  211. data/sig/straddle/models/embed/representative_create_params.rbs +12 -0
  212. data/sig/straddle/models/embed/representative_paged.rbs +5 -0
  213. data/sig/straddle/models/embed/representative_update_params.rbs +12 -0
  214. data/sig/straddle/models/funding_event_list_params.rbs +5 -0
  215. data/sig/straddle/models/funding_event_summary_item_v1.rbs +15 -0
  216. data/sig/straddle/models/funding_event_summary_paged_v1.rbs +15 -0
  217. data/sig/straddle/models/paykey_cancel_params.rbs +7 -0
  218. data/sig/straddle/models/paykey_reveal_response.rbs +28 -1
  219. data/sig/straddle/models/paykey_summary_paged_v1.rbs +28 -1
  220. data/sig/straddle/models/paykey_unmasked_v1.rbs +28 -1
  221. data/sig/straddle/models/{customer_refresh_review_params.rbs → paykey_update_balance_params.rbs} +9 -2
  222. data/sig/straddle/models/paykey_v1.rbs +28 -1
  223. data/sig/straddle/models/paykeys/review_decision_params.rbs +67 -0
  224. data/sig/straddle/models/paykeys/review_get_params.rbs +44 -0
  225. data/sig/straddle/models/paykeys/review_get_response.rbs +627 -0
  226. data/sig/straddle/models/paykeys/review_refresh_review_params.rbs +51 -0
  227. data/sig/straddle/models/payment_summary_paged_v1.rbs +5 -0
  228. data/sig/straddle/models/payout_cancel_params.rbs +7 -0
  229. data/sig/straddle/models/payout_create_params.rbs +7 -0
  230. data/sig/straddle/models/payout_hold_params.rbs +7 -0
  231. data/sig/straddle/models/payout_release_params.rbs +7 -0
  232. data/sig/straddle/models/payout_update_params.rbs +7 -0
  233. data/sig/straddle/models.rbs +4 -2
  234. data/sig/straddle/resources/bridge/link.rbs +8 -0
  235. data/sig/straddle/resources/bridge.rbs +2 -0
  236. data/sig/straddle/resources/charges.rbs +5 -0
  237. data/sig/straddle/resources/customers/review.rbs +10 -0
  238. data/sig/straddle/resources/customers.rbs +3 -8
  239. data/sig/straddle/resources/embed/accounts/capability_requests.rbs +1 -0
  240. data/sig/straddle/resources/embed/accounts.rbs +4 -0
  241. data/sig/straddle/resources/embed/linked_bank_accounts.rbs +16 -1
  242. data/sig/straddle/resources/embed/organizations.rbs +1 -0
  243. data/sig/straddle/resources/embed/representatives.rbs +4 -0
  244. data/sig/straddle/resources/funding_events.rbs +1 -0
  245. data/sig/straddle/resources/paykeys/review.rbs +36 -0
  246. data/sig/straddle/resources/paykeys.rbs +12 -0
  247. data/sig/straddle/resources/payouts.rbs +5 -0
  248. metadata +27 -6
@@ -62,17 +62,29 @@ module Straddle
62
62
  # @return [String, nil]
63
63
  optional :external_id, String, nil?: true
64
64
 
65
+ # @!attribute metadata
66
+ # Up to 20 additional user-defined key-value pairs. Useful for storing additional
67
+ # information about the represetative in a structured format.
68
+ #
69
+ # @return [Hash{Symbol=>String}, nil]
70
+ optional :metadata, Straddle::Internal::Type::HashOf[String], nil?: true
71
+
65
72
  # @!attribute correlation_id
66
73
  #
67
74
  # @return [String, nil]
68
75
  optional :correlation_id, String
69
76
 
77
+ # @!attribute idempotency_key
78
+ #
79
+ # @return [String, nil]
80
+ optional :idempotency_key, String
81
+
70
82
  # @!attribute request_id
71
83
  #
72
84
  # @return [String, nil]
73
85
  optional :request_id, String
74
86
 
75
- # @!method initialize(account_id:, dob:, email:, first_name:, last_name:, mobile_number:, relationship:, ssn_last4:, external_id: nil, correlation_id: nil, request_id: nil, request_options: {})
87
+ # @!method initialize(account_id:, dob:, email:, first_name:, last_name:, mobile_number:, relationship:, ssn_last4:, external_id: nil, metadata: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
76
88
  # Some parameter documentations has been truncated, see
77
89
  # {Straddle::Models::Embed::RepresentativeCreateParams} for more details.
78
90
  #
@@ -94,8 +106,12 @@ module Straddle
94
106
  #
95
107
  # @param external_id [String, nil] Unique identifier for the representative in your database, used for cross-refere
96
108
  #
109
+ # @param metadata [Hash{Symbol=>String}, nil] Up to 20 additional user-defined key-value pairs. Useful for storing additional
110
+ #
97
111
  # @param correlation_id [String]
98
112
  #
113
+ # @param idempotency_key [String]
114
+ #
99
115
  # @param request_id [String]
100
116
  #
101
117
  # @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
@@ -127,6 +127,13 @@ module Straddle
127
127
  # @return [String, nil]
128
128
  optional :external_id, String, nil?: true
129
129
 
130
+ # @!attribute metadata
131
+ # Up to 20 additional user-defined key-value pairs. Useful for storing additional
132
+ # information about the represetative in a structured format.
133
+ #
134
+ # @return [Hash{Symbol=>String}, nil]
135
+ optional :metadata, Straddle::Internal::Type::HashOf[String], nil?: true
136
+
130
137
  # @!attribute phone
131
138
  #
132
139
  # @return [String, nil]
@@ -139,7 +146,7 @@ module Straddle
139
146
  # @return [String, nil]
140
147
  optional :user_id, String, nil?: true
141
148
 
142
- # @!method initialize(id:, account_id:, created_at:, dob:, email:, first_name:, last_name:, mobile_number:, name:, relationship:, ssn_last4:, status:, status_detail:, updated_at:, external_id: nil, phone: nil, user_id: nil)
149
+ # @!method initialize(id:, account_id:, created_at:, dob:, email:, first_name:, last_name:, mobile_number:, name:, relationship:, ssn_last4:, status:, status_detail:, updated_at:, external_id: nil, metadata: nil, phone: nil, user_id: nil)
143
150
  # Some parameter documentations has been truncated, see
144
151
  # {Straddle::Models::Embed::RepresentativePaged::Data} for more details.
145
152
  #
@@ -173,6 +180,8 @@ module Straddle
173
180
  #
174
181
  # @param external_id [String, nil] Unique identifier for the representative in your database, used for cross-refere
175
182
  #
183
+ # @param metadata [Hash{Symbol=>String}, nil] Up to 20 additional user-defined key-value pairs. Useful for storing additional
184
+ #
176
185
  # @param phone [String, nil]
177
186
  #
178
187
  # @param user_id [String, nil] The unique identifier of the user account associated with this representative, i
@@ -56,17 +56,29 @@ module Straddle
56
56
  # @return [String, nil]
57
57
  optional :external_id, String, nil?: true
58
58
 
59
+ # @!attribute metadata
60
+ # Up to 20 additional user-defined key-value pairs. Useful for storing additional
61
+ # information about the represetative in a structured format.
62
+ #
63
+ # @return [Hash{Symbol=>String}, nil]
64
+ optional :metadata, Straddle::Internal::Type::HashOf[String], nil?: true
65
+
59
66
  # @!attribute correlation_id
60
67
  #
61
68
  # @return [String, nil]
62
69
  optional :correlation_id, String
63
70
 
71
+ # @!attribute idempotency_key
72
+ #
73
+ # @return [String, nil]
74
+ optional :idempotency_key, String
75
+
64
76
  # @!attribute request_id
65
77
  #
66
78
  # @return [String, nil]
67
79
  optional :request_id, String
68
80
 
69
- # @!method initialize(dob:, email:, first_name:, last_name:, mobile_number:, relationship:, ssn_last4:, external_id: nil, correlation_id: nil, request_id: nil, request_options: {})
81
+ # @!method initialize(dob:, email:, first_name:, last_name:, mobile_number:, relationship:, ssn_last4:, external_id: nil, metadata: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
70
82
  # Some parameter documentations has been truncated, see
71
83
  # {Straddle::Models::Embed::RepresentativeUpdateParams} for more details.
72
84
  #
@@ -86,8 +98,12 @@ module Straddle
86
98
  #
87
99
  # @param external_id [String, nil] Unique identifier for the representative in your database, used for cross-refere
88
100
  #
101
+ # @param metadata [Hash{Symbol=>String}, nil] Up to 20 additional user-defined key-value pairs. Useful for storing additional
102
+ #
89
103
  # @param correlation_id [String]
90
104
  #
105
+ # @param idempotency_key [String]
106
+ #
91
107
  # @param request_id [String]
92
108
  #
93
109
  # @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
@@ -45,6 +45,12 @@ module Straddle
45
45
  # @return [Integer, nil]
46
46
  optional :page_size, Integer
47
47
 
48
+ # @!attribute search_text
49
+ # Search text.
50
+ #
51
+ # @return [String, nil]
52
+ optional :search_text, String, nil?: true
53
+
48
54
  # @!attribute sort_by
49
55
  # The field to sort the results by.
50
56
  #
@@ -78,7 +84,7 @@ module Straddle
78
84
  # @return [String, nil]
79
85
  optional :straddle_account_id, String
80
86
 
81
- # @!method initialize(created_from: nil, created_to: nil, direction: nil, event_type: nil, page_number: nil, page_size: nil, sort_by: nil, sort_order: nil, trace_number: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
87
+ # @!method initialize(created_from: nil, created_to: nil, direction: nil, event_type: nil, page_number: nil, page_size: nil, search_text: nil, sort_by: nil, sort_order: nil, trace_number: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
82
88
  # Some parameter documentations has been truncated, see
83
89
  # {Straddle::Models::FundingEventListParams} for more details.
84
90
  #
@@ -94,6 +100,8 @@ module Straddle
94
100
  #
95
101
  # @param page_size [Integer] Results page size. Max value: 1000
96
102
  #
103
+ # @param search_text [String, nil] Search text.
104
+ #
97
105
  # @param sort_by [Symbol, Straddle::Models::FundingEventListParams::SortBy] The field to sort the results by.
98
106
  #
99
107
  # @param sort_order [Symbol, Straddle::Models::FundingEventListParams::SortOrder] The order in which to sort the results.
@@ -51,6 +51,12 @@ module Straddle
51
51
  # @return [Integer]
52
52
  required :amount, Integer
53
53
 
54
+ # @!attribute created_at
55
+ # Created at.
56
+ #
57
+ # @return [Time]
58
+ required :created_at, Time
59
+
54
60
  # @!attribute direction
55
61
  # Describes the direction of the funding event from the perspective of the
56
62
  # `linked_bank_account`.
@@ -71,6 +77,12 @@ module Straddle
71
77
  # @return [Integer]
72
78
  required :payment_count, Integer
73
79
 
80
+ # @!attribute trace_ids
81
+ # Trace Ids.
82
+ #
83
+ # @return [Hash{Symbol=>String}]
84
+ required :trace_ids, Straddle::Internal::Type::HashOf[String]
85
+
74
86
  # @!attribute trace_numbers
75
87
  # Trace number.
76
88
  #
@@ -85,13 +97,19 @@ module Straddle
85
97
  # @return [Date]
86
98
  required :transfer_date, Date
87
99
 
100
+ # @!attribute updated_at
101
+ # Updated at.
102
+ #
103
+ # @return [Time]
104
+ required :updated_at, Time
105
+
88
106
  # @!attribute trace_number
89
107
  # The trace number of the funding event.
90
108
  #
91
109
  # @return [String, nil]
92
110
  optional :trace_number, String, nil?: true
93
111
 
94
- # @!method initialize(id:, amount:, direction:, event_type:, payment_count:, trace_numbers:, transfer_date:, trace_number: nil)
112
+ # @!method initialize(id:, amount:, created_at:, direction:, event_type:, payment_count:, trace_ids:, trace_numbers:, transfer_date:, updated_at:, trace_number: nil)
95
113
  # Some parameter documentations has been truncated, see
96
114
  # {Straddle::Models::FundingEventSummaryItemV1::Data} for more details.
97
115
  #
@@ -99,16 +117,22 @@ module Straddle
99
117
  #
100
118
  # @param amount [Integer] The amount of the funding event in cents.
101
119
  #
120
+ # @param created_at [Time] Created at.
121
+ #
102
122
  # @param direction [Symbol, Straddle::Models::FundingEventSummaryItemV1::Data::Direction] Describes the direction of the funding event from the perspective of the `linked
103
123
  #
104
124
  # @param event_type [Symbol, Straddle::Models::FundingEventSummaryItemV1::Data::EventType] The funding event types describes the direction and reason for the funding event
105
125
  #
106
126
  # @param payment_count [Integer] The number of payments associated with the funding event.
107
127
  #
128
+ # @param trace_ids [Hash{Symbol=>String}] Trace Ids.
129
+ #
108
130
  # @param trace_numbers [Array<String>] Trace number.
109
131
  #
110
132
  # @param transfer_date [Date] The date on which the funding event occurred. For `deposits` and `returns`, this
111
133
  #
134
+ # @param updated_at [Time] Updated at.
135
+ #
112
136
  # @param trace_number [String, nil] The trace number of the funding event.
113
137
 
114
138
  # Describes the direction of the funding event from the perspective of the
@@ -48,6 +48,12 @@ module Straddle
48
48
  # @return [Integer]
49
49
  required :amount, Integer
50
50
 
51
+ # @!attribute created_at
52
+ # Created at.
53
+ #
54
+ # @return [Time]
55
+ required :created_at, Time
56
+
51
57
  # @!attribute direction
52
58
  # Describes the direction of the funding event from the perspective of the
53
59
  # `linked_bank_account`.
@@ -68,6 +74,12 @@ module Straddle
68
74
  # @return [Integer]
69
75
  required :payment_count, Integer
70
76
 
77
+ # @!attribute trace_ids
78
+ # Trace Ids.
79
+ #
80
+ # @return [Hash{Symbol=>String}]
81
+ required :trace_ids, Straddle::Internal::Type::HashOf[String]
82
+
71
83
  # @!attribute trace_numbers
72
84
  # Trace number.
73
85
  #
@@ -82,13 +94,19 @@ module Straddle
82
94
  # @return [Date]
83
95
  required :transfer_date, Date
84
96
 
97
+ # @!attribute updated_at
98
+ # Updated at.
99
+ #
100
+ # @return [Time]
101
+ required :updated_at, Time
102
+
85
103
  # @!attribute trace_number
86
104
  # The trace number of the funding event.
87
105
  #
88
106
  # @return [String, nil]
89
107
  optional :trace_number, String, nil?: true
90
108
 
91
- # @!method initialize(id:, amount:, direction:, event_type:, payment_count:, trace_numbers:, transfer_date:, trace_number: nil)
109
+ # @!method initialize(id:, amount:, created_at:, direction:, event_type:, payment_count:, trace_ids:, trace_numbers:, transfer_date:, updated_at:, trace_number: nil)
92
110
  # Some parameter documentations has been truncated, see
93
111
  # {Straddle::Models::FundingEventSummaryPagedV1::Data} for more details.
94
112
  #
@@ -96,16 +114,22 @@ module Straddle
96
114
  #
97
115
  # @param amount [Integer] The amount of the funding event in cents.
98
116
  #
117
+ # @param created_at [Time] Created at.
118
+ #
99
119
  # @param direction [Symbol, Straddle::Models::FundingEventSummaryPagedV1::Data::Direction] Describes the direction of the funding event from the perspective of the `linked
100
120
  #
101
121
  # @param event_type [Symbol, Straddle::Models::FundingEventSummaryPagedV1::Data::EventType] The funding event types describes the direction and reason for the funding event
102
122
  #
103
123
  # @param payment_count [Integer] The number of payments associated with the funding event.
104
124
  #
125
+ # @param trace_ids [Hash{Symbol=>String}] Trace Ids.
126
+ #
105
127
  # @param trace_numbers [Array<String>] Trace number.
106
128
  #
107
129
  # @param transfer_date [Date] The date on which the funding event occurred. For `deposits` and `returns`, this
108
130
  #
131
+ # @param updated_at [Time] Updated at.
132
+ #
109
133
  # @param trace_number [String, nil] The trace number of the funding event.
110
134
 
111
135
  # Describes the direction of the funding event from the perspective of the
@@ -17,6 +17,11 @@ module Straddle
17
17
  # @return [String, nil]
18
18
  optional :correlation_id, String
19
19
 
20
+ # @!attribute idempotency_key
21
+ #
22
+ # @return [String, nil]
23
+ optional :idempotency_key, String
24
+
20
25
  # @!attribute request_id
21
26
  #
22
27
  # @return [String, nil]
@@ -27,9 +32,10 @@ module Straddle
27
32
  # @return [String, nil]
28
33
  optional :straddle_account_id, String
29
34
 
30
- # @!method initialize(reason: nil, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
35
+ # @!method initialize(reason: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
31
36
  # @param reason [String, nil]
32
37
  # @param correlation_id [String]
38
+ # @param idempotency_key [String]
33
39
  # @param request_id [String]
34
40
  # @param straddle_account_id [String]
35
41
  # @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
@@ -108,6 +108,13 @@ module Straddle
108
108
  # @return [Time, nil]
109
109
  optional :expires_at, Time, nil?: true
110
110
 
111
+ # @!attribute external_id
112
+ # Unique identifier for the paykey in your database, used for cross-referencing
113
+ # between Straddle and your systems.
114
+ #
115
+ # @return [String, nil]
116
+ optional :external_id, String, nil?: true
117
+
111
118
  # @!attribute institution_name
112
119
  # Name of the financial institution.
113
120
  #
@@ -126,7 +133,7 @@ module Straddle
126
133
  # @return [Straddle::Models::PaykeyRevealResponse::Data::StatusDetails, nil]
127
134
  optional :status_details, -> { Straddle::Models::PaykeyRevealResponse::Data::StatusDetails }
128
135
 
129
- # @!method initialize(id:, config:, created_at:, label:, paykey:, source:, status:, updated_at:, balance: nil, bank_data: nil, customer_id: nil, expires_at: nil, institution_name: nil, metadata: nil, status_details: nil)
136
+ # @!method initialize(id:, config:, created_at:, label:, paykey:, source:, status:, updated_at:, balance: nil, bank_data: nil, customer_id: nil, expires_at: nil, external_id: nil, institution_name: nil, metadata: nil, status_details: nil)
130
137
  # Some parameter documentations has been truncated, see
131
138
  # {Straddle::Models::PaykeyRevealResponse::Data} for more details.
132
139
  #
@@ -154,6 +161,8 @@ module Straddle
154
161
  #
155
162
  # @param expires_at [Time, nil] Expiration date and time of the paykey, if applicable.
156
163
  #
164
+ # @param external_id [String, nil] Unique identifier for the paykey in your database, used for cross-referencing be
165
+ #
157
166
  # @param institution_name [String, nil] Name of the financial institution.
158
167
  #
159
168
  # @param metadata [Hash{Symbol=>String}, nil] Up to 20 additional user-defined key-value pairs. Useful for storing additional
@@ -162,15 +171,34 @@ module Straddle
162
171
 
163
172
  # @see Straddle::Models::PaykeyRevealResponse::Data#config
164
173
  class Config < Straddle::Internal::Type::BaseModel
174
+ # @!attribute processing_method
175
+ #
176
+ # @return [Symbol, Straddle::Models::PaykeyRevealResponse::Data::Config::ProcessingMethod, nil]
177
+ optional :processing_method,
178
+ enum: -> { Straddle::Models::PaykeyRevealResponse::Data::Config::ProcessingMethod }
179
+
165
180
  # @!attribute sandbox_outcome
166
181
  #
167
182
  # @return [Symbol, Straddle::Models::PaykeyRevealResponse::Data::Config::SandboxOutcome, nil]
168
183
  optional :sandbox_outcome,
169
184
  enum: -> { Straddle::Models::PaykeyRevealResponse::Data::Config::SandboxOutcome }
170
185
 
171
- # @!method initialize(sandbox_outcome: nil)
186
+ # @!method initialize(processing_method: nil, sandbox_outcome: nil)
187
+ # @param processing_method [Symbol, Straddle::Models::PaykeyRevealResponse::Data::Config::ProcessingMethod]
172
188
  # @param sandbox_outcome [Symbol, Straddle::Models::PaykeyRevealResponse::Data::Config::SandboxOutcome]
173
189
 
190
+ # @see Straddle::Models::PaykeyRevealResponse::Data::Config#processing_method
191
+ module ProcessingMethod
192
+ extend Straddle::Internal::Type::Enum
193
+
194
+ INLINE = :inline
195
+ BACKGROUND = :background
196
+ SKIP = :skip
197
+
198
+ # @!method self.values
199
+ # @return [Array<Symbol>]
200
+ end
201
+
174
202
  # @see Straddle::Models::PaykeyRevealResponse::Data::Config#sandbox_outcome
175
203
  module SandboxOutcome
176
204
  extend Straddle::Internal::Type::Enum
@@ -178,6 +206,7 @@ module Straddle
178
206
  STANDARD = :standard
179
207
  ACTIVE = :active
180
208
  REJECTED = :rejected
209
+ REVIEW = :review
181
210
 
182
211
  # @!method self.values
183
212
  # @return [Array<Symbol>]
@@ -100,6 +100,13 @@ module Straddle
100
100
  # @return [Time, nil]
101
101
  optional :expires_at, Time, nil?: true
102
102
 
103
+ # @!attribute external_id
104
+ # Unique identifier for the paykey in your database, used for cross-referencing
105
+ # between Straddle and your systems.
106
+ #
107
+ # @return [String, nil]
108
+ optional :external_id, String, nil?: true
109
+
103
110
  # @!attribute institution_name
104
111
  # Name of the financial institution.
105
112
  #
@@ -111,7 +118,7 @@ module Straddle
111
118
  # @return [Straddle::Models::PaykeySummaryPagedV1::Data::StatusDetails, nil]
112
119
  optional :status_details, -> { Straddle::PaykeySummaryPagedV1::Data::StatusDetails }
113
120
 
114
- # @!method initialize(id:, config:, created_at:, label:, paykey:, source:, status:, updated_at:, bank_data: nil, customer_id: nil, expires_at: nil, institution_name: nil, status_details: nil)
121
+ # @!method initialize(id:, config:, created_at:, label:, paykey:, source:, status:, updated_at:, bank_data: nil, customer_id: nil, expires_at: nil, external_id: nil, institution_name: nil, status_details: nil)
115
122
  # Some parameter documentations has been truncated, see
116
123
  # {Straddle::Models::PaykeySummaryPagedV1::Data} for more details.
117
124
  #
@@ -137,20 +144,40 @@ module Straddle
137
144
  #
138
145
  # @param expires_at [Time, nil] Expiration date and time of the paykey, if applicable.
139
146
  #
147
+ # @param external_id [String, nil] Unique identifier for the paykey in your database, used for cross-referencing be
148
+ #
140
149
  # @param institution_name [String, nil] Name of the financial institution.
141
150
  #
142
151
  # @param status_details [Straddle::Models::PaykeySummaryPagedV1::Data::StatusDetails]
143
152
 
144
153
  # @see Straddle::Models::PaykeySummaryPagedV1::Data#config
145
154
  class Config < Straddle::Internal::Type::BaseModel
155
+ # @!attribute processing_method
156
+ #
157
+ # @return [Symbol, Straddle::Models::PaykeySummaryPagedV1::Data::Config::ProcessingMethod, nil]
158
+ optional :processing_method, enum: -> { Straddle::PaykeySummaryPagedV1::Data::Config::ProcessingMethod }
159
+
146
160
  # @!attribute sandbox_outcome
147
161
  #
148
162
  # @return [Symbol, Straddle::Models::PaykeySummaryPagedV1::Data::Config::SandboxOutcome, nil]
149
163
  optional :sandbox_outcome, enum: -> { Straddle::PaykeySummaryPagedV1::Data::Config::SandboxOutcome }
150
164
 
151
- # @!method initialize(sandbox_outcome: nil)
165
+ # @!method initialize(processing_method: nil, sandbox_outcome: nil)
166
+ # @param processing_method [Symbol, Straddle::Models::PaykeySummaryPagedV1::Data::Config::ProcessingMethod]
152
167
  # @param sandbox_outcome [Symbol, Straddle::Models::PaykeySummaryPagedV1::Data::Config::SandboxOutcome]
153
168
 
169
+ # @see Straddle::Models::PaykeySummaryPagedV1::Data::Config#processing_method
170
+ module ProcessingMethod
171
+ extend Straddle::Internal::Type::Enum
172
+
173
+ INLINE = :inline
174
+ BACKGROUND = :background
175
+ SKIP = :skip
176
+
177
+ # @!method self.values
178
+ # @return [Array<Symbol>]
179
+ end
180
+
154
181
  # @see Straddle::Models::PaykeySummaryPagedV1::Data::Config#sandbox_outcome
155
182
  module SandboxOutcome
156
183
  extend Straddle::Internal::Type::Enum
@@ -158,6 +185,7 @@ module Straddle
158
185
  STANDARD = :standard
159
186
  ACTIVE = :active
160
187
  REJECTED = :rejected
188
+ REVIEW = :review
161
189
 
162
190
  # @!method self.values
163
191
  # @return [Array<Symbol>]
@@ -107,6 +107,13 @@ module Straddle
107
107
  # @return [Time, nil]
108
108
  optional :expires_at, Time, nil?: true
109
109
 
110
+ # @!attribute external_id
111
+ # Unique identifier for the paykey in your database, used for cross-referencing
112
+ # between Straddle and your systems.
113
+ #
114
+ # @return [String, nil]
115
+ optional :external_id, String, nil?: true
116
+
110
117
  # @!attribute institution_name
111
118
  # Name of the financial institution.
112
119
  #
@@ -125,7 +132,7 @@ module Straddle
125
132
  # @return [Straddle::Models::PaykeyUnmaskedV1::Data::StatusDetails, nil]
126
133
  optional :status_details, -> { Straddle::PaykeyUnmaskedV1::Data::StatusDetails }
127
134
 
128
- # @!method initialize(id:, config:, created_at:, label:, paykey:, source:, status:, updated_at:, balance: nil, bank_data: nil, customer_id: nil, expires_at: nil, institution_name: nil, metadata: nil, status_details: nil)
135
+ # @!method initialize(id:, config:, created_at:, label:, paykey:, source:, status:, updated_at:, balance: nil, bank_data: nil, customer_id: nil, expires_at: nil, external_id: nil, institution_name: nil, metadata: nil, status_details: nil)
129
136
  # Some parameter documentations has been truncated, see
130
137
  # {Straddle::Models::PaykeyUnmaskedV1::Data} for more details.
131
138
  #
@@ -153,6 +160,8 @@ module Straddle
153
160
  #
154
161
  # @param expires_at [Time, nil] Expiration date and time of the paykey, if applicable.
155
162
  #
163
+ # @param external_id [String, nil] Unique identifier for the paykey in your database, used for cross-referencing be
164
+ #
156
165
  # @param institution_name [String, nil] Name of the financial institution.
157
166
  #
158
167
  # @param metadata [Hash{Symbol=>String}, nil] Up to 20 additional user-defined key-value pairs. Useful for storing additional
@@ -161,14 +170,32 @@ module Straddle
161
170
 
162
171
  # @see Straddle::Models::PaykeyUnmaskedV1::Data#config
163
172
  class Config < Straddle::Internal::Type::BaseModel
173
+ # @!attribute processing_method
174
+ #
175
+ # @return [Symbol, Straddle::Models::PaykeyUnmaskedV1::Data::Config::ProcessingMethod, nil]
176
+ optional :processing_method, enum: -> { Straddle::PaykeyUnmaskedV1::Data::Config::ProcessingMethod }
177
+
164
178
  # @!attribute sandbox_outcome
165
179
  #
166
180
  # @return [Symbol, Straddle::Models::PaykeyUnmaskedV1::Data::Config::SandboxOutcome, nil]
167
181
  optional :sandbox_outcome, enum: -> { Straddle::PaykeyUnmaskedV1::Data::Config::SandboxOutcome }
168
182
 
169
- # @!method initialize(sandbox_outcome: nil)
183
+ # @!method initialize(processing_method: nil, sandbox_outcome: nil)
184
+ # @param processing_method [Symbol, Straddle::Models::PaykeyUnmaskedV1::Data::Config::ProcessingMethod]
170
185
  # @param sandbox_outcome [Symbol, Straddle::Models::PaykeyUnmaskedV1::Data::Config::SandboxOutcome]
171
186
 
187
+ # @see Straddle::Models::PaykeyUnmaskedV1::Data::Config#processing_method
188
+ module ProcessingMethod
189
+ extend Straddle::Internal::Type::Enum
190
+
191
+ INLINE = :inline
192
+ BACKGROUND = :background
193
+ SKIP = :skip
194
+
195
+ # @!method self.values
196
+ # @return [Array<Symbol>]
197
+ end
198
+
172
199
  # @see Straddle::Models::PaykeyUnmaskedV1::Data::Config#sandbox_outcome
173
200
  module SandboxOutcome
174
201
  extend Straddle::Internal::Type::Enum
@@ -176,6 +203,7 @@ module Straddle
176
203
  STANDARD = :standard
177
204
  ACTIVE = :active
178
205
  REJECTED = :rejected
206
+ REVIEW = :review
179
207
 
180
208
  # @!method self.values
181
209
  # @return [Array<Symbol>]
@@ -2,8 +2,8 @@
2
2
 
3
3
  module Straddle
4
4
  module Models
5
- # @see Straddle::Resources::Customers#refresh_review
6
- class CustomerRefreshReviewParams < Straddle::Internal::Type::BaseModel
5
+ # @see Straddle::Resources::Paykeys#update_balance
6
+ class PaykeyUpdateBalanceParams < Straddle::Internal::Type::BaseModel
7
7
  extend Straddle::Internal::Type::RequestParameters::Converter
8
8
  include Straddle::Internal::Type::RequestParameters
9
9
 
@@ -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}]
@@ -107,6 +107,13 @@ module Straddle
107
107
  # @return [Time, nil]
108
108
  optional :expires_at, Time, nil?: true
109
109
 
110
+ # @!attribute external_id
111
+ # Unique identifier for the paykey in your database, used for cross-referencing
112
+ # between Straddle and your systems.
113
+ #
114
+ # @return [String, nil]
115
+ optional :external_id, String, nil?: true
116
+
110
117
  # @!attribute institution_name
111
118
  # Name of the financial institution.
112
119
  #
@@ -125,7 +132,7 @@ module Straddle
125
132
  # @return [Straddle::Models::PaykeyV1::Data::StatusDetails, nil]
126
133
  optional :status_details, -> { Straddle::PaykeyV1::Data::StatusDetails }
127
134
 
128
- # @!method initialize(id:, config:, created_at:, label:, paykey:, source:, status:, updated_at:, balance: nil, bank_data: nil, customer_id: nil, expires_at: nil, institution_name: nil, metadata: nil, status_details: nil)
135
+ # @!method initialize(id:, config:, created_at:, label:, paykey:, source:, status:, updated_at:, balance: nil, bank_data: nil, customer_id: nil, expires_at: nil, external_id: nil, institution_name: nil, metadata: nil, status_details: nil)
129
136
  # Some parameter documentations has been truncated, see
130
137
  # {Straddle::Models::PaykeyV1::Data} for more details.
131
138
  #
@@ -153,6 +160,8 @@ module Straddle
153
160
  #
154
161
  # @param expires_at [Time, nil] Expiration date and time of the paykey, if applicable.
155
162
  #
163
+ # @param external_id [String, nil] Unique identifier for the paykey in your database, used for cross-referencing be
164
+ #
156
165
  # @param institution_name [String, nil] Name of the financial institution.
157
166
  #
158
167
  # @param metadata [Hash{Symbol=>String}, nil] Up to 20 additional user-defined key-value pairs. Useful for storing additional
@@ -161,14 +170,32 @@ module Straddle
161
170
 
162
171
  # @see Straddle::Models::PaykeyV1::Data#config
163
172
  class Config < Straddle::Internal::Type::BaseModel
173
+ # @!attribute processing_method
174
+ #
175
+ # @return [Symbol, Straddle::Models::PaykeyV1::Data::Config::ProcessingMethod, nil]
176
+ optional :processing_method, enum: -> { Straddle::PaykeyV1::Data::Config::ProcessingMethod }
177
+
164
178
  # @!attribute sandbox_outcome
165
179
  #
166
180
  # @return [Symbol, Straddle::Models::PaykeyV1::Data::Config::SandboxOutcome, nil]
167
181
  optional :sandbox_outcome, enum: -> { Straddle::PaykeyV1::Data::Config::SandboxOutcome }
168
182
 
169
- # @!method initialize(sandbox_outcome: nil)
183
+ # @!method initialize(processing_method: nil, sandbox_outcome: nil)
184
+ # @param processing_method [Symbol, Straddle::Models::PaykeyV1::Data::Config::ProcessingMethod]
170
185
  # @param sandbox_outcome [Symbol, Straddle::Models::PaykeyV1::Data::Config::SandboxOutcome]
171
186
 
187
+ # @see Straddle::Models::PaykeyV1::Data::Config#processing_method
188
+ module ProcessingMethod
189
+ extend Straddle::Internal::Type::Enum
190
+
191
+ INLINE = :inline
192
+ BACKGROUND = :background
193
+ SKIP = :skip
194
+
195
+ # @!method self.values
196
+ # @return [Array<Symbol>]
197
+ end
198
+
172
199
  # @see Straddle::Models::PaykeyV1::Data::Config#sandbox_outcome
173
200
  module SandboxOutcome
174
201
  extend Straddle::Internal::Type::Enum
@@ -176,6 +203,7 @@ module Straddle
176
203
  STANDARD = :standard
177
204
  ACTIVE = :active
178
205
  REJECTED = :rejected
206
+ REVIEW = :review
179
207
 
180
208
  # @!method self.values
181
209
  # @return [Array<Symbol>]