Skip to content

Commit e42a159

Browse files
feat(api): Add hold token field to book transfers
1 parent 40cddec commit e42a159

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.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

booktransfer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,8 @@ type BookTransferNewParams struct {
428428
Token param.Field[string] `json:"token" format:"uuid"`
429429
// External ID defined by the customer
430430
ExternalID param.Field[string] `json:"external_id"`
431+
// Token of an existing hold to settle when this transfer is initiated
432+
HoldToken param.Field[string] `json:"hold_token" format:"uuid"`
431433
// Optional descriptor for the transfer.
432434
Memo param.Field[string] `json:"memo"`
433435
// What to do if the financial account is closed when posting an operation

booktransfer_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ func TestBookTransferNewWithOptionalParams(t *testing.T) {
3535
Type: lithic.F(lithic.BookTransferNewParamsTypeAtmBalanceInquiry),
3636
Token: lithic.F("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
3737
ExternalID: lithic.F("external_id"),
38+
HoldToken: lithic.F("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
3839
Memo: lithic.F("memo"),
3940
OnClosedAccount: lithic.F(lithic.BookTransferNewParamsOnClosedAccountFail),
4041
})

0 commit comments

Comments
 (0)