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
@@ -9,8 +9,8 @@ module Straddle
9
9
  DEFAULT_MAX_RETRY_DELAY: Float
10
10
 
11
11
  ENVIRONMENTS: {
12
- sandbox: "https://sandbox.straddle.io",
13
- production: "https://production.straddle.io"
12
+ sandbox: "https://sandbox.straddle.com",
13
+ production: "https://production.straddle.com"
14
14
  }
15
15
 
16
16
  attr_reader api_key: String
@@ -21,11 +21,14 @@ module Straddle
21
21
 
22
22
  attr_accessor status: Integer?
23
23
 
24
+ attr_accessor headers: ::Hash[String, String]?
25
+
24
26
  attr_accessor body: top?
25
27
 
26
28
  def initialize: (
27
29
  url: URI::Generic,
28
30
  ?status: Integer?,
31
+ ?headers: ::Hash[String, String]?,
29
32
  ?body: Object?,
30
33
  ?request: nil,
31
34
  ?response: nil,
@@ -37,6 +40,7 @@ module Straddle
37
40
  def initialize: (
38
41
  url: URI::Generic,
39
42
  ?status: nil,
43
+ ?headers: ::Hash[String, String]?,
40
44
  ?body: nil,
41
45
  ?request: nil,
42
46
  ?response: nil,
@@ -48,6 +52,7 @@ module Straddle
48
52
  def initialize: (
49
53
  url: URI::Generic,
50
54
  ?status: nil,
55
+ ?headers: ::Hash[String, String]?,
51
56
  ?body: nil,
52
57
  ?request: nil,
53
58
  ?response: nil,
@@ -59,6 +64,7 @@ module Straddle
59
64
  def self.for: (
60
65
  url: URI::Generic,
61
66
  status: Integer,
67
+ headers: ::Hash[String, String]?,
62
68
  body: Object?,
63
69
  request: nil,
64
70
  response: nil,
@@ -68,6 +74,7 @@ module Straddle
68
74
  def initialize: (
69
75
  url: URI::Generic,
70
76
  status: Integer,
77
+ headers: ::Hash[String, String]?,
71
78
  body: Object?,
72
79
  request: nil,
73
80
  response: nil,
@@ -14,7 +14,7 @@ module Straddle
14
14
 
15
15
  def initialize: (
16
16
  Pathname | StringIO | IO | String content,
17
- ?filename: String?,
17
+ ?filename: (Pathname | String)?,
18
18
  ?content_type: String?
19
19
  ) -> void
20
20
  end
@@ -99,7 +99,7 @@ module Straddle
99
99
  retry_count: Integer
100
100
  ) -> Float
101
101
 
102
- private def send_request: (
102
+ def send_request: (
103
103
  Straddle::Internal::Transport::BaseClient::request_input request,
104
104
  redirect_count: Integer,
105
105
  retry_count: Integer,
@@ -39,6 +39,23 @@ module Straddle
39
39
  | Straddle::Internal::Type::Converter::input spec
40
40
  ) -> (^-> top)
41
41
 
42
+ def self.meta_info: (
43
+ {
44
+ const: (nil | bool | Integer | Float | Symbol)?,
45
+ enum: ^-> Straddle::Internal::Type::Converter::input?,
46
+ union: ^-> Straddle::Internal::Type::Converter::input?
47
+ }
48
+ | ^-> Straddle::Internal::Type::Converter::input
49
+ | Straddle::Internal::Type::Converter::input type_info,
50
+ {
51
+ const: (nil | bool | Integer | Float | Symbol)?,
52
+ enum: ^-> Straddle::Internal::Type::Converter::input?,
53
+ union: ^-> Straddle::Internal::Type::Converter::input?
54
+ }
55
+ | ^-> Straddle::Internal::Type::Converter::input
56
+ | Straddle::Internal::Type::Converter::input spec
57
+ ) -> ::Hash[Symbol, top]
58
+
42
59
  def self.new_coerce_state: (
43
60
  ?translate_names: bool
44
61
  ) -> Straddle::Internal::Type::Converter::coerce_state
@@ -5,9 +5,9 @@ module Straddle
5
5
  include Straddle::Internal::Type::Converter
6
6
  include Straddle::Internal::Util::SorbetRuntimeSupport
7
7
 
8
- private def self.known_variants: -> ::Array[[Symbol?, (^-> Straddle::Internal::Type::Converter::input)]]
8
+ private def self.known_variants: -> ::Array[[Symbol?, (^-> Straddle::Internal::Type::Converter::input), ::Hash[Symbol, top]]]
9
9
 
10
- def self.derefed_variants: -> ::Array[[Symbol?, top]]
10
+ def self.derefed_variants: -> ::Array[[Symbol?, top, ::Hash[Symbol, top]]]
11
11
 
12
12
  def self.variants: -> ::Array[top]
13
13
 
@@ -10,6 +10,7 @@ module Straddle
10
10
  config: Straddle::Bridge::LinkBankAccountParams::Config,
11
11
  metadata: ::Hash[Symbol, String]?,
12
12
  correlation_id: String,
13
+ idempotency_key: String,
13
14
  request_id: String,
14
15
  straddle_account_id: String
15
16
  }
@@ -39,6 +40,10 @@ module Straddle
39
40
 
40
41
  def correlation_id=: (String) -> String
41
42
 
43
+ attr_reader idempotency_key: String?
44
+
45
+ def idempotency_key=: (String) -> String
46
+
42
47
  attr_reader request_id: String?
43
48
 
44
49
  def request_id=: (String) -> String
@@ -55,6 +60,7 @@ module Straddle
55
60
  ?config: Straddle::Bridge::LinkBankAccountParams::Config,
56
61
  ?metadata: ::Hash[Symbol, String]?,
57
62
  ?correlation_id: String,
63
+ ?idempotency_key: String,
58
64
  ?request_id: String,
59
65
  ?straddle_account_id: String,
60
66
  ?request_options: Straddle::request_opts
@@ -68,6 +74,7 @@ module Straddle
68
74
  config: Straddle::Bridge::LinkBankAccountParams::Config,
69
75
  metadata: ::Hash[Symbol, String]?,
70
76
  correlation_id: String,
77
+ idempotency_key: String,
71
78
  request_id: String,
72
79
  straddle_account_id: String,
73
80
  request_options: Straddle::RequestOptions
@@ -8,6 +8,7 @@ module Straddle
8
8
  config: Straddle::Bridge::LinkCreatePaykeyParams::Config,
9
9
  metadata: ::Hash[Symbol, String]?,
10
10
  correlation_id: String,
11
+ idempotency_key: String,
11
12
  request_id: String,
12
13
  straddle_account_id: String
13
14
  }
@@ -33,6 +34,10 @@ module Straddle
33
34
 
34
35
  def correlation_id=: (String) -> String
35
36
 
37
+ attr_reader idempotency_key: String?
38
+
39
+ def idempotency_key=: (String) -> String
40
+
36
41
  attr_reader request_id: String?
37
42
 
38
43
  def request_id=: (String) -> String
@@ -47,6 +52,7 @@ module Straddle
47
52
  ?config: Straddle::Bridge::LinkCreatePaykeyParams::Config,
48
53
  ?metadata: ::Hash[Symbol, String]?,
49
54
  ?correlation_id: String,
55
+ ?idempotency_key: String,
50
56
  ?request_id: String,
51
57
  ?straddle_account_id: String,
52
58
  ?request_options: Straddle::request_opts
@@ -58,6 +64,7 @@ module Straddle
58
64
  config: Straddle::Bridge::LinkCreatePaykeyParams::Config,
59
65
  metadata: ::Hash[Symbol, String]?,
60
66
  correlation_id: String,
67
+ idempotency_key: String,
61
68
  request_id: String,
62
69
  straddle_account_id: String,
63
70
  request_options: Straddle::RequestOptions
@@ -10,6 +10,7 @@ module Straddle
10
10
  config: Straddle::Bridge::LinkCreateTanParams::Config,
11
11
  metadata: ::Hash[Symbol, String]?,
12
12
  correlation_id: String,
13
+ idempotency_key: String,
13
14
  request_id: String,
14
15
  straddle_account_id: String
15
16
  }
@@ -39,6 +40,10 @@ module Straddle
39
40
 
40
41
  def correlation_id=: (String) -> String
41
42
 
43
+ attr_reader idempotency_key: String?
44
+
45
+ def idempotency_key=: (String) -> String
46
+
42
47
  attr_reader request_id: String?
43
48
 
44
49
  def request_id=: (String) -> String
@@ -55,6 +60,7 @@ module Straddle
55
60
  ?config: Straddle::Bridge::LinkCreateTanParams::Config,
56
61
  ?metadata: ::Hash[Symbol, String]?,
57
62
  ?correlation_id: String,
63
+ ?idempotency_key: String,
58
64
  ?request_id: String,
59
65
  ?straddle_account_id: String,
60
66
  ?request_options: Straddle::request_opts
@@ -68,6 +74,7 @@ module Straddle
68
74
  config: Straddle::Bridge::LinkCreateTanParams::Config,
69
75
  metadata: ::Hash[Symbol, String]?,
70
76
  correlation_id: String,
77
+ idempotency_key: String,
71
78
  request_id: String,
72
79
  straddle_account_id: String,
73
80
  request_options: Straddle::RequestOptions
@@ -8,6 +8,7 @@ module Straddle
8
8
  config: Straddle::Bridge::LinkPlaidParams::Config,
9
9
  metadata: ::Hash[Symbol, String]?,
10
10
  correlation_id: String,
11
+ idempotency_key: String,
11
12
  request_id: String,
12
13
  straddle_account_id: String
13
14
  }
@@ -33,6 +34,10 @@ module Straddle
33
34
 
34
35
  def correlation_id=: (String) -> String
35
36
 
37
+ attr_reader idempotency_key: String?
38
+
39
+ def idempotency_key=: (String) -> String
40
+
36
41
  attr_reader request_id: String?
37
42
 
38
43
  def request_id=: (String) -> String
@@ -47,6 +52,7 @@ module Straddle
47
52
  ?config: Straddle::Bridge::LinkPlaidParams::Config,
48
53
  ?metadata: ::Hash[Symbol, String]?,
49
54
  ?correlation_id: String,
55
+ ?idempotency_key: String,
50
56
  ?request_id: String,
51
57
  ?straddle_account_id: String,
52
58
  ?request_options: Straddle::request_opts
@@ -58,6 +64,7 @@ module Straddle
58
64
  config: Straddle::Bridge::LinkPlaidParams::Config,
59
65
  metadata: ::Hash[Symbol, String]?,
60
66
  correlation_id: String,
67
+ idempotency_key: String,
61
68
  request_id: String,
62
69
  straddle_account_id: String,
63
70
  request_options: Straddle::RequestOptions
@@ -5,6 +5,7 @@ module Straddle
5
5
  customer_id: String,
6
6
  config: Straddle::BridgeInitializeParams::Config,
7
7
  correlation_id: String,
8
+ idempotency_key: String,
8
9
  request_id: String,
9
10
  straddle_account_id: String
10
11
  }
@@ -26,6 +27,10 @@ module Straddle
26
27
 
27
28
  def correlation_id=: (String) -> String
28
29
 
30
+ attr_reader idempotency_key: String?
31
+
32
+ def idempotency_key=: (String) -> String
33
+
29
34
  attr_reader request_id: String?
30
35
 
31
36
  def request_id=: (String) -> String
@@ -38,6 +43,7 @@ module Straddle
38
43
  customer_id: String,
39
44
  ?config: Straddle::BridgeInitializeParams::Config,
40
45
  ?correlation_id: String,
46
+ ?idempotency_key: String,
41
47
  ?request_id: String,
42
48
  ?straddle_account_id: String,
43
49
  ?request_options: Straddle::request_opts
@@ -47,6 +53,7 @@ module Straddle
47
53
  customer_id: String,
48
54
  config: Straddle::BridgeInitializeParams::Config,
49
55
  correlation_id: String,
56
+ idempotency_key: String,
50
57
  request_id: String,
51
58
  straddle_account_id: String,
52
59
  request_options: Straddle::RequestOptions
@@ -4,6 +4,7 @@ module Straddle
4
4
  {
5
5
  reason: String?,
6
6
  correlation_id: String,
7
+ idempotency_key: String,
7
8
  request_id: String,
8
9
  straddle_account_id: String
9
10
  }
@@ -19,6 +20,10 @@ module Straddle
19
20
 
20
21
  def correlation_id=: (String) -> String
21
22
 
23
+ attr_reader idempotency_key: String?
24
+
25
+ def idempotency_key=: (String) -> String
26
+
22
27
  attr_reader request_id: String?
23
28
 
24
29
  def request_id=: (String) -> String
@@ -30,6 +35,7 @@ module Straddle
30
35
  def initialize: (
31
36
  ?reason: String?,
32
37
  ?correlation_id: String,
38
+ ?idempotency_key: String,
33
39
  ?request_id: String,
34
40
  ?straddle_account_id: String,
35
41
  ?request_options: Straddle::request_opts
@@ -38,6 +44,7 @@ module Straddle
38
44
  def to_hash: -> {
39
45
  reason: String?,
40
46
  correlation_id: String,
47
+ idempotency_key: String,
41
48
  request_id: String,
42
49
  straddle_account_id: String,
43
50
  request_options: Straddle::RequestOptions
@@ -13,6 +13,7 @@ module Straddle
13
13
  payment_date: Date,
14
14
  metadata: ::Hash[Symbol, String]?,
15
15
  correlation_id: String,
16
+ idempotency_key: String,
16
17
  request_id: String,
17
18
  straddle_account_id: String
18
19
  }
@@ -46,6 +47,10 @@ module Straddle
46
47
 
47
48
  def correlation_id=: (String) -> String
48
49
 
50
+ attr_reader idempotency_key: String?
51
+
52
+ def idempotency_key=: (String) -> String
53
+
49
54
  attr_reader request_id: String?
50
55
 
51
56
  def request_id=: (String) -> String
@@ -66,6 +71,7 @@ module Straddle
66
71
  payment_date: Date,
67
72
  ?metadata: ::Hash[Symbol, String]?,
68
73
  ?correlation_id: String,
74
+ ?idempotency_key: String,
69
75
  ?request_id: String,
70
76
  ?straddle_account_id: String,
71
77
  ?request_options: Straddle::request_opts
@@ -83,6 +89,7 @@ module Straddle
83
89
  payment_date: Date,
84
90
  metadata: ::Hash[Symbol, String]?,
85
91
  correlation_id: String,
92
+ idempotency_key: String,
86
93
  request_id: String,
87
94
  straddle_account_id: String,
88
95
  request_options: Straddle::RequestOptions
@@ -4,6 +4,7 @@ module Straddle
4
4
  {
5
5
  reason: String?,
6
6
  correlation_id: String,
7
+ idempotency_key: String,
7
8
  request_id: String,
8
9
  straddle_account_id: String
9
10
  }
@@ -19,6 +20,10 @@ module Straddle
19
20
 
20
21
  def correlation_id=: (String) -> String
21
22
 
23
+ attr_reader idempotency_key: String?
24
+
25
+ def idempotency_key=: (String) -> String
26
+
22
27
  attr_reader request_id: String?
23
28
 
24
29
  def request_id=: (String) -> String
@@ -30,6 +35,7 @@ module Straddle
30
35
  def initialize: (
31
36
  ?reason: String?,
32
37
  ?correlation_id: String,
38
+ ?idempotency_key: String,
33
39
  ?request_id: String,
34
40
  ?straddle_account_id: String,
35
41
  ?request_options: Straddle::request_opts
@@ -38,6 +44,7 @@ module Straddle
38
44
  def to_hash: -> {
39
45
  reason: String?,
40
46
  correlation_id: String,
47
+ idempotency_key: String,
41
48
  request_id: String,
42
49
  straddle_account_id: String,
43
50
  request_options: Straddle::RequestOptions
@@ -4,6 +4,7 @@ module Straddle
4
4
  {
5
5
  reason: String?,
6
6
  correlation_id: String,
7
+ idempotency_key: String,
7
8
  request_id: String,
8
9
  straddle_account_id: String
9
10
  }
@@ -19,6 +20,10 @@ module Straddle
19
20
 
20
21
  def correlation_id=: (String) -> String
21
22
 
23
+ attr_reader idempotency_key: String?
24
+
25
+ def idempotency_key=: (String) -> String
26
+
22
27
  attr_reader request_id: String?
23
28
 
24
29
  def request_id=: (String) -> String
@@ -30,6 +35,7 @@ module Straddle
30
35
  def initialize: (
31
36
  ?reason: String?,
32
37
  ?correlation_id: String,
38
+ ?idempotency_key: String,
33
39
  ?request_id: String,
34
40
  ?straddle_account_id: String,
35
41
  ?request_options: Straddle::request_opts
@@ -38,6 +44,7 @@ module Straddle
38
44
  def to_hash: -> {
39
45
  reason: String?,
40
46
  correlation_id: String,
47
+ idempotency_key: String,
41
48
  request_id: String,
42
49
  straddle_account_id: String,
43
50
  request_options: Straddle::RequestOptions
@@ -7,6 +7,7 @@ module Straddle
7
7
  payment_date: Date,
8
8
  metadata: ::Hash[Symbol, String]?,
9
9
  correlation_id: String,
10
+ idempotency_key: String,
10
11
  request_id: String,
11
12
  straddle_account_id: String
12
13
  }
@@ -28,6 +29,10 @@ module Straddle
28
29
 
29
30
  def correlation_id=: (String) -> String
30
31
 
32
+ attr_reader idempotency_key: String?
33
+
34
+ def idempotency_key=: (String) -> String
35
+
31
36
  attr_reader request_id: String?
32
37
 
33
38
  def request_id=: (String) -> String
@@ -42,6 +47,7 @@ module Straddle
42
47
  payment_date: Date,
43
48
  ?metadata: ::Hash[Symbol, String]?,
44
49
  ?correlation_id: String,
50
+ ?idempotency_key: String,
45
51
  ?request_id: String,
46
52
  ?straddle_account_id: String,
47
53
  ?request_options: Straddle::request_opts
@@ -53,6 +59,7 @@ module Straddle
53
59
  payment_date: Date,
54
60
  metadata: ::Hash[Symbol, String]?,
55
61
  correlation_id: String,
62
+ idempotency_key: String,
56
63
  request_id: String,
57
64
  straddle_account_id: String,
58
65
  request_options: Straddle::RequestOptions
@@ -13,6 +13,7 @@ module Straddle
13
13
  external_id: String?,
14
14
  metadata: ::Hash[Symbol, String]?,
15
15
  correlation_id: String,
16
+ idempotency_key: String,
16
17
  request_id: String,
17
18
  straddle_account_id: String
18
19
  }
@@ -50,6 +51,10 @@ module Straddle
50
51
 
51
52
  def correlation_id=: (String) -> String
52
53
 
54
+ attr_reader idempotency_key: String?
55
+
56
+ def idempotency_key=: (String) -> String
57
+
53
58
  attr_reader request_id: String?
54
59
 
55
60
  def request_id=: (String) -> String
@@ -70,6 +75,7 @@ module Straddle
70
75
  ?external_id: String?,
71
76
  ?metadata: ::Hash[Symbol, String]?,
72
77
  ?correlation_id: String,
78
+ ?idempotency_key: String,
73
79
  ?request_id: String,
74
80
  ?straddle_account_id: String,
75
81
  ?request_options: Straddle::request_opts
@@ -87,6 +93,7 @@ module Straddle
87
93
  external_id: String?,
88
94
  metadata: ::Hash[Symbol, String]?,
89
95
  correlation_id: String,
96
+ idempotency_key: String,
90
97
  request_id: String,
91
98
  straddle_account_id: String,
92
99
  request_options: Straddle::RequestOptions
@@ -3,6 +3,7 @@ module Straddle
3
3
  type customer_delete_params =
4
4
  {
5
5
  correlation_id: String,
6
+ idempotency_key: String,
6
7
  request_id: String,
7
8
  straddle_account_id: String
8
9
  }
@@ -16,6 +17,10 @@ module Straddle
16
17
 
17
18
  def correlation_id=: (String) -> String
18
19
 
20
+ attr_reader idempotency_key: String?
21
+
22
+ def idempotency_key=: (String) -> String
23
+
19
24
  attr_reader request_id: String?
20
25
 
21
26
  def request_id=: (String) -> String
@@ -26,6 +31,7 @@ module Straddle
26
31
 
27
32
  def initialize: (
28
33
  ?correlation_id: String,
34
+ ?idempotency_key: String,
29
35
  ?request_id: String,
30
36
  ?straddle_account_id: String,
31
37
  ?request_options: Straddle::request_opts
@@ -33,6 +39,7 @@ module Straddle
33
39
 
34
40
  def to_hash: -> {
35
41
  correlation_id: String,
42
+ idempotency_key: String,
36
43
  request_id: String,
37
44
  straddle_account_id: String,
38
45
  request_options: Straddle::RequestOptions
@@ -3,6 +3,7 @@ module Straddle
3
3
  type customer_refresh_review_params =
4
4
  {
5
5
  correlation_id: String,
6
+ idempotency_key: String,
6
7
  request_id: String,
7
8
  straddle_account_id: String
8
9
  }
@@ -16,6 +17,10 @@ module Straddle
16
17
 
17
18
  def correlation_id=: (String) -> String
18
19
 
20
+ attr_reader idempotency_key: String?
21
+
22
+ def idempotency_key=: (String) -> String
23
+
19
24
  attr_reader request_id: String?
20
25
 
21
26
  def request_id=: (String) -> String
@@ -26,6 +31,7 @@ module Straddle
26
31
 
27
32
  def initialize: (
28
33
  ?correlation_id: String,
34
+ ?idempotency_key: String,
29
35
  ?request_id: String,
30
36
  ?straddle_account_id: String,
31
37
  ?request_options: Straddle::request_opts
@@ -33,6 +39,7 @@ module Straddle
33
39
 
34
40
  def to_hash: -> {
35
41
  correlation_id: String,
42
+ idempotency_key: String,
36
43
  request_id: String,
37
44
  straddle_account_id: String,
38
45
  request_options: Straddle::RequestOptions
@@ -12,6 +12,7 @@ module Straddle
12
12
  external_id: String?,
13
13
  metadata: ::Hash[Symbol, String]?,
14
14
  correlation_id: String,
15
+ idempotency_key: String,
15
16
  request_id: String,
16
17
  straddle_account_id: String
17
18
  }
@@ -43,6 +44,10 @@ module Straddle
43
44
 
44
45
  def correlation_id=: (String) -> String
45
46
 
47
+ attr_reader idempotency_key: String?
48
+
49
+ def idempotency_key=: (String) -> String
50
+
46
51
  attr_reader request_id: String?
47
52
 
48
53
  def request_id=: (String) -> String
@@ -62,6 +67,7 @@ module Straddle
62
67
  ?external_id: String?,
63
68
  ?metadata: ::Hash[Symbol, String]?,
64
69
  ?correlation_id: String,
70
+ ?idempotency_key: String,
65
71
  ?request_id: String,
66
72
  ?straddle_account_id: String,
67
73
  ?request_options: Straddle::request_opts
@@ -78,6 +84,7 @@ module Straddle
78
84
  external_id: String?,
79
85
  metadata: ::Hash[Symbol, String]?,
80
86
  correlation_id: String,
87
+ idempotency_key: String,
81
88
  request_id: String,
82
89
  straddle_account_id: String,
83
90
  request_options: Straddle::RequestOptions
@@ -5,6 +5,7 @@ module Straddle
5
5
  {
6
6
  status: Straddle::Models::Customers::ReviewDecisionParams::status,
7
7
  correlation_id: String,
8
+ idempotency_key: String,
8
9
  request_id: String,
9
10
  straddle_account_id: String
10
11
  }
@@ -20,6 +21,10 @@ module Straddle
20
21
 
21
22
  def correlation_id=: (String) -> String
22
23
 
24
+ attr_reader idempotency_key: String?
25
+
26
+ def idempotency_key=: (String) -> String
27
+
23
28
  attr_reader request_id: String?
24
29
 
25
30
  def request_id=: (String) -> String
@@ -31,6 +36,7 @@ module Straddle
31
36
  def initialize: (
32
37
  status: Straddle::Models::Customers::ReviewDecisionParams::status,
33
38
  ?correlation_id: String,
39
+ ?idempotency_key: String,
34
40
  ?request_id: String,
35
41
  ?straddle_account_id: String,
36
42
  ?request_options: Straddle::request_opts
@@ -39,6 +45,7 @@ module Straddle
39
45
  def to_hash: -> {
40
46
  status: Straddle::Models::Customers::ReviewDecisionParams::status,
41
47
  correlation_id: String,
48
+ idempotency_key: String,
42
49
  request_id: String,
43
50
  straddle_account_id: String,
44
51
  request_options: Straddle::RequestOptions
@@ -10,6 +10,7 @@ module Straddle
10
10
  external_id: String?,
11
11
  metadata: ::Hash[Symbol, String?]?,
12
12
  correlation_id: String,
13
+ idempotency_key: String,
13
14
  request_id: String
14
15
  }
15
16
  & Straddle::Internal::Type::request_parameters
@@ -34,6 +35,10 @@ module Straddle
34
35
 
35
36
  def correlation_id=: (String) -> String
36
37
 
38
+ attr_reader idempotency_key: String?
39
+
40
+ def idempotency_key=: (String) -> String
41
+
37
42
  attr_reader request_id: String?
38
43
 
39
44
  def request_id=: (String) -> String
@@ -46,6 +51,7 @@ module Straddle
46
51
  ?external_id: String?,
47
52
  ?metadata: ::Hash[Symbol, String?]?,
48
53
  ?correlation_id: String,
54
+ ?idempotency_key: String,
49
55
  ?request_id: String,
50
56
  ?request_options: Straddle::request_opts
51
57
  ) -> void
@@ -58,6 +64,7 @@ module Straddle
58
64
  external_id: String?,
59
65
  metadata: ::Hash[Symbol, String?]?,
60
66
  correlation_id: String,
67
+ idempotency_key: String,
61
68
  request_id: String,
62
69
  request_options: Straddle::RequestOptions
63
70
  }