@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,123 @@
|
|
|
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
|
+
ForterAntiFraudOptionsDiscountCouponDiscountAmount,
|
|
12
|
+
ForterAntiFraudOptionsDiscountCouponDiscountAmount$inboundSchema,
|
|
13
|
+
ForterAntiFraudOptionsDiscountCouponDiscountAmount$Outbound,
|
|
14
|
+
ForterAntiFraudOptionsDiscountCouponDiscountAmount$outboundSchema,
|
|
15
|
+
} from "./forterantifraudoptionsdiscountcoupondiscountamount.js";
|
|
16
|
+
|
|
17
|
+
export type ForterAntiFraudOptionsDiscount = {
|
|
18
|
+
/**
|
|
19
|
+
* The coupon code applied to the order.
|
|
20
|
+
*/
|
|
21
|
+
couponCodeUsed: string;
|
|
22
|
+
/**
|
|
23
|
+
* The type of discount applied to the order.
|
|
24
|
+
*/
|
|
25
|
+
discountType: string;
|
|
26
|
+
/**
|
|
27
|
+
* Monetary details of the discount amount.
|
|
28
|
+
*/
|
|
29
|
+
couponDiscountAmount?:
|
|
30
|
+
| ForterAntiFraudOptionsDiscountCouponDiscountAmount
|
|
31
|
+
| null
|
|
32
|
+
| undefined;
|
|
33
|
+
/**
|
|
34
|
+
* The percentage discount applied via the coupon.
|
|
35
|
+
*/
|
|
36
|
+
couponDiscountPercent?: string | null | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const ForterAntiFraudOptionsDiscount$inboundSchema: z.ZodType<
|
|
41
|
+
ForterAntiFraudOptionsDiscount,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
coupon_code_used: z.string(),
|
|
46
|
+
discount_type: z.string(),
|
|
47
|
+
coupon_discount_amount: z.nullable(
|
|
48
|
+
ForterAntiFraudOptionsDiscountCouponDiscountAmount$inboundSchema,
|
|
49
|
+
).optional(),
|
|
50
|
+
coupon_discount_percent: z.nullable(z.string()).optional(),
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
"coupon_code_used": "couponCodeUsed",
|
|
54
|
+
"discount_type": "discountType",
|
|
55
|
+
"coupon_discount_amount": "couponDiscountAmount",
|
|
56
|
+
"coupon_discount_percent": "couponDiscountPercent",
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export type ForterAntiFraudOptionsDiscount$Outbound = {
|
|
62
|
+
coupon_code_used: string;
|
|
63
|
+
discount_type: string;
|
|
64
|
+
coupon_discount_amount?:
|
|
65
|
+
| ForterAntiFraudOptionsDiscountCouponDiscountAmount$Outbound
|
|
66
|
+
| null
|
|
67
|
+
| undefined;
|
|
68
|
+
coupon_discount_percent?: string | null | undefined;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const ForterAntiFraudOptionsDiscount$outboundSchema: z.ZodType<
|
|
73
|
+
ForterAntiFraudOptionsDiscount$Outbound,
|
|
74
|
+
z.ZodTypeDef,
|
|
75
|
+
ForterAntiFraudOptionsDiscount
|
|
76
|
+
> = z.object({
|
|
77
|
+
couponCodeUsed: z.string(),
|
|
78
|
+
discountType: z.string(),
|
|
79
|
+
couponDiscountAmount: z.nullable(
|
|
80
|
+
ForterAntiFraudOptionsDiscountCouponDiscountAmount$outboundSchema,
|
|
81
|
+
).optional(),
|
|
82
|
+
couponDiscountPercent: z.nullable(z.string()).optional(),
|
|
83
|
+
}).transform((v) => {
|
|
84
|
+
return remap$(v, {
|
|
85
|
+
couponCodeUsed: "coupon_code_used",
|
|
86
|
+
discountType: "discount_type",
|
|
87
|
+
couponDiscountAmount: "coupon_discount_amount",
|
|
88
|
+
couponDiscountPercent: "coupon_discount_percent",
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
95
|
+
*/
|
|
96
|
+
export namespace ForterAntiFraudOptionsDiscount$ {
|
|
97
|
+
/** @deprecated use `ForterAntiFraudOptionsDiscount$inboundSchema` instead. */
|
|
98
|
+
export const inboundSchema = ForterAntiFraudOptionsDiscount$inboundSchema;
|
|
99
|
+
/** @deprecated use `ForterAntiFraudOptionsDiscount$outboundSchema` instead. */
|
|
100
|
+
export const outboundSchema = ForterAntiFraudOptionsDiscount$outboundSchema;
|
|
101
|
+
/** @deprecated use `ForterAntiFraudOptionsDiscount$Outbound` instead. */
|
|
102
|
+
export type Outbound = ForterAntiFraudOptionsDiscount$Outbound;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function forterAntiFraudOptionsDiscountToJSON(
|
|
106
|
+
forterAntiFraudOptionsDiscount: ForterAntiFraudOptionsDiscount,
|
|
107
|
+
): string {
|
|
108
|
+
return JSON.stringify(
|
|
109
|
+
ForterAntiFraudOptionsDiscount$outboundSchema.parse(
|
|
110
|
+
forterAntiFraudOptionsDiscount,
|
|
111
|
+
),
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function forterAntiFraudOptionsDiscountFromJSON(
|
|
116
|
+
jsonString: string,
|
|
117
|
+
): SafeParseResult<ForterAntiFraudOptionsDiscount, SDKValidationError> {
|
|
118
|
+
return safeParse(
|
|
119
|
+
jsonString,
|
|
120
|
+
(x) => ForterAntiFraudOptionsDiscount$inboundSchema.parse(JSON.parse(x)),
|
|
121
|
+
`Failed to parse 'ForterAntiFraudOptionsDiscount' from JSON`,
|
|
122
|
+
);
|
|
123
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
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 ForterAntiFraudOptionsDiscountCouponDiscountAmount = {
|
|
12
|
+
/**
|
|
13
|
+
* The discount amount in USD.
|
|
14
|
+
*/
|
|
15
|
+
amountUsd?: string | null | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The discount amount in local currency.
|
|
18
|
+
*/
|
|
19
|
+
amountLocalCurrency?: string | null | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* The currency code for the discount amount.
|
|
22
|
+
*/
|
|
23
|
+
currency?: string | null | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const ForterAntiFraudOptionsDiscountCouponDiscountAmount$inboundSchema:
|
|
28
|
+
z.ZodType<
|
|
29
|
+
ForterAntiFraudOptionsDiscountCouponDiscountAmount,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
amount_usd: z.nullable(z.string()).optional(),
|
|
34
|
+
amount_local_currency: z.nullable(z.string()).optional(),
|
|
35
|
+
currency: z.nullable(z.string()).optional(),
|
|
36
|
+
}).transform((v) => {
|
|
37
|
+
return remap$(v, {
|
|
38
|
+
"amount_usd": "amountUsd",
|
|
39
|
+
"amount_local_currency": "amountLocalCurrency",
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type ForterAntiFraudOptionsDiscountCouponDiscountAmount$Outbound = {
|
|
45
|
+
amount_usd?: string | null | undefined;
|
|
46
|
+
amount_local_currency?: string | null | undefined;
|
|
47
|
+
currency?: string | null | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const ForterAntiFraudOptionsDiscountCouponDiscountAmount$outboundSchema:
|
|
52
|
+
z.ZodType<
|
|
53
|
+
ForterAntiFraudOptionsDiscountCouponDiscountAmount$Outbound,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
ForterAntiFraudOptionsDiscountCouponDiscountAmount
|
|
56
|
+
> = z.object({
|
|
57
|
+
amountUsd: z.nullable(z.string()).optional(),
|
|
58
|
+
amountLocalCurrency: z.nullable(z.string()).optional(),
|
|
59
|
+
currency: z.nullable(z.string()).optional(),
|
|
60
|
+
}).transform((v) => {
|
|
61
|
+
return remap$(v, {
|
|
62
|
+
amountUsd: "amount_usd",
|
|
63
|
+
amountLocalCurrency: "amount_local_currency",
|
|
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 ForterAntiFraudOptionsDiscountCouponDiscountAmount$ {
|
|
72
|
+
/** @deprecated use `ForterAntiFraudOptionsDiscountCouponDiscountAmount$inboundSchema` instead. */
|
|
73
|
+
export const inboundSchema =
|
|
74
|
+
ForterAntiFraudOptionsDiscountCouponDiscountAmount$inboundSchema;
|
|
75
|
+
/** @deprecated use `ForterAntiFraudOptionsDiscountCouponDiscountAmount$outboundSchema` instead. */
|
|
76
|
+
export const outboundSchema =
|
|
77
|
+
ForterAntiFraudOptionsDiscountCouponDiscountAmount$outboundSchema;
|
|
78
|
+
/** @deprecated use `ForterAntiFraudOptionsDiscountCouponDiscountAmount$Outbound` instead. */
|
|
79
|
+
export type Outbound =
|
|
80
|
+
ForterAntiFraudOptionsDiscountCouponDiscountAmount$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function forterAntiFraudOptionsDiscountCouponDiscountAmountToJSON(
|
|
84
|
+
forterAntiFraudOptionsDiscountCouponDiscountAmount:
|
|
85
|
+
ForterAntiFraudOptionsDiscountCouponDiscountAmount,
|
|
86
|
+
): string {
|
|
87
|
+
return JSON.stringify(
|
|
88
|
+
ForterAntiFraudOptionsDiscountCouponDiscountAmount$outboundSchema.parse(
|
|
89
|
+
forterAntiFraudOptionsDiscountCouponDiscountAmount,
|
|
90
|
+
),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function forterAntiFraudOptionsDiscountCouponDiscountAmountFromJSON(
|
|
95
|
+
jsonString: string,
|
|
96
|
+
): SafeParseResult<
|
|
97
|
+
ForterAntiFraudOptionsDiscountCouponDiscountAmount,
|
|
98
|
+
SDKValidationError
|
|
99
|
+
> {
|
|
100
|
+
return safeParse(
|
|
101
|
+
jsonString,
|
|
102
|
+
(x) =>
|
|
103
|
+
ForterAntiFraudOptionsDiscountCouponDiscountAmount$inboundSchema.parse(
|
|
104
|
+
JSON.parse(x),
|
|
105
|
+
),
|
|
106
|
+
`Failed to parse 'ForterAntiFraudOptionsDiscountCouponDiscountAmount' from JSON`,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 GivingBlockOptions = {
|
|
11
|
+
/**
|
|
12
|
+
* The default cryptocurrency to present at checkout. This can be used to ensure the user is presented with the same currency in both your checkout and the Giving Block checkout.
|
|
13
|
+
*/
|
|
14
|
+
defaultCryptocurrency?: string | null | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const GivingBlockOptions$inboundSchema: z.ZodType<
|
|
19
|
+
GivingBlockOptions,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
defaultCryptocurrency: z.nullable(z.string()).optional(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type GivingBlockOptions$Outbound = {
|
|
28
|
+
defaultCryptocurrency?: string | null | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const GivingBlockOptions$outboundSchema: z.ZodType<
|
|
33
|
+
GivingBlockOptions$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
GivingBlockOptions
|
|
36
|
+
> = z.object({
|
|
37
|
+
defaultCryptocurrency: z.nullable(z.string()).optional(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
+
*/
|
|
44
|
+
export namespace GivingBlockOptions$ {
|
|
45
|
+
/** @deprecated use `GivingBlockOptions$inboundSchema` instead. */
|
|
46
|
+
export const inboundSchema = GivingBlockOptions$inboundSchema;
|
|
47
|
+
/** @deprecated use `GivingBlockOptions$outboundSchema` instead. */
|
|
48
|
+
export const outboundSchema = GivingBlockOptions$outboundSchema;
|
|
49
|
+
/** @deprecated use `GivingBlockOptions$Outbound` instead. */
|
|
50
|
+
export type Outbound = GivingBlockOptions$Outbound;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function givingBlockOptionsToJSON(
|
|
54
|
+
givingBlockOptions: GivingBlockOptions,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
GivingBlockOptions$outboundSchema.parse(givingBlockOptions),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function givingBlockOptionsFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<GivingBlockOptions, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => GivingBlockOptions$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'GivingBlockOptions' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -5,7 +5,15 @@
|
|
|
5
5
|
export * from "./accountupdaterinquirysummary.js";
|
|
6
6
|
export * from "./accountupdaterjob.js";
|
|
7
7
|
export * from "./accountupdaterjobcreate.js";
|
|
8
|
+
export * from "./accountupdateroptions.js";
|
|
8
9
|
export * from "./address.js";
|
|
10
|
+
export * from "./adyenautorescuesepascenariosenum.js";
|
|
11
|
+
export * from "./adyencardautorescuescenariosenum.js";
|
|
12
|
+
export * from "./adyencardoptions.js";
|
|
13
|
+
export * from "./adyenoptions.js";
|
|
14
|
+
export * from "./adyensepaoptions.js";
|
|
15
|
+
export * from "./affirmitineraryoptions.js";
|
|
16
|
+
export * from "./affirmoptions.js";
|
|
9
17
|
export * from "./airline.js";
|
|
10
18
|
export * from "./airlineleg.js";
|
|
11
19
|
export * from "./airlinepassenger.js";
|
|
@@ -21,6 +29,8 @@ export * from "./auditlogentryuser.js";
|
|
|
21
29
|
export * from "./avsresponsecode.js";
|
|
22
30
|
export * from "./billingdetailsinput.js";
|
|
23
31
|
export * from "./billingdetailsoutput.js";
|
|
32
|
+
export * from "./braintreedynamicdatafieldsoptions.js";
|
|
33
|
+
export * from "./braintreeoptions.js";
|
|
24
34
|
export * from "./browserinfo.js";
|
|
25
35
|
export * from "./buyer.js";
|
|
26
36
|
export * from "./buyercreate.js";
|
|
@@ -33,7 +43,7 @@ export * from "./cardschemedefinitions.js";
|
|
|
33
43
|
export * from "./cardtype.js";
|
|
34
44
|
export * from "./cardwithurlpaymentmethodcreate.js";
|
|
35
45
|
export * from "./cartitem.js";
|
|
36
|
-
export * from "./
|
|
46
|
+
export * from "./checkoutpayoutoptions.js";
|
|
37
47
|
export * from "./checkoutsession.js";
|
|
38
48
|
export * from "./checkoutsessioncreate.js";
|
|
39
49
|
export * from "./checkoutsessionpaymentmethod.js";
|
|
@@ -44,14 +54,14 @@ export * from "./clicktopayfpanpaymentmethodcreate.js";
|
|
|
44
54
|
export * from "./clicktopaypaymentmethodcreate.js";
|
|
45
55
|
export * from "./clicktopaysession.js";
|
|
46
56
|
export * from "./clicktopaysessionrequest.js";
|
|
47
|
-
export * from "./collectionpaymentlink.js";
|
|
48
|
-
export * from "./connectionoptions.js";
|
|
49
57
|
export * from "./createsession.js";
|
|
50
58
|
export * from "./createsessionstatus.js";
|
|
51
59
|
export * from "./creator.js";
|
|
52
60
|
export * from "./cryptogram.js";
|
|
53
61
|
export * from "./cryptogramcreate.js";
|
|
54
62
|
export * from "./cvvresponsecode.js";
|
|
63
|
+
export * from "./cybersourceantifraudoptions.js";
|
|
64
|
+
export * from "./cybersourceoptions.js";
|
|
55
65
|
export * from "./definitionfield.js";
|
|
56
66
|
export * from "./definitionfieldformat.js";
|
|
57
67
|
export * from "./detailedsettlementreportspec.js";
|
|
@@ -61,9 +71,24 @@ export * from "./digitalwalletdomain.js";
|
|
|
61
71
|
export * from "./digitalwalletprovider.js";
|
|
62
72
|
export * from "./digitalwallets.js";
|
|
63
73
|
export * from "./digitalwalletupdate.js";
|
|
74
|
+
export * from "./dlocaloptions.js";
|
|
75
|
+
export * from "./dlocalwalletoptions.js";
|
|
64
76
|
export * from "./errordetail.js";
|
|
65
77
|
export * from "./errorlocation.js";
|
|
66
78
|
export * from "./field.js";
|
|
79
|
+
export * from "./fiservinstallmentoptions.js";
|
|
80
|
+
export * from "./fiservoptions.js";
|
|
81
|
+
export * from "./forterantifraudoptions.js";
|
|
82
|
+
export * from "./forterantifraudoptionscartitem.js";
|
|
83
|
+
export * from "./forterantifraudoptionscartitembasicitemdata.js";
|
|
84
|
+
export * from "./forterantifraudoptionscartitembeneficiary.js";
|
|
85
|
+
export * from "./forterantifraudoptionscartitembeneficiaryaddress.js";
|
|
86
|
+
export * from "./forterantifraudoptionscartitembeneficiarycomments.js";
|
|
87
|
+
export * from "./forterantifraudoptionscartitembeneficiarypersonaldetails.js";
|
|
88
|
+
export * from "./forterantifraudoptionscartitembeneficiaryphone.js";
|
|
89
|
+
export * from "./forterantifraudoptionscartitemdeliverydetails.js";
|
|
90
|
+
export * from "./forterantifraudoptionsdiscount.js";
|
|
91
|
+
export * from "./forterantifraudoptionsdiscountcoupondiscountamount.js";
|
|
67
92
|
export * from "./giftcard.js";
|
|
68
93
|
export * from "./giftcardbalancerequest.js";
|
|
69
94
|
export * from "./giftcardcreate.js";
|
|
@@ -79,6 +104,7 @@ export * from "./giftcardsummaries.js";
|
|
|
79
104
|
export * from "./giftcardsummary.js";
|
|
80
105
|
export * from "./giftcardtokentransactioncreate.js";
|
|
81
106
|
export * from "./giftcardtransactioncreate.js";
|
|
107
|
+
export * from "./givingblockoptions.js";
|
|
82
108
|
export * from "./googlepayassurancedetails.js";
|
|
83
109
|
export * from "./googlepayfpanpaymentmethodcreate.js";
|
|
84
110
|
export * from "./googlepaypaymentmethodcreate.js";
|
|
@@ -88,6 +114,8 @@ export * from "./googlepaysessionrequest.js";
|
|
|
88
114
|
export * from "./guestbuyerinput.js";
|
|
89
115
|
export * from "./guestbuyeroutput.js";
|
|
90
116
|
export * from "./instrumenttype.js";
|
|
117
|
+
export * from "./latitudeoptions.js";
|
|
118
|
+
export * from "./mattildatapioptions.js";
|
|
91
119
|
export * from "./merchantaccount.js";
|
|
92
120
|
export * from "./merchantaccountcreate.js";
|
|
93
121
|
export * from "./merchantaccounts.js";
|
|
@@ -95,14 +123,20 @@ export * from "./merchantaccountupdate.js";
|
|
|
95
123
|
export * from "./merchantprofilescheme.js";
|
|
96
124
|
export * from "./merchantprofileschemesummary.js";
|
|
97
125
|
export * from "./method.js";
|
|
126
|
+
export * from "./mockcardmerchantadvicecodeoptions.js";
|
|
127
|
+
export * from "./mockcardoptions.js";
|
|
98
128
|
export * from "./mode.js";
|
|
99
129
|
export * from "./networktoken.js";
|
|
100
130
|
export * from "./networktokencreate.js";
|
|
101
131
|
export * from "./networktokenpaymentmethodcreate.js";
|
|
102
132
|
export * from "./networktokens.js";
|
|
103
133
|
export * from "./networktokenstatus.js";
|
|
134
|
+
export * from "./nuveiairlinedataoptions.js";
|
|
135
|
+
export * from "./nuveioptions.js";
|
|
136
|
+
export * from "./oxxooptions.js";
|
|
104
137
|
export * from "./paymentlink.js";
|
|
105
138
|
export * from "./paymentlinkcreate.js";
|
|
139
|
+
export * from "./paymentlinks.js";
|
|
106
140
|
export * from "./paymentlinkstatus.js";
|
|
107
141
|
export * from "./paymentmethod.js";
|
|
108
142
|
export * from "./paymentmethodcard.js";
|
|
@@ -129,6 +163,7 @@ export * from "./paymentservicetokencreate.js";
|
|
|
129
163
|
export * from "./paymentservicetokens.js";
|
|
130
164
|
export * from "./paymentserviceupdate.js";
|
|
131
165
|
export * from "./payoutcategory.js";
|
|
166
|
+
export * from "./payoutconnectionoptions.js";
|
|
132
167
|
export * from "./payoutcreate.js";
|
|
133
168
|
export * from "./payoutmerchant.js";
|
|
134
169
|
export * from "./payoutmerchantsummary.js";
|
|
@@ -136,6 +171,8 @@ export * from "./payoutpaymentservice.js";
|
|
|
136
171
|
export * from "./payoutstatus.js";
|
|
137
172
|
export * from "./payoutsummaries.js";
|
|
138
173
|
export * from "./payoutsummary.js";
|
|
174
|
+
export * from "./paypaloptions.js";
|
|
175
|
+
export * from "./powertranzoptions.js";
|
|
139
176
|
export * from "./producttype.js";
|
|
140
177
|
export * from "./recipient.js";
|
|
141
178
|
export * from "./redirectpaymentmethodcreate.js";
|
|
@@ -167,6 +204,8 @@ export * from "./shippingdetailscreate.js";
|
|
|
167
204
|
export * from "./shippingdetailslist.js";
|
|
168
205
|
export * from "./shippingdetailsupdate.js";
|
|
169
206
|
export * from "./statementdescriptor.js";
|
|
207
|
+
export * from "./stripeconnectoptions.js";
|
|
208
|
+
export * from "./stripeoptions.js";
|
|
170
209
|
export * from "./taxid.js";
|
|
171
210
|
export * from "./taxidkind.js";
|
|
172
211
|
export * from "./threedsecuredatav1.js";
|
|
@@ -179,6 +218,7 @@ export * from "./tokenpaymentmethodcreate.js";
|
|
|
179
218
|
export * from "./transaction.js";
|
|
180
219
|
export * from "./transactionbuyer.js";
|
|
181
220
|
export * from "./transactioncapture.js";
|
|
221
|
+
export * from "./transactionconnectionoptions.js";
|
|
182
222
|
export * from "./transactioncreate.js";
|
|
183
223
|
export * from "./transactionevent.js";
|
|
184
224
|
export * from "./transactionevents.js";
|
|
@@ -197,8 +237,15 @@ export * from "./transactionsummaries.js";
|
|
|
197
237
|
export * from "./transactionsummary.js";
|
|
198
238
|
export * from "./transactionthreedsecuresummary.js";
|
|
199
239
|
export * from "./transactionupdate.js";
|
|
240
|
+
export * from "./travelhubcustomdata.js";
|
|
241
|
+
export * from "./travelhuboptions.js";
|
|
242
|
+
export * from "./trustlyoptions.js";
|
|
200
243
|
export * from "./userstatus.js";
|
|
201
244
|
export * from "./validationerror.js";
|
|
202
245
|
export * from "./verifycredentials.js";
|
|
203
246
|
export * from "./voidablefield.js";
|
|
204
247
|
export * from "./walletpaymentoptioncontext.js";
|
|
248
|
+
export * from "./wpayeverdaypayoptions.js";
|
|
249
|
+
export * from "./wpaypaytooptions.js";
|
|
250
|
+
export * from "./wpaypaytoresourceoptions.js";
|
|
251
|
+
export * from "./wpaypaytosimulationoptions.js";
|
|
@@ -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 { 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 LatitudeOptions = {
|
|
12
|
+
/**
|
|
13
|
+
* The `promotionReference` field passed to the purchase API.
|
|
14
|
+
*/
|
|
15
|
+
promotionReference?: string | null | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const LatitudeOptions$inboundSchema: z.ZodType<
|
|
20
|
+
LatitudeOptions,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
promotion_reference: z.nullable(z.string()).optional(),
|
|
25
|
+
}).transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
"promotion_reference": "promotionReference",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type LatitudeOptions$Outbound = {
|
|
33
|
+
promotion_reference?: string | null | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const LatitudeOptions$outboundSchema: z.ZodType<
|
|
38
|
+
LatitudeOptions$Outbound,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
LatitudeOptions
|
|
41
|
+
> = z.object({
|
|
42
|
+
promotionReference: z.nullable(z.string()).optional(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return remap$(v, {
|
|
45
|
+
promotionReference: "promotion_reference",
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
export namespace LatitudeOptions$ {
|
|
54
|
+
/** @deprecated use `LatitudeOptions$inboundSchema` instead. */
|
|
55
|
+
export const inboundSchema = LatitudeOptions$inboundSchema;
|
|
56
|
+
/** @deprecated use `LatitudeOptions$outboundSchema` instead. */
|
|
57
|
+
export const outboundSchema = LatitudeOptions$outboundSchema;
|
|
58
|
+
/** @deprecated use `LatitudeOptions$Outbound` instead. */
|
|
59
|
+
export type Outbound = LatitudeOptions$Outbound;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function latitudeOptionsToJSON(
|
|
63
|
+
latitudeOptions: LatitudeOptions,
|
|
64
|
+
): string {
|
|
65
|
+
return JSON.stringify(LatitudeOptions$outboundSchema.parse(latitudeOptions));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function latitudeOptionsFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<LatitudeOptions, SDKValidationError> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) => LatitudeOptions$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'LatitudeOptions' 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 { 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 MattildaTapiOptions = {
|
|
12
|
+
/**
|
|
13
|
+
* Defines the date at which the payment will expire if not completed. Must be provided in ISO 8601 format `(YYYY-MM-DD`). If not specified, it defaults to 7 days in the future from the current date.
|
|
14
|
+
*/
|
|
15
|
+
paymentMethodExpiresAt?: string | null | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const MattildaTapiOptions$inboundSchema: z.ZodType<
|
|
20
|
+
MattildaTapiOptions,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
payment_method_expires_at: z.nullable(z.string()).optional(),
|
|
25
|
+
}).transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
"payment_method_expires_at": "paymentMethodExpiresAt",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type MattildaTapiOptions$Outbound = {
|
|
33
|
+
payment_method_expires_at?: string | null | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const MattildaTapiOptions$outboundSchema: z.ZodType<
|
|
38
|
+
MattildaTapiOptions$Outbound,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
MattildaTapiOptions
|
|
41
|
+
> = z.object({
|
|
42
|
+
paymentMethodExpiresAt: z.nullable(z.string()).optional(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return remap$(v, {
|
|
45
|
+
paymentMethodExpiresAt: "payment_method_expires_at",
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
export namespace MattildaTapiOptions$ {
|
|
54
|
+
/** @deprecated use `MattildaTapiOptions$inboundSchema` instead. */
|
|
55
|
+
export const inboundSchema = MattildaTapiOptions$inboundSchema;
|
|
56
|
+
/** @deprecated use `MattildaTapiOptions$outboundSchema` instead. */
|
|
57
|
+
export const outboundSchema = MattildaTapiOptions$outboundSchema;
|
|
58
|
+
/** @deprecated use `MattildaTapiOptions$Outbound` instead. */
|
|
59
|
+
export type Outbound = MattildaTapiOptions$Outbound;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function mattildaTapiOptionsToJSON(
|
|
63
|
+
mattildaTapiOptions: MattildaTapiOptions,
|
|
64
|
+
): string {
|
|
65
|
+
return JSON.stringify(
|
|
66
|
+
MattildaTapiOptions$outboundSchema.parse(mattildaTapiOptions),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function mattildaTapiOptionsFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<MattildaTapiOptions, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => MattildaTapiOptions$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'MattildaTapiOptions' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|