@moovio/sdk 0.10.16 → 0.11.0
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/bin/mcp-server.js +864 -8
- package/bin/mcp-server.js.map +42 -8
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/components/dispute.d.ts +2 -0
- package/models/components/dispute.d.ts.map +1 -1
- package/models/components/dispute.js +2 -0
- package/models/components/dispute.js.map +1 -1
- package/models/components/index.d.ts +34 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +34 -0
- package/models/components/index.js.map +1 -1
- package/models/components/webhookdata.d.ts +57 -0
- package/models/components/webhookdata.d.ts.map +1 -0
- package/models/components/webhookdata.js +154 -0
- package/models/components/webhookdata.js.map +1 -0
- package/models/components/webhookdataaccountcreated.d.ts +31 -0
- package/models/components/webhookdataaccountcreated.d.ts.map +1 -0
- package/models/components/webhookdataaccountcreated.js +71 -0
- package/models/components/webhookdataaccountcreated.js.map +1 -0
- package/models/components/webhookdataaccountdeleted.d.ts +31 -0
- package/models/components/webhookdataaccountdeleted.d.ts.map +1 -0
- package/models/components/webhookdataaccountdeleted.js +71 -0
- package/models/components/webhookdataaccountdeleted.js.map +1 -0
- package/models/components/webhookdataaccountupdated.d.ts +31 -0
- package/models/components/webhookdataaccountupdated.d.ts.map +1 -0
- package/models/components/webhookdataaccountupdated.js +71 -0
- package/models/components/webhookdataaccountupdated.js.map +1 -0
- package/models/components/webhookdatabalanceupdated.d.ts +31 -0
- package/models/components/webhookdatabalanceupdated.d.ts.map +1 -0
- package/models/components/webhookdatabalanceupdated.js +71 -0
- package/models/components/webhookdatabalanceupdated.js.map +1 -0
- package/models/components/webhookdatabankaccountcreated.d.ts +31 -0
- package/models/components/webhookdatabankaccountcreated.d.ts.map +1 -0
- package/models/components/webhookdatabankaccountcreated.js +71 -0
- package/models/components/webhookdatabankaccountcreated.js.map +1 -0
- package/models/components/webhookdatabankaccountdeleted.d.ts +31 -0
- package/models/components/webhookdatabankaccountdeleted.d.ts.map +1 -0
- package/models/components/webhookdatabankaccountdeleted.js +71 -0
- package/models/components/webhookdatabankaccountdeleted.js.map +1 -0
- package/models/components/webhookdatabankaccountupdated.d.ts +46 -0
- package/models/components/webhookdatabankaccountupdated.d.ts.map +1 -0
- package/models/components/webhookdatabankaccountupdated.js +80 -0
- package/models/components/webhookdatabankaccountupdated.js.map +1 -0
- package/models/components/webhookdatacancellationcreated.d.ts +34 -0
- package/models/components/webhookdatacancellationcreated.d.ts.map +1 -0
- package/models/components/webhookdatacancellationcreated.js +74 -0
- package/models/components/webhookdatacancellationcreated.js.map +1 -0
- package/models/components/webhookdatacancellationupdated.d.ts +34 -0
- package/models/components/webhookdatacancellationupdated.d.ts.map +1 -0
- package/models/components/webhookdatacancellationupdated.js +74 -0
- package/models/components/webhookdatacancellationupdated.js.map +1 -0
- package/models/components/webhookdatacapabilityrequested.d.ts +41 -0
- package/models/components/webhookdatacapabilityrequested.d.ts.map +1 -0
- package/models/components/webhookdatacapabilityrequested.js +74 -0
- package/models/components/webhookdatacapabilityrequested.js.map +1 -0
- package/models/components/webhookdatacapabilityupdated.d.ts +47 -0
- package/models/components/webhookdatacapabilityupdated.d.ts.map +1 -0
- package/models/components/webhookdatacapabilityupdated.js +77 -0
- package/models/components/webhookdatacapabilityupdated.js.map +1 -0
- package/models/components/webhookdatacardautoupdated.d.ts +37 -0
- package/models/components/webhookdatacardautoupdated.d.ts.map +1 -0
- package/models/components/webhookdatacardautoupdated.js +74 -0
- package/models/components/webhookdatacardautoupdated.js.map +1 -0
- package/models/components/webhookdatadisputecreated.d.ts +51 -0
- package/models/components/webhookdatadisputecreated.d.ts.map +1 -0
- package/models/components/webhookdatadisputecreated.js +81 -0
- package/models/components/webhookdatadisputecreated.js.map +1 -0
- package/models/components/webhookdatadisputeupdated.d.ts +51 -0
- package/models/components/webhookdatadisputeupdated.d.ts.map +1 -0
- package/models/components/webhookdatadisputeupdated.js +81 -0
- package/models/components/webhookdatadisputeupdated.js.map +1 -0
- package/models/components/webhookdatanetworkidupdated.d.ts +39 -0
- package/models/components/webhookdatanetworkidupdated.d.ts.map +1 -0
- package/models/components/webhookdatanetworkidupdated.js +80 -0
- package/models/components/webhookdatanetworkidupdated.js.map +1 -0
- package/models/components/webhookdatapaymentmethoddisabled.d.ts +33 -0
- package/models/components/webhookdatapaymentmethoddisabled.d.ts.map +1 -0
- package/models/components/webhookdatapaymentmethoddisabled.js +73 -0
- package/models/components/webhookdatapaymentmethoddisabled.js.map +1 -0
- package/models/components/webhookdatapaymentmethodenabled.d.ts +33 -0
- package/models/components/webhookdatapaymentmethodenabled.d.ts.map +1 -0
- package/models/components/webhookdatapaymentmethodenabled.js +73 -0
- package/models/components/webhookdatapaymentmethodenabled.js.map +1 -0
- package/models/components/webhookdatarefundcreated.d.ts +33 -0
- package/models/components/webhookdatarefundcreated.d.ts.map +1 -0
- package/models/components/webhookdatarefundcreated.js +73 -0
- package/models/components/webhookdatarefundcreated.js.map +1 -0
- package/models/components/webhookdatarefundupdated.d.ts +36 -0
- package/models/components/webhookdatarefundupdated.d.ts.map +1 -0
- package/models/components/webhookdatarefundupdated.js +76 -0
- package/models/components/webhookdatarefundupdated.js.map +1 -0
- package/models/components/webhookdatarepresentativecreated.d.ts +31 -0
- package/models/components/webhookdatarepresentativecreated.d.ts.map +1 -0
- package/models/components/webhookdatarepresentativecreated.js +71 -0
- package/models/components/webhookdatarepresentativecreated.js.map +1 -0
- package/models/components/webhookdatarepresentativedisabled.d.ts +31 -0
- package/models/components/webhookdatarepresentativedisabled.d.ts.map +1 -0
- package/models/components/webhookdatarepresentativedisabled.js +71 -0
- package/models/components/webhookdatarepresentativedisabled.js.map +1 -0
- package/models/components/webhookdatarepresentativeupdated.d.ts +31 -0
- package/models/components/webhookdatarepresentativeupdated.d.ts.map +1 -0
- package/models/components/webhookdatarepresentativeupdated.js +71 -0
- package/models/components/webhookdatarepresentativeupdated.js.map +1 -0
- package/models/components/webhookdatasweepcreated.d.ts +31 -0
- package/models/components/webhookdatasweepcreated.d.ts.map +1 -0
- package/models/components/webhookdatasweepcreated.js +71 -0
- package/models/components/webhookdatasweepcreated.js.map +1 -0
- package/models/components/webhookdatasweepupdated.d.ts +36 -0
- package/models/components/webhookdatasweepupdated.d.ts.map +1 -0
- package/models/components/webhookdatasweepupdated.js +76 -0
- package/models/components/webhookdatasweepupdated.js.map +1 -0
- package/models/components/webhookdataterminalapplicationcreated.d.ts +35 -0
- package/models/components/webhookdataterminalapplicationcreated.d.ts.map +1 -0
- package/models/components/webhookdataterminalapplicationcreated.js +72 -0
- package/models/components/webhookdataterminalapplicationcreated.js.map +1 -0
- package/models/components/webhookdataterminalapplicationupdated.d.ts +35 -0
- package/models/components/webhookdataterminalapplicationupdated.d.ts.map +1 -0
- package/models/components/webhookdataterminalapplicationupdated.js +72 -0
- package/models/components/webhookdataterminalapplicationupdated.js.map +1 -0
- package/models/components/webhookdatatransfercreated.d.ts +40 -0
- package/models/components/webhookdatatransfercreated.d.ts.map +1 -0
- package/models/components/webhookdatatransfercreated.js +74 -0
- package/models/components/webhookdatatransfercreated.js.map +1 -0
- package/models/components/webhookdatatransferupdated.d.ts +51 -0
- package/models/components/webhookdatatransferupdated.d.ts.map +1 -0
- package/models/components/webhookdatatransferupdated.js +79 -0
- package/models/components/webhookdatatransferupdated.js.map +1 -0
- package/models/components/webhookdatawallettransactionupdated.d.ts +42 -0
- package/models/components/webhookdatawallettransactionupdated.d.ts.map +1 -0
- package/models/components/webhookdatawallettransactionupdated.js +79 -0
- package/models/components/webhookdatawallettransactionupdated.js.map +1 -0
- package/models/components/webhookevent.d.ts +49 -0
- package/models/components/webhookevent.d.ts.map +1 -0
- package/models/components/webhookevent.js +77 -0
- package/models/components/webhookevent.js.map +1 -0
- package/models/components/webhookeventtype.d.ts +115 -0
- package/models/components/webhookeventtype.d.ts.map +1 -0
- package/models/components/webhookeventtype.js +90 -0
- package/models/components/webhookeventtype.js.map +1 -0
- package/models/components/webhooktransferpaymentmethoddetails.d.ts +34 -0
- package/models/components/webhooktransferpaymentmethoddetails.d.ts.map +1 -0
- package/models/components/webhooktransferpaymentmethoddetails.js +71 -0
- package/models/components/webhooktransferpaymentmethoddetails.js.map +1 -0
- package/models/components/webhookwalletavailablebalance.d.ts +36 -0
- package/models/components/webhookwalletavailablebalance.d.ts.map +1 -0
- package/models/components/webhookwalletavailablebalance.js +73 -0
- package/models/components/webhookwalletavailablebalance.js.map +1 -0
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/dispute.ts +6 -0
- package/src/models/components/index.ts +34 -0
- package/src/models/components/webhookdata.ts +349 -0
- package/src/models/components/webhookdataaccountcreated.ts +70 -0
- package/src/models/components/webhookdataaccountdeleted.ts +70 -0
- package/src/models/components/webhookdataaccountupdated.ts +70 -0
- package/src/models/components/webhookdatabalanceupdated.ts +70 -0
- package/src/models/components/webhookdatabankaccountcreated.ts +72 -0
- package/src/models/components/webhookdatabankaccountdeleted.ts +72 -0
- package/src/models/components/webhookdatabankaccountupdated.ts +106 -0
- package/src/models/components/webhookdatacancellationcreated.ts +81 -0
- package/src/models/components/webhookdatacancellationupdated.ts +81 -0
- package/src/models/components/webhookdatacapabilityrequested.ts +88 -0
- package/src/models/components/webhookdatacapabilityupdated.ts +100 -0
- package/src/models/components/webhookdatacardautoupdated.ts +82 -0
- package/src/models/components/webhookdatadisputecreated.ts +106 -0
- package/src/models/components/webhookdatadisputeupdated.ts +106 -0
- package/src/models/components/webhookdatanetworkidupdated.ts +89 -0
- package/src/models/components/webhookdatapaymentmethoddisabled.ts +76 -0
- package/src/models/components/webhookdatapaymentmethodenabled.ts +76 -0
- package/src/models/components/webhookdatarefundcreated.ts +74 -0
- package/src/models/components/webhookdatarefundupdated.ts +83 -0
- package/src/models/components/webhookdatarepresentativecreated.ts +72 -0
- package/src/models/components/webhookdatarepresentativedisabled.ts +73 -0
- package/src/models/components/webhookdatarepresentativeupdated.ts +72 -0
- package/src/models/components/webhookdatasweepcreated.ts +70 -0
- package/src/models/components/webhookdatasweepupdated.ts +83 -0
- package/src/models/components/webhookdataterminalapplicationcreated.ts +83 -0
- package/src/models/components/webhookdataterminalapplicationupdated.ts +83 -0
- package/src/models/components/webhookdatatransfercreated.ts +85 -0
- package/src/models/components/webhookdatatransferupdated.ts +105 -0
- package/src/models/components/webhookdatawallettransactionupdated.ts +101 -0
- package/src/models/components/webhookevent.ts +97 -0
- package/src/models/components/webhookeventtype.ts +66 -0
- package/src/models/components/webhooktransferpaymentmethoddetails.ts +78 -0
- package/src/models/components/webhookwalletavailablebalance.ts +79 -0
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
DisputePhase,
|
|
11
|
+
DisputePhase$inboundSchema,
|
|
12
|
+
DisputePhase$outboundSchema,
|
|
13
|
+
} from "./disputephase.js";
|
|
14
|
+
import {
|
|
15
|
+
DisputeStatus,
|
|
16
|
+
DisputeStatus$inboundSchema,
|
|
17
|
+
DisputeStatus$outboundSchema,
|
|
18
|
+
} from "./disputestatus.js";
|
|
19
|
+
|
|
20
|
+
export type WebhookDataDisputeCreated = {
|
|
21
|
+
accountID: string;
|
|
22
|
+
transferID: string;
|
|
23
|
+
transactionID: string;
|
|
24
|
+
disputeID: string;
|
|
25
|
+
/**
|
|
26
|
+
* The status of a particular dispute.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
*
|
|
30
|
+
* Read our [disputes guide](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/disputes/#dispute-statuses) to learn what each status means.
|
|
31
|
+
*/
|
|
32
|
+
status: DisputeStatus;
|
|
33
|
+
/**
|
|
34
|
+
* The phase of a dispute within the dispute lifecycle.
|
|
35
|
+
*/
|
|
36
|
+
phase: DisputePhase;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const WebhookDataDisputeCreated$inboundSchema: z.ZodType<
|
|
41
|
+
WebhookDataDisputeCreated,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
accountID: z.string(),
|
|
46
|
+
transferID: z.string(),
|
|
47
|
+
transactionID: z.string(),
|
|
48
|
+
disputeID: z.string(),
|
|
49
|
+
status: DisputeStatus$inboundSchema,
|
|
50
|
+
phase: DisputePhase$inboundSchema,
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type WebhookDataDisputeCreated$Outbound = {
|
|
55
|
+
accountID: string;
|
|
56
|
+
transferID: string;
|
|
57
|
+
transactionID: string;
|
|
58
|
+
disputeID: string;
|
|
59
|
+
status: string;
|
|
60
|
+
phase: string;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const WebhookDataDisputeCreated$outboundSchema: z.ZodType<
|
|
65
|
+
WebhookDataDisputeCreated$Outbound,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
WebhookDataDisputeCreated
|
|
68
|
+
> = z.object({
|
|
69
|
+
accountID: z.string(),
|
|
70
|
+
transferID: z.string(),
|
|
71
|
+
transactionID: z.string(),
|
|
72
|
+
disputeID: z.string(),
|
|
73
|
+
status: DisputeStatus$outboundSchema,
|
|
74
|
+
phase: DisputePhase$outboundSchema,
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
80
|
+
*/
|
|
81
|
+
export namespace WebhookDataDisputeCreated$ {
|
|
82
|
+
/** @deprecated use `WebhookDataDisputeCreated$inboundSchema` instead. */
|
|
83
|
+
export const inboundSchema = WebhookDataDisputeCreated$inboundSchema;
|
|
84
|
+
/** @deprecated use `WebhookDataDisputeCreated$outboundSchema` instead. */
|
|
85
|
+
export const outboundSchema = WebhookDataDisputeCreated$outboundSchema;
|
|
86
|
+
/** @deprecated use `WebhookDataDisputeCreated$Outbound` instead. */
|
|
87
|
+
export type Outbound = WebhookDataDisputeCreated$Outbound;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function webhookDataDisputeCreatedToJSON(
|
|
91
|
+
webhookDataDisputeCreated: WebhookDataDisputeCreated,
|
|
92
|
+
): string {
|
|
93
|
+
return JSON.stringify(
|
|
94
|
+
WebhookDataDisputeCreated$outboundSchema.parse(webhookDataDisputeCreated),
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function webhookDataDisputeCreatedFromJSON(
|
|
99
|
+
jsonString: string,
|
|
100
|
+
): SafeParseResult<WebhookDataDisputeCreated, SDKValidationError> {
|
|
101
|
+
return safeParse(
|
|
102
|
+
jsonString,
|
|
103
|
+
(x) => WebhookDataDisputeCreated$inboundSchema.parse(JSON.parse(x)),
|
|
104
|
+
`Failed to parse 'WebhookDataDisputeCreated' from JSON`,
|
|
105
|
+
);
|
|
106
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
DisputePhase,
|
|
11
|
+
DisputePhase$inboundSchema,
|
|
12
|
+
DisputePhase$outboundSchema,
|
|
13
|
+
} from "./disputephase.js";
|
|
14
|
+
import {
|
|
15
|
+
DisputeStatus,
|
|
16
|
+
DisputeStatus$inboundSchema,
|
|
17
|
+
DisputeStatus$outboundSchema,
|
|
18
|
+
} from "./disputestatus.js";
|
|
19
|
+
|
|
20
|
+
export type WebhookDataDisputeUpdated = {
|
|
21
|
+
accountID: string;
|
|
22
|
+
transferID: string;
|
|
23
|
+
transactionID: string;
|
|
24
|
+
disputeID: string;
|
|
25
|
+
/**
|
|
26
|
+
* The status of a particular dispute.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
*
|
|
30
|
+
* Read our [disputes guide](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/disputes/#dispute-statuses) to learn what each status means.
|
|
31
|
+
*/
|
|
32
|
+
status: DisputeStatus;
|
|
33
|
+
/**
|
|
34
|
+
* The phase of a dispute within the dispute lifecycle.
|
|
35
|
+
*/
|
|
36
|
+
phase: DisputePhase;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const WebhookDataDisputeUpdated$inboundSchema: z.ZodType<
|
|
41
|
+
WebhookDataDisputeUpdated,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
accountID: z.string(),
|
|
46
|
+
transferID: z.string(),
|
|
47
|
+
transactionID: z.string(),
|
|
48
|
+
disputeID: z.string(),
|
|
49
|
+
status: DisputeStatus$inboundSchema,
|
|
50
|
+
phase: DisputePhase$inboundSchema,
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type WebhookDataDisputeUpdated$Outbound = {
|
|
55
|
+
accountID: string;
|
|
56
|
+
transferID: string;
|
|
57
|
+
transactionID: string;
|
|
58
|
+
disputeID: string;
|
|
59
|
+
status: string;
|
|
60
|
+
phase: string;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const WebhookDataDisputeUpdated$outboundSchema: z.ZodType<
|
|
65
|
+
WebhookDataDisputeUpdated$Outbound,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
WebhookDataDisputeUpdated
|
|
68
|
+
> = z.object({
|
|
69
|
+
accountID: z.string(),
|
|
70
|
+
transferID: z.string(),
|
|
71
|
+
transactionID: z.string(),
|
|
72
|
+
disputeID: z.string(),
|
|
73
|
+
status: DisputeStatus$outboundSchema,
|
|
74
|
+
phase: DisputePhase$outboundSchema,
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
80
|
+
*/
|
|
81
|
+
export namespace WebhookDataDisputeUpdated$ {
|
|
82
|
+
/** @deprecated use `WebhookDataDisputeUpdated$inboundSchema` instead. */
|
|
83
|
+
export const inboundSchema = WebhookDataDisputeUpdated$inboundSchema;
|
|
84
|
+
/** @deprecated use `WebhookDataDisputeUpdated$outboundSchema` instead. */
|
|
85
|
+
export const outboundSchema = WebhookDataDisputeUpdated$outboundSchema;
|
|
86
|
+
/** @deprecated use `WebhookDataDisputeUpdated$Outbound` instead. */
|
|
87
|
+
export type Outbound = WebhookDataDisputeUpdated$Outbound;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function webhookDataDisputeUpdatedToJSON(
|
|
91
|
+
webhookDataDisputeUpdated: WebhookDataDisputeUpdated,
|
|
92
|
+
): string {
|
|
93
|
+
return JSON.stringify(
|
|
94
|
+
WebhookDataDisputeUpdated$outboundSchema.parse(webhookDataDisputeUpdated),
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function webhookDataDisputeUpdatedFromJSON(
|
|
99
|
+
jsonString: string,
|
|
100
|
+
): SafeParseResult<WebhookDataDisputeUpdated, SDKValidationError> {
|
|
101
|
+
return safeParse(
|
|
102
|
+
jsonString,
|
|
103
|
+
(x) => WebhookDataDisputeUpdated$inboundSchema.parse(JSON.parse(x)),
|
|
104
|
+
`Failed to parse 'WebhookDataDisputeUpdated' from JSON`,
|
|
105
|
+
);
|
|
106
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { 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 WebhookDataNetworkIDUpdated = {
|
|
11
|
+
accountID: string;
|
|
12
|
+
visaMid?: string | undefined;
|
|
13
|
+
mastercardMid?: string | undefined;
|
|
14
|
+
discoverMid?: string | undefined;
|
|
15
|
+
amexMid?: string | undefined;
|
|
16
|
+
updatedOn?: Date | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const WebhookDataNetworkIDUpdated$inboundSchema: z.ZodType<
|
|
21
|
+
WebhookDataNetworkIDUpdated,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
accountID: z.string(),
|
|
26
|
+
visaMid: z.string().optional(),
|
|
27
|
+
mastercardMid: z.string().optional(),
|
|
28
|
+
discoverMid: z.string().optional(),
|
|
29
|
+
amexMid: z.string().optional(),
|
|
30
|
+
updatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
31
|
+
.optional(),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type WebhookDataNetworkIDUpdated$Outbound = {
|
|
36
|
+
accountID: string;
|
|
37
|
+
visaMid?: string | undefined;
|
|
38
|
+
mastercardMid?: string | undefined;
|
|
39
|
+
discoverMid?: string | undefined;
|
|
40
|
+
amexMid?: string | undefined;
|
|
41
|
+
updatedOn?: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const WebhookDataNetworkIDUpdated$outboundSchema: z.ZodType<
|
|
46
|
+
WebhookDataNetworkIDUpdated$Outbound,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
WebhookDataNetworkIDUpdated
|
|
49
|
+
> = z.object({
|
|
50
|
+
accountID: z.string(),
|
|
51
|
+
visaMid: z.string().optional(),
|
|
52
|
+
mastercardMid: z.string().optional(),
|
|
53
|
+
discoverMid: z.string().optional(),
|
|
54
|
+
amexMid: z.string().optional(),
|
|
55
|
+
updatedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
export namespace WebhookDataNetworkIDUpdated$ {
|
|
63
|
+
/** @deprecated use `WebhookDataNetworkIDUpdated$inboundSchema` instead. */
|
|
64
|
+
export const inboundSchema = WebhookDataNetworkIDUpdated$inboundSchema;
|
|
65
|
+
/** @deprecated use `WebhookDataNetworkIDUpdated$outboundSchema` instead. */
|
|
66
|
+
export const outboundSchema = WebhookDataNetworkIDUpdated$outboundSchema;
|
|
67
|
+
/** @deprecated use `WebhookDataNetworkIDUpdated$Outbound` instead. */
|
|
68
|
+
export type Outbound = WebhookDataNetworkIDUpdated$Outbound;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function webhookDataNetworkIDUpdatedToJSON(
|
|
72
|
+
webhookDataNetworkIDUpdated: WebhookDataNetworkIDUpdated,
|
|
73
|
+
): string {
|
|
74
|
+
return JSON.stringify(
|
|
75
|
+
WebhookDataNetworkIDUpdated$outboundSchema.parse(
|
|
76
|
+
webhookDataNetworkIDUpdated,
|
|
77
|
+
),
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function webhookDataNetworkIDUpdatedFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<WebhookDataNetworkIDUpdated, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => WebhookDataNetworkIDUpdated$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'WebhookDataNetworkIDUpdated' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type WebhookDataPaymentMethodDisabled = {
|
|
11
|
+
accountID: string;
|
|
12
|
+
paymentMethodID: string;
|
|
13
|
+
sourceID: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const WebhookDataPaymentMethodDisabled$inboundSchema: z.ZodType<
|
|
18
|
+
WebhookDataPaymentMethodDisabled,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
accountID: z.string(),
|
|
23
|
+
paymentMethodID: z.string(),
|
|
24
|
+
sourceID: z.string(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type WebhookDataPaymentMethodDisabled$Outbound = {
|
|
29
|
+
accountID: string;
|
|
30
|
+
paymentMethodID: string;
|
|
31
|
+
sourceID: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const WebhookDataPaymentMethodDisabled$outboundSchema: z.ZodType<
|
|
36
|
+
WebhookDataPaymentMethodDisabled$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
WebhookDataPaymentMethodDisabled
|
|
39
|
+
> = z.object({
|
|
40
|
+
accountID: z.string(),
|
|
41
|
+
paymentMethodID: z.string(),
|
|
42
|
+
sourceID: z.string(),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
+
*/
|
|
49
|
+
export namespace WebhookDataPaymentMethodDisabled$ {
|
|
50
|
+
/** @deprecated use `WebhookDataPaymentMethodDisabled$inboundSchema` instead. */
|
|
51
|
+
export const inboundSchema = WebhookDataPaymentMethodDisabled$inboundSchema;
|
|
52
|
+
/** @deprecated use `WebhookDataPaymentMethodDisabled$outboundSchema` instead. */
|
|
53
|
+
export const outboundSchema = WebhookDataPaymentMethodDisabled$outboundSchema;
|
|
54
|
+
/** @deprecated use `WebhookDataPaymentMethodDisabled$Outbound` instead. */
|
|
55
|
+
export type Outbound = WebhookDataPaymentMethodDisabled$Outbound;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function webhookDataPaymentMethodDisabledToJSON(
|
|
59
|
+
webhookDataPaymentMethodDisabled: WebhookDataPaymentMethodDisabled,
|
|
60
|
+
): string {
|
|
61
|
+
return JSON.stringify(
|
|
62
|
+
WebhookDataPaymentMethodDisabled$outboundSchema.parse(
|
|
63
|
+
webhookDataPaymentMethodDisabled,
|
|
64
|
+
),
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function webhookDataPaymentMethodDisabledFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<WebhookDataPaymentMethodDisabled, SDKValidationError> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) => WebhookDataPaymentMethodDisabled$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'WebhookDataPaymentMethodDisabled' from JSON`,
|
|
75
|
+
);
|
|
76
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type WebhookDataPaymentMethodEnabled = {
|
|
11
|
+
accountID: string;
|
|
12
|
+
paymentMethodID: string;
|
|
13
|
+
sourceID: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const WebhookDataPaymentMethodEnabled$inboundSchema: z.ZodType<
|
|
18
|
+
WebhookDataPaymentMethodEnabled,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
accountID: z.string(),
|
|
23
|
+
paymentMethodID: z.string(),
|
|
24
|
+
sourceID: z.string(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type WebhookDataPaymentMethodEnabled$Outbound = {
|
|
29
|
+
accountID: string;
|
|
30
|
+
paymentMethodID: string;
|
|
31
|
+
sourceID: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const WebhookDataPaymentMethodEnabled$outboundSchema: z.ZodType<
|
|
36
|
+
WebhookDataPaymentMethodEnabled$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
WebhookDataPaymentMethodEnabled
|
|
39
|
+
> = z.object({
|
|
40
|
+
accountID: z.string(),
|
|
41
|
+
paymentMethodID: z.string(),
|
|
42
|
+
sourceID: z.string(),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
+
*/
|
|
49
|
+
export namespace WebhookDataPaymentMethodEnabled$ {
|
|
50
|
+
/** @deprecated use `WebhookDataPaymentMethodEnabled$inboundSchema` instead. */
|
|
51
|
+
export const inboundSchema = WebhookDataPaymentMethodEnabled$inboundSchema;
|
|
52
|
+
/** @deprecated use `WebhookDataPaymentMethodEnabled$outboundSchema` instead. */
|
|
53
|
+
export const outboundSchema = WebhookDataPaymentMethodEnabled$outboundSchema;
|
|
54
|
+
/** @deprecated use `WebhookDataPaymentMethodEnabled$Outbound` instead. */
|
|
55
|
+
export type Outbound = WebhookDataPaymentMethodEnabled$Outbound;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function webhookDataPaymentMethodEnabledToJSON(
|
|
59
|
+
webhookDataPaymentMethodEnabled: WebhookDataPaymentMethodEnabled,
|
|
60
|
+
): string {
|
|
61
|
+
return JSON.stringify(
|
|
62
|
+
WebhookDataPaymentMethodEnabled$outboundSchema.parse(
|
|
63
|
+
webhookDataPaymentMethodEnabled,
|
|
64
|
+
),
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function webhookDataPaymentMethodEnabledFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<WebhookDataPaymentMethodEnabled, SDKValidationError> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) => WebhookDataPaymentMethodEnabled$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'WebhookDataPaymentMethodEnabled' from JSON`,
|
|
75
|
+
);
|
|
76
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 WebhookDataRefundCreated = {
|
|
11
|
+
accountID: string;
|
|
12
|
+
transferID: string;
|
|
13
|
+
refundID: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const WebhookDataRefundCreated$inboundSchema: z.ZodType<
|
|
18
|
+
WebhookDataRefundCreated,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
accountID: z.string(),
|
|
23
|
+
transferID: z.string(),
|
|
24
|
+
refundID: z.string(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type WebhookDataRefundCreated$Outbound = {
|
|
29
|
+
accountID: string;
|
|
30
|
+
transferID: string;
|
|
31
|
+
refundID: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const WebhookDataRefundCreated$outboundSchema: z.ZodType<
|
|
36
|
+
WebhookDataRefundCreated$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
WebhookDataRefundCreated
|
|
39
|
+
> = z.object({
|
|
40
|
+
accountID: z.string(),
|
|
41
|
+
transferID: z.string(),
|
|
42
|
+
refundID: z.string(),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
+
*/
|
|
49
|
+
export namespace WebhookDataRefundCreated$ {
|
|
50
|
+
/** @deprecated use `WebhookDataRefundCreated$inboundSchema` instead. */
|
|
51
|
+
export const inboundSchema = WebhookDataRefundCreated$inboundSchema;
|
|
52
|
+
/** @deprecated use `WebhookDataRefundCreated$outboundSchema` instead. */
|
|
53
|
+
export const outboundSchema = WebhookDataRefundCreated$outboundSchema;
|
|
54
|
+
/** @deprecated use `WebhookDataRefundCreated$Outbound` instead. */
|
|
55
|
+
export type Outbound = WebhookDataRefundCreated$Outbound;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function webhookDataRefundCreatedToJSON(
|
|
59
|
+
webhookDataRefundCreated: WebhookDataRefundCreated,
|
|
60
|
+
): string {
|
|
61
|
+
return JSON.stringify(
|
|
62
|
+
WebhookDataRefundCreated$outboundSchema.parse(webhookDataRefundCreated),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function webhookDataRefundCreatedFromJSON(
|
|
67
|
+
jsonString: string,
|
|
68
|
+
): SafeParseResult<WebhookDataRefundCreated, SDKValidationError> {
|
|
69
|
+
return safeParse(
|
|
70
|
+
jsonString,
|
|
71
|
+
(x) => WebhookDataRefundCreated$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
+
`Failed to parse 'WebhookDataRefundCreated' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
RefundStatus,
|
|
11
|
+
RefundStatus$inboundSchema,
|
|
12
|
+
RefundStatus$outboundSchema,
|
|
13
|
+
} from "./refundstatus.js";
|
|
14
|
+
|
|
15
|
+
export type WebhookDataRefundUpdated = {
|
|
16
|
+
accountID: string;
|
|
17
|
+
transferID: string;
|
|
18
|
+
refundID: string;
|
|
19
|
+
status: RefundStatus;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const WebhookDataRefundUpdated$inboundSchema: z.ZodType<
|
|
24
|
+
WebhookDataRefundUpdated,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
accountID: z.string(),
|
|
29
|
+
transferID: z.string(),
|
|
30
|
+
refundID: z.string(),
|
|
31
|
+
status: RefundStatus$inboundSchema,
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type WebhookDataRefundUpdated$Outbound = {
|
|
36
|
+
accountID: string;
|
|
37
|
+
transferID: string;
|
|
38
|
+
refundID: string;
|
|
39
|
+
status: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const WebhookDataRefundUpdated$outboundSchema: z.ZodType<
|
|
44
|
+
WebhookDataRefundUpdated$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
WebhookDataRefundUpdated
|
|
47
|
+
> = z.object({
|
|
48
|
+
accountID: z.string(),
|
|
49
|
+
transferID: z.string(),
|
|
50
|
+
refundID: z.string(),
|
|
51
|
+
status: RefundStatus$outboundSchema,
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export namespace WebhookDataRefundUpdated$ {
|
|
59
|
+
/** @deprecated use `WebhookDataRefundUpdated$inboundSchema` instead. */
|
|
60
|
+
export const inboundSchema = WebhookDataRefundUpdated$inboundSchema;
|
|
61
|
+
/** @deprecated use `WebhookDataRefundUpdated$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema = WebhookDataRefundUpdated$outboundSchema;
|
|
63
|
+
/** @deprecated use `WebhookDataRefundUpdated$Outbound` instead. */
|
|
64
|
+
export type Outbound = WebhookDataRefundUpdated$Outbound;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function webhookDataRefundUpdatedToJSON(
|
|
68
|
+
webhookDataRefundUpdated: WebhookDataRefundUpdated,
|
|
69
|
+
): string {
|
|
70
|
+
return JSON.stringify(
|
|
71
|
+
WebhookDataRefundUpdated$outboundSchema.parse(webhookDataRefundUpdated),
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function webhookDataRefundUpdatedFromJSON(
|
|
76
|
+
jsonString: string,
|
|
77
|
+
): SafeParseResult<WebhookDataRefundUpdated, SDKValidationError> {
|
|
78
|
+
return safeParse(
|
|
79
|
+
jsonString,
|
|
80
|
+
(x) => WebhookDataRefundUpdated$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'WebhookDataRefundUpdated' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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 WebhookDataRepresentativeCreated = {
|
|
11
|
+
accountID: string;
|
|
12
|
+
representativeID: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const WebhookDataRepresentativeCreated$inboundSchema: z.ZodType<
|
|
17
|
+
WebhookDataRepresentativeCreated,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
accountID: z.string(),
|
|
22
|
+
representativeID: z.string(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type WebhookDataRepresentativeCreated$Outbound = {
|
|
27
|
+
accountID: string;
|
|
28
|
+
representativeID: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const WebhookDataRepresentativeCreated$outboundSchema: z.ZodType<
|
|
33
|
+
WebhookDataRepresentativeCreated$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
WebhookDataRepresentativeCreated
|
|
36
|
+
> = z.object({
|
|
37
|
+
accountID: z.string(),
|
|
38
|
+
representativeID: z.string(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
+
*/
|
|
45
|
+
export namespace WebhookDataRepresentativeCreated$ {
|
|
46
|
+
/** @deprecated use `WebhookDataRepresentativeCreated$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = WebhookDataRepresentativeCreated$inboundSchema;
|
|
48
|
+
/** @deprecated use `WebhookDataRepresentativeCreated$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = WebhookDataRepresentativeCreated$outboundSchema;
|
|
50
|
+
/** @deprecated use `WebhookDataRepresentativeCreated$Outbound` instead. */
|
|
51
|
+
export type Outbound = WebhookDataRepresentativeCreated$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function webhookDataRepresentativeCreatedToJSON(
|
|
55
|
+
webhookDataRepresentativeCreated: WebhookDataRepresentativeCreated,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
WebhookDataRepresentativeCreated$outboundSchema.parse(
|
|
59
|
+
webhookDataRepresentativeCreated,
|
|
60
|
+
),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function webhookDataRepresentativeCreatedFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<WebhookDataRepresentativeCreated, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => WebhookDataRepresentativeCreated$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'WebhookDataRepresentativeCreated' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|