@moovio/sdk 26.5.1 → 26.5.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.
- package/README.md +91 -87
- package/bin/mcp-server.js +645 -330
- package/bin/mcp-server.js.map +77 -74
- package/funcs/accountsCreate.d.ts +8 -10
- package/funcs/accountsCreate.d.ts.map +1 -1
- package/funcs/accountsCreate.js +8 -10
- package/funcs/accountsCreate.js.map +1 -1
- package/funcs/bankAccountsLink.d.ts +1 -1
- package/funcs/bankAccountsLink.js +1 -1
- package/funcs/capabilitiesDisable.d.ts +1 -1
- package/funcs/capabilitiesDisable.js +1 -1
- package/funcs/capabilitiesGet.d.ts +1 -1
- package/funcs/capabilitiesGet.js +1 -1
- package/funcs/capabilitiesList.d.ts +1 -1
- package/funcs/capabilitiesList.js +1 -1
- package/funcs/capabilitiesRequest.d.ts +1 -1
- package/funcs/capabilitiesRequest.js +1 -1
- package/funcs/cardIssuingGet.js +1 -1
- package/funcs/cardIssuingGet.js.map +1 -1
- package/funcs/cardIssuingGetFull.js +1 -1
- package/funcs/cardIssuingGetFull.js.map +1 -1
- package/funcs/cardIssuingList.js +1 -1
- package/funcs/cardIssuingList.js.map +1 -1
- package/funcs/cardIssuingRequest.js +1 -1
- package/funcs/cardIssuingRequest.js.map +1 -1
- package/funcs/cardIssuingUpdate.js +1 -1
- package/funcs/cardIssuingUpdate.js.map +1 -1
- package/funcs/transfersListCancellations.d.ts +17 -0
- package/funcs/transfersListCancellations.d.ts.map +1 -0
- package/funcs/transfersListCancellations.js +129 -0
- package/funcs/transfersListCancellations.js.map +1 -0
- package/hooks/types.d.ts +1 -0
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.js +12 -12
- package/lib/encodings.js.map +1 -1
- package/lib/http.d.ts +1 -1
- package/lib/http.d.ts.map +1 -1
- package/lib/http.js +1 -1
- package/lib/http.js.map +1 -1
- package/lib/matchers.js +3 -3
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.d.ts +1 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +18 -0
- package/lib/primitives.js.map +1 -1
- package/lib/retries.js +7 -0
- package/lib/retries.js.map +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +50 -16
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts +5 -4
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +6 -7
- package/lib/security.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/accountsCreate.d.ts.map +1 -1
- package/mcp-server/tools/accountsCreate.js +8 -10
- package/mcp-server/tools/accountsCreate.js.map +1 -1
- package/mcp-server/tools/bankAccountsLink.js +1 -1
- package/mcp-server/tools/capabilitiesDisable.js +1 -1
- package/mcp-server/tools/capabilitiesGet.js +1 -1
- package/mcp-server/tools/capabilitiesList.js +1 -1
- package/mcp-server/tools/capabilitiesRequest.js +1 -1
- package/mcp-server/tools/transfersListCancellations.d.ts +8 -0
- package/mcp-server/tools/transfersListCancellations.d.ts.map +1 -0
- package/mcp-server/tools/transfersListCancellations.js +65 -0
- package/mcp-server/tools/transfersListCancellations.js.map +1 -0
- package/models/components/addcapabilities.d.ts +9 -0
- package/models/components/addcapabilities.d.ts.map +1 -1
- package/models/components/addcapabilities.js.map +1 -1
- package/models/components/capability.d.ts +7 -1
- package/models/components/capability.d.ts.map +1 -1
- package/models/components/capability.js.map +1 -1
- package/models/components/capabilityid.d.ts +15 -2
- package/models/components/capabilityid.d.ts.map +1 -1
- package/models/components/capabilityid.js +8 -1
- package/models/components/capabilityid.js.map +1 -1
- package/models/components/cardbrandfees.d.ts +5 -0
- package/models/components/cardbrandfees.d.ts.map +1 -1
- package/models/components/cardbrandfees.js +2 -0
- package/models/components/cardbrandfees.js.map +1 -1
- package/models/components/cardtransactiondetails.d.ts +7 -0
- package/models/components/cardtransactiondetails.d.ts.map +1 -1
- package/models/components/cardtransactiondetails.js +5 -0
- package/models/components/cardtransactiondetails.js.map +1 -1
- package/models/components/cardtransactionstatus.d.ts +1 -0
- package/models/components/cardtransactionstatus.d.ts.map +1 -1
- package/models/components/cardtransactionstatus.js +1 -0
- package/models/components/cardtransactionstatus.js.map +1 -1
- package/models/components/createaccount.d.ts +9 -0
- package/models/components/createaccount.d.ts.map +1 -1
- package/models/components/createaccount.js.map +1 -1
- package/models/components/createpaymentlink.d.ts +3 -3
- package/models/components/createtransferdestinationcard.d.ts +5 -0
- package/models/components/createtransferdestinationcard.d.ts.map +1 -1
- package/models/components/createtransferdestinationcard.js +2 -0
- package/models/components/createtransferdestinationcard.js.map +1 -1
- package/models/components/fullissuedcard.d.ts +26 -12
- package/models/components/fullissuedcard.d.ts.map +1 -1
- package/models/components/fullissuedcard.js +11 -5
- package/models/components/fullissuedcard.js.map +1 -1
- package/models/components/index.d.ts +5 -4
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -4
- package/models/components/index.js.map +1 -1
- package/models/components/invoice.d.ts +5 -0
- package/models/components/invoice.d.ts.map +1 -1
- package/models/components/invoice.js +2 -0
- package/models/components/invoice.js.map +1 -1
- package/models/components/issuedcard.d.ts +26 -12
- package/models/components/issuedcard.d.ts.map +1 -1
- package/models/components/issuedcard.js +11 -5
- package/models/components/issuedcard.js.map +1 -1
- package/models/components/issuedcardstate.d.ts +2 -8
- package/models/components/issuedcardstate.d.ts.map +1 -1
- package/models/components/issuedcardstate.js +1 -5
- package/models/components/issuedcardstate.js.map +1 -1
- package/models/components/manualtermsofservice.d.ts +1 -1
- package/models/components/manualtermsofserviceupdate.d.ts +1 -1
- package/models/components/onboardinginvite.d.ts +1 -1
- package/models/components/onboardinginviterequest.d.ts +1 -1
- package/models/components/patchtransfer.d.ts +3 -0
- package/models/components/patchtransfer.d.ts.map +1 -1
- package/models/components/patchtransfer.js.map +1 -1
- package/models/components/paymentlink.d.ts +2 -2
- package/models/components/paymentlinkpayoutdetails.d.ts +11 -0
- package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetails.js +3 -0
- package/models/components/paymentlinkpayoutdetails.js.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts +11 -0
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.js +3 -0
- package/models/components/paymentlinkpayoutdetailsupdate.js.map +1 -1
- package/models/components/payoutdetailserror.d.ts +3 -0
- package/models/components/payoutdetailserror.d.ts.map +1 -1
- package/models/components/payoutdetailserror.js +3 -0
- package/models/components/payoutdetailserror.js.map +1 -1
- package/models/components/pushdeliveryspeed.d.ts +18 -0
- package/models/components/pushdeliveryspeed.d.ts.map +1 -0
- package/models/components/pushdeliveryspeed.js +52 -0
- package/models/components/pushdeliveryspeed.js.map +1 -0
- package/models/components/pushoptions.d.ts +35 -0
- package/models/components/pushoptions.d.ts.map +1 -0
- package/models/components/{createauthorizeduser.js → pushoptions.js} +15 -17
- package/models/components/pushoptions.js.map +1 -0
- package/models/components/pushoptionserror.d.ts +19 -0
- package/models/components/pushoptionserror.d.ts.map +1 -0
- package/models/components/{authorizeduser.js → pushoptionserror.js} +14 -14
- package/models/components/pushoptionserror.js.map +1 -0
- package/models/components/pushoptionsupdate.d.ts +35 -0
- package/models/components/pushoptionsupdate.d.ts.map +1 -0
- package/models/components/{createauthorizedusererror.js → pushoptionsupdate.js} +15 -17
- package/models/components/pushoptionsupdate.js.map +1 -0
- package/models/components/requestcard.d.ts +14 -17
- package/models/components/requestcard.d.ts.map +1 -1
- package/models/components/requestcard.js +9 -10
- package/models/components/requestcard.js.map +1 -1
- package/models/components/termsofservice.d.ts +1 -1
- package/models/components/updateissuedcard.d.ts +33 -8
- package/models/components/updateissuedcard.d.ts.map +1 -1
- package/models/components/updateissuedcard.js +35 -6
- package/models/components/updateissuedcard.js.map +1 -1
- package/models/components/webhookdata.d.ts +3 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +7 -4
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdataauthorizationexpiring.d.ts +23 -0
- package/models/components/webhookdataauthorizationexpiring.d.ts.map +1 -0
- package/models/components/{createauthorizeduserupdate.js → webhookdataauthorizationexpiring.js} +18 -17
- package/models/components/webhookdataauthorizationexpiring.js.map +1 -0
- package/models/components/webhookdatacapabilityrequested.d.ts +7 -1
- package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -1
- package/models/components/webhookdatacapabilityrequested.js.map +1 -1
- package/models/components/webhookdatacapabilityupdated.d.ts +7 -1
- package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -1
- package/models/components/webhookdatacapabilityupdated.js.map +1 -1
- package/models/components/webhookdatasweepcreated.d.ts +5 -0
- package/models/components/webhookdatasweepcreated.d.ts.map +1 -1
- package/models/components/webhookdatasweepcreated.js +2 -0
- package/models/components/webhookdatasweepcreated.js.map +1 -1
- package/models/components/webhookdatasweepupdated.d.ts +5 -0
- package/models/components/webhookdatasweepupdated.d.ts.map +1 -1
- package/models/components/webhookdatasweepupdated.js +2 -0
- package/models/components/webhookdatasweepupdated.js.map +1 -1
- package/models/components/webhookeventtype.d.ts +1 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +1 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/errors/requestcarderror.d.ts +12 -12
- package/models/errors/requestcarderror.d.ts.map +1 -1
- package/models/errors/requestcarderror.js +17 -17
- package/models/errors/requestcarderror.js.map +1 -1
- package/models/errors/updateissuedcarderror.d.ts +9 -6
- package/models/errors/updateissuedcarderror.d.ts.map +1 -1
- package/models/errors/updateissuedcarderror.js +12 -9
- package/models/errors/updateissuedcarderror.js.map +1 -1
- package/models/operations/disablecapability.d.ts +7 -1
- package/models/operations/disablecapability.d.ts.map +1 -1
- package/models/operations/disablecapability.js.map +1 -1
- package/models/operations/getcapability.d.ts +7 -1
- package/models/operations/getcapability.d.ts.map +1 -1
- package/models/operations/getcapability.js.map +1 -1
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/linkbankaccount.d.ts +1 -1
- package/models/operations/listcancellations.d.ts +45 -0
- package/models/operations/listcancellations.d.ts.map +1 -0
- package/models/operations/listcancellations.js +90 -0
- package/models/operations/listcancellations.js.map +1 -0
- package/models/operations/listissuedcards.d.ts +1 -1
- package/package.json +1 -1
- package/sdk/accounts.d.ts +8 -10
- package/sdk/accounts.d.ts.map +1 -1
- package/sdk/accounts.js +8 -10
- package/sdk/accounts.js.map +1 -1
- package/sdk/bankaccounts.d.ts +1 -1
- package/sdk/bankaccounts.js +1 -1
- package/sdk/capabilities.d.ts +4 -4
- package/sdk/capabilities.js +4 -4
- package/sdk/transfers.d.ts +7 -0
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +10 -0
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/accountsCreate.ts +8 -10
- package/src/funcs/bankAccountsLink.ts +1 -1
- package/src/funcs/capabilitiesDisable.ts +1 -1
- package/src/funcs/capabilitiesGet.ts +1 -1
- package/src/funcs/capabilitiesList.ts +1 -1
- package/src/funcs/capabilitiesRequest.ts +1 -1
- package/src/funcs/cardIssuingGet.ts +1 -1
- package/src/funcs/cardIssuingGetFull.ts +3 -3
- package/src/funcs/cardIssuingList.ts +1 -1
- package/src/funcs/cardIssuingRequest.ts +1 -1
- package/src/funcs/cardIssuingUpdate.ts +1 -1
- package/src/funcs/transfersListCancellations.ts +181 -0
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +1 -1
- package/src/lib/http.ts +3 -1
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/lib/retries.ts +8 -0
- package/src/lib/sdks.ts +54 -17
- package/src/lib/security.ts +10 -5
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/accountsCreate.ts +8 -10
- package/src/mcp-server/tools/bankAccountsLink.ts +1 -1
- package/src/mcp-server/tools/capabilitiesDisable.ts +1 -1
- package/src/mcp-server/tools/capabilitiesGet.ts +1 -1
- package/src/mcp-server/tools/capabilitiesList.ts +1 -1
- package/src/mcp-server/tools/capabilitiesRequest.ts +1 -1
- package/src/mcp-server/tools/transfersListCancellations.ts +38 -0
- package/src/models/components/addcapabilities.ts +9 -0
- package/src/models/components/capability.ts +7 -1
- package/src/models/components/capabilityid.ts +15 -2
- package/src/models/components/cardbrandfees.ts +7 -0
- package/src/models/components/cardtransactiondetails.ts +14 -0
- package/src/models/components/cardtransactionstatus.ts +1 -0
- package/src/models/components/createaccount.ts +9 -0
- package/src/models/components/createpaymentlink.ts +3 -3
- package/src/models/components/createtransferdestinationcard.ts +9 -0
- package/src/models/components/fullissuedcard.ts +36 -20
- package/src/models/components/index.ts +5 -4
- package/src/models/components/invoice.ts +7 -0
- package/src/models/components/issuedcard.ts +36 -20
- package/src/models/components/issuedcardstate.ts +2 -8
- package/src/models/components/manualtermsofservice.ts +1 -1
- package/src/models/components/manualtermsofserviceupdate.ts +1 -1
- package/src/models/components/onboardinginvite.ts +1 -1
- package/src/models/components/onboardinginviterequest.ts +1 -1
- package/src/models/components/patchtransfer.ts +3 -0
- package/src/models/components/paymentlink.ts +2 -2
- package/src/models/components/paymentlinkpayoutdetails.ts +18 -0
- package/src/models/components/paymentlinkpayoutdetailsupdate.ts +18 -0
- package/src/models/components/payoutdetailserror.ts +10 -0
- package/src/models/components/pushdeliveryspeed.ts +27 -0
- package/src/models/components/pushoptions.ts +71 -0
- package/src/models/components/pushoptionserror.ts +55 -0
- package/src/models/components/pushoptionsupdate.ts +75 -0
- package/src/models/components/requestcard.ts +23 -34
- package/src/models/components/termsofservice.ts +1 -1
- package/src/models/components/updateissuedcard.ts +73 -17
- package/src/models/components/webhookdata.ts +18 -8
- package/src/models/components/webhookdataauthorizationexpiring.ts +65 -0
- package/src/models/components/webhookdatacapabilityrequested.ts +7 -1
- package/src/models/components/webhookdatacapabilityupdated.ts +7 -1
- package/src/models/components/webhookdatasweepcreated.ts +7 -0
- package/src/models/components/webhookdatasweepupdated.ts +7 -0
- package/src/models/components/webhookeventtype.ts +1 -0
- package/src/models/errors/requestcarderror.ts +26 -25
- package/src/models/errors/updateissuedcarderror.ts +18 -13
- package/src/models/operations/disablecapability.ts +7 -1
- package/src/models/operations/getcapability.ts +7 -1
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/linkbankaccount.ts +1 -1
- package/src/models/operations/listcancellations.ts +120 -0
- package/src/models/operations/listissuedcards.ts +1 -1
- package/src/sdk/accounts.ts +8 -10
- package/src/sdk/bankaccounts.ts +1 -1
- package/src/sdk/capabilities.ts +4 -4
- package/src/sdk/transfers.ts +18 -0
- package/lib/dlv.d.ts +0 -14
- package/lib/dlv.d.ts.map +0 -1
- package/lib/dlv.js +0 -49
- package/lib/dlv.js.map +0 -1
- package/lib/is-plain-object.d.ts +0 -2
- package/lib/is-plain-object.d.ts.map +0 -1
- package/lib/is-plain-object.js +0 -41
- package/lib/is-plain-object.js.map +0 -1
- package/models/components/authorizeduser.d.ts +0 -22
- package/models/components/authorizeduser.d.ts.map +0 -1
- package/models/components/authorizeduser.js.map +0 -1
- package/models/components/createauthorizeduser.d.ts +0 -25
- package/models/components/createauthorizeduser.d.ts.map +0 -1
- package/models/components/createauthorizeduser.js.map +0 -1
- package/models/components/createauthorizedusererror.d.ts +0 -22
- package/models/components/createauthorizedusererror.d.ts.map +0 -1
- package/models/components/createauthorizedusererror.js.map +0 -1
- package/models/components/createauthorizeduserupdate.d.ts +0 -25
- package/models/components/createauthorizeduserupdate.d.ts.map +0 -1
- package/models/components/createauthorizeduserupdate.js.map +0 -1
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
- package/src/models/components/authorizeduser.ts +0 -54
- package/src/models/components/createauthorizeduser.ts +0 -68
- package/src/models/components/createauthorizedusererror.ts +0 -65
- package/src/models/components/createauthorizeduserupdate.ts +0 -68
|
@@ -10,15 +10,11 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
10
10
|
*
|
|
11
11
|
* @remarks
|
|
12
12
|
*
|
|
13
|
-
* - `active`: The card is operational and
|
|
14
|
-
* - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
|
|
13
|
+
* - `active`: The card is operational and can approve authorizations.
|
|
15
14
|
* - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
16
|
-
* - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
|
|
17
15
|
*/
|
|
18
16
|
export const IssuedCardState = {
|
|
19
17
|
Active: "active",
|
|
20
|
-
Inactive: "inactive",
|
|
21
|
-
PendingVerification: "pending-verification",
|
|
22
18
|
Closed: "closed",
|
|
23
19
|
} as const;
|
|
24
20
|
/**
|
|
@@ -26,10 +22,8 @@ export const IssuedCardState = {
|
|
|
26
22
|
*
|
|
27
23
|
* @remarks
|
|
28
24
|
*
|
|
29
|
-
* - `active`: The card is operational and
|
|
30
|
-
* - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
|
|
25
|
+
* - `active`: The card is operational and can approve authorizations.
|
|
31
26
|
* - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
32
|
-
* - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
|
|
33
27
|
*/
|
|
34
28
|
export type IssuedCardState = ClosedEnum<typeof IssuedCardState>;
|
|
35
29
|
|
|
@@ -16,7 +16,7 @@ export type ManualTermsOfServiceUpdate = {
|
|
|
16
16
|
*/
|
|
17
17
|
acceptedDate?: Date | undefined;
|
|
18
18
|
/**
|
|
19
|
-
* The IP address from which the terms of service were accepted.
|
|
19
|
+
* The IP address (IPv4 or IPv6) from which the terms of service were accepted.
|
|
20
20
|
*/
|
|
21
21
|
acceptedIP?: string | undefined;
|
|
22
22
|
/**
|
|
@@ -61,7 +61,7 @@ export type OnboardingInvite = {
|
|
|
61
61
|
*/
|
|
62
62
|
grantScopes?: Array<ApplicationScope> | undefined;
|
|
63
63
|
/**
|
|
64
|
-
* List of [capabilities](https://docs.moov.io/guides/accounts/capabilities/) you intend to request for this
|
|
64
|
+
* List of [capabilities](https://docs.moov.io/guides/accounts/capabilities/reference/) you intend to request for this
|
|
65
65
|
*
|
|
66
66
|
* @remarks
|
|
67
67
|
* account. These values are used to determine what information to collect from the user during onboarding.
|
|
@@ -50,7 +50,7 @@ export type OnboardingInviteRequest = {
|
|
|
50
50
|
*/
|
|
51
51
|
grantScopes?: Array<ApplicationScope> | undefined;
|
|
52
52
|
/**
|
|
53
|
-
* List of [capabilities](https://docs.moov.io/guides/accounts/capabilities/) you intend to request for this
|
|
53
|
+
* List of [capabilities](https://docs.moov.io/guides/accounts/capabilities/reference/) you intend to request for this
|
|
54
54
|
*
|
|
55
55
|
* @remarks
|
|
56
56
|
* account. These values are used to determine what information to collect from the user during onboarding.
|
|
@@ -8,6 +8,9 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type PatchTransfer = {
|
|
11
|
+
/**
|
|
12
|
+
* Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
|
|
13
|
+
*/
|
|
11
14
|
metadata?: { [k: string]: string } | null | undefined;
|
|
12
15
|
/**
|
|
13
16
|
* Optional alias from a foreign/external system which can be used to reference this resource.
|
|
@@ -92,8 +92,8 @@ export type PaymentLink = {
|
|
|
92
92
|
*
|
|
93
93
|
* In API versions before `2026.07.00`, this was a required field.
|
|
94
94
|
*
|
|
95
|
-
* In API version `2026.07.00` and beyond, this field is
|
|
96
|
-
* for `
|
|
95
|
+
* In API version `2026.07.00` and beyond, this field is present for `payment` and `payout` links and omitted
|
|
96
|
+
* for `customAmountPayment` links, where the payor chooses the amount.
|
|
97
97
|
*/
|
|
98
98
|
amount: Amount;
|
|
99
99
|
/**
|
|
@@ -17,6 +17,12 @@ import {
|
|
|
17
17
|
PayoutRecipient$Outbound,
|
|
18
18
|
PayoutRecipient$outboundSchema,
|
|
19
19
|
} from "./payoutrecipient.js";
|
|
20
|
+
import {
|
|
21
|
+
PushOptions,
|
|
22
|
+
PushOptions$inboundSchema,
|
|
23
|
+
PushOptions$Outbound,
|
|
24
|
+
PushOptions$outboundSchema,
|
|
25
|
+
} from "./pushoptions.js";
|
|
20
26
|
|
|
21
27
|
export type PaymentLinkPayoutDetails = {
|
|
22
28
|
/**
|
|
@@ -36,6 +42,15 @@ export type PaymentLinkPayoutDetails = {
|
|
|
36
42
|
* Optional free-form metadata for the transfer.
|
|
37
43
|
*/
|
|
38
44
|
metadata?: { [k: string]: string } | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Delivery options for push-to-card payouts. Only applies when `allowedMethods` includes `push-to-card`.
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
*
|
|
50
|
+
* The `deferred` speed and `deferredBy` apply to `push-to-card` only. Other push methods
|
|
51
|
+
* (`push-to-apple-pay`, `push-to-google-pay`) are always delivered instantly regardless of these options.
|
|
52
|
+
*/
|
|
53
|
+
pushOptions?: PushOptions | undefined;
|
|
39
54
|
};
|
|
40
55
|
|
|
41
56
|
/** @internal */
|
|
@@ -47,12 +62,14 @@ export const PaymentLinkPayoutDetails$inboundSchema: z.ZodType<
|
|
|
47
62
|
allowedMethods: z.array(DisbursementPaymentMethodType$inboundSchema),
|
|
48
63
|
recipient: PayoutRecipient$inboundSchema,
|
|
49
64
|
metadata: z.record(z.string()).optional(),
|
|
65
|
+
pushOptions: PushOptions$inboundSchema.optional(),
|
|
50
66
|
});
|
|
51
67
|
/** @internal */
|
|
52
68
|
export type PaymentLinkPayoutDetails$Outbound = {
|
|
53
69
|
allowedMethods: Array<string>;
|
|
54
70
|
recipient: PayoutRecipient$Outbound;
|
|
55
71
|
metadata?: { [k: string]: string } | undefined;
|
|
72
|
+
pushOptions?: PushOptions$Outbound | undefined;
|
|
56
73
|
};
|
|
57
74
|
|
|
58
75
|
/** @internal */
|
|
@@ -64,6 +81,7 @@ export const PaymentLinkPayoutDetails$outboundSchema: z.ZodType<
|
|
|
64
81
|
allowedMethods: z.array(DisbursementPaymentMethodType$outboundSchema),
|
|
65
82
|
recipient: PayoutRecipient$outboundSchema,
|
|
66
83
|
metadata: z.record(z.string()).optional(),
|
|
84
|
+
pushOptions: PushOptions$outboundSchema.optional(),
|
|
67
85
|
});
|
|
68
86
|
|
|
69
87
|
export function paymentLinkPayoutDetailsToJSON(
|
|
@@ -17,6 +17,12 @@ import {
|
|
|
17
17
|
PayoutRecipient$Outbound,
|
|
18
18
|
PayoutRecipient$outboundSchema,
|
|
19
19
|
} from "./payoutrecipient.js";
|
|
20
|
+
import {
|
|
21
|
+
PushOptionsUpdate,
|
|
22
|
+
PushOptionsUpdate$inboundSchema,
|
|
23
|
+
PushOptionsUpdate$Outbound,
|
|
24
|
+
PushOptionsUpdate$outboundSchema,
|
|
25
|
+
} from "./pushoptionsupdate.js";
|
|
20
26
|
|
|
21
27
|
export type PaymentLinkPayoutDetailsUpdate = {
|
|
22
28
|
/**
|
|
@@ -36,6 +42,15 @@ export type PaymentLinkPayoutDetailsUpdate = {
|
|
|
36
42
|
* Optional free-form metadata for the transfer.
|
|
37
43
|
*/
|
|
38
44
|
metadata?: { [k: string]: string } | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Delivery options for push-to-card payouts. Only applies when `allowedMethods` includes `push-to-card`.
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
*
|
|
50
|
+
* The `deferred` speed and `deferredBy` apply to `push-to-card` only. Other push methods
|
|
51
|
+
* (`push-to-apple-pay`, `push-to-google-pay`) are always delivered instantly regardless of these options.
|
|
52
|
+
*/
|
|
53
|
+
pushOptions?: PushOptionsUpdate | undefined;
|
|
39
54
|
};
|
|
40
55
|
|
|
41
56
|
/** @internal */
|
|
@@ -48,12 +63,14 @@ export const PaymentLinkPayoutDetailsUpdate$inboundSchema: z.ZodType<
|
|
|
48
63
|
.optional(),
|
|
49
64
|
recipient: PayoutRecipient$inboundSchema.optional(),
|
|
50
65
|
metadata: z.record(z.string()).optional(),
|
|
66
|
+
pushOptions: PushOptionsUpdate$inboundSchema.optional(),
|
|
51
67
|
});
|
|
52
68
|
/** @internal */
|
|
53
69
|
export type PaymentLinkPayoutDetailsUpdate$Outbound = {
|
|
54
70
|
allowedMethods?: Array<string> | undefined;
|
|
55
71
|
recipient?: PayoutRecipient$Outbound | undefined;
|
|
56
72
|
metadata?: { [k: string]: string } | undefined;
|
|
73
|
+
pushOptions?: PushOptionsUpdate$Outbound | undefined;
|
|
57
74
|
};
|
|
58
75
|
|
|
59
76
|
/** @internal */
|
|
@@ -66,6 +83,7 @@ export const PaymentLinkPayoutDetailsUpdate$outboundSchema: z.ZodType<
|
|
|
66
83
|
.optional(),
|
|
67
84
|
recipient: PayoutRecipient$outboundSchema.optional(),
|
|
68
85
|
metadata: z.record(z.string()).optional(),
|
|
86
|
+
pushOptions: PushOptionsUpdate$outboundSchema.optional(),
|
|
69
87
|
});
|
|
70
88
|
|
|
71
89
|
export function paymentLinkPayoutDetailsUpdateToJSON(
|
|
@@ -12,11 +12,18 @@ import {
|
|
|
12
12
|
PayoutRecipientError$Outbound,
|
|
13
13
|
PayoutRecipientError$outboundSchema,
|
|
14
14
|
} from "./payoutrecipienterror.js";
|
|
15
|
+
import {
|
|
16
|
+
PushOptionsError,
|
|
17
|
+
PushOptionsError$inboundSchema,
|
|
18
|
+
PushOptionsError$Outbound,
|
|
19
|
+
PushOptionsError$outboundSchema,
|
|
20
|
+
} from "./pushoptionserror.js";
|
|
15
21
|
|
|
16
22
|
export type PayoutDetailsError = {
|
|
17
23
|
allowedMethods?: string | undefined;
|
|
18
24
|
recipient?: PayoutRecipientError | undefined;
|
|
19
25
|
metadata?: string | undefined;
|
|
26
|
+
pushOptions?: PushOptionsError | undefined;
|
|
20
27
|
};
|
|
21
28
|
|
|
22
29
|
/** @internal */
|
|
@@ -28,12 +35,14 @@ export const PayoutDetailsError$inboundSchema: z.ZodType<
|
|
|
28
35
|
allowedMethods: z.string().optional(),
|
|
29
36
|
recipient: PayoutRecipientError$inboundSchema.optional(),
|
|
30
37
|
metadata: z.string().optional(),
|
|
38
|
+
pushOptions: PushOptionsError$inboundSchema.optional(),
|
|
31
39
|
});
|
|
32
40
|
/** @internal */
|
|
33
41
|
export type PayoutDetailsError$Outbound = {
|
|
34
42
|
allowedMethods?: string | undefined;
|
|
35
43
|
recipient?: PayoutRecipientError$Outbound | undefined;
|
|
36
44
|
metadata?: string | undefined;
|
|
45
|
+
pushOptions?: PushOptionsError$Outbound | undefined;
|
|
37
46
|
};
|
|
38
47
|
|
|
39
48
|
/** @internal */
|
|
@@ -45,6 +54,7 @@ export const PayoutDetailsError$outboundSchema: z.ZodType<
|
|
|
45
54
|
allowedMethods: z.string().optional(),
|
|
46
55
|
recipient: PayoutRecipientError$outboundSchema.optional(),
|
|
47
56
|
metadata: z.string().optional(),
|
|
57
|
+
pushOptions: PushOptionsError$outboundSchema.optional(),
|
|
48
58
|
});
|
|
49
59
|
|
|
50
60
|
export function payoutDetailsErrorToJSON(
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Delivery speed options for push-to-card payouts.
|
|
10
|
+
*/
|
|
11
|
+
export const PushDeliverySpeed = {
|
|
12
|
+
Instant: "instant",
|
|
13
|
+
Deferred: "deferred",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* Delivery speed options for push-to-card payouts.
|
|
17
|
+
*/
|
|
18
|
+
export type PushDeliverySpeed = ClosedEnum<typeof PushDeliverySpeed>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const PushDeliverySpeed$inboundSchema: z.ZodNativeEnum<
|
|
22
|
+
typeof PushDeliverySpeed
|
|
23
|
+
> = z.nativeEnum(PushDeliverySpeed);
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const PushDeliverySpeed$outboundSchema: z.ZodNativeEnum<
|
|
26
|
+
typeof PushDeliverySpeed
|
|
27
|
+
> = PushDeliverySpeed$inboundSchema;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
PushDeliverySpeed,
|
|
11
|
+
PushDeliverySpeed$inboundSchema,
|
|
12
|
+
PushDeliverySpeed$outboundSchema,
|
|
13
|
+
} from "./pushdeliveryspeed.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Delivery options for push-to-card payouts.
|
|
17
|
+
*/
|
|
18
|
+
export type PushOptions = {
|
|
19
|
+
/**
|
|
20
|
+
* Delivery speeds the recipient may choose from for `push-to-card`. Include `instant` to allow immediate
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* delivery, `deferred` to allow delayed delivery, or both to let the recipient choose at checkout.
|
|
24
|
+
*/
|
|
25
|
+
allowedSpeeds: Array<PushDeliverySpeed>;
|
|
26
|
+
/**
|
|
27
|
+
* Delay before delivering a deferred `push-to-card` payout. Required when `allowedSpeeds` includes `deferred`.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Accepted values are `24h` or `48h`.
|
|
31
|
+
*/
|
|
32
|
+
deferredBy?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const PushOptions$inboundSchema: z.ZodType<
|
|
37
|
+
PushOptions,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
unknown
|
|
40
|
+
> = z.object({
|
|
41
|
+
allowedSpeeds: z.array(PushDeliverySpeed$inboundSchema),
|
|
42
|
+
deferredBy: z.string().optional(),
|
|
43
|
+
});
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type PushOptions$Outbound = {
|
|
46
|
+
allowedSpeeds: Array<string>;
|
|
47
|
+
deferredBy?: string | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const PushOptions$outboundSchema: z.ZodType<
|
|
52
|
+
PushOptions$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
PushOptions
|
|
55
|
+
> = z.object({
|
|
56
|
+
allowedSpeeds: z.array(PushDeliverySpeed$outboundSchema),
|
|
57
|
+
deferredBy: z.string().optional(),
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export function pushOptionsToJSON(pushOptions: PushOptions): string {
|
|
61
|
+
return JSON.stringify(PushOptions$outboundSchema.parse(pushOptions));
|
|
62
|
+
}
|
|
63
|
+
export function pushOptionsFromJSON(
|
|
64
|
+
jsonString: string,
|
|
65
|
+
): SafeParseResult<PushOptions, SDKValidationError> {
|
|
66
|
+
return safeParse(
|
|
67
|
+
jsonString,
|
|
68
|
+
(x) => PushOptions$inboundSchema.parse(JSON.parse(x)),
|
|
69
|
+
`Failed to parse 'PushOptions' from JSON`,
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type PushOptionsError = {
|
|
11
|
+
allowedSpeeds?: string | undefined;
|
|
12
|
+
deferredBy?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const PushOptionsError$inboundSchema: z.ZodType<
|
|
17
|
+
PushOptionsError,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
allowedSpeeds: z.string().optional(),
|
|
22
|
+
deferredBy: z.string().optional(),
|
|
23
|
+
});
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type PushOptionsError$Outbound = {
|
|
26
|
+
allowedSpeeds?: string | undefined;
|
|
27
|
+
deferredBy?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const PushOptionsError$outboundSchema: z.ZodType<
|
|
32
|
+
PushOptionsError$Outbound,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
PushOptionsError
|
|
35
|
+
> = z.object({
|
|
36
|
+
allowedSpeeds: z.string().optional(),
|
|
37
|
+
deferredBy: z.string().optional(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function pushOptionsErrorToJSON(
|
|
41
|
+
pushOptionsError: PushOptionsError,
|
|
42
|
+
): string {
|
|
43
|
+
return JSON.stringify(
|
|
44
|
+
PushOptionsError$outboundSchema.parse(pushOptionsError),
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
export function pushOptionsErrorFromJSON(
|
|
48
|
+
jsonString: string,
|
|
49
|
+
): SafeParseResult<PushOptionsError, SDKValidationError> {
|
|
50
|
+
return safeParse(
|
|
51
|
+
jsonString,
|
|
52
|
+
(x) => PushOptionsError$inboundSchema.parse(JSON.parse(x)),
|
|
53
|
+
`Failed to parse 'PushOptionsError' from JSON`,
|
|
54
|
+
);
|
|
55
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
PushDeliverySpeed,
|
|
11
|
+
PushDeliverySpeed$inboundSchema,
|
|
12
|
+
PushDeliverySpeed$outboundSchema,
|
|
13
|
+
} from "./pushdeliveryspeed.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Delivery options for push-to-card payouts.
|
|
17
|
+
*/
|
|
18
|
+
export type PushOptionsUpdate = {
|
|
19
|
+
/**
|
|
20
|
+
* Delivery speeds the recipient may choose from for `push-to-card`. Include `instant` to allow immediate
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* delivery, `deferred` to allow delayed delivery, or both to let the recipient choose at checkout.
|
|
24
|
+
*/
|
|
25
|
+
allowedSpeeds?: Array<PushDeliverySpeed> | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Delay before delivering a deferred `push-to-card` payout. Required when `allowedSpeeds` includes `deferred`.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Accepted values are `24h` or `48h`.
|
|
31
|
+
*/
|
|
32
|
+
deferredBy?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const PushOptionsUpdate$inboundSchema: z.ZodType<
|
|
37
|
+
PushOptionsUpdate,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
unknown
|
|
40
|
+
> = z.object({
|
|
41
|
+
allowedSpeeds: z.array(PushDeliverySpeed$inboundSchema).optional(),
|
|
42
|
+
deferredBy: z.string().optional(),
|
|
43
|
+
});
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type PushOptionsUpdate$Outbound = {
|
|
46
|
+
allowedSpeeds?: Array<string> | undefined;
|
|
47
|
+
deferredBy?: string | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const PushOptionsUpdate$outboundSchema: z.ZodType<
|
|
52
|
+
PushOptionsUpdate$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
PushOptionsUpdate
|
|
55
|
+
> = z.object({
|
|
56
|
+
allowedSpeeds: z.array(PushDeliverySpeed$outboundSchema).optional(),
|
|
57
|
+
deferredBy: z.string().optional(),
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export function pushOptionsUpdateToJSON(
|
|
61
|
+
pushOptionsUpdate: PushOptionsUpdate,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
PushOptionsUpdate$outboundSchema.parse(pushOptionsUpdate),
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
export function pushOptionsUpdateFromJSON(
|
|
68
|
+
jsonString: string,
|
|
69
|
+
): SafeParseResult<PushOptionsUpdate, SDKValidationError> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) => PushOptionsUpdate$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'PushOptionsUpdate' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -6,23 +6,18 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
Address,
|
|
11
|
+
Address$inboundSchema,
|
|
12
|
+
Address$Outbound,
|
|
13
|
+
Address$outboundSchema,
|
|
14
|
+
} from "./address.js";
|
|
9
15
|
import {
|
|
10
16
|
CardExpiration,
|
|
11
17
|
CardExpiration$inboundSchema,
|
|
12
18
|
CardExpiration$Outbound,
|
|
13
19
|
CardExpiration$outboundSchema,
|
|
14
20
|
} from "./cardexpiration.js";
|
|
15
|
-
import {
|
|
16
|
-
CreateAuthorizedUser,
|
|
17
|
-
CreateAuthorizedUser$inboundSchema,
|
|
18
|
-
CreateAuthorizedUser$Outbound,
|
|
19
|
-
CreateAuthorizedUser$outboundSchema,
|
|
20
|
-
} from "./createauthorizeduser.js";
|
|
21
|
-
import {
|
|
22
|
-
IssuedCardFormFactor,
|
|
23
|
-
IssuedCardFormFactor$inboundSchema,
|
|
24
|
-
IssuedCardFormFactor$outboundSchema,
|
|
25
|
-
} from "./issuedcardformfactor.js";
|
|
26
21
|
import {
|
|
27
22
|
IssuingControls,
|
|
28
23
|
IssuingControls$inboundSchema,
|
|
@@ -31,19 +26,13 @@ import {
|
|
|
31
26
|
} from "./issuingcontrols.js";
|
|
32
27
|
|
|
33
28
|
export type RequestCard = {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
* Fields for identifying an authorized individual.
|
|
37
|
-
*/
|
|
38
|
-
authorizedUser: CreateAuthorizedUser;
|
|
39
|
-
/**
|
|
40
|
-
* Specifies the type of spend card to be issued. Presently supports virtual only, providing a digital number without a physical card.
|
|
41
|
-
*/
|
|
42
|
-
formFactor: IssuedCardFormFactor;
|
|
29
|
+
authorizedUserAccountID?: string | undefined;
|
|
30
|
+
nickname?: string | undefined;
|
|
43
31
|
/**
|
|
44
|
-
*
|
|
32
|
+
* Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
|
|
45
33
|
*/
|
|
46
|
-
|
|
34
|
+
metadata?: { [k: string]: string } | undefined;
|
|
35
|
+
billingAddress?: Address | undefined;
|
|
47
36
|
/**
|
|
48
37
|
* The expiration date of the card or token.
|
|
49
38
|
*/
|
|
@@ -57,19 +46,19 @@ export const RequestCard$inboundSchema: z.ZodType<
|
|
|
57
46
|
z.ZodTypeDef,
|
|
58
47
|
unknown
|
|
59
48
|
> = z.object({
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
49
|
+
authorizedUserAccountID: z.string().optional(),
|
|
50
|
+
nickname: z.string().optional(),
|
|
51
|
+
metadata: z.record(z.string()).optional(),
|
|
52
|
+
billingAddress: Address$inboundSchema.optional(),
|
|
64
53
|
expiration: CardExpiration$inboundSchema.optional(),
|
|
65
54
|
controls: IssuingControls$inboundSchema.optional(),
|
|
66
55
|
});
|
|
67
56
|
/** @internal */
|
|
68
57
|
export type RequestCard$Outbound = {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
58
|
+
authorizedUserAccountID?: string | undefined;
|
|
59
|
+
nickname?: string | undefined;
|
|
60
|
+
metadata?: { [k: string]: string } | undefined;
|
|
61
|
+
billingAddress?: Address$Outbound | undefined;
|
|
73
62
|
expiration?: CardExpiration$Outbound | undefined;
|
|
74
63
|
controls?: IssuingControls$Outbound | undefined;
|
|
75
64
|
};
|
|
@@ -80,10 +69,10 @@ export const RequestCard$outboundSchema: z.ZodType<
|
|
|
80
69
|
z.ZodTypeDef,
|
|
81
70
|
RequestCard
|
|
82
71
|
> = z.object({
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
72
|
+
authorizedUserAccountID: z.string().optional(),
|
|
73
|
+
nickname: z.string().optional(),
|
|
74
|
+
metadata: z.record(z.string()).optional(),
|
|
75
|
+
billingAddress: Address$outboundSchema.optional(),
|
|
87
76
|
expiration: CardExpiration$outboundSchema.optional(),
|
|
88
77
|
controls: IssuingControls$outboundSchema.optional(),
|
|
89
78
|
});
|