@gr4vy/sdk 1.1.9 → 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/lib/config.js.map +1 -1
- 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/giftcarderrorcode.d.ts +1 -0
- package/models/components/giftcarderrorcode.d.ts.map +1 -1
- package/models/components/giftcarderrorcode.js +1 -0
- package/models/components/giftcarderrorcode.js.map +1 -1
- 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/giftcarderrorcode.ts +1 -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,109 @@
|
|
|
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
|
+
BraintreeDynamicDataFieldsOptions,
|
|
12
|
+
BraintreeDynamicDataFieldsOptions$inboundSchema,
|
|
13
|
+
BraintreeDynamicDataFieldsOptions$Outbound,
|
|
14
|
+
BraintreeDynamicDataFieldsOptions$outboundSchema,
|
|
15
|
+
} from "./braintreedynamicdatafieldsoptions.js";
|
|
16
|
+
|
|
17
|
+
export type BraintreeOptions = {
|
|
18
|
+
/**
|
|
19
|
+
* Passes a discount amount to be applied to the transaction when using Braintree.
|
|
20
|
+
*/
|
|
21
|
+
discountAmount?: number | null | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Passes `customFields` to the Braintree API when creating a new payment. Custom fields allow you to customize your checkout experience by collecting specific information about your customers and their purchases.
|
|
24
|
+
*/
|
|
25
|
+
customFields?: { [k: string]: string } | null | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Additional dynamic fields to pass to the Braintree API
|
|
28
|
+
*/
|
|
29
|
+
dynamicDataFields?: BraintreeDynamicDataFieldsOptions | null | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const BraintreeOptions$inboundSchema: z.ZodType<
|
|
34
|
+
BraintreeOptions,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
unknown
|
|
37
|
+
> = z.object({
|
|
38
|
+
discount_amount: z.nullable(z.number().int()).optional(),
|
|
39
|
+
custom_fields: z.nullable(z.record(z.string())).optional(),
|
|
40
|
+
dynamic_data_fields: z.nullable(
|
|
41
|
+
BraintreeDynamicDataFieldsOptions$inboundSchema,
|
|
42
|
+
).optional(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return remap$(v, {
|
|
45
|
+
"discount_amount": "discountAmount",
|
|
46
|
+
"custom_fields": "customFields",
|
|
47
|
+
"dynamic_data_fields": "dynamicDataFields",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export type BraintreeOptions$Outbound = {
|
|
53
|
+
discount_amount?: number | null | undefined;
|
|
54
|
+
custom_fields?: { [k: string]: string } | null | undefined;
|
|
55
|
+
dynamic_data_fields?:
|
|
56
|
+
| BraintreeDynamicDataFieldsOptions$Outbound
|
|
57
|
+
| null
|
|
58
|
+
| undefined;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const BraintreeOptions$outboundSchema: z.ZodType<
|
|
63
|
+
BraintreeOptions$Outbound,
|
|
64
|
+
z.ZodTypeDef,
|
|
65
|
+
BraintreeOptions
|
|
66
|
+
> = z.object({
|
|
67
|
+
discountAmount: z.nullable(z.number().int()).optional(),
|
|
68
|
+
customFields: z.nullable(z.record(z.string())).optional(),
|
|
69
|
+
dynamicDataFields: z.nullable(
|
|
70
|
+
BraintreeDynamicDataFieldsOptions$outboundSchema,
|
|
71
|
+
).optional(),
|
|
72
|
+
}).transform((v) => {
|
|
73
|
+
return remap$(v, {
|
|
74
|
+
discountAmount: "discount_amount",
|
|
75
|
+
customFields: "custom_fields",
|
|
76
|
+
dynamicDataFields: "dynamic_data_fields",
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
+
*/
|
|
84
|
+
export namespace BraintreeOptions$ {
|
|
85
|
+
/** @deprecated use `BraintreeOptions$inboundSchema` instead. */
|
|
86
|
+
export const inboundSchema = BraintreeOptions$inboundSchema;
|
|
87
|
+
/** @deprecated use `BraintreeOptions$outboundSchema` instead. */
|
|
88
|
+
export const outboundSchema = BraintreeOptions$outboundSchema;
|
|
89
|
+
/** @deprecated use `BraintreeOptions$Outbound` instead. */
|
|
90
|
+
export type Outbound = BraintreeOptions$Outbound;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function braintreeOptionsToJSON(
|
|
94
|
+
braintreeOptions: BraintreeOptions,
|
|
95
|
+
): string {
|
|
96
|
+
return JSON.stringify(
|
|
97
|
+
BraintreeOptions$outboundSchema.parse(braintreeOptions),
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function braintreeOptionsFromJSON(
|
|
102
|
+
jsonString: string,
|
|
103
|
+
): SafeParseResult<BraintreeOptions, SDKValidationError> {
|
|
104
|
+
return safeParse(
|
|
105
|
+
jsonString,
|
|
106
|
+
(x) => BraintreeOptions$inboundSchema.parse(JSON.parse(x)),
|
|
107
|
+
`Failed to parse 'BraintreeOptions' from JSON`,
|
|
108
|
+
);
|
|
109
|
+
}
|
|
@@ -8,7 +8,7 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export type
|
|
11
|
+
export type CheckoutPayoutOptions = {
|
|
12
12
|
/**
|
|
13
13
|
* The processing channel to be used for the payment.
|
|
14
14
|
*/
|
|
@@ -20,8 +20,8 @@ export type CheckoutCardConnectionOptions = {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
/** @internal */
|
|
23
|
-
export const
|
|
24
|
-
|
|
23
|
+
export const CheckoutPayoutOptions$inboundSchema: z.ZodType<
|
|
24
|
+
CheckoutPayoutOptions,
|
|
25
25
|
z.ZodTypeDef,
|
|
26
26
|
unknown
|
|
27
27
|
> = z.object({
|
|
@@ -35,16 +35,16 @@ export const CheckoutCardConnectionOptions$inboundSchema: z.ZodType<
|
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
/** @internal */
|
|
38
|
-
export type
|
|
38
|
+
export type CheckoutPayoutOptions$Outbound = {
|
|
39
39
|
processing_channel_id: string;
|
|
40
40
|
source_id: string;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
/** @internal */
|
|
44
|
-
export const
|
|
45
|
-
|
|
44
|
+
export const CheckoutPayoutOptions$outboundSchema: z.ZodType<
|
|
45
|
+
CheckoutPayoutOptions$Outbound,
|
|
46
46
|
z.ZodTypeDef,
|
|
47
|
-
|
|
47
|
+
CheckoutPayoutOptions
|
|
48
48
|
> = z.object({
|
|
49
49
|
processingChannelId: z.string(),
|
|
50
50
|
sourceId: z.string(),
|
|
@@ -59,31 +59,29 @@ export const CheckoutCardConnectionOptions$outboundSchema: z.ZodType<
|
|
|
59
59
|
* @internal
|
|
60
60
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
61
|
*/
|
|
62
|
-
export namespace
|
|
63
|
-
/** @deprecated use `
|
|
64
|
-
export const inboundSchema =
|
|
65
|
-
/** @deprecated use `
|
|
66
|
-
export const outboundSchema =
|
|
67
|
-
/** @deprecated use `
|
|
68
|
-
export type Outbound =
|
|
62
|
+
export namespace CheckoutPayoutOptions$ {
|
|
63
|
+
/** @deprecated use `CheckoutPayoutOptions$inboundSchema` instead. */
|
|
64
|
+
export const inboundSchema = CheckoutPayoutOptions$inboundSchema;
|
|
65
|
+
/** @deprecated use `CheckoutPayoutOptions$outboundSchema` instead. */
|
|
66
|
+
export const outboundSchema = CheckoutPayoutOptions$outboundSchema;
|
|
67
|
+
/** @deprecated use `CheckoutPayoutOptions$Outbound` instead. */
|
|
68
|
+
export type Outbound = CheckoutPayoutOptions$Outbound;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
export function
|
|
72
|
-
|
|
71
|
+
export function checkoutPayoutOptionsToJSON(
|
|
72
|
+
checkoutPayoutOptions: CheckoutPayoutOptions,
|
|
73
73
|
): string {
|
|
74
74
|
return JSON.stringify(
|
|
75
|
-
|
|
76
|
-
checkoutCardConnectionOptions,
|
|
77
|
-
),
|
|
75
|
+
CheckoutPayoutOptions$outboundSchema.parse(checkoutPayoutOptions),
|
|
78
76
|
);
|
|
79
77
|
}
|
|
80
78
|
|
|
81
|
-
export function
|
|
79
|
+
export function checkoutPayoutOptionsFromJSON(
|
|
82
80
|
jsonString: string,
|
|
83
|
-
): SafeParseResult<
|
|
81
|
+
): SafeParseResult<CheckoutPayoutOptions, SDKValidationError> {
|
|
84
82
|
return safeParse(
|
|
85
83
|
jsonString,
|
|
86
|
-
(x) =>
|
|
87
|
-
`Failed to parse '
|
|
84
|
+
(x) => CheckoutPayoutOptions$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'CheckoutPayoutOptions' from JSON`,
|
|
88
86
|
);
|
|
89
87
|
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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 CybersourceAntiFraudOptions = {
|
|
12
|
+
/**
|
|
13
|
+
* A list of merchant defined data to be passed to the Cybersource Decision Manager API. Each key needs to be a numeric string.
|
|
14
|
+
*/
|
|
15
|
+
merchantDefinedData?: { [k: string]: string } | null | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The merchant ID to use for this transaction. This requires a meta key to be set up for use with Cybersource Decision Manager, and this overrides the connector configuration.
|
|
18
|
+
*/
|
|
19
|
+
metaKeyMerchantId?: string | null | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* The shipping method for this transaction.
|
|
22
|
+
*/
|
|
23
|
+
shippingMethod?: string | null | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const CybersourceAntiFraudOptions$inboundSchema: z.ZodType<
|
|
28
|
+
CybersourceAntiFraudOptions,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
merchant_defined_data: z.nullable(z.record(z.string())).optional(),
|
|
33
|
+
meta_key_merchant_id: z.nullable(z.string()).optional(),
|
|
34
|
+
shipping_method: z.nullable(z.string()).optional(),
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
"merchant_defined_data": "merchantDefinedData",
|
|
38
|
+
"meta_key_merchant_id": "metaKeyMerchantId",
|
|
39
|
+
"shipping_method": "shippingMethod",
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type CybersourceAntiFraudOptions$Outbound = {
|
|
45
|
+
merchant_defined_data?: { [k: string]: string } | null | undefined;
|
|
46
|
+
meta_key_merchant_id?: string | null | undefined;
|
|
47
|
+
shipping_method?: string | null | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const CybersourceAntiFraudOptions$outboundSchema: z.ZodType<
|
|
52
|
+
CybersourceAntiFraudOptions$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
CybersourceAntiFraudOptions
|
|
55
|
+
> = z.object({
|
|
56
|
+
merchantDefinedData: z.nullable(z.record(z.string())).optional(),
|
|
57
|
+
metaKeyMerchantId: z.nullable(z.string()).optional(),
|
|
58
|
+
shippingMethod: z.nullable(z.string()).optional(),
|
|
59
|
+
}).transform((v) => {
|
|
60
|
+
return remap$(v, {
|
|
61
|
+
merchantDefinedData: "merchant_defined_data",
|
|
62
|
+
metaKeyMerchantId: "meta_key_merchant_id",
|
|
63
|
+
shippingMethod: "shipping_method",
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
70
|
+
*/
|
|
71
|
+
export namespace CybersourceAntiFraudOptions$ {
|
|
72
|
+
/** @deprecated use `CybersourceAntiFraudOptions$inboundSchema` instead. */
|
|
73
|
+
export const inboundSchema = CybersourceAntiFraudOptions$inboundSchema;
|
|
74
|
+
/** @deprecated use `CybersourceAntiFraudOptions$outboundSchema` instead. */
|
|
75
|
+
export const outboundSchema = CybersourceAntiFraudOptions$outboundSchema;
|
|
76
|
+
/** @deprecated use `CybersourceAntiFraudOptions$Outbound` instead. */
|
|
77
|
+
export type Outbound = CybersourceAntiFraudOptions$Outbound;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function cybersourceAntiFraudOptionsToJSON(
|
|
81
|
+
cybersourceAntiFraudOptions: CybersourceAntiFraudOptions,
|
|
82
|
+
): string {
|
|
83
|
+
return JSON.stringify(
|
|
84
|
+
CybersourceAntiFraudOptions$outboundSchema.parse(
|
|
85
|
+
cybersourceAntiFraudOptions,
|
|
86
|
+
),
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function cybersourceAntiFraudOptionsFromJSON(
|
|
91
|
+
jsonString: string,
|
|
92
|
+
): SafeParseResult<CybersourceAntiFraudOptions, SDKValidationError> {
|
|
93
|
+
return safeParse(
|
|
94
|
+
jsonString,
|
|
95
|
+
(x) => CybersourceAntiFraudOptions$inboundSchema.parse(JSON.parse(x)),
|
|
96
|
+
`Failed to parse 'CybersourceAntiFraudOptions' from JSON`,
|
|
97
|
+
);
|
|
98
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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 CybersourceOptions = {
|
|
12
|
+
/**
|
|
13
|
+
* The merchant ID to use for this transaction. This requires a meta key to be set up for use with Cybersource, and this overrides the connector configuration.
|
|
14
|
+
*/
|
|
15
|
+
metaKeyMerchantId?: string | null | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* A list of merchant defined data to be passed to the Cybersource. Each key needs to be a numeric string.
|
|
18
|
+
*/
|
|
19
|
+
merchantDefinedInformation?: { [k: string]: string } | null | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* The shipping method for this transaction.
|
|
22
|
+
*/
|
|
23
|
+
shipToMethod?: string | null | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const CybersourceOptions$inboundSchema: z.ZodType<
|
|
28
|
+
CybersourceOptions,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
meta_key_merchant_id: z.nullable(z.string()).optional(),
|
|
33
|
+
merchant_defined_information: z.nullable(z.record(z.string())).optional(),
|
|
34
|
+
ship_to_method: z.nullable(z.string()).optional(),
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
"meta_key_merchant_id": "metaKeyMerchantId",
|
|
38
|
+
"merchant_defined_information": "merchantDefinedInformation",
|
|
39
|
+
"ship_to_method": "shipToMethod",
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type CybersourceOptions$Outbound = {
|
|
45
|
+
meta_key_merchant_id?: string | null | undefined;
|
|
46
|
+
merchant_defined_information?: { [k: string]: string } | null | undefined;
|
|
47
|
+
ship_to_method?: string | null | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const CybersourceOptions$outboundSchema: z.ZodType<
|
|
52
|
+
CybersourceOptions$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
CybersourceOptions
|
|
55
|
+
> = z.object({
|
|
56
|
+
metaKeyMerchantId: z.nullable(z.string()).optional(),
|
|
57
|
+
merchantDefinedInformation: z.nullable(z.record(z.string())).optional(),
|
|
58
|
+
shipToMethod: z.nullable(z.string()).optional(),
|
|
59
|
+
}).transform((v) => {
|
|
60
|
+
return remap$(v, {
|
|
61
|
+
metaKeyMerchantId: "meta_key_merchant_id",
|
|
62
|
+
merchantDefinedInformation: "merchant_defined_information",
|
|
63
|
+
shipToMethod: "ship_to_method",
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
70
|
+
*/
|
|
71
|
+
export namespace CybersourceOptions$ {
|
|
72
|
+
/** @deprecated use `CybersourceOptions$inboundSchema` instead. */
|
|
73
|
+
export const inboundSchema = CybersourceOptions$inboundSchema;
|
|
74
|
+
/** @deprecated use `CybersourceOptions$outboundSchema` instead. */
|
|
75
|
+
export const outboundSchema = CybersourceOptions$outboundSchema;
|
|
76
|
+
/** @deprecated use `CybersourceOptions$Outbound` instead. */
|
|
77
|
+
export type Outbound = CybersourceOptions$Outbound;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function cybersourceOptionsToJSON(
|
|
81
|
+
cybersourceOptions: CybersourceOptions,
|
|
82
|
+
): string {
|
|
83
|
+
return JSON.stringify(
|
|
84
|
+
CybersourceOptions$outboundSchema.parse(cybersourceOptions),
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function cybersourceOptionsFromJSON(
|
|
89
|
+
jsonString: string,
|
|
90
|
+
): SafeParseResult<CybersourceOptions, SDKValidationError> {
|
|
91
|
+
return safeParse(
|
|
92
|
+
jsonString,
|
|
93
|
+
(x) => CybersourceOptions$inboundSchema.parse(JSON.parse(x)),
|
|
94
|
+
`Failed to parse 'CybersourceOptions' from JSON`,
|
|
95
|
+
);
|
|
96
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
DlocalWalletOptions,
|
|
11
|
+
DlocalWalletOptions$inboundSchema,
|
|
12
|
+
DlocalWalletOptions$Outbound,
|
|
13
|
+
DlocalWalletOptions$outboundSchema,
|
|
14
|
+
} from "./dlocalwalletoptions.js";
|
|
15
|
+
|
|
16
|
+
export type DlocalOptions = {
|
|
17
|
+
/**
|
|
18
|
+
* Passes `wallet` data to the dLocal API for those connectors that need it.
|
|
19
|
+
*/
|
|
20
|
+
wallet?: DlocalWalletOptions | null | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const DlocalOptions$inboundSchema: z.ZodType<
|
|
25
|
+
DlocalOptions,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
wallet: z.nullable(DlocalWalletOptions$inboundSchema).optional(),
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type DlocalOptions$Outbound = {
|
|
34
|
+
wallet?: DlocalWalletOptions$Outbound | null | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const DlocalOptions$outboundSchema: z.ZodType<
|
|
39
|
+
DlocalOptions$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
DlocalOptions
|
|
42
|
+
> = z.object({
|
|
43
|
+
wallet: z.nullable(DlocalWalletOptions$outboundSchema).optional(),
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
export namespace DlocalOptions$ {
|
|
51
|
+
/** @deprecated use `DlocalOptions$inboundSchema` instead. */
|
|
52
|
+
export const inboundSchema = DlocalOptions$inboundSchema;
|
|
53
|
+
/** @deprecated use `DlocalOptions$outboundSchema` instead. */
|
|
54
|
+
export const outboundSchema = DlocalOptions$outboundSchema;
|
|
55
|
+
/** @deprecated use `DlocalOptions$Outbound` instead. */
|
|
56
|
+
export type Outbound = DlocalOptions$Outbound;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function dlocalOptionsToJSON(dlocalOptions: DlocalOptions): string {
|
|
60
|
+
return JSON.stringify(DlocalOptions$outboundSchema.parse(dlocalOptions));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function dlocalOptionsFromJSON(
|
|
64
|
+
jsonString: string,
|
|
65
|
+
): SafeParseResult<DlocalOptions, SDKValidationError> {
|
|
66
|
+
return safeParse(
|
|
67
|
+
jsonString,
|
|
68
|
+
(x) => DlocalOptions$inboundSchema.parse(JSON.parse(x)),
|
|
69
|
+
`Failed to parse 'DlocalOptions' from JSON`,
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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 DlocalWalletOptions = {
|
|
11
|
+
/**
|
|
12
|
+
* Passes `wallet.name` to the dLocal API for those connectors that need it.
|
|
13
|
+
*/
|
|
14
|
+
name?: string | null | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Passes `wallet.email` to the dLocal API for those connectors that need it.
|
|
17
|
+
*/
|
|
18
|
+
email?: string | null | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Passes `wallet.token` to the dLocal API for those connectors that need it.
|
|
21
|
+
*/
|
|
22
|
+
token?: string | null | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Passes `wallet.username` to the dLocal API for those connectors that need it.
|
|
25
|
+
*/
|
|
26
|
+
username?: string | null | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Passes `wallet.verify` to the dLocal API for those connectors that need it.
|
|
29
|
+
*/
|
|
30
|
+
verify?: boolean | null | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const DlocalWalletOptions$inboundSchema: z.ZodType<
|
|
35
|
+
DlocalWalletOptions,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
unknown
|
|
38
|
+
> = z.object({
|
|
39
|
+
name: z.nullable(z.string()).optional(),
|
|
40
|
+
email: z.nullable(z.string()).optional(),
|
|
41
|
+
token: z.nullable(z.string()).optional(),
|
|
42
|
+
username: z.nullable(z.string()).optional(),
|
|
43
|
+
verify: z.nullable(z.boolean()).optional(),
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type DlocalWalletOptions$Outbound = {
|
|
48
|
+
name?: string | null | undefined;
|
|
49
|
+
email?: string | null | undefined;
|
|
50
|
+
token?: string | null | undefined;
|
|
51
|
+
username?: string | null | undefined;
|
|
52
|
+
verify?: boolean | null | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const DlocalWalletOptions$outboundSchema: z.ZodType<
|
|
57
|
+
DlocalWalletOptions$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
DlocalWalletOptions
|
|
60
|
+
> = z.object({
|
|
61
|
+
name: z.nullable(z.string()).optional(),
|
|
62
|
+
email: z.nullable(z.string()).optional(),
|
|
63
|
+
token: z.nullable(z.string()).optional(),
|
|
64
|
+
username: z.nullable(z.string()).optional(),
|
|
65
|
+
verify: z.nullable(z.boolean()).optional(),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
71
|
+
*/
|
|
72
|
+
export namespace DlocalWalletOptions$ {
|
|
73
|
+
/** @deprecated use `DlocalWalletOptions$inboundSchema` instead. */
|
|
74
|
+
export const inboundSchema = DlocalWalletOptions$inboundSchema;
|
|
75
|
+
/** @deprecated use `DlocalWalletOptions$outboundSchema` instead. */
|
|
76
|
+
export const outboundSchema = DlocalWalletOptions$outboundSchema;
|
|
77
|
+
/** @deprecated use `DlocalWalletOptions$Outbound` instead. */
|
|
78
|
+
export type Outbound = DlocalWalletOptions$Outbound;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function dlocalWalletOptionsToJSON(
|
|
82
|
+
dlocalWalletOptions: DlocalWalletOptions,
|
|
83
|
+
): string {
|
|
84
|
+
return JSON.stringify(
|
|
85
|
+
DlocalWalletOptions$outboundSchema.parse(dlocalWalletOptions),
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function dlocalWalletOptionsFromJSON(
|
|
90
|
+
jsonString: string,
|
|
91
|
+
): SafeParseResult<DlocalWalletOptions, SDKValidationError> {
|
|
92
|
+
return safeParse(
|
|
93
|
+
jsonString,
|
|
94
|
+
(x) => DlocalWalletOptions$inboundSchema.parse(JSON.parse(x)),
|
|
95
|
+
`Failed to parse 'DlocalWalletOptions' from JSON`,
|
|
96
|
+
);
|
|
97
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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 FiservInstallmentOptions = {
|
|
11
|
+
/**
|
|
12
|
+
* Passes the `order.installmentOptions.numberOfInstallments` field to the Fiserv API.
|
|
13
|
+
*/
|
|
14
|
+
numberOfInstallments?: number | null | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Passes the `order.installmentOptions.installmentsInterest` field to the Fiserv API.
|
|
17
|
+
*/
|
|
18
|
+
installmentsInterest?: boolean | null | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Passes the `order.installmentOptions.installmentDelayMonths` field to the Fiserv API.
|
|
21
|
+
*/
|
|
22
|
+
installmentDelayMonths?: number | null | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Passes the `order.installmentOptions.merchantAdviceCodeSupported` field to the Fiserv API.
|
|
25
|
+
*/
|
|
26
|
+
merchantAdviceCodeSupported?: boolean | null | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const FiservInstallmentOptions$inboundSchema: z.ZodType<
|
|
31
|
+
FiservInstallmentOptions,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
numberOfInstallments: z.nullable(z.number().int()).optional(),
|
|
36
|
+
installmentsInterest: z.nullable(z.boolean()).optional(),
|
|
37
|
+
installmentDelayMonths: z.nullable(z.number().int()).optional(),
|
|
38
|
+
merchantAdviceCodeSupported: z.nullable(z.boolean()).optional(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type FiservInstallmentOptions$Outbound = {
|
|
43
|
+
numberOfInstallments?: number | null | undefined;
|
|
44
|
+
installmentsInterest?: boolean | null | undefined;
|
|
45
|
+
installmentDelayMonths?: number | null | undefined;
|
|
46
|
+
merchantAdviceCodeSupported?: boolean | null | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const FiservInstallmentOptions$outboundSchema: z.ZodType<
|
|
51
|
+
FiservInstallmentOptions$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
FiservInstallmentOptions
|
|
54
|
+
> = z.object({
|
|
55
|
+
numberOfInstallments: z.nullable(z.number().int()).optional(),
|
|
56
|
+
installmentsInterest: z.nullable(z.boolean()).optional(),
|
|
57
|
+
installmentDelayMonths: z.nullable(z.number().int()).optional(),
|
|
58
|
+
merchantAdviceCodeSupported: z.nullable(z.boolean()).optional(),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
export namespace FiservInstallmentOptions$ {
|
|
66
|
+
/** @deprecated use `FiservInstallmentOptions$inboundSchema` instead. */
|
|
67
|
+
export const inboundSchema = FiservInstallmentOptions$inboundSchema;
|
|
68
|
+
/** @deprecated use `FiservInstallmentOptions$outboundSchema` instead. */
|
|
69
|
+
export const outboundSchema = FiservInstallmentOptions$outboundSchema;
|
|
70
|
+
/** @deprecated use `FiservInstallmentOptions$Outbound` instead. */
|
|
71
|
+
export type Outbound = FiservInstallmentOptions$Outbound;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function fiservInstallmentOptionsToJSON(
|
|
75
|
+
fiservInstallmentOptions: FiservInstallmentOptions,
|
|
76
|
+
): string {
|
|
77
|
+
return JSON.stringify(
|
|
78
|
+
FiservInstallmentOptions$outboundSchema.parse(fiservInstallmentOptions),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function fiservInstallmentOptionsFromJSON(
|
|
83
|
+
jsonString: string,
|
|
84
|
+
): SafeParseResult<FiservInstallmentOptions, SDKValidationError> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) => FiservInstallmentOptions$inboundSchema.parse(JSON.parse(x)),
|
|
88
|
+
`Failed to parse 'FiservInstallmentOptions' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|