straddle 1.0.0 → 1.0.4
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +41 -0
- data/README.md +1 -1
- data/SKILL.md +1 -1
- data/api.md +4 -4
- data/lib/straddle/models/payout.rb +14 -14
- data/lib/straddle/models/unmasked_payout.rb +14 -14
- data/lib/straddle/version.rb +1 -1
- data/rbi/straddle/models/payout.rbi +18 -18
- data/rbi/straddle/models/unmasked_payout.rbi +18 -18
- data/sig/straddle/models/payout.rbs +12 -12
- data/sig/straddle/models/unmasked_payout.rbs +12 -12
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c0d766e4186d873ec4b23ab0d11899bbb6a6b57f716cb6de6c6a2880cc35634e
|
|
4
|
+
data.tar.gz: bb1917c2ac8c584b159c2470d1c8d8deadd9fdcc3dbdc9caa6e1298bacfa2817
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c0dd3d2076bde96c8a21a9cfbae698617bb5a3b569eaa825d2d563d56b7675ac47c3896d56f4e50fd37650629c0c801fc6638ddec66abe50a8b3b013b76aff9d
|
|
7
|
+
data.tar.gz: db128c7886902ae7708cdde578f21f973a2f50ec28d1fdeab4b96065ba82e72ff95c942889215c3517ea0ce91fb2511f23e60e49f589c7e48ba77671acd11586
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.4](https://github.com/straddle-build/straddle-ruby/compare/v1.0.0...v1.0.4) (2026-09-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* **api:** 16 breaking changes to the SDK surface.
|
|
9
|
+
- Response content type of `bridge.createBankAccountPaykey` changed from `text/plain` to `application/json`.
|
|
10
|
+
- `400` error response of `bridge.createBankAccountPaykey` changed from `error_response` to `error_response`.
|
|
11
|
+
- Response content type of `customers.create` changed from `text/plain` to `application/json`.
|
|
12
|
+
- `400` error response of `customers.create` changed from `error_response` to `error_response`.
|
|
13
|
+
- Response content type of `charges.create` changed from `text/plain` to `application/json`.
|
|
14
|
+
- `400` error response of `charges.create` changed from `error_response` to `error_response`.
|
|
15
|
+
- Response content type of `payouts.create` changed from `text/plain` to `application/json`.
|
|
16
|
+
- `400` error response of `payouts.create` changed from `error_response` to `error_response`.
|
|
17
|
+
- Property `payout.created_at` is now required.
|
|
18
|
+
- Property `payout.created_at` type changed from `string<date-time> | null` to `string<date-time>`.
|
|
19
|
+
- Property `payout.updated_at` is now required.
|
|
20
|
+
- Property `payout.updated_at` type changed from `string<date-time> | null` to `string<date-time>`.
|
|
21
|
+
- Property `unmasked_payout.created_at` is now required.
|
|
22
|
+
- Property `unmasked_payout.created_at` type changed from `string<date-time> | null` to `string<date-time>`.
|
|
23
|
+
- Property `unmasked_payout.updated_at` is now required.
|
|
24
|
+
- Property `unmasked_payout.updated_at` type changed from `string<date-time> | null` to `string<date-time>`.
|
|
25
|
+
* **api:** 4 breaking changes to the SDK surface.
|
|
26
|
+
- Property `embed_error_response.data` type changed from `unknown | null` to `unknown`.
|
|
27
|
+
- Schema `customer_address` shape changed.
|
|
28
|
+
- Schema `unmasked_compliance_profile` shape changed.
|
|
29
|
+
- Schema `compliance_profile` shape changed.
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* **api:** update property embed_error_response.data (+3 more changes) ([5831731](https://github.com/straddle-build/straddle-ruby/commit/58317314c523b64a34c612b42865ca6f1a280273))
|
|
34
|
+
* **api:** update SDK surface (17 changes) ([240b1ad](https://github.com/straddle-build/straddle-ruby/commit/240b1adb0d63f7970583a176f74edfd59ac32b9c))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Chores
|
|
38
|
+
|
|
39
|
+
* release 1.0.3 ([b66c899](https://github.com/straddle-build/straddle-ruby/commit/b66c899c3526406bc2c2aac0971005414c93e1f4))
|
|
40
|
+
* release 1.0.3 ([79f8e16](https://github.com/straddle-build/straddle-ruby/commit/79f8e164d9230f65874ac8b2c270899f76a0e184))
|
|
41
|
+
* release 1.0.4 ([da97155](https://github.com/straddle-build/straddle-ruby/commit/da97155f00da180a14f6f2ac3d73434a477c0a31))
|
|
42
|
+
* release 1.0.4 ([541ab1e](https://github.com/straddle-build/straddle-ruby/commit/541ab1ee99434518fc7ba6d303a7398c44d52dd6))
|
|
43
|
+
|
|
3
44
|
## [1.0.0](https://github.com/straddle-build/straddle-ruby/compare/v0.1.0...v1.0.0) (2026-09-02)
|
|
4
45
|
|
|
5
46
|
|
data/README.md
CHANGED
|
@@ -26,7 +26,7 @@ The full API of this library can be found in [api.md](./api.md).
|
|
|
26
26
|
Add the gem to your application's `Gemfile`:
|
|
27
27
|
|
|
28
28
|
```ruby
|
|
29
|
-
gem "straddle", "~> 1.0.
|
|
29
|
+
gem "straddle", "~> 1.0.4" # x-release-please-version
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
Or install it directly:
|
data/SKILL.md
CHANGED
|
@@ -12,7 +12,7 @@ Generated Ruby client for Straddle API, published as `straddle`. Use the generat
|
|
|
12
12
|
Add the gem to your application's `Gemfile`:
|
|
13
13
|
|
|
14
14
|
```ruby
|
|
15
|
-
gem "straddle", "~> 1.0.
|
|
15
|
+
gem "straddle", "~> 1.0.4" # x-release-please-version
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
Or install it directly:
|
data/api.md
CHANGED
|
@@ -242,7 +242,7 @@ Creates a linked bank account for an account or platform, assigns its payment pu
|
|
|
242
242
|
| Response | [`LinkedBankAccountResponse`](././lib/straddle/models/linked_bank_account_response.rb) |
|
|
243
243
|
|
|
244
244
|
```ruby
|
|
245
|
-
response = client.linked_bank_accounts.create({ bank_account: { "account_holder" => "", "routing_number" => "xxxxxxxxx", "account_number" => "" }, account_id: "7c9e6679-7425-40de-944b-e07fc1f90ae7", description: "", metadata: { }, platform_id: "7c9e6679-7425-40de-944b-e07fc1f90ae7", purposes: [] })
|
|
245
|
+
response = client.linked_bank_accounts.create({ bank_account: { "account_holder" => "", "routing_number" => "xxxxxxxxx", "account_number" => "" }, account_id: "7c9e6679-7425-40de-944b-e07fc1f90ae7", description: "", metadata: { }, platform_id: "7c9e6679-7425-40de-944b-e07fc1f90ae7", purposes: ["charges"] })
|
|
246
246
|
|
|
247
247
|
puts response.inspect
|
|
248
248
|
```
|
|
@@ -588,7 +588,7 @@ Creates a customer and starts identity, fraud, and risk assessments.
|
|
|
588
588
|
| Response | [`CustomerResponse`](././lib/straddle/models/customer_response.rb) |
|
|
589
589
|
|
|
590
590
|
```ruby
|
|
591
|
-
response = client.customers.create({ device: { "ip_address" => "192.168.1.1" }, email: "ron.swanson@pawnee.com", name: "Ron Swanson", phone: "+12128675309", type: "individual", address: { "address1" => "123 Main St", "city" => "Anytown", "state" => "CA", "zip" => "
|
|
591
|
+
response = client.customers.create({ device: { "ip_address" => "192.168.1.1" }, email: "ron.swanson@pawnee.com", name: "Ron Swanson", phone: "+12128675309", type: "individual", address: { "address1" => "123 Main St", "city" => "Anytown", "state" => "CA", "zip" => "12345" }, compliance_profile: StringIO.new("smoke-test"), config: { }, external_id: "customer_123", metadata: { } })
|
|
592
592
|
|
|
593
593
|
puts response.inspect
|
|
594
594
|
```
|
|
@@ -964,7 +964,7 @@ Uploads a proof-of-authorization document for a charge. A later upload adds anot
|
|
|
964
964
|
| Response | [`ChargeResponse`](././lib/straddle/models/charge_response.rb) |
|
|
965
965
|
|
|
966
966
|
```ruby
|
|
967
|
-
response = client.charges.upload_authorization_proof("7c9e6679-7425-40de-944b-e07fc1f90ae7", { file: "" })
|
|
967
|
+
response = client.charges.upload_authorization_proof("7c9e6679-7425-40de-944b-e07fc1f90ae7", { file: "file" })
|
|
968
968
|
|
|
969
969
|
puts response.inspect
|
|
970
970
|
```
|
|
@@ -1186,7 +1186,7 @@ Uploads a proof-of-authorization document for a payout. A later upload adds anot
|
|
|
1186
1186
|
| Response | [`PayoutResponse`](././lib/straddle/models/payout_response.rb) |
|
|
1187
1187
|
|
|
1188
1188
|
```ruby
|
|
1189
|
-
response = client.payouts.upload_authorization_proof("7c9e6679-7425-40de-944b-e07fc1f90ae7", { file: "" })
|
|
1189
|
+
response = client.payouts.upload_authorization_proof("7c9e6679-7425-40de-944b-e07fc1f90ae7", { file: "file" })
|
|
1190
1190
|
|
|
1191
1191
|
puts response.inspect
|
|
1192
1192
|
```
|
|
@@ -21,6 +21,12 @@ module Straddle
|
|
|
21
21
|
# @return [Straddle::Models::PayoutConfiguration]
|
|
22
22
|
required :config, -> { Straddle::PayoutConfiguration }
|
|
23
23
|
|
|
24
|
+
# @!attribute created_at
|
|
25
|
+
# Timestamp when this payout was created.
|
|
26
|
+
#
|
|
27
|
+
# @return [Time]
|
|
28
|
+
required :created_at, Time
|
|
29
|
+
|
|
24
30
|
# @!attribute currency
|
|
25
31
|
# Currency code. Only `USD` is supported.
|
|
26
32
|
#
|
|
@@ -106,11 +112,11 @@ module Straddle
|
|
|
106
112
|
# @return [Hash{Symbol=>String}]
|
|
107
113
|
required :trace_ids, Straddle::Internal::Type::HashOf[String]
|
|
108
114
|
|
|
109
|
-
# @!attribute
|
|
110
|
-
# Timestamp when this payout was
|
|
115
|
+
# @!attribute updated_at
|
|
116
|
+
# Timestamp when this payout was last updated.
|
|
111
117
|
#
|
|
112
|
-
# @return [Time
|
|
113
|
-
|
|
118
|
+
# @return [Time]
|
|
119
|
+
required :updated_at, Time
|
|
114
120
|
|
|
115
121
|
# @!attribute customer_details
|
|
116
122
|
# Information about the customer associated with the payout.
|
|
@@ -165,13 +171,7 @@ module Straddle
|
|
|
165
171
|
-> { Straddle::Internal::Type::ArrayOf[Straddle::RelatedPayment] },
|
|
166
172
|
nil?: true
|
|
167
173
|
|
|
168
|
-
# @!
|
|
169
|
-
# Timestamp when this payout was last updated.
|
|
170
|
-
#
|
|
171
|
-
# @return [Time, nil]
|
|
172
|
-
optional :updated_at, Time, nil?: true
|
|
173
|
-
|
|
174
|
-
# @!method initialize(id:, amount:, config:, currency:, description:, device:, external_id:, funding_ids:, has_resubmit:, is_refund:, is_resubmit:, paykey:, payment_date:, status:, status_details:, status_history:, trace_ids:, created_at: nil, customer_details: nil, documents: nil, effective_at: nil, metadata: nil, paykey_details: nil, payment_rail: nil, processed_at: nil, related_payments: nil, updated_at: nil)
|
|
174
|
+
# @!method initialize(id:, amount:, config:, created_at:, currency:, description:, device:, external_id:, funding_ids:, has_resubmit:, is_refund:, is_resubmit:, paykey:, payment_date:, status:, status_details:, status_history:, trace_ids:, updated_at:, customer_details: nil, documents: nil, effective_at: nil, metadata: nil, paykey_details: nil, payment_rail: nil, processed_at: nil, related_payments: nil)
|
|
175
175
|
# Some parameter documentations has been truncated, see {Straddle::Models::Payout}
|
|
176
176
|
# for more details.
|
|
177
177
|
#
|
|
@@ -181,6 +181,8 @@ module Straddle
|
|
|
181
181
|
#
|
|
182
182
|
# @param config [Straddle::Models::PayoutConfiguration] Configuration for the payout.
|
|
183
183
|
#
|
|
184
|
+
# @param created_at [Time] Timestamp when this payout was created.
|
|
185
|
+
#
|
|
184
186
|
# @param currency [String] Currency code. Only `USD` is supported.
|
|
185
187
|
#
|
|
186
188
|
# @param description [String, nil] A human-readable description of the payout.
|
|
@@ -209,7 +211,7 @@ module Straddle
|
|
|
209
211
|
#
|
|
210
212
|
# @param trace_ids [Hash{Symbol=>String}] Trace identifiers from the payment network. Keys depend on the payment rail.
|
|
211
213
|
#
|
|
212
|
-
# @param
|
|
214
|
+
# @param updated_at [Time] Timestamp when this payout was last updated.
|
|
213
215
|
#
|
|
214
216
|
# @param customer_details [Straddle::Models::CustomerDetails] Information about the customer associated with the payout.
|
|
215
217
|
#
|
|
@@ -226,8 +228,6 @@ module Straddle
|
|
|
226
228
|
# @param processed_at [Time, nil] Timestamp when this payout was submitted to the payment network. Null until proc
|
|
227
229
|
#
|
|
228
230
|
# @param related_payments [Array<Straddle::Models::RelatedPayment>, nil] Related payments and their relationship to this payout.
|
|
229
|
-
#
|
|
230
|
-
# @param updated_at [Time, nil] Timestamp when this payout was last updated.
|
|
231
231
|
end
|
|
232
232
|
end
|
|
233
233
|
end
|
|
@@ -20,6 +20,12 @@ module Straddle
|
|
|
20
20
|
# @return [Straddle::Models::PayoutConfiguration]
|
|
21
21
|
required :config, -> { Straddle::PayoutConfiguration }
|
|
22
22
|
|
|
23
|
+
# @!attribute created_at
|
|
24
|
+
# Timestamp when this payout was created.
|
|
25
|
+
#
|
|
26
|
+
# @return [Time]
|
|
27
|
+
required :created_at, Time
|
|
28
|
+
|
|
23
29
|
# @!attribute currency
|
|
24
30
|
# Currency code. Only `USD` is supported.
|
|
25
31
|
#
|
|
@@ -103,11 +109,11 @@ module Straddle
|
|
|
103
109
|
# @return [Hash{Symbol=>String}]
|
|
104
110
|
required :trace_ids, Straddle::Internal::Type::HashOf[String]
|
|
105
111
|
|
|
106
|
-
# @!attribute
|
|
107
|
-
# Timestamp when this payout was
|
|
112
|
+
# @!attribute updated_at
|
|
113
|
+
# Timestamp when this payout was last updated.
|
|
108
114
|
#
|
|
109
|
-
# @return [Time
|
|
110
|
-
|
|
115
|
+
# @return [Time]
|
|
116
|
+
required :updated_at, Time
|
|
111
117
|
|
|
112
118
|
# @!attribute customer_details
|
|
113
119
|
# Information about the customer associated with the charge or payout.
|
|
@@ -161,13 +167,7 @@ module Straddle
|
|
|
161
167
|
-> { Straddle::Internal::Type::ArrayOf[Straddle::RelatedPayment] },
|
|
162
168
|
nil?: true
|
|
163
169
|
|
|
164
|
-
# @!
|
|
165
|
-
# Timestamp when this payout was last updated.
|
|
166
|
-
#
|
|
167
|
-
# @return [Time, nil]
|
|
168
|
-
optional :updated_at, Time, nil?: true
|
|
169
|
-
|
|
170
|
-
# @!method initialize(id:, amount:, config:, currency:, description:, device:, external_id:, funding_ids:, has_resubmit:, is_refund:, is_resubmit:, paykey:, payment_date:, status:, status_details:, status_history:, trace_ids:, created_at: nil, customer_details: nil, documents: nil, effective_at: nil, metadata: nil, paykey_details: nil, payment_rail: nil, processed_at: nil, related_payments: nil, updated_at: nil)
|
|
170
|
+
# @!method initialize(id:, amount:, config:, created_at:, currency:, description:, device:, external_id:, funding_ids:, has_resubmit:, is_refund:, is_resubmit:, paykey:, payment_date:, status:, status_details:, status_history:, trace_ids:, updated_at:, customer_details: nil, documents: nil, effective_at: nil, metadata: nil, paykey_details: nil, payment_rail: nil, processed_at: nil, related_payments: nil)
|
|
171
171
|
# Some parameter documentations has been truncated, see
|
|
172
172
|
# {Straddle::Models::UnmaskedPayout} for more details.
|
|
173
173
|
#
|
|
@@ -177,6 +177,8 @@ module Straddle
|
|
|
177
177
|
#
|
|
178
178
|
# @param config [Straddle::Models::PayoutConfiguration]
|
|
179
179
|
#
|
|
180
|
+
# @param created_at [Time] Timestamp when this payout was created.
|
|
181
|
+
#
|
|
180
182
|
# @param currency [String] Currency code. Only `USD` is supported.
|
|
181
183
|
#
|
|
182
184
|
# @param description [String, nil] A human-readable description of the payout.
|
|
@@ -205,7 +207,7 @@ module Straddle
|
|
|
205
207
|
#
|
|
206
208
|
# @param trace_ids [Hash{Symbol=>String}] Trace identifiers from the payment network. Keys depend on the payment rail.
|
|
207
209
|
#
|
|
208
|
-
# @param
|
|
210
|
+
# @param updated_at [Time] Timestamp when this payout was last updated.
|
|
209
211
|
#
|
|
210
212
|
# @param customer_details [Straddle::Models::CustomerDetails] Information about the customer associated with the charge or payout.
|
|
211
213
|
#
|
|
@@ -222,8 +224,6 @@ module Straddle
|
|
|
222
224
|
# @param processed_at [Time, nil] Timestamp when this payout was submitted to the payment network. Null until proc
|
|
223
225
|
#
|
|
224
226
|
# @param related_payments [Array<Straddle::Models::RelatedPayment>, nil] Related payments and their relationship to this payout.
|
|
225
|
-
#
|
|
226
|
-
# @param updated_at [Time, nil] Timestamp when this payout was last updated.
|
|
227
227
|
end
|
|
228
228
|
end
|
|
229
229
|
end
|
data/lib/straddle/version.rb
CHANGED
|
@@ -21,6 +21,10 @@ module Straddle
|
|
|
21
21
|
sig { params(config: Straddle::PayoutConfiguration::OrHash).void }
|
|
22
22
|
attr_writer :config
|
|
23
23
|
|
|
24
|
+
# Timestamp when this payout was created.
|
|
25
|
+
sig { returns(Time) }
|
|
26
|
+
attr_accessor :created_at
|
|
27
|
+
|
|
24
28
|
# Currency code. Only `USD` is supported.
|
|
25
29
|
sig { returns(String) }
|
|
26
30
|
attr_accessor :currency
|
|
@@ -86,9 +90,9 @@ module Straddle
|
|
|
86
90
|
sig { returns(T::Hash[Symbol, String]) }
|
|
87
91
|
attr_accessor :trace_ids
|
|
88
92
|
|
|
89
|
-
# Timestamp when this payout was
|
|
90
|
-
sig { returns(
|
|
91
|
-
attr_accessor :
|
|
93
|
+
# Timestamp when this payout was last updated.
|
|
94
|
+
sig { returns(Time) }
|
|
95
|
+
attr_accessor :updated_at
|
|
92
96
|
|
|
93
97
|
# Information about the customer associated with the payout.
|
|
94
98
|
sig { returns(T.nilable(Straddle::CustomerDetails)) }
|
|
@@ -132,15 +136,12 @@ module Straddle
|
|
|
132
136
|
sig { returns(T.nilable(T::Array[Straddle::RelatedPayment])) }
|
|
133
137
|
attr_accessor :related_payments
|
|
134
138
|
|
|
135
|
-
# Timestamp when this payout was last updated.
|
|
136
|
-
sig { returns(T.nilable(Time)) }
|
|
137
|
-
attr_accessor :updated_at
|
|
138
|
-
|
|
139
139
|
sig do
|
|
140
140
|
params(
|
|
141
141
|
id: String,
|
|
142
142
|
amount: Integer,
|
|
143
143
|
config: Straddle::PayoutConfiguration::OrHash,
|
|
144
|
+
created_at: Time,
|
|
144
145
|
currency: String,
|
|
145
146
|
description: T.nilable(String),
|
|
146
147
|
device: Straddle::MaskedPaymentDevice::OrHash,
|
|
@@ -155,7 +156,7 @@ module Straddle
|
|
|
155
156
|
status_details: Straddle::PaymentStatusDetails::OrHash,
|
|
156
157
|
status_history: T::Array[Straddle::PaymentStatusHistory::OrHash],
|
|
157
158
|
trace_ids: T::Hash[Symbol, String],
|
|
158
|
-
|
|
159
|
+
updated_at: Time,
|
|
159
160
|
customer_details: Straddle::CustomerDetails::OrHash,
|
|
160
161
|
documents:
|
|
161
162
|
T.nilable(T::Array[Straddle::PaymentAuthorizationProof::OrHash]),
|
|
@@ -165,8 +166,7 @@ module Straddle
|
|
|
165
166
|
payment_rail: Straddle::PaymentRail::OrSymbol,
|
|
166
167
|
processed_at: T.nilable(Time),
|
|
167
168
|
related_payments:
|
|
168
|
-
T.nilable(T::Array[Straddle::RelatedPayment::OrHash])
|
|
169
|
-
updated_at: T.nilable(Time)
|
|
169
|
+
T.nilable(T::Array[Straddle::RelatedPayment::OrHash])
|
|
170
170
|
).returns(T.attached_class)
|
|
171
171
|
end
|
|
172
172
|
def self.new(
|
|
@@ -176,6 +176,8 @@ module Straddle
|
|
|
176
176
|
amount:,
|
|
177
177
|
# Configuration for the payout.
|
|
178
178
|
config:,
|
|
179
|
+
# Timestamp when this payout was created.
|
|
180
|
+
created_at:,
|
|
179
181
|
# Currency code. Only `USD` is supported.
|
|
180
182
|
currency:,
|
|
181
183
|
# A human-readable description of the payout.
|
|
@@ -205,8 +207,8 @@ module Straddle
|
|
|
205
207
|
status_history:,
|
|
206
208
|
# Trace identifiers from the payment network. Keys depend on the payment rail.
|
|
207
209
|
trace_ids:,
|
|
208
|
-
# Timestamp when this payout was
|
|
209
|
-
|
|
210
|
+
# Timestamp when this payout was last updated.
|
|
211
|
+
updated_at:,
|
|
210
212
|
# Information about the customer associated with the payout.
|
|
211
213
|
customer_details: nil,
|
|
212
214
|
# Authorization documents for this payout, ordered by upload time.
|
|
@@ -223,9 +225,7 @@ module Straddle
|
|
|
223
225
|
# processed.
|
|
224
226
|
processed_at: nil,
|
|
225
227
|
# Related payments and their relationship to this payout.
|
|
226
|
-
related_payments: nil
|
|
227
|
-
# Timestamp when this payout was last updated.
|
|
228
|
-
updated_at: nil
|
|
228
|
+
related_payments: nil
|
|
229
229
|
)
|
|
230
230
|
end
|
|
231
231
|
|
|
@@ -235,6 +235,7 @@ module Straddle
|
|
|
235
235
|
id: String,
|
|
236
236
|
amount: Integer,
|
|
237
237
|
config: Straddle::PayoutConfiguration,
|
|
238
|
+
created_at: Time,
|
|
238
239
|
currency: String,
|
|
239
240
|
description: T.nilable(String),
|
|
240
241
|
device: Straddle::MaskedPaymentDevice,
|
|
@@ -249,7 +250,7 @@ module Straddle
|
|
|
249
250
|
status_details: Straddle::PaymentStatusDetails,
|
|
250
251
|
status_history: T::Array[Straddle::PaymentStatusHistory],
|
|
251
252
|
trace_ids: T::Hash[Symbol, String],
|
|
252
|
-
|
|
253
|
+
updated_at: Time,
|
|
253
254
|
customer_details: Straddle::CustomerDetails,
|
|
254
255
|
documents: T.nilable(T::Array[Straddle::PaymentAuthorizationProof]),
|
|
255
256
|
effective_at: T.nilable(Time),
|
|
@@ -257,8 +258,7 @@ module Straddle
|
|
|
257
258
|
paykey_details: Straddle::PaykeyDetails,
|
|
258
259
|
payment_rail: Straddle::PaymentRail::TaggedSymbol,
|
|
259
260
|
processed_at: T.nilable(Time),
|
|
260
|
-
related_payments: T.nilable(T::Array[Straddle::RelatedPayment])
|
|
261
|
-
updated_at: T.nilable(Time)
|
|
261
|
+
related_payments: T.nilable(T::Array[Straddle::RelatedPayment])
|
|
262
262
|
}
|
|
263
263
|
)
|
|
264
264
|
end
|
|
@@ -22,6 +22,10 @@ module Straddle
|
|
|
22
22
|
sig { params(config: Straddle::PayoutConfiguration::OrHash).void }
|
|
23
23
|
attr_writer :config
|
|
24
24
|
|
|
25
|
+
# Timestamp when this payout was created.
|
|
26
|
+
sig { returns(Time) }
|
|
27
|
+
attr_accessor :created_at
|
|
28
|
+
|
|
25
29
|
# Currency code. Only `USD` is supported.
|
|
26
30
|
sig { returns(String) }
|
|
27
31
|
attr_accessor :currency
|
|
@@ -85,9 +89,9 @@ module Straddle
|
|
|
85
89
|
sig { returns(T::Hash[Symbol, String]) }
|
|
86
90
|
attr_accessor :trace_ids
|
|
87
91
|
|
|
88
|
-
# Timestamp when this payout was
|
|
89
|
-
sig { returns(
|
|
90
|
-
attr_accessor :
|
|
92
|
+
# Timestamp when this payout was last updated.
|
|
93
|
+
sig { returns(Time) }
|
|
94
|
+
attr_accessor :updated_at
|
|
91
95
|
|
|
92
96
|
# Information about the customer associated with the charge or payout.
|
|
93
97
|
sig { returns(T.nilable(Straddle::CustomerDetails)) }
|
|
@@ -130,15 +134,12 @@ module Straddle
|
|
|
130
134
|
sig { returns(T.nilable(T::Array[Straddle::RelatedPayment])) }
|
|
131
135
|
attr_accessor :related_payments
|
|
132
136
|
|
|
133
|
-
# Timestamp when this payout was last updated.
|
|
134
|
-
sig { returns(T.nilable(Time)) }
|
|
135
|
-
attr_accessor :updated_at
|
|
136
|
-
|
|
137
137
|
sig do
|
|
138
138
|
params(
|
|
139
139
|
id: String,
|
|
140
140
|
amount: Integer,
|
|
141
141
|
config: Straddle::PayoutConfiguration::OrHash,
|
|
142
|
+
created_at: Time,
|
|
142
143
|
currency: String,
|
|
143
144
|
description: T.nilable(String),
|
|
144
145
|
device: Straddle::PaymentDevice::OrHash,
|
|
@@ -153,7 +154,7 @@ module Straddle
|
|
|
153
154
|
status_details: Straddle::PaymentStatusDetails::OrHash,
|
|
154
155
|
status_history: T::Array[Straddle::PaymentStatusHistory::OrHash],
|
|
155
156
|
trace_ids: T::Hash[Symbol, String],
|
|
156
|
-
|
|
157
|
+
updated_at: Time,
|
|
157
158
|
customer_details: Straddle::CustomerDetails::OrHash,
|
|
158
159
|
documents:
|
|
159
160
|
T.nilable(T::Array[Straddle::PaymentAuthorizationProof::OrHash]),
|
|
@@ -163,8 +164,7 @@ module Straddle
|
|
|
163
164
|
payment_rail: Straddle::PaymentRail::OrSymbol,
|
|
164
165
|
processed_at: T.nilable(Time),
|
|
165
166
|
related_payments:
|
|
166
|
-
T.nilable(T::Array[Straddle::RelatedPayment::OrHash])
|
|
167
|
-
updated_at: T.nilable(Time)
|
|
167
|
+
T.nilable(T::Array[Straddle::RelatedPayment::OrHash])
|
|
168
168
|
).returns(T.attached_class)
|
|
169
169
|
end
|
|
170
170
|
def self.new(
|
|
@@ -173,6 +173,8 @@ module Straddle
|
|
|
173
173
|
# Amount in cents.
|
|
174
174
|
amount:,
|
|
175
175
|
config:,
|
|
176
|
+
# Timestamp when this payout was created.
|
|
177
|
+
created_at:,
|
|
176
178
|
# Currency code. Only `USD` is supported.
|
|
177
179
|
currency:,
|
|
178
180
|
# A human-readable description of the payout.
|
|
@@ -200,8 +202,8 @@ module Straddle
|
|
|
200
202
|
status_history:,
|
|
201
203
|
# Trace identifiers from the payment network. Keys depend on the payment rail.
|
|
202
204
|
trace_ids:,
|
|
203
|
-
# Timestamp when this payout was
|
|
204
|
-
|
|
205
|
+
# Timestamp when this payout was last updated.
|
|
206
|
+
updated_at:,
|
|
205
207
|
# Information about the customer associated with the charge or payout.
|
|
206
208
|
customer_details: nil,
|
|
207
209
|
# Authorization documents for this payout, ordered by upload time.
|
|
@@ -217,9 +219,7 @@ module Straddle
|
|
|
217
219
|
# processed.
|
|
218
220
|
processed_at: nil,
|
|
219
221
|
# Related payments and their relationship to this payout.
|
|
220
|
-
related_payments: nil
|
|
221
|
-
# Timestamp when this payout was last updated.
|
|
222
|
-
updated_at: nil
|
|
222
|
+
related_payments: nil
|
|
223
223
|
)
|
|
224
224
|
end
|
|
225
225
|
|
|
@@ -229,6 +229,7 @@ module Straddle
|
|
|
229
229
|
id: String,
|
|
230
230
|
amount: Integer,
|
|
231
231
|
config: Straddle::PayoutConfiguration,
|
|
232
|
+
created_at: Time,
|
|
232
233
|
currency: String,
|
|
233
234
|
description: T.nilable(String),
|
|
234
235
|
device: Straddle::PaymentDevice,
|
|
@@ -243,7 +244,7 @@ module Straddle
|
|
|
243
244
|
status_details: Straddle::PaymentStatusDetails,
|
|
244
245
|
status_history: T::Array[Straddle::PaymentStatusHistory],
|
|
245
246
|
trace_ids: T::Hash[Symbol, String],
|
|
246
|
-
|
|
247
|
+
updated_at: Time,
|
|
247
248
|
customer_details: Straddle::CustomerDetails,
|
|
248
249
|
documents: T.nilable(T::Array[Straddle::PaymentAuthorizationProof]),
|
|
249
250
|
effective_at: T.nilable(Time),
|
|
@@ -251,8 +252,7 @@ module Straddle
|
|
|
251
252
|
paykey_details: Straddle::PaykeyDetails,
|
|
252
253
|
payment_rail: Straddle::PaymentRail::TaggedSymbol,
|
|
253
254
|
processed_at: T.nilable(Time),
|
|
254
|
-
related_payments: T.nilable(T::Array[Straddle::RelatedPayment])
|
|
255
|
-
updated_at: T.nilable(Time)
|
|
255
|
+
related_payments: T.nilable(T::Array[Straddle::RelatedPayment])
|
|
256
256
|
}
|
|
257
257
|
)
|
|
258
258
|
end
|
|
@@ -5,6 +5,7 @@ module Straddle
|
|
|
5
5
|
id: String,
|
|
6
6
|
amount: Integer,
|
|
7
7
|
config: Straddle::PayoutConfiguration,
|
|
8
|
+
created_at: Time,
|
|
8
9
|
currency: String,
|
|
9
10
|
description: String?,
|
|
10
11
|
device: Straddle::MaskedPaymentDevice,
|
|
@@ -19,7 +20,7 @@ module Straddle
|
|
|
19
20
|
status_details: Straddle::PaymentStatusDetails,
|
|
20
21
|
status_history: ::Array[Straddle::PaymentStatusHistory],
|
|
21
22
|
trace_ids: ::Hash[Symbol, String],
|
|
22
|
-
|
|
23
|
+
updated_at: Time,
|
|
23
24
|
customer_details: Straddle::CustomerDetails,
|
|
24
25
|
documents: ::Array[Straddle::PaymentAuthorizationProof]?,
|
|
25
26
|
effective_at: Time?,
|
|
@@ -27,8 +28,7 @@ module Straddle
|
|
|
27
28
|
paykey_details: Straddle::PaykeyDetails,
|
|
28
29
|
payment_rail: Straddle::Models::payment_rail,
|
|
29
30
|
processed_at: Time?,
|
|
30
|
-
related_payments: ::Array[Straddle::RelatedPayment]
|
|
31
|
-
updated_at: Time?
|
|
31
|
+
related_payments: ::Array[Straddle::RelatedPayment]?
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
class Payout < Straddle::Internal::Type::BaseModel
|
|
@@ -38,6 +38,8 @@ module Straddle
|
|
|
38
38
|
|
|
39
39
|
attr_accessor config: Straddle::PayoutConfiguration
|
|
40
40
|
|
|
41
|
+
attr_accessor created_at: Time
|
|
42
|
+
|
|
41
43
|
attr_accessor currency: String
|
|
42
44
|
|
|
43
45
|
attr_accessor description: String?
|
|
@@ -66,7 +68,7 @@ module Straddle
|
|
|
66
68
|
|
|
67
69
|
attr_accessor trace_ids: ::Hash[Symbol, String]
|
|
68
70
|
|
|
69
|
-
attr_accessor
|
|
71
|
+
attr_accessor updated_at: Time
|
|
70
72
|
|
|
71
73
|
attr_reader customer_details: Straddle::CustomerDetails?
|
|
72
74
|
|
|
@@ -94,12 +96,11 @@ module Straddle
|
|
|
94
96
|
|
|
95
97
|
attr_accessor related_payments: ::Array[Straddle::RelatedPayment]?
|
|
96
98
|
|
|
97
|
-
attr_accessor updated_at: Time?
|
|
98
|
-
|
|
99
99
|
def initialize: (
|
|
100
100
|
id: String,
|
|
101
101
|
amount: Integer,
|
|
102
102
|
config: Straddle::PayoutConfiguration,
|
|
103
|
+
created_at: Time,
|
|
103
104
|
currency: String,
|
|
104
105
|
description: String?,
|
|
105
106
|
device: Straddle::MaskedPaymentDevice,
|
|
@@ -114,7 +115,7 @@ module Straddle
|
|
|
114
115
|
status_details: Straddle::PaymentStatusDetails,
|
|
115
116
|
status_history: ::Array[Straddle::PaymentStatusHistory],
|
|
116
117
|
trace_ids: ::Hash[Symbol, String],
|
|
117
|
-
|
|
118
|
+
updated_at: Time,
|
|
118
119
|
?customer_details: Straddle::CustomerDetails,
|
|
119
120
|
?documents: ::Array[Straddle::PaymentAuthorizationProof]?,
|
|
120
121
|
?effective_at: Time?,
|
|
@@ -122,14 +123,14 @@ module Straddle
|
|
|
122
123
|
?paykey_details: Straddle::PaykeyDetails,
|
|
123
124
|
?payment_rail: Straddle::Models::payment_rail,
|
|
124
125
|
?processed_at: Time?,
|
|
125
|
-
?related_payments: ::Array[Straddle::RelatedPayment]
|
|
126
|
-
?updated_at: Time?
|
|
126
|
+
?related_payments: ::Array[Straddle::RelatedPayment]?
|
|
127
127
|
) -> void
|
|
128
128
|
|
|
129
129
|
def to_hash: -> {
|
|
130
130
|
id: String,
|
|
131
131
|
amount: Integer,
|
|
132
132
|
config: Straddle::PayoutConfiguration,
|
|
133
|
+
created_at: Time,
|
|
133
134
|
currency: String,
|
|
134
135
|
description: String?,
|
|
135
136
|
device: Straddle::MaskedPaymentDevice,
|
|
@@ -144,7 +145,7 @@ module Straddle
|
|
|
144
145
|
status_details: Straddle::PaymentStatusDetails,
|
|
145
146
|
status_history: ::Array[Straddle::PaymentStatusHistory],
|
|
146
147
|
trace_ids: ::Hash[Symbol, String],
|
|
147
|
-
|
|
148
|
+
updated_at: Time,
|
|
148
149
|
customer_details: Straddle::CustomerDetails,
|
|
149
150
|
documents: ::Array[Straddle::PaymentAuthorizationProof]?,
|
|
150
151
|
effective_at: Time?,
|
|
@@ -152,8 +153,7 @@ module Straddle
|
|
|
152
153
|
paykey_details: Straddle::PaykeyDetails,
|
|
153
154
|
payment_rail: Straddle::Models::payment_rail,
|
|
154
155
|
processed_at: Time?,
|
|
155
|
-
related_payments: ::Array[Straddle::RelatedPayment]
|
|
156
|
-
updated_at: Time?
|
|
156
|
+
related_payments: ::Array[Straddle::RelatedPayment]?
|
|
157
157
|
}
|
|
158
158
|
end
|
|
159
159
|
end
|
|
@@ -5,6 +5,7 @@ module Straddle
|
|
|
5
5
|
id: String,
|
|
6
6
|
amount: Integer,
|
|
7
7
|
config: Straddle::PayoutConfiguration,
|
|
8
|
+
created_at: Time,
|
|
8
9
|
currency: String,
|
|
9
10
|
description: String?,
|
|
10
11
|
device: Straddle::PaymentDevice,
|
|
@@ -19,7 +20,7 @@ module Straddle
|
|
|
19
20
|
status_details: Straddle::PaymentStatusDetails,
|
|
20
21
|
status_history: ::Array[Straddle::PaymentStatusHistory],
|
|
21
22
|
trace_ids: ::Hash[Symbol, String],
|
|
22
|
-
|
|
23
|
+
updated_at: Time,
|
|
23
24
|
customer_details: Straddle::CustomerDetails,
|
|
24
25
|
documents: ::Array[Straddle::PaymentAuthorizationProof]?,
|
|
25
26
|
effective_at: Time?,
|
|
@@ -27,8 +28,7 @@ module Straddle
|
|
|
27
28
|
paykey_details: Straddle::PaykeyDetails,
|
|
28
29
|
payment_rail: Straddle::Models::payment_rail,
|
|
29
30
|
processed_at: Time?,
|
|
30
|
-
related_payments: ::Array[Straddle::RelatedPayment]
|
|
31
|
-
updated_at: Time?
|
|
31
|
+
related_payments: ::Array[Straddle::RelatedPayment]?
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
class UnmaskedPayout < Straddle::Internal::Type::BaseModel
|
|
@@ -38,6 +38,8 @@ module Straddle
|
|
|
38
38
|
|
|
39
39
|
attr_accessor config: Straddle::PayoutConfiguration
|
|
40
40
|
|
|
41
|
+
attr_accessor created_at: Time
|
|
42
|
+
|
|
41
43
|
attr_accessor currency: String
|
|
42
44
|
|
|
43
45
|
attr_accessor description: String?
|
|
@@ -66,7 +68,7 @@ module Straddle
|
|
|
66
68
|
|
|
67
69
|
attr_accessor trace_ids: ::Hash[Symbol, String]
|
|
68
70
|
|
|
69
|
-
attr_accessor
|
|
71
|
+
attr_accessor updated_at: Time
|
|
70
72
|
|
|
71
73
|
attr_reader customer_details: Straddle::CustomerDetails?
|
|
72
74
|
|
|
@@ -94,12 +96,11 @@ module Straddle
|
|
|
94
96
|
|
|
95
97
|
attr_accessor related_payments: ::Array[Straddle::RelatedPayment]?
|
|
96
98
|
|
|
97
|
-
attr_accessor updated_at: Time?
|
|
98
|
-
|
|
99
99
|
def initialize: (
|
|
100
100
|
id: String,
|
|
101
101
|
amount: Integer,
|
|
102
102
|
config: Straddle::PayoutConfiguration,
|
|
103
|
+
created_at: Time,
|
|
103
104
|
currency: String,
|
|
104
105
|
description: String?,
|
|
105
106
|
device: Straddle::PaymentDevice,
|
|
@@ -114,7 +115,7 @@ module Straddle
|
|
|
114
115
|
status_details: Straddle::PaymentStatusDetails,
|
|
115
116
|
status_history: ::Array[Straddle::PaymentStatusHistory],
|
|
116
117
|
trace_ids: ::Hash[Symbol, String],
|
|
117
|
-
|
|
118
|
+
updated_at: Time,
|
|
118
119
|
?customer_details: Straddle::CustomerDetails,
|
|
119
120
|
?documents: ::Array[Straddle::PaymentAuthorizationProof]?,
|
|
120
121
|
?effective_at: Time?,
|
|
@@ -122,14 +123,14 @@ module Straddle
|
|
|
122
123
|
?paykey_details: Straddle::PaykeyDetails,
|
|
123
124
|
?payment_rail: Straddle::Models::payment_rail,
|
|
124
125
|
?processed_at: Time?,
|
|
125
|
-
?related_payments: ::Array[Straddle::RelatedPayment]
|
|
126
|
-
?updated_at: Time?
|
|
126
|
+
?related_payments: ::Array[Straddle::RelatedPayment]?
|
|
127
127
|
) -> void
|
|
128
128
|
|
|
129
129
|
def to_hash: -> {
|
|
130
130
|
id: String,
|
|
131
131
|
amount: Integer,
|
|
132
132
|
config: Straddle::PayoutConfiguration,
|
|
133
|
+
created_at: Time,
|
|
133
134
|
currency: String,
|
|
134
135
|
description: String?,
|
|
135
136
|
device: Straddle::PaymentDevice,
|
|
@@ -144,7 +145,7 @@ module Straddle
|
|
|
144
145
|
status_details: Straddle::PaymentStatusDetails,
|
|
145
146
|
status_history: ::Array[Straddle::PaymentStatusHistory],
|
|
146
147
|
trace_ids: ::Hash[Symbol, String],
|
|
147
|
-
|
|
148
|
+
updated_at: Time,
|
|
148
149
|
customer_details: Straddle::CustomerDetails,
|
|
149
150
|
documents: ::Array[Straddle::PaymentAuthorizationProof]?,
|
|
150
151
|
effective_at: Time?,
|
|
@@ -152,8 +153,7 @@ module Straddle
|
|
|
152
153
|
paykey_details: Straddle::PaykeyDetails,
|
|
153
154
|
payment_rail: Straddle::Models::payment_rail,
|
|
154
155
|
processed_at: Time?,
|
|
155
|
-
related_payments: ::Array[Straddle::RelatedPayment]
|
|
156
|
-
updated_at: Time?
|
|
156
|
+
related_payments: ::Array[Straddle::RelatedPayment]?
|
|
157
157
|
}
|
|
158
158
|
end
|
|
159
159
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: straddle
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Straddle API
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|