@moovio/sdk 0.10.17 → 0.11.1
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 +868 -18
- package/bin/mcp-server.js.map +43 -9
- package/funcs/paymentLinksDisable.js +2 -2
- package/funcs/paymentLinksDisable.js.map +1 -1
- 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/lib/sdks.d.ts +3 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +6 -11
- package/lib/sdks.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/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/funcs/paymentLinksDisable.ts +3 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +11 -11
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- 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,88 @@
|
|
|
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
|
+
CapabilityID,
|
|
11
|
+
CapabilityID$inboundSchema,
|
|
12
|
+
CapabilityID$outboundSchema,
|
|
13
|
+
} from "./capabilityid.js";
|
|
14
|
+
|
|
15
|
+
export type WebhookDataCapabilityRequested = {
|
|
16
|
+
accountID: string;
|
|
17
|
+
foreignID?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Moov account capabilities.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
*
|
|
23
|
+
* The `production-app` capability might appear in your list. This is a read-only capability that Moov requests and uses for account verification purposes. The capability remains active with your account and requires no additional action.
|
|
24
|
+
*/
|
|
25
|
+
capabilityID: CapabilityID;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const WebhookDataCapabilityRequested$inboundSchema: z.ZodType<
|
|
30
|
+
WebhookDataCapabilityRequested,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
accountID: z.string(),
|
|
35
|
+
foreignID: z.string().optional(),
|
|
36
|
+
capabilityID: CapabilityID$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type WebhookDataCapabilityRequested$Outbound = {
|
|
41
|
+
accountID: string;
|
|
42
|
+
foreignID?: string | undefined;
|
|
43
|
+
capabilityID: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const WebhookDataCapabilityRequested$outboundSchema: z.ZodType<
|
|
48
|
+
WebhookDataCapabilityRequested$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
WebhookDataCapabilityRequested
|
|
51
|
+
> = z.object({
|
|
52
|
+
accountID: z.string(),
|
|
53
|
+
foreignID: z.string().optional(),
|
|
54
|
+
capabilityID: CapabilityID$outboundSchema,
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
+
*/
|
|
61
|
+
export namespace WebhookDataCapabilityRequested$ {
|
|
62
|
+
/** @deprecated use `WebhookDataCapabilityRequested$inboundSchema` instead. */
|
|
63
|
+
export const inboundSchema = WebhookDataCapabilityRequested$inboundSchema;
|
|
64
|
+
/** @deprecated use `WebhookDataCapabilityRequested$outboundSchema` instead. */
|
|
65
|
+
export const outboundSchema = WebhookDataCapabilityRequested$outboundSchema;
|
|
66
|
+
/** @deprecated use `WebhookDataCapabilityRequested$Outbound` instead. */
|
|
67
|
+
export type Outbound = WebhookDataCapabilityRequested$Outbound;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function webhookDataCapabilityRequestedToJSON(
|
|
71
|
+
webhookDataCapabilityRequested: WebhookDataCapabilityRequested,
|
|
72
|
+
): string {
|
|
73
|
+
return JSON.stringify(
|
|
74
|
+
WebhookDataCapabilityRequested$outboundSchema.parse(
|
|
75
|
+
webhookDataCapabilityRequested,
|
|
76
|
+
),
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function webhookDataCapabilityRequestedFromJSON(
|
|
81
|
+
jsonString: string,
|
|
82
|
+
): SafeParseResult<WebhookDataCapabilityRequested, SDKValidationError> {
|
|
83
|
+
return safeParse(
|
|
84
|
+
jsonString,
|
|
85
|
+
(x) => WebhookDataCapabilityRequested$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
+
`Failed to parse 'WebhookDataCapabilityRequested' from JSON`,
|
|
87
|
+
);
|
|
88
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
CapabilityID,
|
|
11
|
+
CapabilityID$inboundSchema,
|
|
12
|
+
CapabilityID$outboundSchema,
|
|
13
|
+
} from "./capabilityid.js";
|
|
14
|
+
import {
|
|
15
|
+
CapabilityStatus,
|
|
16
|
+
CapabilityStatus$inboundSchema,
|
|
17
|
+
CapabilityStatus$outboundSchema,
|
|
18
|
+
} from "./capabilitystatus.js";
|
|
19
|
+
|
|
20
|
+
export type WebhookDataCapabilityUpdated = {
|
|
21
|
+
accountID: string;
|
|
22
|
+
foreignID?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Moov account capabilities.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
*
|
|
28
|
+
* The `production-app` capability might appear in your list. This is a read-only capability that Moov requests and uses for account verification purposes. The capability remains active with your account and requires no additional action.
|
|
29
|
+
*/
|
|
30
|
+
capabilityID: CapabilityID;
|
|
31
|
+
/**
|
|
32
|
+
* The status of the capability requested for an account.
|
|
33
|
+
*/
|
|
34
|
+
status: CapabilityStatus;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const WebhookDataCapabilityUpdated$inboundSchema: z.ZodType<
|
|
39
|
+
WebhookDataCapabilityUpdated,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
accountID: z.string(),
|
|
44
|
+
foreignID: z.string().optional(),
|
|
45
|
+
capabilityID: CapabilityID$inboundSchema,
|
|
46
|
+
status: CapabilityStatus$inboundSchema,
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type WebhookDataCapabilityUpdated$Outbound = {
|
|
51
|
+
accountID: string;
|
|
52
|
+
foreignID?: string | undefined;
|
|
53
|
+
capabilityID: string;
|
|
54
|
+
status: string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const WebhookDataCapabilityUpdated$outboundSchema: z.ZodType<
|
|
59
|
+
WebhookDataCapabilityUpdated$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
WebhookDataCapabilityUpdated
|
|
62
|
+
> = z.object({
|
|
63
|
+
accountID: z.string(),
|
|
64
|
+
foreignID: z.string().optional(),
|
|
65
|
+
capabilityID: CapabilityID$outboundSchema,
|
|
66
|
+
status: CapabilityStatus$outboundSchema,
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
export namespace WebhookDataCapabilityUpdated$ {
|
|
74
|
+
/** @deprecated use `WebhookDataCapabilityUpdated$inboundSchema` instead. */
|
|
75
|
+
export const inboundSchema = WebhookDataCapabilityUpdated$inboundSchema;
|
|
76
|
+
/** @deprecated use `WebhookDataCapabilityUpdated$outboundSchema` instead. */
|
|
77
|
+
export const outboundSchema = WebhookDataCapabilityUpdated$outboundSchema;
|
|
78
|
+
/** @deprecated use `WebhookDataCapabilityUpdated$Outbound` instead. */
|
|
79
|
+
export type Outbound = WebhookDataCapabilityUpdated$Outbound;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function webhookDataCapabilityUpdatedToJSON(
|
|
83
|
+
webhookDataCapabilityUpdated: WebhookDataCapabilityUpdated,
|
|
84
|
+
): string {
|
|
85
|
+
return JSON.stringify(
|
|
86
|
+
WebhookDataCapabilityUpdated$outboundSchema.parse(
|
|
87
|
+
webhookDataCapabilityUpdated,
|
|
88
|
+
),
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function webhookDataCapabilityUpdatedFromJSON(
|
|
93
|
+
jsonString: string,
|
|
94
|
+
): SafeParseResult<WebhookDataCapabilityUpdated, SDKValidationError> {
|
|
95
|
+
return safeParse(
|
|
96
|
+
jsonString,
|
|
97
|
+
(x) => WebhookDataCapabilityUpdated$inboundSchema.parse(JSON.parse(x)),
|
|
98
|
+
`Failed to parse 'WebhookDataCapabilityUpdated' from JSON`,
|
|
99
|
+
);
|
|
100
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
CardUpdateReason,
|
|
11
|
+
CardUpdateReason$inboundSchema,
|
|
12
|
+
CardUpdateReason$outboundSchema,
|
|
13
|
+
} from "./cardupdatereason.js";
|
|
14
|
+
|
|
15
|
+
export type WebhookDataCardAutoUpdated = {
|
|
16
|
+
cardID: string;
|
|
17
|
+
accountID: string;
|
|
18
|
+
/**
|
|
19
|
+
* The results of the card update request.
|
|
20
|
+
*/
|
|
21
|
+
updateType: CardUpdateReason;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const WebhookDataCardAutoUpdated$inboundSchema: z.ZodType<
|
|
26
|
+
WebhookDataCardAutoUpdated,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
cardID: z.string(),
|
|
31
|
+
accountID: z.string(),
|
|
32
|
+
updateType: CardUpdateReason$inboundSchema,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type WebhookDataCardAutoUpdated$Outbound = {
|
|
37
|
+
cardID: string;
|
|
38
|
+
accountID: string;
|
|
39
|
+
updateType: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const WebhookDataCardAutoUpdated$outboundSchema: z.ZodType<
|
|
44
|
+
WebhookDataCardAutoUpdated$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
WebhookDataCardAutoUpdated
|
|
47
|
+
> = z.object({
|
|
48
|
+
cardID: z.string(),
|
|
49
|
+
accountID: z.string(),
|
|
50
|
+
updateType: CardUpdateReason$outboundSchema,
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace WebhookDataCardAutoUpdated$ {
|
|
58
|
+
/** @deprecated use `WebhookDataCardAutoUpdated$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema = WebhookDataCardAutoUpdated$inboundSchema;
|
|
60
|
+
/** @deprecated use `WebhookDataCardAutoUpdated$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema = WebhookDataCardAutoUpdated$outboundSchema;
|
|
62
|
+
/** @deprecated use `WebhookDataCardAutoUpdated$Outbound` instead. */
|
|
63
|
+
export type Outbound = WebhookDataCardAutoUpdated$Outbound;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function webhookDataCardAutoUpdatedToJSON(
|
|
67
|
+
webhookDataCardAutoUpdated: WebhookDataCardAutoUpdated,
|
|
68
|
+
): string {
|
|
69
|
+
return JSON.stringify(
|
|
70
|
+
WebhookDataCardAutoUpdated$outboundSchema.parse(webhookDataCardAutoUpdated),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function webhookDataCardAutoUpdatedFromJSON(
|
|
75
|
+
jsonString: string,
|
|
76
|
+
): SafeParseResult<WebhookDataCardAutoUpdated, SDKValidationError> {
|
|
77
|
+
return safeParse(
|
|
78
|
+
jsonString,
|
|
79
|
+
(x) => WebhookDataCardAutoUpdated$inboundSchema.parse(JSON.parse(x)),
|
|
80
|
+
`Failed to parse 'WebhookDataCardAutoUpdated' from JSON`,
|
|
81
|
+
);
|
|
82
|
+
}
|
|
@@ -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
|
+
}
|