@gr4vy/sdk 1.5.2 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/sdks/transactions/README.md +4 -4
- package/examples/package-lock.json +1 -1
- package/funcs/transactionsCreate.d.ts +1 -1
- package/funcs/transactionsCreate.d.ts.map +1 -1
- package/funcs/transactionsCreate.js +1 -1
- package/funcs/transactionsCreate.js.map +1 -1
- package/funcs/transactionsGet.d.ts +1 -1
- package/funcs/transactionsGet.d.ts.map +1 -1
- package/funcs/transactionsGet.js +1 -1
- package/funcs/transactionsGet.js.map +1 -1
- package/funcs/transactionsSync.d.ts +1 -1
- package/funcs/transactionsSync.d.ts.map +1 -1
- package/funcs/transactionsSync.js +1 -1
- package/funcs/transactionsSync.js.map +1 -1
- package/funcs/transactionsUpdate.d.ts +1 -1
- package/funcs/transactionsUpdate.d.ts.map +1 -1
- package/funcs/transactionsUpdate.js +1 -1
- package/funcs/transactionsUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/auditlogentries.d.ts +3 -3
- package/models/components/auditlogentries.d.ts.map +1 -1
- package/models/components/auditlogentries.js +3 -3
- package/models/components/auditlogentries.js.map +1 -1
- package/models/components/{auditlogentry.d.ts → auditlogentryoutput.d.ts} +14 -14
- package/models/components/auditlogentryoutput.d.ts.map +1 -0
- package/models/components/{auditlogentry.js → auditlogentryoutput.js} +17 -17
- package/models/components/auditlogentryoutput.js.map +1 -0
- package/models/components/checkoutsession.d.ts +3 -3
- package/models/components/checkoutsession.d.ts.map +1 -1
- package/models/components/checkoutsession.js +3 -3
- package/models/components/checkoutsession.js.map +1 -1
- package/models/components/{checkoutsessionpaymentmethod.d.ts → checkoutsessionpaymentmethodoutput.d.ts} +14 -14
- package/models/components/checkoutsessionpaymentmethodoutput.d.ts.map +1 -0
- package/models/components/{checkoutsessionpaymentmethod.js → checkoutsessionpaymentmethodoutput.js} +17 -17
- package/models/components/checkoutsessionpaymentmethodoutput.js.map +1 -0
- package/models/components/index.d.ts +15 -12
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +15 -12
- package/models/components/index.js.map +1 -1
- package/models/components/paymentlink.d.ts +3 -3
- package/models/components/paymentlink.d.ts.map +1 -1
- package/models/components/paymentlink.js +3 -3
- package/models/components/paymentlink.js.map +1 -1
- package/models/components/paymentmethodsummaries.d.ts +3 -3
- package/models/components/paymentmethodsummaries.d.ts.map +1 -1
- package/models/components/paymentmethodsummaries.js +3 -3
- package/models/components/paymentmethodsummaries.js.map +1 -1
- package/models/components/{paymentmethodsummary.d.ts → paymentmethodsummaryoutput.d.ts} +14 -14
- package/models/components/paymentmethodsummaryoutput.d.ts.map +1 -0
- package/models/components/{paymentmethodsummary.js → paymentmethodsummaryoutput.js} +17 -17
- package/models/components/paymentmethodsummaryoutput.js.map +1 -0
- package/models/components/{paymentoption.d.ts → paymentoptionoutput.d.ts} +14 -14
- package/models/components/paymentoptionoutput.d.ts.map +1 -0
- package/models/components/{paymentoption.js → paymentoptionoutput.js} +17 -17
- package/models/components/paymentoptionoutput.js.map +1 -0
- package/models/components/paymentoptions.d.ts +3 -3
- package/models/components/paymentoptions.d.ts.map +1 -1
- package/models/components/paymentoptions.js +3 -3
- package/models/components/paymentoptions.js.map +1 -1
- package/models/components/payoutsummary.d.ts +6 -6
- package/models/components/payoutsummary.d.ts.map +1 -1
- package/models/components/payoutsummary.js +6 -6
- package/models/components/payoutsummary.js.map +1 -1
- package/models/components/paypaloptions.d.ts +6 -0
- package/models/components/paypaloptions.d.ts.map +1 -1
- package/models/components/paypaloptions.js +3 -0
- package/models/components/paypaloptions.js.map +1 -1
- package/models/components/paypalshippingoptions.d.ts +33 -0
- package/models/components/paypalshippingoptions.d.ts.map +1 -0
- package/models/components/paypalshippingoptions.js +72 -0
- package/models/components/paypalshippingoptions.js.map +1 -0
- package/models/components/paypalshippingoptionsitem.d.ts +75 -0
- package/models/components/paypalshippingoptionsitem.d.ts.map +1 -0
- package/models/components/paypalshippingoptionsitem.js +107 -0
- package/models/components/paypalshippingoptionsitem.js.map +1 -0
- package/models/components/paypalshippingoptionsitemamount.d.ts +37 -0
- package/models/components/paypalshippingoptionsitemamount.d.ts.map +1 -0
- package/models/components/paypalshippingoptionsitemamount.js +80 -0
- package/models/components/paypalshippingoptionsitemamount.js.map +1 -0
- package/models/components/{transactionbuyer.d.ts → transactionbuyeroutput.d.ts} +14 -14
- package/models/components/transactionbuyeroutput.d.ts.map +1 -0
- package/models/components/{transactionbuyer.js → transactionbuyeroutput.js} +17 -17
- package/models/components/transactionbuyeroutput.js.map +1 -0
- package/models/components/transactioncancel.d.ts +3 -3
- package/models/components/transactioncancel.d.ts.map +1 -1
- package/models/components/transactioncancel.js +3 -3
- package/models/components/transactioncancel.js.map +1 -1
- package/models/components/transactioncaptureoutput.d.ts +56 -0
- package/models/components/transactioncaptureoutput.d.ts.map +1 -0
- package/models/components/{transactioncapture.js → transactioncaptureoutput.js} +20 -20
- package/models/components/transactioncaptureoutput.js.map +1 -0
- package/models/components/{transactionevent.d.ts → transactioneventoutput.d.ts} +14 -14
- package/models/components/transactioneventoutput.d.ts.map +1 -0
- package/models/components/{transactionevent.js → transactioneventoutput.js} +17 -17
- package/models/components/transactioneventoutput.js.map +1 -0
- package/models/components/transactionevents.d.ts +3 -3
- package/models/components/transactionevents.d.ts.map +1 -1
- package/models/components/transactionevents.js +3 -3
- package/models/components/transactionevents.js.map +1 -1
- package/models/components/{transaction.d.ts → transactionoutput.d.ts} +23 -23
- package/models/components/transactionoutput.d.ts.map +1 -0
- package/models/components/{transaction.js → transactionoutput.js} +28 -26
- package/models/components/transactionoutput.js.map +1 -0
- package/models/components/{transactionpaymentmethod.d.ts → transactionpaymentmethodoutput.d.ts} +14 -14
- package/models/components/transactionpaymentmethodoutput.d.ts.map +1 -0
- package/models/components/{transactionpaymentmethod.js → transactionpaymentmethodoutput.js} +17 -17
- package/models/components/transactionpaymentmethodoutput.js.map +1 -0
- package/models/components/transactionsummaries.d.ts +3 -3
- package/models/components/transactionsummaries.d.ts.map +1 -1
- package/models/components/transactionsummaries.js +3 -3
- package/models/components/transactionsummaries.js.map +1 -1
- package/models/components/{transactionsummary.d.ts → transactionsummaryoutput.d.ts} +20 -20
- package/models/components/transactionsummaryoutput.d.ts.map +1 -0
- package/models/components/{transactionsummary.js → transactionsummaryoutput.js} +25 -23
- package/models/components/transactionsummaryoutput.js.map +1 -0
- package/models/components/{transactionthreedsecuresummary.d.ts → transactionthreedsecuresummaryoutput.d.ts} +14 -14
- package/models/components/transactionthreedsecuresummaryoutput.d.ts.map +1 -0
- package/models/components/{transactionthreedsecuresummary.js → transactionthreedsecuresummaryoutput.js} +17 -17
- package/models/components/transactionthreedsecuresummaryoutput.js.map +1 -0
- package/models/components/transactionvoidoutput.d.ts +56 -0
- package/models/components/transactionvoidoutput.d.ts.map +1 -0
- package/models/components/{transactionvoid.js → transactionvoidoutput.js} +20 -20
- package/models/components/transactionvoidoutput.js.map +1 -0
- package/models/operations/capturetransaction.d.ts +2 -2
- package/models/operations/capturetransaction.d.ts.map +1 -1
- package/models/operations/capturetransaction.js +4 -4
- package/models/operations/capturetransaction.js.map +1 -1
- package/models/operations/voidtransaction.d.ts +2 -2
- package/models/operations/voidtransaction.d.ts.map +1 -1
- package/models/operations/voidtransaction.js +4 -4
- package/models/operations/voidtransaction.js.map +1 -1
- package/package.json +1 -1
- package/sdk/transactions.d.ts +4 -4
- package/sdk/transactions.d.ts.map +1 -1
- package/src/funcs/transactionsCreate.ts +4 -4
- package/src/funcs/transactionsGet.ts +4 -4
- package/src/funcs/transactionsSync.ts +4 -4
- package/src/funcs/transactionsUpdate.ts +4 -4
- package/src/lib/config.ts +3 -3
- package/src/models/components/auditlogentries.ts +9 -9
- package/src/models/components/{auditlogentry.ts → auditlogentryoutput.ts} +24 -20
- package/src/models/components/checkoutsession.ts +12 -9
- package/src/models/components/{checkoutsessionpaymentmethod.ts → checkoutsessionpaymentmethodoutput.ts} +24 -22
- package/src/models/components/index.ts +15 -12
- package/src/models/components/paymentlink.ts +9 -9
- package/src/models/components/paymentmethodsummaries.ts +9 -9
- package/src/models/components/{paymentmethodsummary.ts → paymentmethodsummaryoutput.ts} +21 -21
- package/src/models/components/{paymentoption.ts → paymentoptionoutput.ts} +24 -20
- package/src/models/components/paymentoptions.ts +9 -9
- package/src/models/components/payoutsummary.ts +18 -18
- package/src/models/components/paypaloptions.ts +13 -0
- package/src/models/components/paypalshippingoptions.ts +77 -0
- package/src/models/components/paypalshippingoptionsitem.ts +150 -0
- package/src/models/components/paypalshippingoptionsitemamount.ts +87 -0
- package/src/models/components/{transactionbuyer.ts → transactionbuyeroutput.ts} +21 -21
- package/src/models/components/transactioncancel.ts +9 -9
- package/src/models/components/{transactioncapture.ts → transactioncaptureoutput.ts} +30 -30
- package/src/models/components/{transactionevent.ts → transactioneventoutput.ts} +21 -21
- package/src/models/components/transactionevents.ts +9 -9
- package/src/models/components/{transaction.ts → transactionoutput.ts} +56 -47
- package/src/models/components/{transactionpaymentmethod.ts → transactionpaymentmethodoutput.ts} +23 -21
- package/src/models/components/transactionsummaries.ts +9 -9
- package/src/models/components/{transactionsummary.ts → transactionsummaryoutput.ts} +41 -39
- package/src/models/components/{transactionthreedsecuresummary.ts → transactionthreedsecuresummaryoutput.ts} +25 -22
- package/src/models/components/{transactionvoid.ts → transactionvoidoutput.ts} +32 -30
- package/src/models/operations/capturetransaction.ts +8 -8
- package/src/models/operations/voidtransaction.ts +8 -8
- package/src/sdk/transactions.ts +4 -4
- package/models/components/auditlogentry.d.ts.map +0 -1
- package/models/components/auditlogentry.js.map +0 -1
- package/models/components/checkoutsessionpaymentmethod.d.ts.map +0 -1
- package/models/components/checkoutsessionpaymentmethod.js.map +0 -1
- package/models/components/paymentmethodsummary.d.ts.map +0 -1
- package/models/components/paymentmethodsummary.js.map +0 -1
- package/models/components/paymentoption.d.ts.map +0 -1
- package/models/components/paymentoption.js.map +0 -1
- package/models/components/transaction.d.ts.map +0 -1
- package/models/components/transaction.js.map +0 -1
- package/models/components/transactionbuyer.d.ts.map +0 -1
- package/models/components/transactionbuyer.js.map +0 -1
- package/models/components/transactioncapture.d.ts +0 -56
- package/models/components/transactioncapture.d.ts.map +0 -1
- package/models/components/transactioncapture.js.map +0 -1
- package/models/components/transactionevent.d.ts.map +0 -1
- package/models/components/transactionevent.js.map +0 -1
- package/models/components/transactionpaymentmethod.d.ts.map +0 -1
- package/models/components/transactionpaymentmethod.js.map +0 -1
- package/models/components/transactionsummary.d.ts.map +0 -1
- package/models/components/transactionsummary.js.map +0 -1
- package/models/components/transactionthreedsecuresummary.d.ts.map +0 -1
- package/models/components/transactionthreedsecuresummary.js.map +0 -1
- package/models/components/transactionvoid.d.ts +0 -56
- package/models/components/transactionvoid.d.ts.map +0 -1
- package/models/components/transactionvoid.js.map +0 -1
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
CartItem$outboundSchema,
|
|
21
21
|
} from "./cartitem.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
23
|
+
CheckoutSessionPaymentMethodOutput,
|
|
24
|
+
CheckoutSessionPaymentMethodOutput$inboundSchema,
|
|
25
|
+
CheckoutSessionPaymentMethodOutput$Outbound,
|
|
26
|
+
CheckoutSessionPaymentMethodOutput$outboundSchema,
|
|
27
|
+
} from "./checkoutsessionpaymentmethodoutput.js";
|
|
28
28
|
import {
|
|
29
29
|
GuestBuyerOutput,
|
|
30
30
|
GuestBuyerOutput$inboundSchema,
|
|
@@ -64,7 +64,7 @@ export type CheckoutSession = {
|
|
|
64
64
|
/**
|
|
65
65
|
* Information about the payment method stored on the checkout session.
|
|
66
66
|
*/
|
|
67
|
-
paymentMethod?:
|
|
67
|
+
paymentMethod?: CheckoutSessionPaymentMethodOutput | null | undefined;
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
/** @internal */
|
|
@@ -80,7 +80,7 @@ export const CheckoutSession$inboundSchema: z.ZodType<
|
|
|
80
80
|
type: z.literal("checkout-session").default("checkout-session"),
|
|
81
81
|
id: z.string(),
|
|
82
82
|
expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
83
|
-
payment_method: z.nullable(
|
|
83
|
+
payment_method: z.nullable(CheckoutSessionPaymentMethodOutput$inboundSchema)
|
|
84
84
|
.optional(),
|
|
85
85
|
}).transform((v) => {
|
|
86
86
|
return remap$(v, {
|
|
@@ -99,7 +99,10 @@ export type CheckoutSession$Outbound = {
|
|
|
99
99
|
type: "checkout-session";
|
|
100
100
|
id: string;
|
|
101
101
|
expires_at: string;
|
|
102
|
-
payment_method?:
|
|
102
|
+
payment_method?:
|
|
103
|
+
| CheckoutSessionPaymentMethodOutput$Outbound
|
|
104
|
+
| null
|
|
105
|
+
| undefined;
|
|
103
106
|
};
|
|
104
107
|
|
|
105
108
|
/** @internal */
|
|
@@ -115,7 +118,7 @@ export const CheckoutSession$outboundSchema: z.ZodType<
|
|
|
115
118
|
type: z.literal("checkout-session").default("checkout-session" as const),
|
|
116
119
|
id: z.string(),
|
|
117
120
|
expiresAt: z.date().transform(v => v.toISOString()),
|
|
118
|
-
paymentMethod: z.nullable(
|
|
121
|
+
paymentMethod: z.nullable(CheckoutSessionPaymentMethodOutput$outboundSchema)
|
|
119
122
|
.optional(),
|
|
120
123
|
}).transform((v) => {
|
|
121
124
|
return remap$(v, {
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
CheckoutSessionPaymentMethodDetails$outboundSchema,
|
|
19
19
|
} from "./checkoutsessionpaymentmethoddetails.js";
|
|
20
20
|
|
|
21
|
-
export type
|
|
21
|
+
export type CheckoutSessionPaymentMethodOutput = {
|
|
22
22
|
/**
|
|
23
23
|
* Always `payment-method`
|
|
24
24
|
*/
|
|
@@ -50,8 +50,8 @@ export type CheckoutSessionPaymentMethod = {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
/** @internal */
|
|
53
|
-
export const
|
|
54
|
-
|
|
53
|
+
export const CheckoutSessionPaymentMethodOutput$inboundSchema: z.ZodType<
|
|
54
|
+
CheckoutSessionPaymentMethodOutput,
|
|
55
55
|
z.ZodTypeDef,
|
|
56
56
|
unknown
|
|
57
57
|
> = z.object({
|
|
@@ -66,7 +66,7 @@ export const CheckoutSessionPaymentMethod$inboundSchema: z.ZodType<
|
|
|
66
66
|
});
|
|
67
67
|
|
|
68
68
|
/** @internal */
|
|
69
|
-
export type
|
|
69
|
+
export type CheckoutSessionPaymentMethodOutput$Outbound = {
|
|
70
70
|
type: "payment-method";
|
|
71
71
|
id?: string | null | undefined;
|
|
72
72
|
details?: CheckoutSessionPaymentMethodDetails$Outbound | null | undefined;
|
|
@@ -77,10 +77,10 @@ export type CheckoutSessionPaymentMethod$Outbound = {
|
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
/** @internal */
|
|
80
|
-
export const
|
|
81
|
-
|
|
80
|
+
export const CheckoutSessionPaymentMethodOutput$outboundSchema: z.ZodType<
|
|
81
|
+
CheckoutSessionPaymentMethodOutput$Outbound,
|
|
82
82
|
z.ZodTypeDef,
|
|
83
|
-
|
|
83
|
+
CheckoutSessionPaymentMethodOutput
|
|
84
84
|
> = z.object({
|
|
85
85
|
type: z.literal("payment-method").default("payment-method" as const),
|
|
86
86
|
id: z.nullable(z.string()).optional(),
|
|
@@ -96,31 +96,33 @@ export const CheckoutSessionPaymentMethod$outboundSchema: z.ZodType<
|
|
|
96
96
|
* @internal
|
|
97
97
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
98
98
|
*/
|
|
99
|
-
export namespace
|
|
100
|
-
/** @deprecated use `
|
|
101
|
-
export const inboundSchema =
|
|
102
|
-
/** @deprecated use `
|
|
103
|
-
export const outboundSchema =
|
|
104
|
-
|
|
105
|
-
|
|
99
|
+
export namespace CheckoutSessionPaymentMethodOutput$ {
|
|
100
|
+
/** @deprecated use `CheckoutSessionPaymentMethodOutput$inboundSchema` instead. */
|
|
101
|
+
export const inboundSchema = CheckoutSessionPaymentMethodOutput$inboundSchema;
|
|
102
|
+
/** @deprecated use `CheckoutSessionPaymentMethodOutput$outboundSchema` instead. */
|
|
103
|
+
export const outboundSchema =
|
|
104
|
+
CheckoutSessionPaymentMethodOutput$outboundSchema;
|
|
105
|
+
/** @deprecated use `CheckoutSessionPaymentMethodOutput$Outbound` instead. */
|
|
106
|
+
export type Outbound = CheckoutSessionPaymentMethodOutput$Outbound;
|
|
106
107
|
}
|
|
107
108
|
|
|
108
|
-
export function
|
|
109
|
-
|
|
109
|
+
export function checkoutSessionPaymentMethodOutputToJSON(
|
|
110
|
+
checkoutSessionPaymentMethodOutput: CheckoutSessionPaymentMethodOutput,
|
|
110
111
|
): string {
|
|
111
112
|
return JSON.stringify(
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
CheckoutSessionPaymentMethodOutput$outboundSchema.parse(
|
|
114
|
+
checkoutSessionPaymentMethodOutput,
|
|
114
115
|
),
|
|
115
116
|
);
|
|
116
117
|
}
|
|
117
118
|
|
|
118
|
-
export function
|
|
119
|
+
export function checkoutSessionPaymentMethodOutputFromJSON(
|
|
119
120
|
jsonString: string,
|
|
120
|
-
): SafeParseResult<
|
|
121
|
+
): SafeParseResult<CheckoutSessionPaymentMethodOutput, SDKValidationError> {
|
|
121
122
|
return safeParse(
|
|
122
123
|
jsonString,
|
|
123
|
-
(x) =>
|
|
124
|
-
|
|
124
|
+
(x) =>
|
|
125
|
+
CheckoutSessionPaymentMethodOutput$inboundSchema.parse(JSON.parse(x)),
|
|
126
|
+
`Failed to parse 'CheckoutSessionPaymentMethodOutput' from JSON`,
|
|
125
127
|
);
|
|
126
128
|
}
|
|
@@ -25,7 +25,7 @@ export * from "./applepaysessionrequest.js";
|
|
|
25
25
|
export * from "./approvaltarget.js";
|
|
26
26
|
export * from "./auditlogaction.js";
|
|
27
27
|
export * from "./auditlogentries.js";
|
|
28
|
-
export * from "./
|
|
28
|
+
export * from "./auditlogentryoutput.js";
|
|
29
29
|
export * from "./auditlogentryresource.js";
|
|
30
30
|
export * from "./auditlogentryuser.js";
|
|
31
31
|
export * from "./avsresponsecode.js";
|
|
@@ -50,9 +50,9 @@ export * from "./cartitem.js";
|
|
|
50
50
|
export * from "./checkoutpayoutoptions.js";
|
|
51
51
|
export * from "./checkoutsession.js";
|
|
52
52
|
export * from "./checkoutsessioncreate.js";
|
|
53
|
-
export * from "./checkoutsessionpaymentmethod.js";
|
|
54
53
|
export * from "./checkoutsessionpaymentmethodcreate.js";
|
|
55
54
|
export * from "./checkoutsessionpaymentmethoddetails.js";
|
|
55
|
+
export * from "./checkoutsessionpaymentmethodoutput.js";
|
|
56
56
|
export * from "./checkoutsessionwithurlpaymentmethodcreate.js";
|
|
57
57
|
export * from "./clicktopayfpanpaymentmethodcreate.js";
|
|
58
58
|
export * from "./clicktopaypaymentmethodcreate.js";
|
|
@@ -154,10 +154,10 @@ export * from "./paymentmethods.js";
|
|
|
154
154
|
export * from "./paymentmethodstatus.js";
|
|
155
155
|
export * from "./paymentmethodstoredcard.js";
|
|
156
156
|
export * from "./paymentmethodsummaries.js";
|
|
157
|
-
export * from "./
|
|
158
|
-
export * from "./paymentoption.js";
|
|
157
|
+
export * from "./paymentmethodsummaryoutput.js";
|
|
159
158
|
export * from "./paymentoptioncontext.js";
|
|
160
159
|
export * from "./paymentoptioncontextapprovalui.js";
|
|
160
|
+
export * from "./paymentoptionoutput.js";
|
|
161
161
|
export * from "./paymentoptionrequest.js";
|
|
162
162
|
export * from "./paymentoptions.js";
|
|
163
163
|
export * from "./paymentservice.js";
|
|
@@ -181,6 +181,9 @@ export * from "./payoutstatus.js";
|
|
|
181
181
|
export * from "./payoutsummaries.js";
|
|
182
182
|
export * from "./payoutsummary.js";
|
|
183
183
|
export * from "./paypaloptions.js";
|
|
184
|
+
export * from "./paypalshippingoptions.js";
|
|
185
|
+
export * from "./paypalshippingoptionsitem.js";
|
|
186
|
+
export * from "./paypalshippingoptionsitemamount.js";
|
|
184
187
|
export * from "./powertranzoptions.js";
|
|
185
188
|
export * from "./producttype.js";
|
|
186
189
|
export * from "./recipient.js";
|
|
@@ -225,19 +228,19 @@ export * from "./threedsecuremethod.js";
|
|
|
225
228
|
export * from "./threedsecurestatus.js";
|
|
226
229
|
export * from "./threedsecurev2.js";
|
|
227
230
|
export * from "./tokenpaymentmethodcreate.js";
|
|
228
|
-
export * from "./
|
|
229
|
-
export * from "./transactionbuyer.js";
|
|
231
|
+
export * from "./transactionbuyeroutput.js";
|
|
230
232
|
export * from "./transactioncancel.js";
|
|
231
|
-
export * from "./transactioncapture.js";
|
|
232
233
|
export * from "./transactioncapturecreate.js";
|
|
234
|
+
export * from "./transactioncaptureoutput.js";
|
|
233
235
|
export * from "./transactionconnectionoptions.js";
|
|
234
236
|
export * from "./transactioncreate.js";
|
|
235
|
-
export * from "./
|
|
237
|
+
export * from "./transactioneventoutput.js";
|
|
236
238
|
export * from "./transactionevents.js";
|
|
237
239
|
export * from "./transactiongiftcard.js";
|
|
238
240
|
export * from "./transactionintent.js";
|
|
239
241
|
export * from "./transactionintentoutcome.js";
|
|
240
|
-
export * from "./
|
|
242
|
+
export * from "./transactionoutput.js";
|
|
243
|
+
export * from "./transactionpaymentmethodoutput.js";
|
|
241
244
|
export * from "./transactionpaymentservice.js";
|
|
242
245
|
export * from "./transactionpaymentsource.js";
|
|
243
246
|
export * from "./transactionrefundallcreate.js";
|
|
@@ -246,10 +249,10 @@ export * from "./transactionretriesreportspec.js";
|
|
|
246
249
|
export * from "./transactionsreportspec.js";
|
|
247
250
|
export * from "./transactionstatus.js";
|
|
248
251
|
export * from "./transactionsummaries.js";
|
|
249
|
-
export * from "./
|
|
250
|
-
export * from "./
|
|
252
|
+
export * from "./transactionsummaryoutput.js";
|
|
253
|
+
export * from "./transactionthreedsecuresummaryoutput.js";
|
|
251
254
|
export * from "./transactionupdate.js";
|
|
252
|
-
export * from "./
|
|
255
|
+
export * from "./transactionvoidoutput.js";
|
|
253
256
|
export * from "./travelhubcustomdata.js";
|
|
254
257
|
export * from "./travelhuboptions.js";
|
|
255
258
|
export * from "./trustlyoptions.js";
|
|
@@ -31,11 +31,11 @@ import {
|
|
|
31
31
|
StatementDescriptor$outboundSchema,
|
|
32
32
|
} from "./statementdescriptor.js";
|
|
33
33
|
import {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} from "./
|
|
34
|
+
TransactionBuyerOutput,
|
|
35
|
+
TransactionBuyerOutput$inboundSchema,
|
|
36
|
+
TransactionBuyerOutput$Outbound,
|
|
37
|
+
TransactionBuyerOutput$outboundSchema,
|
|
38
|
+
} from "./transactionbuyeroutput.js";
|
|
39
39
|
import {
|
|
40
40
|
TransactionIntent,
|
|
41
41
|
TransactionIntent$inboundSchema,
|
|
@@ -145,7 +145,7 @@ export type PaymentLink = {
|
|
|
145
145
|
/**
|
|
146
146
|
* The buyer associated with the payment link.
|
|
147
147
|
*/
|
|
148
|
-
buyer?:
|
|
148
|
+
buyer?: TransactionBuyerOutput | null | undefined;
|
|
149
149
|
/**
|
|
150
150
|
* The shipping details for the payment link.
|
|
151
151
|
*/
|
|
@@ -190,7 +190,7 @@ export const PaymentLink$inboundSchema: z.ZodType<
|
|
|
190
190
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
191
191
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
192
192
|
status: PaymentLinkStatus$inboundSchema,
|
|
193
|
-
buyer: z.nullable(
|
|
193
|
+
buyer: z.nullable(TransactionBuyerOutput$inboundSchema).optional(),
|
|
194
194
|
shipping_details: z.nullable(ShippingDetails$inboundSchema).optional(),
|
|
195
195
|
connection_options: z.nullable(z.record(z.record(z.any()))).optional(),
|
|
196
196
|
}).transform((v) => {
|
|
@@ -242,7 +242,7 @@ export type PaymentLink$Outbound = {
|
|
|
242
242
|
created_at: string;
|
|
243
243
|
updated_at: string;
|
|
244
244
|
status: string;
|
|
245
|
-
buyer?:
|
|
245
|
+
buyer?: TransactionBuyerOutput$Outbound | null | undefined;
|
|
246
246
|
shipping_details?: ShippingDetails$Outbound | null | undefined;
|
|
247
247
|
connection_options?: { [k: string]: { [k: string]: any } } | null | undefined;
|
|
248
248
|
};
|
|
@@ -279,7 +279,7 @@ export const PaymentLink$outboundSchema: z.ZodType<
|
|
|
279
279
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
280
280
|
updatedAt: z.date().transform(v => v.toISOString()),
|
|
281
281
|
status: PaymentLinkStatus$outboundSchema,
|
|
282
|
-
buyer: z.nullable(
|
|
282
|
+
buyer: z.nullable(TransactionBuyerOutput$outboundSchema).optional(),
|
|
283
283
|
shippingDetails: z.nullable(ShippingDetails$outboundSchema).optional(),
|
|
284
284
|
connectionOptions: z.nullable(z.record(z.record(z.any()))).optional(),
|
|
285
285
|
}).transform((v) => {
|
|
@@ -7,17 +7,17 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
10
|
+
PaymentMethodSummaryOutput,
|
|
11
|
+
PaymentMethodSummaryOutput$inboundSchema,
|
|
12
|
+
PaymentMethodSummaryOutput$Outbound,
|
|
13
|
+
PaymentMethodSummaryOutput$outboundSchema,
|
|
14
|
+
} from "./paymentmethodsummaryoutput.js";
|
|
15
15
|
|
|
16
16
|
export type PaymentMethodSummaries = {
|
|
17
17
|
/**
|
|
18
18
|
* A list of items returned for this request.
|
|
19
19
|
*/
|
|
20
|
-
items: Array<
|
|
20
|
+
items: Array<PaymentMethodSummaryOutput>;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
/** @internal */
|
|
@@ -26,12 +26,12 @@ export const PaymentMethodSummaries$inboundSchema: z.ZodType<
|
|
|
26
26
|
z.ZodTypeDef,
|
|
27
27
|
unknown
|
|
28
28
|
> = z.object({
|
|
29
|
-
items: z.array(
|
|
29
|
+
items: z.array(PaymentMethodSummaryOutput$inboundSchema),
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
/** @internal */
|
|
33
33
|
export type PaymentMethodSummaries$Outbound = {
|
|
34
|
-
items: Array<
|
|
34
|
+
items: Array<PaymentMethodSummaryOutput$Outbound>;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
/** @internal */
|
|
@@ -40,7 +40,7 @@ export const PaymentMethodSummaries$outboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
PaymentMethodSummaries
|
|
42
42
|
> = z.object({
|
|
43
|
-
items: z.array(
|
|
43
|
+
items: z.array(PaymentMethodSummaryOutput$outboundSchema),
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
*
|
|
33
33
|
* A summary of a payment method.
|
|
34
34
|
*/
|
|
35
|
-
export type
|
|
35
|
+
export type PaymentMethodSummaryOutput = {
|
|
36
36
|
/**
|
|
37
37
|
* Always `payment-method`.
|
|
38
38
|
*/
|
|
@@ -113,8 +113,8 @@ export type PaymentMethodSummary = {
|
|
|
113
113
|
};
|
|
114
114
|
|
|
115
115
|
/** @internal */
|
|
116
|
-
export const
|
|
117
|
-
|
|
116
|
+
export const PaymentMethodSummaryOutput$inboundSchema: z.ZodType<
|
|
117
|
+
PaymentMethodSummaryOutput,
|
|
118
118
|
z.ZodTypeDef,
|
|
119
119
|
unknown
|
|
120
120
|
> = z.object({
|
|
@@ -160,7 +160,7 @@ export const PaymentMethodSummary$inboundSchema: z.ZodType<
|
|
|
160
160
|
});
|
|
161
161
|
|
|
162
162
|
/** @internal */
|
|
163
|
-
export type
|
|
163
|
+
export type PaymentMethodSummaryOutput$Outbound = {
|
|
164
164
|
type: "payment-method";
|
|
165
165
|
approval_url?: string | null | undefined;
|
|
166
166
|
country?: string | null | undefined;
|
|
@@ -184,10 +184,10 @@ export type PaymentMethodSummary$Outbound = {
|
|
|
184
184
|
};
|
|
185
185
|
|
|
186
186
|
/** @internal */
|
|
187
|
-
export const
|
|
188
|
-
|
|
187
|
+
export const PaymentMethodSummaryOutput$outboundSchema: z.ZodType<
|
|
188
|
+
PaymentMethodSummaryOutput$Outbound,
|
|
189
189
|
z.ZodTypeDef,
|
|
190
|
-
|
|
190
|
+
PaymentMethodSummaryOutput
|
|
191
191
|
> = z.object({
|
|
192
192
|
type: z.literal("payment-method").default("payment-method" as const),
|
|
193
193
|
approvalUrl: z.nullable(z.string()).optional(),
|
|
@@ -230,29 +230,29 @@ export const PaymentMethodSummary$outboundSchema: z.ZodType<
|
|
|
230
230
|
* @internal
|
|
231
231
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
232
232
|
*/
|
|
233
|
-
export namespace
|
|
234
|
-
/** @deprecated use `
|
|
235
|
-
export const inboundSchema =
|
|
236
|
-
/** @deprecated use `
|
|
237
|
-
export const outboundSchema =
|
|
238
|
-
/** @deprecated use `
|
|
239
|
-
export type Outbound =
|
|
233
|
+
export namespace PaymentMethodSummaryOutput$ {
|
|
234
|
+
/** @deprecated use `PaymentMethodSummaryOutput$inboundSchema` instead. */
|
|
235
|
+
export const inboundSchema = PaymentMethodSummaryOutput$inboundSchema;
|
|
236
|
+
/** @deprecated use `PaymentMethodSummaryOutput$outboundSchema` instead. */
|
|
237
|
+
export const outboundSchema = PaymentMethodSummaryOutput$outboundSchema;
|
|
238
|
+
/** @deprecated use `PaymentMethodSummaryOutput$Outbound` instead. */
|
|
239
|
+
export type Outbound = PaymentMethodSummaryOutput$Outbound;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
export function
|
|
243
|
-
|
|
242
|
+
export function paymentMethodSummaryOutputToJSON(
|
|
243
|
+
paymentMethodSummaryOutput: PaymentMethodSummaryOutput,
|
|
244
244
|
): string {
|
|
245
245
|
return JSON.stringify(
|
|
246
|
-
|
|
246
|
+
PaymentMethodSummaryOutput$outboundSchema.parse(paymentMethodSummaryOutput),
|
|
247
247
|
);
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
export function
|
|
250
|
+
export function paymentMethodSummaryOutputFromJSON(
|
|
251
251
|
jsonString: string,
|
|
252
|
-
): SafeParseResult<
|
|
252
|
+
): SafeParseResult<PaymentMethodSummaryOutput, SDKValidationError> {
|
|
253
253
|
return safeParse(
|
|
254
254
|
jsonString,
|
|
255
|
-
(x) =>
|
|
256
|
-
`Failed to parse '
|
|
255
|
+
(x) => PaymentMethodSummaryOutput$inboundSchema.parse(JSON.parse(x)),
|
|
256
|
+
`Failed to parse 'PaymentMethodSummaryOutput' from JSON`,
|
|
257
257
|
);
|
|
258
258
|
}
|
|
@@ -32,7 +32,7 @@ export type Context =
|
|
|
32
32
|
| WalletPaymentOptionContext
|
|
33
33
|
| PaymentOptionContext;
|
|
34
34
|
|
|
35
|
-
export type
|
|
35
|
+
export type PaymentOptionOutput = {
|
|
36
36
|
type?: "payment-option" | undefined;
|
|
37
37
|
method: string;
|
|
38
38
|
iconUrl?: string | null | undefined;
|
|
@@ -101,8 +101,8 @@ export function contextFromJSON(
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/** @internal */
|
|
104
|
-
export const
|
|
105
|
-
|
|
104
|
+
export const PaymentOptionOutput$inboundSchema: z.ZodType<
|
|
105
|
+
PaymentOptionOutput,
|
|
106
106
|
z.ZodTypeDef,
|
|
107
107
|
unknown
|
|
108
108
|
> = z.object({
|
|
@@ -129,7 +129,7 @@ export const PaymentOption$inboundSchema: z.ZodType<
|
|
|
129
129
|
});
|
|
130
130
|
|
|
131
131
|
/** @internal */
|
|
132
|
-
export type
|
|
132
|
+
export type PaymentOptionOutput$Outbound = {
|
|
133
133
|
type: "payment-option";
|
|
134
134
|
method: string;
|
|
135
135
|
icon_url?: string | null | undefined;
|
|
@@ -146,10 +146,10 @@ export type PaymentOption$Outbound = {
|
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
/** @internal */
|
|
149
|
-
export const
|
|
150
|
-
|
|
149
|
+
export const PaymentOptionOutput$outboundSchema: z.ZodType<
|
|
150
|
+
PaymentOptionOutput$Outbound,
|
|
151
151
|
z.ZodTypeDef,
|
|
152
|
-
|
|
152
|
+
PaymentOptionOutput
|
|
153
153
|
> = z.object({
|
|
154
154
|
type: z.literal("payment-option").default("payment-option" as const),
|
|
155
155
|
method: z.string(),
|
|
@@ -177,25 +177,29 @@ export const PaymentOption$outboundSchema: z.ZodType<
|
|
|
177
177
|
* @internal
|
|
178
178
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
179
179
|
*/
|
|
180
|
-
export namespace
|
|
181
|
-
/** @deprecated use `
|
|
182
|
-
export const inboundSchema =
|
|
183
|
-
/** @deprecated use `
|
|
184
|
-
export const outboundSchema =
|
|
185
|
-
/** @deprecated use `
|
|
186
|
-
export type Outbound =
|
|
180
|
+
export namespace PaymentOptionOutput$ {
|
|
181
|
+
/** @deprecated use `PaymentOptionOutput$inboundSchema` instead. */
|
|
182
|
+
export const inboundSchema = PaymentOptionOutput$inboundSchema;
|
|
183
|
+
/** @deprecated use `PaymentOptionOutput$outboundSchema` instead. */
|
|
184
|
+
export const outboundSchema = PaymentOptionOutput$outboundSchema;
|
|
185
|
+
/** @deprecated use `PaymentOptionOutput$Outbound` instead. */
|
|
186
|
+
export type Outbound = PaymentOptionOutput$Outbound;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
export function
|
|
190
|
-
|
|
189
|
+
export function paymentOptionOutputToJSON(
|
|
190
|
+
paymentOptionOutput: PaymentOptionOutput,
|
|
191
|
+
): string {
|
|
192
|
+
return JSON.stringify(
|
|
193
|
+
PaymentOptionOutput$outboundSchema.parse(paymentOptionOutput),
|
|
194
|
+
);
|
|
191
195
|
}
|
|
192
196
|
|
|
193
|
-
export function
|
|
197
|
+
export function paymentOptionOutputFromJSON(
|
|
194
198
|
jsonString: string,
|
|
195
|
-
): SafeParseResult<
|
|
199
|
+
): SafeParseResult<PaymentOptionOutput, SDKValidationError> {
|
|
196
200
|
return safeParse(
|
|
197
201
|
jsonString,
|
|
198
|
-
(x) =>
|
|
199
|
-
`Failed to parse '
|
|
202
|
+
(x) => PaymentOptionOutput$inboundSchema.parse(JSON.parse(x)),
|
|
203
|
+
`Failed to parse 'PaymentOptionOutput' from JSON`,
|
|
200
204
|
);
|
|
201
205
|
}
|
|
@@ -7,17 +7,17 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
10
|
+
PaymentOptionOutput,
|
|
11
|
+
PaymentOptionOutput$inboundSchema,
|
|
12
|
+
PaymentOptionOutput$Outbound,
|
|
13
|
+
PaymentOptionOutput$outboundSchema,
|
|
14
|
+
} from "./paymentoptionoutput.js";
|
|
15
15
|
|
|
16
16
|
export type PaymentOptions = {
|
|
17
17
|
/**
|
|
18
18
|
* A list of items returned for this request.
|
|
19
19
|
*/
|
|
20
|
-
items: Array<
|
|
20
|
+
items: Array<PaymentOptionOutput>;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
/** @internal */
|
|
@@ -26,12 +26,12 @@ export const PaymentOptions$inboundSchema: z.ZodType<
|
|
|
26
26
|
z.ZodTypeDef,
|
|
27
27
|
unknown
|
|
28
28
|
> = z.object({
|
|
29
|
-
items: z.array(
|
|
29
|
+
items: z.array(PaymentOptionOutput$inboundSchema),
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
/** @internal */
|
|
33
33
|
export type PaymentOptions$Outbound = {
|
|
34
|
-
items: Array<
|
|
34
|
+
items: Array<PaymentOptionOutput$Outbound>;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
/** @internal */
|
|
@@ -40,7 +40,7 @@ export const PaymentOptions$outboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
PaymentOptions
|
|
42
42
|
> = z.object({
|
|
43
|
-
items: z.array(
|
|
43
|
+
items: z.array(PaymentOptionOutput$outboundSchema),
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -30,17 +30,17 @@ import {
|
|
|
30
30
|
PayoutStatus$outboundSchema,
|
|
31
31
|
} from "./payoutstatus.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./
|
|
33
|
+
TransactionBuyerOutput,
|
|
34
|
+
TransactionBuyerOutput$inboundSchema,
|
|
35
|
+
TransactionBuyerOutput$Outbound,
|
|
36
|
+
TransactionBuyerOutput$outboundSchema,
|
|
37
|
+
} from "./transactionbuyeroutput.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} from "./
|
|
39
|
+
TransactionPaymentMethodOutput,
|
|
40
|
+
TransactionPaymentMethodOutput$inboundSchema,
|
|
41
|
+
TransactionPaymentMethodOutput$Outbound,
|
|
42
|
+
TransactionPaymentMethodOutput$outboundSchema,
|
|
43
|
+
} from "./transactionpaymentmethodoutput.js";
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* PayoutSummary
|
|
@@ -65,7 +65,7 @@ export type PayoutSummary = {
|
|
|
65
65
|
/**
|
|
66
66
|
* The buyer used for this payout.
|
|
67
67
|
*/
|
|
68
|
-
buyer?:
|
|
68
|
+
buyer?: TransactionBuyerOutput | null | undefined;
|
|
69
69
|
/**
|
|
70
70
|
* The type of payout to process.
|
|
71
71
|
*/
|
|
@@ -90,7 +90,7 @@ export type PayoutSummary = {
|
|
|
90
90
|
* The ID of the merchant account this payout was created for.
|
|
91
91
|
*/
|
|
92
92
|
merchantAccountId?: string | null | undefined;
|
|
93
|
-
paymentMethod:
|
|
93
|
+
paymentMethod: TransactionPaymentMethodOutput;
|
|
94
94
|
paymentService: PayoutPaymentService;
|
|
95
95
|
/**
|
|
96
96
|
* The ID of the payout in the underlying payment service.
|
|
@@ -112,14 +112,14 @@ export const PayoutSummary$inboundSchema: z.ZodType<
|
|
|
112
112
|
type: z.literal("payout").default("payout"),
|
|
113
113
|
id: z.nullable(z.string()).optional(),
|
|
114
114
|
amount: z.number().int(),
|
|
115
|
-
buyer: z.nullable(
|
|
115
|
+
buyer: z.nullable(TransactionBuyerOutput$inboundSchema).optional(),
|
|
116
116
|
category: z.nullable(PayoutCategory$inboundSchema).optional(),
|
|
117
117
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
118
118
|
currency: z.string(),
|
|
119
119
|
external_identifier: z.nullable(z.string()).optional(),
|
|
120
120
|
merchant: z.nullable(PayoutMerchantSummary$inboundSchema).optional(),
|
|
121
121
|
merchant_account_id: z.nullable(z.string()).optional(),
|
|
122
|
-
payment_method:
|
|
122
|
+
payment_method: TransactionPaymentMethodOutput$inboundSchema,
|
|
123
123
|
payment_service: PayoutPaymentService$inboundSchema,
|
|
124
124
|
payment_service_payout_id: z.nullable(z.string()).optional(),
|
|
125
125
|
status: PayoutStatus$inboundSchema,
|
|
@@ -141,14 +141,14 @@ export type PayoutSummary$Outbound = {
|
|
|
141
141
|
type: "payout";
|
|
142
142
|
id?: string | null | undefined;
|
|
143
143
|
amount: number;
|
|
144
|
-
buyer?:
|
|
144
|
+
buyer?: TransactionBuyerOutput$Outbound | null | undefined;
|
|
145
145
|
category?: string | null | undefined;
|
|
146
146
|
created_at: string;
|
|
147
147
|
currency: string;
|
|
148
148
|
external_identifier?: string | null | undefined;
|
|
149
149
|
merchant?: PayoutMerchantSummary$Outbound | null | undefined;
|
|
150
150
|
merchant_account_id?: string | null | undefined;
|
|
151
|
-
payment_method:
|
|
151
|
+
payment_method: TransactionPaymentMethodOutput$Outbound;
|
|
152
152
|
payment_service: PayoutPaymentService$Outbound;
|
|
153
153
|
payment_service_payout_id?: string | null | undefined;
|
|
154
154
|
status: string;
|
|
@@ -164,14 +164,14 @@ export const PayoutSummary$outboundSchema: z.ZodType<
|
|
|
164
164
|
type: z.literal("payout").default("payout" as const),
|
|
165
165
|
id: z.nullable(z.string()).optional(),
|
|
166
166
|
amount: z.number().int(),
|
|
167
|
-
buyer: z.nullable(
|
|
167
|
+
buyer: z.nullable(TransactionBuyerOutput$outboundSchema).optional(),
|
|
168
168
|
category: z.nullable(PayoutCategory$outboundSchema).optional(),
|
|
169
169
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
170
170
|
currency: z.string(),
|
|
171
171
|
externalIdentifier: z.nullable(z.string()).optional(),
|
|
172
172
|
merchant: z.nullable(PayoutMerchantSummary$outboundSchema).optional(),
|
|
173
173
|
merchantAccountId: z.nullable(z.string()).optional(),
|
|
174
|
-
paymentMethod:
|
|
174
|
+
paymentMethod: TransactionPaymentMethodOutput$outboundSchema,
|
|
175
175
|
paymentService: PayoutPaymentService$outboundSchema,
|
|
176
176
|
paymentServicePayoutId: z.nullable(z.string()).optional(),
|
|
177
177
|
status: PayoutStatus$outboundSchema,
|