Skip to content

Commit d23cb0b

Browse files
feat(api): Add hold token field to book transfers
1 parent 1a6d821 commit d23cb0b

7 files changed

Lines changed: 36 additions & 4 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 177
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-da8525181ab7cccb66db674dd7243de54b28969c0395223f6dbec3c791f1e7b0.yml
3-
openapi_spec_hash: f4f45e8ca906900f78f1c8aa0233fc20
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-f137c504db2dbc70382232b1db7ed592a852bc58068a4e72d5ba7ce724110b3d.yml
3+
openapi_spec_hash: 20abc9c95ee5814da6d7aeccec75e996
44
config_hash: 693dddc4721eef512d75ab6c60897794

lib/lithic/models/book_transfer_create_params.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ class BookTransferCreateParams < Lithic::Internal::Type::BaseModel
5858
# @return [String, nil]
5959
optional :external_id, String
6060

61+
# @!attribute hold_token
62+
# Token of an existing hold to settle when this transfer is initiated
63+
#
64+
# @return [String, nil]
65+
optional :hold_token, String
66+
6167
# @!attribute memo
6268
# Optional descriptor for the transfer.
6369
#
@@ -70,7 +76,7 @@ class BookTransferCreateParams < Lithic::Internal::Type::BaseModel
7076
# @return [Symbol, Lithic::Models::BookTransferCreateParams::OnClosedAccount, nil]
7177
optional :on_closed_account, enum: -> { Lithic::BookTransferCreateParams::OnClosedAccount }
7278

73-
# @!method initialize(amount:, category:, from_financial_account_token:, subtype:, to_financial_account_token:, type:, token: nil, external_id: nil, memo: nil, on_closed_account: nil, request_options: {})
79+
# @!method initialize(amount:, category:, from_financial_account_token:, subtype:, to_financial_account_token:, type:, token: nil, external_id: nil, hold_token: nil, memo: nil, on_closed_account: nil, request_options: {})
7480
# Some parameter documentations has been truncated, see
7581
# {Lithic::Models::BookTransferCreateParams} for more details.
7682
#
@@ -90,6 +96,8 @@ class BookTransferCreateParams < Lithic::Internal::Type::BaseModel
9096
#
9197
# @param external_id [String] External ID defined by the customer
9298
#
99+
# @param hold_token [String] Token of an existing hold to settle when this transfer is initiated
100+
#
93101
# @param memo [String] Optional descriptor for the transfer.
94102
#
95103
# @param on_closed_account [Symbol, Lithic::Models::BookTransferCreateParams::OnClosedAccount] What to do if the financial account is closed when posting an operation

lib/lithic/resources/book_transfers.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class BookTransfers
99
# Book transfer funds between two financial accounts or between a financial
1010
# account and card
1111
#
12-
# @overload create(amount:, category:, from_financial_account_token:, subtype:, to_financial_account_token:, type:, token: nil, external_id: nil, memo: nil, on_closed_account: nil, request_options: {})
12+
# @overload create(amount:, category:, from_financial_account_token:, subtype:, to_financial_account_token:, type:, token: nil, external_id: nil, hold_token: nil, memo: nil, on_closed_account: nil, request_options: {})
1313
#
1414
# @param amount [Integer] Amount to be transferred in the currency's smallest unit (e.g., cents for USD).
1515
#
@@ -27,6 +27,8 @@ class BookTransfers
2727
#
2828
# @param external_id [String] External ID defined by the customer
2929
#
30+
# @param hold_token [String] Token of an existing hold to settle when this transfer is initiated
31+
#
3032
# @param memo [String] Optional descriptor for the transfer.
3133
#
3234
# @param on_closed_account [Symbol, Lithic::Models::BookTransferCreateParams::OnClosedAccount] What to do if the financial account is closed when posting an operation

rbi/lithic/models/book_transfer_create_params.rbi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ module Lithic
5252
sig { params(external_id: String).void }
5353
attr_writer :external_id
5454

55+
# Token of an existing hold to settle when this transfer is initiated
56+
sig { returns(T.nilable(String)) }
57+
attr_reader :hold_token
58+
59+
sig { params(hold_token: String).void }
60+
attr_writer :hold_token
61+
5562
# Optional descriptor for the transfer.
5663
sig { returns(T.nilable(String)) }
5764
attr_reader :memo
@@ -85,6 +92,7 @@ module Lithic
8592
type: Lithic::BookTransferCreateParams::Type::OrSymbol,
8693
token: String,
8794
external_id: String,
95+
hold_token: String,
8896
memo: String,
8997
on_closed_account:
9098
Lithic::BookTransferCreateParams::OnClosedAccount::OrSymbol,
@@ -111,6 +119,8 @@ module Lithic
111119
token: nil,
112120
# External ID defined by the customer
113121
external_id: nil,
122+
# Token of an existing hold to settle when this transfer is initiated
123+
hold_token: nil,
114124
# Optional descriptor for the transfer.
115125
memo: nil,
116126
# What to do if the financial account is closed when posting an operation
@@ -130,6 +140,7 @@ module Lithic
130140
type: Lithic::BookTransferCreateParams::Type::OrSymbol,
131141
token: String,
132142
external_id: String,
143+
hold_token: String,
133144
memo: String,
134145
on_closed_account:
135146
Lithic::BookTransferCreateParams::OnClosedAccount::OrSymbol,

rbi/lithic/resources/book_transfers.rbi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module Lithic
1515
type: Lithic::BookTransferCreateParams::Type::OrSymbol,
1616
token: String,
1717
external_id: String,
18+
hold_token: String,
1819
memo: String,
1920
on_closed_account:
2021
Lithic::BookTransferCreateParams::OnClosedAccount::OrSymbol,
@@ -41,6 +42,8 @@ module Lithic
4142
token: nil,
4243
# External ID defined by the customer
4344
external_id: nil,
45+
# Token of an existing hold to settle when this transfer is initiated
46+
hold_token: nil,
4447
# Optional descriptor for the transfer.
4548
memo: nil,
4649
# What to do if the financial account is closed when posting an operation

sig/lithic/models/book_transfer_create_params.rbs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module Lithic
1010
type: Lithic::Models::BookTransferCreateParams::type_,
1111
token: String,
1212
external_id: String,
13+
hold_token: String,
1314
memo: String,
1415
on_closed_account: Lithic::Models::BookTransferCreateParams::on_closed_account
1516
}
@@ -39,6 +40,10 @@ module Lithic
3940

4041
def external_id=: (String) -> String
4142

43+
attr_reader hold_token: String?
44+
45+
def hold_token=: (String) -> String
46+
4247
attr_reader memo: String?
4348

4449
def memo=: (String) -> String
@@ -58,6 +63,7 @@ module Lithic
5863
type: Lithic::Models::BookTransferCreateParams::type_,
5964
?token: String,
6065
?external_id: String,
66+
?hold_token: String,
6167
?memo: String,
6268
?on_closed_account: Lithic::Models::BookTransferCreateParams::on_closed_account,
6369
?request_options: Lithic::request_opts
@@ -72,6 +78,7 @@ module Lithic
7278
type: Lithic::Models::BookTransferCreateParams::type_,
7379
token: String,
7480
external_id: String,
81+
hold_token: String,
7582
memo: String,
7683
on_closed_account: Lithic::Models::BookTransferCreateParams::on_closed_account,
7784
request_options: Lithic::RequestOptions

sig/lithic/resources/book_transfers.rbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module Lithic
1010
type: Lithic::Models::BookTransferCreateParams::type_,
1111
?token: String,
1212
?external_id: String,
13+
?hold_token: String,
1314
?memo: String,
1415
?on_closed_account: Lithic::Models::BookTransferCreateParams::on_closed_account,
1516
?request_options: Lithic::request_opts

0 commit comments

Comments
 (0)