@gr4vy/sdk 1.1.10 → 1.1.11
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 +6 -6
- package/docs/sdks/payouts/README.md +4 -4
- package/funcs/payoutsCreate.d.ts +1 -1
- package/funcs/payoutsCreate.js +1 -1
- package/funcs/payoutsGet.d.ts +2 -2
- package/funcs/payoutsGet.js +2 -2
- package/funcs/payoutsList.d.ts +1 -1
- package/funcs/payoutsList.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/accountupdateroptions.d.ts +52 -0
- package/models/components/accountupdateroptions.d.ts.map +1 -0
- package/models/components/accountupdateroptions.js +84 -0
- package/models/components/accountupdateroptions.js.map +1 -0
- package/models/components/adyenautorescuesepascenariosenum.d.ts +23 -0
- package/models/components/adyenautorescuesepascenariosenum.d.ts.map +1 -0
- package/models/components/adyenautorescuesepascenariosenum.js +59 -0
- package/models/components/adyenautorescuesepascenariosenum.js.map +1 -0
- package/models/components/adyencardautorescuescenariosenum.d.ts +24 -0
- package/models/components/adyencardautorescuescenariosenum.d.ts.map +1 -0
- package/models/components/adyencardautorescuescenariosenum.js +60 -0
- package/models/components/adyencardautorescuescenariosenum.js.map +1 -0
- package/models/components/adyencardoptions.d.ts +57 -0
- package/models/components/adyencardoptions.d.ts.map +1 -0
- package/models/components/adyencardoptions.js +78 -0
- package/models/components/adyencardoptions.js.map +1 -0
- package/models/components/adyenoptions.d.ts +36 -0
- package/models/components/adyenoptions.d.ts.map +1 -0
- package/models/components/adyenoptions.js +59 -0
- package/models/components/adyenoptions.js.map +1 -0
- package/models/components/adyensepaoptions.d.ts +57 -0
- package/models/components/adyensepaoptions.d.ts.map +1 -0
- package/models/components/adyensepaoptions.js +68 -0
- package/models/components/adyensepaoptions.js.map +1 -0
- package/models/components/affirmitineraryoptions.d.ts +62 -0
- package/models/components/affirmitineraryoptions.d.ts.map +1 -0
- package/models/components/affirmitineraryoptions.js +82 -0
- package/models/components/affirmitineraryoptions.js.map +1 -0
- package/models/components/affirmoptions.d.ts +46 -0
- package/models/components/affirmoptions.d.ts.map +1 -0
- package/models/components/affirmoptions.js +62 -0
- package/models/components/affirmoptions.js.map +1 -0
- package/models/components/braintreedynamicdatafieldsoptions.d.ts +37 -0
- package/models/components/braintreedynamicdatafieldsoptions.d.ts.map +1 -0
- package/models/components/braintreedynamicdatafieldsoptions.js +72 -0
- package/models/components/braintreedynamicdatafieldsoptions.js.map +1 -0
- package/models/components/braintreeoptions.d.ts +47 -0
- package/models/components/braintreeoptions.d.ts.map +1 -0
- package/models/components/braintreeoptions.js +77 -0
- package/models/components/braintreeoptions.js.map +1 -0
- package/models/components/checkoutpayoutoptions.d.ts +37 -0
- package/models/components/checkoutpayoutoptions.d.ts.map +1 -0
- package/models/components/{checkoutcardconnectionoptions.js → checkoutpayoutoptions.js} +17 -17
- package/models/components/checkoutpayoutoptions.js.map +1 -0
- package/models/components/cybersourceantifraudoptions.d.ts +46 -0
- package/models/components/cybersourceantifraudoptions.d.ts.map +1 -0
- package/models/components/cybersourceantifraudoptions.js +76 -0
- package/models/components/cybersourceantifraudoptions.js.map +1 -0
- package/models/components/cybersourceoptions.d.ts +46 -0
- package/models/components/cybersourceoptions.d.ts.map +1 -0
- package/models/components/cybersourceoptions.js +76 -0
- package/models/components/cybersourceoptions.js.map +1 -0
- package/models/components/dlocaloptions.d.ts +33 -0
- package/models/components/dlocaloptions.d.ts.map +1 -0
- package/models/components/dlocaloptions.js +60 -0
- package/models/components/dlocaloptions.js.map +1 -0
- package/models/components/dlocalwalletoptions.d.ts +52 -0
- package/models/components/dlocalwalletoptions.d.ts.map +1 -0
- package/models/components/dlocalwalletoptions.js +67 -0
- package/models/components/dlocalwalletoptions.js.map +1 -0
- package/models/components/fiservinstallmentoptions.d.ts +47 -0
- package/models/components/fiservinstallmentoptions.d.ts.map +1 -0
- package/models/components/fiservinstallmentoptions.js +65 -0
- package/models/components/fiservinstallmentoptions.js.map +1 -0
- package/models/components/fiservoptions.d.ts +33 -0
- package/models/components/fiservoptions.d.ts.map +1 -0
- package/models/components/fiservoptions.js +62 -0
- package/models/components/fiservoptions.js.map +1 -0
- package/models/components/forterantifraudoptions.d.ts +75 -0
- package/models/components/forterantifraudoptions.d.ts.map +1 -0
- package/models/components/forterantifraudoptions.js +118 -0
- package/models/components/forterantifraudoptions.js.map +1 -0
- package/models/components/forterantifraudoptionscartitem.d.ts +45 -0
- package/models/components/forterantifraudoptionscartitem.d.ts.map +1 -0
- package/models/components/forterantifraudoptionscartitem.js +77 -0
- package/models/components/forterantifraudoptionscartitem.js.map +1 -0
- package/models/components/forterantifraudoptionscartitembasicitemdata.d.ts +52 -0
- package/models/components/forterantifraudoptionscartitembasicitemdata.d.ts.map +1 -0
- package/models/components/forterantifraudoptionscartitembasicitemdata.js +86 -0
- package/models/components/forterantifraudoptionscartitembasicitemdata.js.map +1 -0
- package/models/components/forterantifraudoptionscartitembeneficiary.d.ts +48 -0
- package/models/components/forterantifraudoptionscartitembeneficiary.d.ts.map +1 -0
- package/models/components/forterantifraudoptionscartitembeneficiary.js +78 -0
- package/models/components/forterantifraudoptionscartitembeneficiary.js.map +1 -0
- package/models/components/forterantifraudoptionscartitembeneficiaryaddress.d.ts +62 -0
- package/models/components/forterantifraudoptionscartitembeneficiaryaddress.d.ts.map +1 -0
- package/models/components/forterantifraudoptionscartitembeneficiaryaddress.js +71 -0
- package/models/components/forterantifraudoptionscartitembeneficiaryaddress.js.map +1 -0
- package/models/components/forterantifraudoptionscartitembeneficiarycomments.d.ts +42 -0
- package/models/components/forterantifraudoptionscartitembeneficiarycomments.d.ts.map +1 -0
- package/models/components/forterantifraudoptionscartitembeneficiarycomments.js +76 -0
- package/models/components/forterantifraudoptionscartitembeneficiarycomments.js.map +1 -0
- package/models/components/forterantifraudoptionscartitembeneficiarypersonaldetails.d.ts +42 -0
- package/models/components/forterantifraudoptionscartitembeneficiarypersonaldetails.d.ts.map +1 -0
- package/models/components/forterantifraudoptionscartitembeneficiarypersonaldetails.js +76 -0
- package/models/components/forterantifraudoptionscartitembeneficiarypersonaldetails.js.map +1 -0
- package/models/components/forterantifraudoptionscartitembeneficiaryphone.d.ts +32 -0
- package/models/components/forterantifraudoptionscartitembeneficiaryphone.d.ts.map +1 -0
- package/models/components/forterantifraudoptionscartitembeneficiaryphone.js +59 -0
- package/models/components/forterantifraudoptionscartitembeneficiaryphone.js.map +1 -0
- package/models/components/forterantifraudoptionscartitemdeliverydetails.d.ts +58 -0
- package/models/components/forterantifraudoptionscartitemdeliverydetails.d.ts.map +1 -0
- package/models/components/forterantifraudoptionscartitemdeliverydetails.js +100 -0
- package/models/components/forterantifraudoptionscartitemdeliverydetails.js.map +1 -0
- package/models/components/forterantifraudoptionsdiscount.d.ts +48 -0
- package/models/components/forterantifraudoptionsdiscount.d.ts.map +1 -0
- package/models/components/forterantifraudoptionsdiscount.js +81 -0
- package/models/components/forterantifraudoptionsdiscount.js.map +1 -0
- package/models/components/forterantifraudoptionsdiscountcoupondiscountamount.d.ts +42 -0
- package/models/components/forterantifraudoptionsdiscountcoupondiscountamount.d.ts.map +1 -0
- package/models/components/forterantifraudoptionsdiscountcoupondiscountamount.js +74 -0
- package/models/components/forterantifraudoptionsdiscountcoupondiscountamount.js.map +1 -0
- package/models/components/givingblockoptions.d.ts +32 -0
- package/models/components/givingblockoptions.d.ts.map +1 -0
- package/models/components/givingblockoptions.js +59 -0
- package/models/components/givingblockoptions.js.map +1 -0
- package/models/components/index.d.ts +50 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +50 -3
- package/models/components/index.js.map +1 -1
- package/models/components/latitudeoptions.d.ts +32 -0
- package/models/components/latitudeoptions.d.ts.map +1 -0
- package/models/components/latitudeoptions.js +68 -0
- package/models/components/latitudeoptions.js.map +1 -0
- package/models/components/mattildatapioptions.d.ts +32 -0
- package/models/components/mattildatapioptions.d.ts.map +1 -0
- package/models/components/mattildatapioptions.js +68 -0
- package/models/components/mattildatapioptions.js.map +1 -0
- package/models/components/mockcardmerchantadvicecodeoptions.d.ts +37 -0
- package/models/components/mockcardmerchantadvicecodeoptions.d.ts.map +1 -0
- package/models/components/mockcardmerchantadvicecodeoptions.js +70 -0
- package/models/components/mockcardmerchantadvicecodeoptions.js.map +1 -0
- package/models/components/mockcardoptions.d.ts +33 -0
- package/models/components/mockcardoptions.d.ts.map +1 -0
- package/models/components/mockcardoptions.js +69 -0
- package/models/components/mockcardoptions.js.map +1 -0
- package/models/components/nuveiairlinedataoptions.d.ts +37 -0
- package/models/components/nuveiairlinedataoptions.d.ts.map +1 -0
- package/models/components/nuveiairlinedataoptions.js +61 -0
- package/models/components/nuveiairlinedataoptions.js.map +1 -0
- package/models/components/nuveioptions.d.ts +38 -0
- package/models/components/nuveioptions.d.ts.map +1 -0
- package/models/components/nuveioptions.js +62 -0
- package/models/components/nuveioptions.js.map +1 -0
- package/models/components/oxxooptions.d.ts +37 -0
- package/models/components/oxxooptions.d.ts.map +1 -0
- package/models/components/oxxooptions.js +72 -0
- package/models/components/oxxooptions.js.map +1 -0
- package/models/components/paymentlinkcreate.d.ts +3 -10
- package/models/components/paymentlinkcreate.d.ts.map +1 -1
- package/models/components/paymentlinkcreate.js +5 -2
- package/models/components/paymentlinkcreate.js.map +1 -1
- package/models/components/paymentlinks.d.ts +48 -0
- package/models/components/paymentlinks.d.ts.map +1 -0
- package/models/components/{collectionpaymentlink.js → paymentlinks.js} +17 -17
- package/models/components/paymentlinks.js.map +1 -0
- package/models/components/payoutconnectionoptions.d.ts +33 -0
- package/models/components/payoutconnectionoptions.d.ts.map +1 -0
- package/models/components/{connectionoptions.js → payoutconnectionoptions.js} +20 -22
- package/models/components/payoutconnectionoptions.js.map +1 -0
- package/models/components/payoutcreate.d.ts +3 -3
- package/models/components/payoutcreate.d.ts.map +1 -1
- package/models/components/payoutcreate.js +5 -3
- package/models/components/payoutcreate.js.map +1 -1
- package/models/components/paypaloptions.d.ts +36 -0
- package/models/components/paypaloptions.d.ts.map +1 -0
- package/models/components/paypaloptions.js +68 -0
- package/models/components/paypaloptions.js.map +1 -0
- package/models/components/powertranzoptions.d.ts +32 -0
- package/models/components/powertranzoptions.d.ts.map +1 -0
- package/models/components/powertranzoptions.js +59 -0
- package/models/components/powertranzoptions.js.map +1 -0
- package/models/components/stripeconnectoptions.d.ts +47 -0
- package/models/components/stripeconnectoptions.d.ts.map +1 -0
- package/models/components/stripeconnectoptions.js +80 -0
- package/models/components/stripeconnectoptions.js.map +1 -0
- package/models/components/stripeoptions.d.ts +38 -0
- package/models/components/stripeoptions.d.ts.map +1 -0
- package/models/components/stripeoptions.js +73 -0
- package/models/components/stripeoptions.js.map +1 -0
- package/models/components/transactionconnectionoptions.d.ts +231 -0
- package/models/components/transactionconnectionoptions.d.ts.map +1 -0
- package/models/components/transactionconnectionoptions.js +237 -0
- package/models/components/transactionconnectionoptions.js.map +1 -0
- package/models/components/transactioncreate.d.ts +3 -10
- package/models/components/transactioncreate.d.ts.map +1 -1
- package/models/components/transactioncreate.js +5 -2
- package/models/components/transactioncreate.js.map +1 -1
- package/models/components/transactionupdate.d.ts +3 -10
- package/models/components/transactionupdate.d.ts.map +1 -1
- package/models/components/transactionupdate.js +5 -2
- package/models/components/transactionupdate.js.map +1 -1
- package/models/components/travelhubcustomdata.d.ts +42 -0
- package/models/components/travelhubcustomdata.d.ts.map +1 -0
- package/models/components/travelhubcustomdata.js +63 -0
- package/models/components/travelhubcustomdata.js.map +1 -0
- package/models/components/travelhuboptions.d.ts +33 -0
- package/models/components/travelhuboptions.d.ts.map +1 -0
- package/models/components/travelhuboptions.js +61 -0
- package/models/components/travelhuboptions.js.map +1 -0
- package/models/components/trustlyoptions.d.ts +32 -0
- package/models/components/trustlyoptions.d.ts.map +1 -0
- package/models/components/trustlyoptions.js +59 -0
- package/models/components/trustlyoptions.js.map +1 -0
- package/models/components/wpayeverdaypayoptions.d.ts +56 -0
- package/models/components/wpayeverdaypayoptions.d.ts.map +1 -0
- package/models/components/wpayeverdaypayoptions.js +76 -0
- package/models/components/wpayeverdaypayoptions.js.map +1 -0
- package/models/components/wpaypaytooptions.d.ts +43 -0
- package/models/components/wpaypaytooptions.d.ts.map +1 -0
- package/models/components/wpaypaytooptions.js +64 -0
- package/models/components/wpaypaytooptions.js.map +1 -0
- package/models/components/wpaypaytoresourceoptions.d.ts +33 -0
- package/models/components/wpaypaytoresourceoptions.d.ts.map +1 -0
- package/models/components/wpaypaytoresourceoptions.js +60 -0
- package/models/components/wpaypaytoresourceoptions.js.map +1 -0
- package/models/components/wpaypaytosimulationoptions.d.ts +37 -0
- package/models/components/wpaypaytosimulationoptions.d.ts.map +1 -0
- package/models/components/wpaypaytosimulationoptions.js +61 -0
- package/models/components/wpaypaytosimulationoptions.js.map +1 -0
- package/models/operations/listpaymentlinks.d.ts +2 -2
- package/models/operations/listpaymentlinks.d.ts.map +1 -1
- package/models/operations/listpaymentlinks.js +2 -2
- package/models/operations/listpaymentlinks.js.map +1 -1
- package/package.json +1 -1
- package/sdk/payouts.d.ts +4 -4
- package/sdk/payouts.js +4 -4
- package/src/funcs/payoutsCreate.ts +1 -1
- package/src/funcs/payoutsGet.ts +2 -2
- package/src/funcs/payoutsList.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/accountupdateroptions.ts +114 -0
- package/src/models/components/adyenautorescuesepascenariosenum.ts +51 -0
- package/src/models/components/adyencardautorescuescenariosenum.ts +52 -0
- package/src/models/components/adyencardoptions.ts +114 -0
- package/src/models/components/adyenoptions.ts +65 -0
- package/src/models/components/adyensepaoptions.ts +106 -0
- package/src/models/components/affirmitineraryoptions.ts +122 -0
- package/src/models/components/affirmoptions.ts +78 -0
- package/src/models/components/braintreedynamicdatafieldsoptions.ts +90 -0
- package/src/models/components/braintreeoptions.ts +109 -0
- package/src/models/components/{checkoutcardconnectionoptions.ts → checkoutpayoutoptions.ts} +21 -23
- package/src/models/components/cybersourceantifraudoptions.ts +98 -0
- package/src/models/components/cybersourceoptions.ts +96 -0
- package/src/models/components/dlocaloptions.ts +71 -0
- package/src/models/components/dlocalwalletoptions.ts +97 -0
- package/src/models/components/fiservinstallmentoptions.ts +90 -0
- package/src/models/components/fiservoptions.ts +73 -0
- package/src/models/components/forterantifraudoptions.ts +177 -0
- package/src/models/components/forterantifraudoptionscartitem.ts +144 -0
- package/src/models/components/forterantifraudoptionscartitembasicitemdata.ts +119 -0
- package/src/models/components/forterantifraudoptionscartitembeneficiary.ts +162 -0
- package/src/models/components/forterantifraudoptionscartitembeneficiaryaddress.ts +125 -0
- package/src/models/components/forterantifraudoptionscartitembeneficiarycomments.ts +110 -0
- package/src/models/components/forterantifraudoptionscartitembeneficiarypersonaldetails.ts +107 -0
- package/src/models/components/forterantifraudoptionscartitembeneficiaryphone.ts +83 -0
- package/src/models/components/forterantifraudoptionscartitemdeliverydetails.ts +156 -0
- package/src/models/components/forterantifraudoptionsdiscount.ts +123 -0
- package/src/models/components/forterantifraudoptionsdiscountcoupondiscountamount.ts +108 -0
- package/src/models/components/givingblockoptions.ts +69 -0
- package/src/models/components/index.ts +50 -3
- package/src/models/components/latitudeoptions.ts +76 -0
- package/src/models/components/mattildatapioptions.ts +78 -0
- package/src/models/components/mockcardmerchantadvicecodeoptions.ts +88 -0
- package/src/models/components/mockcardoptions.ts +89 -0
- package/src/models/components/nuveiairlinedataoptions.ts +76 -0
- package/src/models/components/nuveioptions.ts +78 -0
- package/src/models/components/oxxooptions.ts +83 -0
- package/src/models/components/paymentlinkcreate.ts +12 -4
- package/src/models/components/{collectionpaymentlink.ts → paymentlinks.ts} +20 -24
- package/src/models/components/payoutconnectionoptions.ts +84 -0
- package/src/models/components/payoutcreate.ts +12 -10
- package/src/models/components/paypaloptions.ts +74 -0
- package/src/models/components/powertranzoptions.ts +69 -0
- package/src/models/components/stripeconnectoptions.ts +105 -0
- package/src/models/components/stripeoptions.ts +89 -0
- package/src/models/components/transactionconnectionoptions.ts +549 -0
- package/src/models/components/transactioncreate.ts +12 -4
- package/src/models/components/transactionupdate.ts +12 -4
- package/src/models/components/travelhubcustomdata.ts +83 -0
- package/src/models/components/travelhuboptions.ts +76 -0
- package/src/models/components/trustlyoptions.ts +65 -0
- package/src/models/components/wpayeverdaypayoptions.ts +106 -0
- package/src/models/components/wpaypaytooptions.ts +89 -0
- package/src/models/components/wpaypaytoresourceoptions.ts +75 -0
- package/src/models/components/wpaypaytosimulationoptions.ts +76 -0
- package/src/models/operations/listpaymentlinks.ts +4 -4
- package/src/sdk/payouts.ts +4 -4
- package/models/components/checkoutcardconnectionoptions.d.ts +0 -37
- package/models/components/checkoutcardconnectionoptions.d.ts.map +0 -1
- package/models/components/checkoutcardconnectionoptions.js.map +0 -1
- package/models/components/collectionpaymentlink.d.ts +0 -48
- package/models/components/collectionpaymentlink.d.ts.map +0 -1
- package/models/components/collectionpaymentlink.js.map +0 -1
- package/models/components/connectionoptions.d.ts +0 -33
- package/models/components/connectionoptions.d.ts.map +0 -1
- package/models/components/connectionoptions.js.map +0 -1
- package/src/models/components/connectionoptions.ts +0 -86
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type MockCardMerchantAdviceCodeOptions = {
|
|
12
|
+
/**
|
|
13
|
+
* The MAC to return for this request.
|
|
14
|
+
*/
|
|
15
|
+
result?: string | null | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* When set, the MAC is only returned if the card number matches this account number.
|
|
18
|
+
*/
|
|
19
|
+
accountNumber: string | null;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const MockCardMerchantAdviceCodeOptions$inboundSchema: z.ZodType<
|
|
24
|
+
MockCardMerchantAdviceCodeOptions,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
result: z.nullable(z.string()).optional(),
|
|
29
|
+
account_number: z.nullable(z.string()),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"account_number": "accountNumber",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type MockCardMerchantAdviceCodeOptions$Outbound = {
|
|
38
|
+
result?: string | null | undefined;
|
|
39
|
+
account_number: string | null;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const MockCardMerchantAdviceCodeOptions$outboundSchema: z.ZodType<
|
|
44
|
+
MockCardMerchantAdviceCodeOptions$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
MockCardMerchantAdviceCodeOptions
|
|
47
|
+
> = z.object({
|
|
48
|
+
result: z.nullable(z.string()).optional(),
|
|
49
|
+
accountNumber: z.nullable(z.string()),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return remap$(v, {
|
|
52
|
+
accountNumber: "account_number",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
export namespace MockCardMerchantAdviceCodeOptions$ {
|
|
61
|
+
/** @deprecated use `MockCardMerchantAdviceCodeOptions$inboundSchema` instead. */
|
|
62
|
+
export const inboundSchema = MockCardMerchantAdviceCodeOptions$inboundSchema;
|
|
63
|
+
/** @deprecated use `MockCardMerchantAdviceCodeOptions$outboundSchema` instead. */
|
|
64
|
+
export const outboundSchema =
|
|
65
|
+
MockCardMerchantAdviceCodeOptions$outboundSchema;
|
|
66
|
+
/** @deprecated use `MockCardMerchantAdviceCodeOptions$Outbound` instead. */
|
|
67
|
+
export type Outbound = MockCardMerchantAdviceCodeOptions$Outbound;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function mockCardMerchantAdviceCodeOptionsToJSON(
|
|
71
|
+
mockCardMerchantAdviceCodeOptions: MockCardMerchantAdviceCodeOptions,
|
|
72
|
+
): string {
|
|
73
|
+
return JSON.stringify(
|
|
74
|
+
MockCardMerchantAdviceCodeOptions$outboundSchema.parse(
|
|
75
|
+
mockCardMerchantAdviceCodeOptions,
|
|
76
|
+
),
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function mockCardMerchantAdviceCodeOptionsFromJSON(
|
|
81
|
+
jsonString: string,
|
|
82
|
+
): SafeParseResult<MockCardMerchantAdviceCodeOptions, SDKValidationError> {
|
|
83
|
+
return safeParse(
|
|
84
|
+
jsonString,
|
|
85
|
+
(x) => MockCardMerchantAdviceCodeOptions$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
+
`Failed to parse 'MockCardMerchantAdviceCodeOptions' from JSON`,
|
|
87
|
+
);
|
|
88
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
MockCardMerchantAdviceCodeOptions,
|
|
12
|
+
MockCardMerchantAdviceCodeOptions$inboundSchema,
|
|
13
|
+
MockCardMerchantAdviceCodeOptions$Outbound,
|
|
14
|
+
MockCardMerchantAdviceCodeOptions$outboundSchema,
|
|
15
|
+
} from "./mockcardmerchantadvicecodeoptions.js";
|
|
16
|
+
|
|
17
|
+
export type MockCardOptions = {
|
|
18
|
+
/**
|
|
19
|
+
* Allows for mocking the merchant advice code.
|
|
20
|
+
*/
|
|
21
|
+
merchantAdviceCode?: MockCardMerchantAdviceCodeOptions | null | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const MockCardOptions$inboundSchema: z.ZodType<
|
|
26
|
+
MockCardOptions,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
merchant_advice_code: z.nullable(
|
|
31
|
+
MockCardMerchantAdviceCodeOptions$inboundSchema,
|
|
32
|
+
).optional(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"merchant_advice_code": "merchantAdviceCode",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type MockCardOptions$Outbound = {
|
|
41
|
+
merchant_advice_code?:
|
|
42
|
+
| MockCardMerchantAdviceCodeOptions$Outbound
|
|
43
|
+
| null
|
|
44
|
+
| undefined;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const MockCardOptions$outboundSchema: z.ZodType<
|
|
49
|
+
MockCardOptions$Outbound,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
MockCardOptions
|
|
52
|
+
> = z.object({
|
|
53
|
+
merchantAdviceCode: z.nullable(
|
|
54
|
+
MockCardMerchantAdviceCodeOptions$outboundSchema,
|
|
55
|
+
).optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
merchantAdviceCode: "merchant_advice_code",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
+
*/
|
|
66
|
+
export namespace MockCardOptions$ {
|
|
67
|
+
/** @deprecated use `MockCardOptions$inboundSchema` instead. */
|
|
68
|
+
export const inboundSchema = MockCardOptions$inboundSchema;
|
|
69
|
+
/** @deprecated use `MockCardOptions$outboundSchema` instead. */
|
|
70
|
+
export const outboundSchema = MockCardOptions$outboundSchema;
|
|
71
|
+
/** @deprecated use `MockCardOptions$Outbound` instead. */
|
|
72
|
+
export type Outbound = MockCardOptions$Outbound;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function mockCardOptionsToJSON(
|
|
76
|
+
mockCardOptions: MockCardOptions,
|
|
77
|
+
): string {
|
|
78
|
+
return JSON.stringify(MockCardOptions$outboundSchema.parse(mockCardOptions));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function mockCardOptionsFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<MockCardOptions, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => MockCardOptions$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'MockCardOptions' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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 NuveiAirlineDataOptions = {
|
|
11
|
+
/**
|
|
12
|
+
* The seat class of the booking
|
|
13
|
+
*/
|
|
14
|
+
seatClass?: string | null | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Indicates whether the cardholder is also a passenger.
|
|
17
|
+
*/
|
|
18
|
+
isCardholderTraveling?: boolean | null | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const NuveiAirlineDataOptions$inboundSchema: z.ZodType<
|
|
23
|
+
NuveiAirlineDataOptions,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
seatClass: z.nullable(z.string()).optional(),
|
|
28
|
+
isCardholderTraveling: z.nullable(z.boolean()).optional(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type NuveiAirlineDataOptions$Outbound = {
|
|
33
|
+
seatClass?: string | null | undefined;
|
|
34
|
+
isCardholderTraveling?: boolean | null | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const NuveiAirlineDataOptions$outboundSchema: z.ZodType<
|
|
39
|
+
NuveiAirlineDataOptions$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
NuveiAirlineDataOptions
|
|
42
|
+
> = z.object({
|
|
43
|
+
seatClass: z.nullable(z.string()).optional(),
|
|
44
|
+
isCardholderTraveling: z.nullable(z.boolean()).optional(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export namespace NuveiAirlineDataOptions$ {
|
|
52
|
+
/** @deprecated use `NuveiAirlineDataOptions$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = NuveiAirlineDataOptions$inboundSchema;
|
|
54
|
+
/** @deprecated use `NuveiAirlineDataOptions$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = NuveiAirlineDataOptions$outboundSchema;
|
|
56
|
+
/** @deprecated use `NuveiAirlineDataOptions$Outbound` instead. */
|
|
57
|
+
export type Outbound = NuveiAirlineDataOptions$Outbound;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function nuveiAirlineDataOptionsToJSON(
|
|
61
|
+
nuveiAirlineDataOptions: NuveiAirlineDataOptions,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
NuveiAirlineDataOptions$outboundSchema.parse(nuveiAirlineDataOptions),
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function nuveiAirlineDataOptionsFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<NuveiAirlineDataOptions, SDKValidationError> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) => NuveiAirlineDataOptions$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'NuveiAirlineDataOptions' from JSON`,
|
|
75
|
+
);
|
|
76
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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
|
+
NuveiAirlineDataOptions,
|
|
11
|
+
NuveiAirlineDataOptions$inboundSchema,
|
|
12
|
+
NuveiAirlineDataOptions$Outbound,
|
|
13
|
+
NuveiAirlineDataOptions$outboundSchema,
|
|
14
|
+
} from "./nuveiairlinedataoptions.js";
|
|
15
|
+
|
|
16
|
+
export type NuveiOptions = {
|
|
17
|
+
/**
|
|
18
|
+
* General data about the customer provided by the merchant.
|
|
19
|
+
*/
|
|
20
|
+
customData?: string | null | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Provides additional airline data for Nuvei payments.
|
|
23
|
+
*/
|
|
24
|
+
airlineData?: NuveiAirlineDataOptions | null | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const NuveiOptions$inboundSchema: z.ZodType<
|
|
29
|
+
NuveiOptions,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
customData: z.nullable(z.string()).optional(),
|
|
34
|
+
airlineData: z.nullable(NuveiAirlineDataOptions$inboundSchema).optional(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type NuveiOptions$Outbound = {
|
|
39
|
+
customData?: string | null | undefined;
|
|
40
|
+
airlineData?: NuveiAirlineDataOptions$Outbound | null | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const NuveiOptions$outboundSchema: z.ZodType<
|
|
45
|
+
NuveiOptions$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
NuveiOptions
|
|
48
|
+
> = z.object({
|
|
49
|
+
customData: z.nullable(z.string()).optional(),
|
|
50
|
+
airlineData: z.nullable(NuveiAirlineDataOptions$outboundSchema).optional(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace NuveiOptions$ {
|
|
58
|
+
/** @deprecated use `NuveiOptions$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema = NuveiOptions$inboundSchema;
|
|
60
|
+
/** @deprecated use `NuveiOptions$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema = NuveiOptions$outboundSchema;
|
|
62
|
+
/** @deprecated use `NuveiOptions$Outbound` instead. */
|
|
63
|
+
export type Outbound = NuveiOptions$Outbound;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function nuveiOptionsToJSON(nuveiOptions: NuveiOptions): string {
|
|
67
|
+
return JSON.stringify(NuveiOptions$outboundSchema.parse(nuveiOptions));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function nuveiOptionsFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<NuveiOptions, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => NuveiOptions$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'NuveiOptions' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type OxxoOptions = {
|
|
12
|
+
/**
|
|
13
|
+
* Defines a custom expiration time (unix time) after which Oxxo payment requests are cancelled
|
|
14
|
+
*/
|
|
15
|
+
paymentMethodExpiresAt?: number | null | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Approval URL that will receive a charge payment method reference.
|
|
18
|
+
*/
|
|
19
|
+
approvalUrl?: string | null | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const OxxoOptions$inboundSchema: z.ZodType<
|
|
24
|
+
OxxoOptions,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
payment_method_expires_at: z.nullable(z.number().int()).optional(),
|
|
29
|
+
approval_url: z.nullable(z.string()).optional(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"payment_method_expires_at": "paymentMethodExpiresAt",
|
|
33
|
+
"approval_url": "approvalUrl",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type OxxoOptions$Outbound = {
|
|
39
|
+
payment_method_expires_at?: number | null | undefined;
|
|
40
|
+
approval_url?: string | null | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const OxxoOptions$outboundSchema: z.ZodType<
|
|
45
|
+
OxxoOptions$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
OxxoOptions
|
|
48
|
+
> = z.object({
|
|
49
|
+
paymentMethodExpiresAt: z.nullable(z.number().int()).optional(),
|
|
50
|
+
approvalUrl: z.nullable(z.string()).optional(),
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
paymentMethodExpiresAt: "payment_method_expires_at",
|
|
54
|
+
approvalUrl: "approval_url",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
export namespace OxxoOptions$ {
|
|
63
|
+
/** @deprecated use `OxxoOptions$inboundSchema` instead. */
|
|
64
|
+
export const inboundSchema = OxxoOptions$inboundSchema;
|
|
65
|
+
/** @deprecated use `OxxoOptions$outboundSchema` instead. */
|
|
66
|
+
export const outboundSchema = OxxoOptions$outboundSchema;
|
|
67
|
+
/** @deprecated use `OxxoOptions$Outbound` instead. */
|
|
68
|
+
export type Outbound = OxxoOptions$Outbound;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function oxxoOptionsToJSON(oxxoOptions: OxxoOptions): string {
|
|
72
|
+
return JSON.stringify(OxxoOptions$outboundSchema.parse(oxxoOptions));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function oxxoOptionsFromJSON(
|
|
76
|
+
jsonString: string,
|
|
77
|
+
): SafeParseResult<OxxoOptions, SDKValidationError> {
|
|
78
|
+
return safeParse(
|
|
79
|
+
jsonString,
|
|
80
|
+
(x) => OxxoOptions$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'OxxoOptions' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -30,6 +30,12 @@ import {
|
|
|
30
30
|
StatementDescriptor$Outbound,
|
|
31
31
|
StatementDescriptor$outboundSchema,
|
|
32
32
|
} from "./statementdescriptor.js";
|
|
33
|
+
import {
|
|
34
|
+
TransactionConnectionOptions,
|
|
35
|
+
TransactionConnectionOptions$inboundSchema,
|
|
36
|
+
TransactionConnectionOptions$Outbound,
|
|
37
|
+
TransactionConnectionOptions$outboundSchema,
|
|
38
|
+
} from "./transactionconnectionoptions.js";
|
|
33
39
|
import {
|
|
34
40
|
TransactionIntent,
|
|
35
41
|
TransactionIntent$inboundSchema,
|
|
@@ -62,7 +68,7 @@ export type PaymentLinkCreate = {
|
|
|
62
68
|
/**
|
|
63
69
|
* Connection options for the payment link.
|
|
64
70
|
*/
|
|
65
|
-
connectionOptions?:
|
|
71
|
+
connectionOptions?: TransactionConnectionOptions | null | undefined;
|
|
66
72
|
/**
|
|
67
73
|
* The merchant reference for the payment link.
|
|
68
74
|
*/
|
|
@@ -169,7 +175,8 @@ export const PaymentLinkCreate$inboundSchema: z.ZodType<
|
|
|
169
175
|
expires_at: z.nullable(
|
|
170
176
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
171
177
|
).optional(),
|
|
172
|
-
connection_options: z.nullable(
|
|
178
|
+
connection_options: z.nullable(TransactionConnectionOptions$inboundSchema)
|
|
179
|
+
.optional(),
|
|
173
180
|
external_identifier: z.nullable(z.string()).optional(),
|
|
174
181
|
statement_descriptor: z.nullable(StatementDescriptor$inboundSchema)
|
|
175
182
|
.optional(),
|
|
@@ -212,7 +219,7 @@ export const PaymentLinkCreate$inboundSchema: z.ZodType<
|
|
|
212
219
|
export type PaymentLinkCreate$Outbound = {
|
|
213
220
|
buyer?: GuestBuyerInput$Outbound | null | undefined;
|
|
214
221
|
expires_at?: string | null | undefined;
|
|
215
|
-
connection_options?:
|
|
222
|
+
connection_options?: TransactionConnectionOptions$Outbound | null | undefined;
|
|
216
223
|
external_identifier?: string | null | undefined;
|
|
217
224
|
statement_descriptor?: StatementDescriptor$Outbound | null | undefined;
|
|
218
225
|
locale?: string | null | undefined;
|
|
@@ -241,7 +248,8 @@ export const PaymentLinkCreate$outboundSchema: z.ZodType<
|
|
|
241
248
|
> = z.object({
|
|
242
249
|
buyer: z.nullable(GuestBuyerInput$outboundSchema).optional(),
|
|
243
250
|
expiresAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
244
|
-
connectionOptions: z.nullable(
|
|
251
|
+
connectionOptions: z.nullable(TransactionConnectionOptions$outboundSchema)
|
|
252
|
+
.optional(),
|
|
245
253
|
externalIdentifier: z.nullable(z.string()).optional(),
|
|
246
254
|
statementDescriptor: z.nullable(StatementDescriptor$outboundSchema)
|
|
247
255
|
.optional(),
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
PaymentLink$outboundSchema,
|
|
15
15
|
} from "./paymentlink.js";
|
|
16
16
|
|
|
17
|
-
export type
|
|
17
|
+
export type PaymentLinks = {
|
|
18
18
|
/**
|
|
19
19
|
* A list of items returned for this request.
|
|
20
20
|
*/
|
|
@@ -34,8 +34,8 @@ export type CollectionPaymentLink = {
|
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
/** @internal */
|
|
37
|
-
export const
|
|
38
|
-
|
|
37
|
+
export const PaymentLinks$inboundSchema: z.ZodType<
|
|
38
|
+
PaymentLinks,
|
|
39
39
|
z.ZodTypeDef,
|
|
40
40
|
unknown
|
|
41
41
|
> = z.object({
|
|
@@ -51,7 +51,7 @@ export const CollectionPaymentLink$inboundSchema: z.ZodType<
|
|
|
51
51
|
});
|
|
52
52
|
|
|
53
53
|
/** @internal */
|
|
54
|
-
export type
|
|
54
|
+
export type PaymentLinks$Outbound = {
|
|
55
55
|
items: Array<PaymentLink$Outbound>;
|
|
56
56
|
limit: number;
|
|
57
57
|
next_cursor?: string | null | undefined;
|
|
@@ -59,10 +59,10 @@ export type CollectionPaymentLink$Outbound = {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
/** @internal */
|
|
62
|
-
export const
|
|
63
|
-
|
|
62
|
+
export const PaymentLinks$outboundSchema: z.ZodType<
|
|
63
|
+
PaymentLinks$Outbound,
|
|
64
64
|
z.ZodTypeDef,
|
|
65
|
-
|
|
65
|
+
PaymentLinks
|
|
66
66
|
> = z.object({
|
|
67
67
|
items: z.array(PaymentLink$outboundSchema),
|
|
68
68
|
limit: z.number().int().default(20),
|
|
@@ -79,29 +79,25 @@ export const CollectionPaymentLink$outboundSchema: z.ZodType<
|
|
|
79
79
|
* @internal
|
|
80
80
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
81
81
|
*/
|
|
82
|
-
export namespace
|
|
83
|
-
/** @deprecated use `
|
|
84
|
-
export const inboundSchema =
|
|
85
|
-
/** @deprecated use `
|
|
86
|
-
export const outboundSchema =
|
|
87
|
-
/** @deprecated use `
|
|
88
|
-
export type Outbound =
|
|
82
|
+
export namespace PaymentLinks$ {
|
|
83
|
+
/** @deprecated use `PaymentLinks$inboundSchema` instead. */
|
|
84
|
+
export const inboundSchema = PaymentLinks$inboundSchema;
|
|
85
|
+
/** @deprecated use `PaymentLinks$outboundSchema` instead. */
|
|
86
|
+
export const outboundSchema = PaymentLinks$outboundSchema;
|
|
87
|
+
/** @deprecated use `PaymentLinks$Outbound` instead. */
|
|
88
|
+
export type Outbound = PaymentLinks$Outbound;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
export function
|
|
92
|
-
|
|
93
|
-
): string {
|
|
94
|
-
return JSON.stringify(
|
|
95
|
-
CollectionPaymentLink$outboundSchema.parse(collectionPaymentLink),
|
|
96
|
-
);
|
|
91
|
+
export function paymentLinksToJSON(paymentLinks: PaymentLinks): string {
|
|
92
|
+
return JSON.stringify(PaymentLinks$outboundSchema.parse(paymentLinks));
|
|
97
93
|
}
|
|
98
94
|
|
|
99
|
-
export function
|
|
95
|
+
export function paymentLinksFromJSON(
|
|
100
96
|
jsonString: string,
|
|
101
|
-
): SafeParseResult<
|
|
97
|
+
): SafeParseResult<PaymentLinks, SDKValidationError> {
|
|
102
98
|
return safeParse(
|
|
103
99
|
jsonString,
|
|
104
|
-
(x) =>
|
|
105
|
-
`Failed to parse '
|
|
100
|
+
(x) => PaymentLinks$inboundSchema.parse(JSON.parse(x)),
|
|
101
|
+
`Failed to parse 'PaymentLinks' from JSON`,
|
|
106
102
|
);
|
|
107
103
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
CheckoutPayoutOptions,
|
|
12
|
+
CheckoutPayoutOptions$inboundSchema,
|
|
13
|
+
CheckoutPayoutOptions$Outbound,
|
|
14
|
+
CheckoutPayoutOptions$outboundSchema,
|
|
15
|
+
} from "./checkoutpayoutoptions.js";
|
|
16
|
+
|
|
17
|
+
export type PayoutConnectionOptions = {
|
|
18
|
+
/**
|
|
19
|
+
* Custom options for `checkout-card` payment service.
|
|
20
|
+
*/
|
|
21
|
+
checkoutCard?: CheckoutPayoutOptions | null | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const PayoutConnectionOptions$inboundSchema: z.ZodType<
|
|
26
|
+
PayoutConnectionOptions,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
"checkout-card": z.nullable(CheckoutPayoutOptions$inboundSchema).optional(),
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
"checkout-card": "checkoutCard",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type PayoutConnectionOptions$Outbound = {
|
|
39
|
+
"checkout-card"?: CheckoutPayoutOptions$Outbound | null | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const PayoutConnectionOptions$outboundSchema: z.ZodType<
|
|
44
|
+
PayoutConnectionOptions$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
PayoutConnectionOptions
|
|
47
|
+
> = z.object({
|
|
48
|
+
checkoutCard: z.nullable(CheckoutPayoutOptions$outboundSchema).optional(),
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
checkoutCard: "checkout-card",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
+
*/
|
|
59
|
+
export namespace PayoutConnectionOptions$ {
|
|
60
|
+
/** @deprecated use `PayoutConnectionOptions$inboundSchema` instead. */
|
|
61
|
+
export const inboundSchema = PayoutConnectionOptions$inboundSchema;
|
|
62
|
+
/** @deprecated use `PayoutConnectionOptions$outboundSchema` instead. */
|
|
63
|
+
export const outboundSchema = PayoutConnectionOptions$outboundSchema;
|
|
64
|
+
/** @deprecated use `PayoutConnectionOptions$Outbound` instead. */
|
|
65
|
+
export type Outbound = PayoutConnectionOptions$Outbound;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function payoutConnectionOptionsToJSON(
|
|
69
|
+
payoutConnectionOptions: PayoutConnectionOptions,
|
|
70
|
+
): string {
|
|
71
|
+
return JSON.stringify(
|
|
72
|
+
PayoutConnectionOptions$outboundSchema.parse(payoutConnectionOptions),
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function payoutConnectionOptionsFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<PayoutConnectionOptions, SDKValidationError> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) => PayoutConnectionOptions$inboundSchema.parse(JSON.parse(x)),
|
|
82
|
+
`Failed to parse 'PayoutConnectionOptions' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|