@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,349 @@
|
|
|
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
|
+
WebhookDataAccountCreated,
|
|
11
|
+
WebhookDataAccountCreated$inboundSchema,
|
|
12
|
+
WebhookDataAccountCreated$Outbound,
|
|
13
|
+
WebhookDataAccountCreated$outboundSchema,
|
|
14
|
+
} from "./webhookdataaccountcreated.js";
|
|
15
|
+
import {
|
|
16
|
+
WebhookDataAccountDeleted,
|
|
17
|
+
WebhookDataAccountDeleted$inboundSchema,
|
|
18
|
+
WebhookDataAccountDeleted$Outbound,
|
|
19
|
+
WebhookDataAccountDeleted$outboundSchema,
|
|
20
|
+
} from "./webhookdataaccountdeleted.js";
|
|
21
|
+
import {
|
|
22
|
+
WebhookDataAccountUpdated,
|
|
23
|
+
WebhookDataAccountUpdated$inboundSchema,
|
|
24
|
+
WebhookDataAccountUpdated$Outbound,
|
|
25
|
+
WebhookDataAccountUpdated$outboundSchema,
|
|
26
|
+
} from "./webhookdataaccountupdated.js";
|
|
27
|
+
import {
|
|
28
|
+
WebhookDataBalanceUpdated,
|
|
29
|
+
WebhookDataBalanceUpdated$inboundSchema,
|
|
30
|
+
WebhookDataBalanceUpdated$Outbound,
|
|
31
|
+
WebhookDataBalanceUpdated$outboundSchema,
|
|
32
|
+
} from "./webhookdatabalanceupdated.js";
|
|
33
|
+
import {
|
|
34
|
+
WebhookDataBankAccountCreated,
|
|
35
|
+
WebhookDataBankAccountCreated$inboundSchema,
|
|
36
|
+
WebhookDataBankAccountCreated$Outbound,
|
|
37
|
+
WebhookDataBankAccountCreated$outboundSchema,
|
|
38
|
+
} from "./webhookdatabankaccountcreated.js";
|
|
39
|
+
import {
|
|
40
|
+
WebhookDataBankAccountDeleted,
|
|
41
|
+
WebhookDataBankAccountDeleted$inboundSchema,
|
|
42
|
+
WebhookDataBankAccountDeleted$Outbound,
|
|
43
|
+
WebhookDataBankAccountDeleted$outboundSchema,
|
|
44
|
+
} from "./webhookdatabankaccountdeleted.js";
|
|
45
|
+
import {
|
|
46
|
+
WebhookDataBankAccountUpdated,
|
|
47
|
+
WebhookDataBankAccountUpdated$inboundSchema,
|
|
48
|
+
WebhookDataBankAccountUpdated$Outbound,
|
|
49
|
+
WebhookDataBankAccountUpdated$outboundSchema,
|
|
50
|
+
} from "./webhookdatabankaccountupdated.js";
|
|
51
|
+
import {
|
|
52
|
+
WebhookDataCancellationCreated,
|
|
53
|
+
WebhookDataCancellationCreated$inboundSchema,
|
|
54
|
+
WebhookDataCancellationCreated$Outbound,
|
|
55
|
+
WebhookDataCancellationCreated$outboundSchema,
|
|
56
|
+
} from "./webhookdatacancellationcreated.js";
|
|
57
|
+
import {
|
|
58
|
+
WebhookDataCancellationUpdated,
|
|
59
|
+
WebhookDataCancellationUpdated$inboundSchema,
|
|
60
|
+
WebhookDataCancellationUpdated$Outbound,
|
|
61
|
+
WebhookDataCancellationUpdated$outboundSchema,
|
|
62
|
+
} from "./webhookdatacancellationupdated.js";
|
|
63
|
+
import {
|
|
64
|
+
WebhookDataCapabilityRequested,
|
|
65
|
+
WebhookDataCapabilityRequested$inboundSchema,
|
|
66
|
+
WebhookDataCapabilityRequested$Outbound,
|
|
67
|
+
WebhookDataCapabilityRequested$outboundSchema,
|
|
68
|
+
} from "./webhookdatacapabilityrequested.js";
|
|
69
|
+
import {
|
|
70
|
+
WebhookDataCapabilityUpdated,
|
|
71
|
+
WebhookDataCapabilityUpdated$inboundSchema,
|
|
72
|
+
WebhookDataCapabilityUpdated$Outbound,
|
|
73
|
+
WebhookDataCapabilityUpdated$outboundSchema,
|
|
74
|
+
} from "./webhookdatacapabilityupdated.js";
|
|
75
|
+
import {
|
|
76
|
+
WebhookDataCardAutoUpdated,
|
|
77
|
+
WebhookDataCardAutoUpdated$inboundSchema,
|
|
78
|
+
WebhookDataCardAutoUpdated$Outbound,
|
|
79
|
+
WebhookDataCardAutoUpdated$outboundSchema,
|
|
80
|
+
} from "./webhookdatacardautoupdated.js";
|
|
81
|
+
import {
|
|
82
|
+
WebhookDataDisputeCreated,
|
|
83
|
+
WebhookDataDisputeCreated$inboundSchema,
|
|
84
|
+
WebhookDataDisputeCreated$Outbound,
|
|
85
|
+
WebhookDataDisputeCreated$outboundSchema,
|
|
86
|
+
} from "./webhookdatadisputecreated.js";
|
|
87
|
+
import {
|
|
88
|
+
WebhookDataDisputeUpdated,
|
|
89
|
+
WebhookDataDisputeUpdated$inboundSchema,
|
|
90
|
+
WebhookDataDisputeUpdated$Outbound,
|
|
91
|
+
WebhookDataDisputeUpdated$outboundSchema,
|
|
92
|
+
} from "./webhookdatadisputeupdated.js";
|
|
93
|
+
import {
|
|
94
|
+
WebhookDataNetworkIDUpdated,
|
|
95
|
+
WebhookDataNetworkIDUpdated$inboundSchema,
|
|
96
|
+
WebhookDataNetworkIDUpdated$Outbound,
|
|
97
|
+
WebhookDataNetworkIDUpdated$outboundSchema,
|
|
98
|
+
} from "./webhookdatanetworkidupdated.js";
|
|
99
|
+
import {
|
|
100
|
+
WebhookDataPaymentMethodDisabled,
|
|
101
|
+
WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
102
|
+
WebhookDataPaymentMethodDisabled$Outbound,
|
|
103
|
+
WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
104
|
+
} from "./webhookdatapaymentmethoddisabled.js";
|
|
105
|
+
import {
|
|
106
|
+
WebhookDataPaymentMethodEnabled,
|
|
107
|
+
WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
108
|
+
WebhookDataPaymentMethodEnabled$Outbound,
|
|
109
|
+
WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
110
|
+
} from "./webhookdatapaymentmethodenabled.js";
|
|
111
|
+
import {
|
|
112
|
+
WebhookDataRefundCreated,
|
|
113
|
+
WebhookDataRefundCreated$inboundSchema,
|
|
114
|
+
WebhookDataRefundCreated$Outbound,
|
|
115
|
+
WebhookDataRefundCreated$outboundSchema,
|
|
116
|
+
} from "./webhookdatarefundcreated.js";
|
|
117
|
+
import {
|
|
118
|
+
WebhookDataRefundUpdated,
|
|
119
|
+
WebhookDataRefundUpdated$inboundSchema,
|
|
120
|
+
WebhookDataRefundUpdated$Outbound,
|
|
121
|
+
WebhookDataRefundUpdated$outboundSchema,
|
|
122
|
+
} from "./webhookdatarefundupdated.js";
|
|
123
|
+
import {
|
|
124
|
+
WebhookDataRepresentativeCreated,
|
|
125
|
+
WebhookDataRepresentativeCreated$inboundSchema,
|
|
126
|
+
WebhookDataRepresentativeCreated$Outbound,
|
|
127
|
+
WebhookDataRepresentativeCreated$outboundSchema,
|
|
128
|
+
} from "./webhookdatarepresentativecreated.js";
|
|
129
|
+
import {
|
|
130
|
+
WebhookDataRepresentativeDisabled,
|
|
131
|
+
WebhookDataRepresentativeDisabled$inboundSchema,
|
|
132
|
+
WebhookDataRepresentativeDisabled$Outbound,
|
|
133
|
+
WebhookDataRepresentativeDisabled$outboundSchema,
|
|
134
|
+
} from "./webhookdatarepresentativedisabled.js";
|
|
135
|
+
import {
|
|
136
|
+
WebhookDataRepresentativeUpdated,
|
|
137
|
+
WebhookDataRepresentativeUpdated$inboundSchema,
|
|
138
|
+
WebhookDataRepresentativeUpdated$Outbound,
|
|
139
|
+
WebhookDataRepresentativeUpdated$outboundSchema,
|
|
140
|
+
} from "./webhookdatarepresentativeupdated.js";
|
|
141
|
+
import {
|
|
142
|
+
WebhookDataSweepCreated,
|
|
143
|
+
WebhookDataSweepCreated$inboundSchema,
|
|
144
|
+
WebhookDataSweepCreated$Outbound,
|
|
145
|
+
WebhookDataSweepCreated$outboundSchema,
|
|
146
|
+
} from "./webhookdatasweepcreated.js";
|
|
147
|
+
import {
|
|
148
|
+
WebhookDataSweepUpdated,
|
|
149
|
+
WebhookDataSweepUpdated$inboundSchema,
|
|
150
|
+
WebhookDataSweepUpdated$Outbound,
|
|
151
|
+
WebhookDataSweepUpdated$outboundSchema,
|
|
152
|
+
} from "./webhookdatasweepupdated.js";
|
|
153
|
+
import {
|
|
154
|
+
WebhookDataTerminalApplicationCreated,
|
|
155
|
+
WebhookDataTerminalApplicationCreated$inboundSchema,
|
|
156
|
+
WebhookDataTerminalApplicationCreated$Outbound,
|
|
157
|
+
WebhookDataTerminalApplicationCreated$outboundSchema,
|
|
158
|
+
} from "./webhookdataterminalapplicationcreated.js";
|
|
159
|
+
import {
|
|
160
|
+
WebhookDataTerminalApplicationUpdated,
|
|
161
|
+
WebhookDataTerminalApplicationUpdated$inboundSchema,
|
|
162
|
+
WebhookDataTerminalApplicationUpdated$Outbound,
|
|
163
|
+
WebhookDataTerminalApplicationUpdated$outboundSchema,
|
|
164
|
+
} from "./webhookdataterminalapplicationupdated.js";
|
|
165
|
+
import {
|
|
166
|
+
WebhookDataTransferCreated,
|
|
167
|
+
WebhookDataTransferCreated$inboundSchema,
|
|
168
|
+
WebhookDataTransferCreated$Outbound,
|
|
169
|
+
WebhookDataTransferCreated$outboundSchema,
|
|
170
|
+
} from "./webhookdatatransfercreated.js";
|
|
171
|
+
import {
|
|
172
|
+
WebhookDataTransferUpdated,
|
|
173
|
+
WebhookDataTransferUpdated$inboundSchema,
|
|
174
|
+
WebhookDataTransferUpdated$Outbound,
|
|
175
|
+
WebhookDataTransferUpdated$outboundSchema,
|
|
176
|
+
} from "./webhookdatatransferupdated.js";
|
|
177
|
+
import {
|
|
178
|
+
WebhookDataWalletTransactionUpdated,
|
|
179
|
+
WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
180
|
+
WebhookDataWalletTransactionUpdated$Outbound,
|
|
181
|
+
WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
182
|
+
} from "./webhookdatawallettransactionupdated.js";
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* The data for the webhook event. The contents are based on the event type.
|
|
186
|
+
*/
|
|
187
|
+
export type WebhookData =
|
|
188
|
+
| WebhookDataAccountCreated
|
|
189
|
+
| WebhookDataAccountUpdated
|
|
190
|
+
| WebhookDataAccountDeleted
|
|
191
|
+
| WebhookDataBalanceUpdated
|
|
192
|
+
| WebhookDataBankAccountCreated
|
|
193
|
+
| WebhookDataBankAccountDeleted
|
|
194
|
+
| WebhookDataRepresentativeCreated
|
|
195
|
+
| WebhookDataRepresentativeUpdated
|
|
196
|
+
| WebhookDataRepresentativeDisabled
|
|
197
|
+
| WebhookDataSweepCreated
|
|
198
|
+
| WebhookDataTerminalApplicationCreated
|
|
199
|
+
| WebhookDataTerminalApplicationUpdated
|
|
200
|
+
| WebhookDataCancellationCreated
|
|
201
|
+
| WebhookDataCancellationUpdated
|
|
202
|
+
| WebhookDataCardAutoUpdated
|
|
203
|
+
| WebhookDataCapabilityRequested
|
|
204
|
+
| WebhookDataPaymentMethodEnabled
|
|
205
|
+
| WebhookDataPaymentMethodDisabled
|
|
206
|
+
| WebhookDataRefundCreated
|
|
207
|
+
| WebhookDataTransferCreated
|
|
208
|
+
| WebhookDataCapabilityUpdated
|
|
209
|
+
| WebhookDataRefundUpdated
|
|
210
|
+
| WebhookDataSweepUpdated
|
|
211
|
+
| WebhookDataBankAccountUpdated
|
|
212
|
+
| WebhookDataTransferUpdated
|
|
213
|
+
| WebhookDataWalletTransactionUpdated
|
|
214
|
+
| WebhookDataDisputeCreated
|
|
215
|
+
| WebhookDataDisputeUpdated
|
|
216
|
+
| WebhookDataNetworkIDUpdated;
|
|
217
|
+
|
|
218
|
+
/** @internal */
|
|
219
|
+
export const WebhookData$inboundSchema: z.ZodType<
|
|
220
|
+
WebhookData,
|
|
221
|
+
z.ZodTypeDef,
|
|
222
|
+
unknown
|
|
223
|
+
> = z.union([
|
|
224
|
+
WebhookDataAccountCreated$inboundSchema,
|
|
225
|
+
WebhookDataAccountUpdated$inboundSchema,
|
|
226
|
+
WebhookDataAccountDeleted$inboundSchema,
|
|
227
|
+
WebhookDataBalanceUpdated$inboundSchema,
|
|
228
|
+
WebhookDataBankAccountCreated$inboundSchema,
|
|
229
|
+
WebhookDataBankAccountDeleted$inboundSchema,
|
|
230
|
+
WebhookDataRepresentativeCreated$inboundSchema,
|
|
231
|
+
WebhookDataRepresentativeUpdated$inboundSchema,
|
|
232
|
+
WebhookDataRepresentativeDisabled$inboundSchema,
|
|
233
|
+
WebhookDataSweepCreated$inboundSchema,
|
|
234
|
+
WebhookDataTerminalApplicationCreated$inboundSchema,
|
|
235
|
+
WebhookDataTerminalApplicationUpdated$inboundSchema,
|
|
236
|
+
WebhookDataCancellationCreated$inboundSchema,
|
|
237
|
+
WebhookDataCancellationUpdated$inboundSchema,
|
|
238
|
+
WebhookDataCardAutoUpdated$inboundSchema,
|
|
239
|
+
WebhookDataCapabilityRequested$inboundSchema,
|
|
240
|
+
WebhookDataPaymentMethodEnabled$inboundSchema,
|
|
241
|
+
WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
242
|
+
WebhookDataRefundCreated$inboundSchema,
|
|
243
|
+
WebhookDataTransferCreated$inboundSchema,
|
|
244
|
+
WebhookDataCapabilityUpdated$inboundSchema,
|
|
245
|
+
WebhookDataRefundUpdated$inboundSchema,
|
|
246
|
+
WebhookDataSweepUpdated$inboundSchema,
|
|
247
|
+
WebhookDataBankAccountUpdated$inboundSchema,
|
|
248
|
+
WebhookDataTransferUpdated$inboundSchema,
|
|
249
|
+
WebhookDataWalletTransactionUpdated$inboundSchema,
|
|
250
|
+
WebhookDataDisputeCreated$inboundSchema,
|
|
251
|
+
WebhookDataDisputeUpdated$inboundSchema,
|
|
252
|
+
WebhookDataNetworkIDUpdated$inboundSchema,
|
|
253
|
+
]);
|
|
254
|
+
|
|
255
|
+
/** @internal */
|
|
256
|
+
export type WebhookData$Outbound =
|
|
257
|
+
| WebhookDataAccountCreated$Outbound
|
|
258
|
+
| WebhookDataAccountUpdated$Outbound
|
|
259
|
+
| WebhookDataAccountDeleted$Outbound
|
|
260
|
+
| WebhookDataBalanceUpdated$Outbound
|
|
261
|
+
| WebhookDataBankAccountCreated$Outbound
|
|
262
|
+
| WebhookDataBankAccountDeleted$Outbound
|
|
263
|
+
| WebhookDataRepresentativeCreated$Outbound
|
|
264
|
+
| WebhookDataRepresentativeUpdated$Outbound
|
|
265
|
+
| WebhookDataRepresentativeDisabled$Outbound
|
|
266
|
+
| WebhookDataSweepCreated$Outbound
|
|
267
|
+
| WebhookDataTerminalApplicationCreated$Outbound
|
|
268
|
+
| WebhookDataTerminalApplicationUpdated$Outbound
|
|
269
|
+
| WebhookDataCancellationCreated$Outbound
|
|
270
|
+
| WebhookDataCancellationUpdated$Outbound
|
|
271
|
+
| WebhookDataCardAutoUpdated$Outbound
|
|
272
|
+
| WebhookDataCapabilityRequested$Outbound
|
|
273
|
+
| WebhookDataPaymentMethodEnabled$Outbound
|
|
274
|
+
| WebhookDataPaymentMethodDisabled$Outbound
|
|
275
|
+
| WebhookDataRefundCreated$Outbound
|
|
276
|
+
| WebhookDataTransferCreated$Outbound
|
|
277
|
+
| WebhookDataCapabilityUpdated$Outbound
|
|
278
|
+
| WebhookDataRefundUpdated$Outbound
|
|
279
|
+
| WebhookDataSweepUpdated$Outbound
|
|
280
|
+
| WebhookDataBankAccountUpdated$Outbound
|
|
281
|
+
| WebhookDataTransferUpdated$Outbound
|
|
282
|
+
| WebhookDataWalletTransactionUpdated$Outbound
|
|
283
|
+
| WebhookDataDisputeCreated$Outbound
|
|
284
|
+
| WebhookDataDisputeUpdated$Outbound
|
|
285
|
+
| WebhookDataNetworkIDUpdated$Outbound;
|
|
286
|
+
|
|
287
|
+
/** @internal */
|
|
288
|
+
export const WebhookData$outboundSchema: z.ZodType<
|
|
289
|
+
WebhookData$Outbound,
|
|
290
|
+
z.ZodTypeDef,
|
|
291
|
+
WebhookData
|
|
292
|
+
> = z.union([
|
|
293
|
+
WebhookDataAccountCreated$outboundSchema,
|
|
294
|
+
WebhookDataAccountUpdated$outboundSchema,
|
|
295
|
+
WebhookDataAccountDeleted$outboundSchema,
|
|
296
|
+
WebhookDataBalanceUpdated$outboundSchema,
|
|
297
|
+
WebhookDataBankAccountCreated$outboundSchema,
|
|
298
|
+
WebhookDataBankAccountDeleted$outboundSchema,
|
|
299
|
+
WebhookDataRepresentativeCreated$outboundSchema,
|
|
300
|
+
WebhookDataRepresentativeUpdated$outboundSchema,
|
|
301
|
+
WebhookDataRepresentativeDisabled$outboundSchema,
|
|
302
|
+
WebhookDataSweepCreated$outboundSchema,
|
|
303
|
+
WebhookDataTerminalApplicationCreated$outboundSchema,
|
|
304
|
+
WebhookDataTerminalApplicationUpdated$outboundSchema,
|
|
305
|
+
WebhookDataCancellationCreated$outboundSchema,
|
|
306
|
+
WebhookDataCancellationUpdated$outboundSchema,
|
|
307
|
+
WebhookDataCardAutoUpdated$outboundSchema,
|
|
308
|
+
WebhookDataCapabilityRequested$outboundSchema,
|
|
309
|
+
WebhookDataPaymentMethodEnabled$outboundSchema,
|
|
310
|
+
WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
311
|
+
WebhookDataRefundCreated$outboundSchema,
|
|
312
|
+
WebhookDataTransferCreated$outboundSchema,
|
|
313
|
+
WebhookDataCapabilityUpdated$outboundSchema,
|
|
314
|
+
WebhookDataRefundUpdated$outboundSchema,
|
|
315
|
+
WebhookDataSweepUpdated$outboundSchema,
|
|
316
|
+
WebhookDataBankAccountUpdated$outboundSchema,
|
|
317
|
+
WebhookDataTransferUpdated$outboundSchema,
|
|
318
|
+
WebhookDataWalletTransactionUpdated$outboundSchema,
|
|
319
|
+
WebhookDataDisputeCreated$outboundSchema,
|
|
320
|
+
WebhookDataDisputeUpdated$outboundSchema,
|
|
321
|
+
WebhookDataNetworkIDUpdated$outboundSchema,
|
|
322
|
+
]);
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* @internal
|
|
326
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
327
|
+
*/
|
|
328
|
+
export namespace WebhookData$ {
|
|
329
|
+
/** @deprecated use `WebhookData$inboundSchema` instead. */
|
|
330
|
+
export const inboundSchema = WebhookData$inboundSchema;
|
|
331
|
+
/** @deprecated use `WebhookData$outboundSchema` instead. */
|
|
332
|
+
export const outboundSchema = WebhookData$outboundSchema;
|
|
333
|
+
/** @deprecated use `WebhookData$Outbound` instead. */
|
|
334
|
+
export type Outbound = WebhookData$Outbound;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export function webhookDataToJSON(webhookData: WebhookData): string {
|
|
338
|
+
return JSON.stringify(WebhookData$outboundSchema.parse(webhookData));
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export function webhookDataFromJSON(
|
|
342
|
+
jsonString: string,
|
|
343
|
+
): SafeParseResult<WebhookData, SDKValidationError> {
|
|
344
|
+
return safeParse(
|
|
345
|
+
jsonString,
|
|
346
|
+
(x) => WebhookData$inboundSchema.parse(JSON.parse(x)),
|
|
347
|
+
`Failed to parse 'WebhookData' from JSON`,
|
|
348
|
+
);
|
|
349
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 WebhookDataAccountCreated = {
|
|
11
|
+
accountID: string;
|
|
12
|
+
foreignID?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const WebhookDataAccountCreated$inboundSchema: z.ZodType<
|
|
17
|
+
WebhookDataAccountCreated,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
accountID: z.string(),
|
|
22
|
+
foreignID: z.string().optional(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type WebhookDataAccountCreated$Outbound = {
|
|
27
|
+
accountID: string;
|
|
28
|
+
foreignID?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const WebhookDataAccountCreated$outboundSchema: z.ZodType<
|
|
33
|
+
WebhookDataAccountCreated$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
WebhookDataAccountCreated
|
|
36
|
+
> = z.object({
|
|
37
|
+
accountID: z.string(),
|
|
38
|
+
foreignID: z.string().optional(),
|
|
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 WebhookDataAccountCreated$ {
|
|
46
|
+
/** @deprecated use `WebhookDataAccountCreated$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = WebhookDataAccountCreated$inboundSchema;
|
|
48
|
+
/** @deprecated use `WebhookDataAccountCreated$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = WebhookDataAccountCreated$outboundSchema;
|
|
50
|
+
/** @deprecated use `WebhookDataAccountCreated$Outbound` instead. */
|
|
51
|
+
export type Outbound = WebhookDataAccountCreated$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function webhookDataAccountCreatedToJSON(
|
|
55
|
+
webhookDataAccountCreated: WebhookDataAccountCreated,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
WebhookDataAccountCreated$outboundSchema.parse(webhookDataAccountCreated),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function webhookDataAccountCreatedFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<WebhookDataAccountCreated, SDKValidationError> {
|
|
65
|
+
return safeParse(
|
|
66
|
+
jsonString,
|
|
67
|
+
(x) => WebhookDataAccountCreated$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'WebhookDataAccountCreated' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 WebhookDataAccountDeleted = {
|
|
11
|
+
accountID: string;
|
|
12
|
+
foreignID?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const WebhookDataAccountDeleted$inboundSchema: z.ZodType<
|
|
17
|
+
WebhookDataAccountDeleted,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
accountID: z.string(),
|
|
22
|
+
foreignID: z.string().optional(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type WebhookDataAccountDeleted$Outbound = {
|
|
27
|
+
accountID: string;
|
|
28
|
+
foreignID?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const WebhookDataAccountDeleted$outboundSchema: z.ZodType<
|
|
33
|
+
WebhookDataAccountDeleted$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
WebhookDataAccountDeleted
|
|
36
|
+
> = z.object({
|
|
37
|
+
accountID: z.string(),
|
|
38
|
+
foreignID: z.string().optional(),
|
|
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 WebhookDataAccountDeleted$ {
|
|
46
|
+
/** @deprecated use `WebhookDataAccountDeleted$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = WebhookDataAccountDeleted$inboundSchema;
|
|
48
|
+
/** @deprecated use `WebhookDataAccountDeleted$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = WebhookDataAccountDeleted$outboundSchema;
|
|
50
|
+
/** @deprecated use `WebhookDataAccountDeleted$Outbound` instead. */
|
|
51
|
+
export type Outbound = WebhookDataAccountDeleted$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function webhookDataAccountDeletedToJSON(
|
|
55
|
+
webhookDataAccountDeleted: WebhookDataAccountDeleted,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
WebhookDataAccountDeleted$outboundSchema.parse(webhookDataAccountDeleted),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function webhookDataAccountDeletedFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<WebhookDataAccountDeleted, SDKValidationError> {
|
|
65
|
+
return safeParse(
|
|
66
|
+
jsonString,
|
|
67
|
+
(x) => WebhookDataAccountDeleted$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'WebhookDataAccountDeleted' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 WebhookDataAccountUpdated = {
|
|
11
|
+
accountID: string;
|
|
12
|
+
foreignID?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const WebhookDataAccountUpdated$inboundSchema: z.ZodType<
|
|
17
|
+
WebhookDataAccountUpdated,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
accountID: z.string(),
|
|
22
|
+
foreignID: z.string().optional(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type WebhookDataAccountUpdated$Outbound = {
|
|
27
|
+
accountID: string;
|
|
28
|
+
foreignID?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const WebhookDataAccountUpdated$outboundSchema: z.ZodType<
|
|
33
|
+
WebhookDataAccountUpdated$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
WebhookDataAccountUpdated
|
|
36
|
+
> = z.object({
|
|
37
|
+
accountID: z.string(),
|
|
38
|
+
foreignID: z.string().optional(),
|
|
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 WebhookDataAccountUpdated$ {
|
|
46
|
+
/** @deprecated use `WebhookDataAccountUpdated$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = WebhookDataAccountUpdated$inboundSchema;
|
|
48
|
+
/** @deprecated use `WebhookDataAccountUpdated$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = WebhookDataAccountUpdated$outboundSchema;
|
|
50
|
+
/** @deprecated use `WebhookDataAccountUpdated$Outbound` instead. */
|
|
51
|
+
export type Outbound = WebhookDataAccountUpdated$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function webhookDataAccountUpdatedToJSON(
|
|
55
|
+
webhookDataAccountUpdated: WebhookDataAccountUpdated,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
WebhookDataAccountUpdated$outboundSchema.parse(webhookDataAccountUpdated),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function webhookDataAccountUpdatedFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<WebhookDataAccountUpdated, SDKValidationError> {
|
|
65
|
+
return safeParse(
|
|
66
|
+
jsonString,
|
|
67
|
+
(x) => WebhookDataAccountUpdated$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'WebhookDataAccountUpdated' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 WebhookDataBalanceUpdated = {
|
|
11
|
+
accountID: string;
|
|
12
|
+
walletID: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const WebhookDataBalanceUpdated$inboundSchema: z.ZodType<
|
|
17
|
+
WebhookDataBalanceUpdated,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
accountID: z.string(),
|
|
22
|
+
walletID: z.string(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type WebhookDataBalanceUpdated$Outbound = {
|
|
27
|
+
accountID: string;
|
|
28
|
+
walletID: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const WebhookDataBalanceUpdated$outboundSchema: z.ZodType<
|
|
33
|
+
WebhookDataBalanceUpdated$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
WebhookDataBalanceUpdated
|
|
36
|
+
> = z.object({
|
|
37
|
+
accountID: z.string(),
|
|
38
|
+
walletID: 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 WebhookDataBalanceUpdated$ {
|
|
46
|
+
/** @deprecated use `WebhookDataBalanceUpdated$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = WebhookDataBalanceUpdated$inboundSchema;
|
|
48
|
+
/** @deprecated use `WebhookDataBalanceUpdated$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = WebhookDataBalanceUpdated$outboundSchema;
|
|
50
|
+
/** @deprecated use `WebhookDataBalanceUpdated$Outbound` instead. */
|
|
51
|
+
export type Outbound = WebhookDataBalanceUpdated$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function webhookDataBalanceUpdatedToJSON(
|
|
55
|
+
webhookDataBalanceUpdated: WebhookDataBalanceUpdated,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
WebhookDataBalanceUpdated$outboundSchema.parse(webhookDataBalanceUpdated),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function webhookDataBalanceUpdatedFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<WebhookDataBalanceUpdated, SDKValidationError> {
|
|
65
|
+
return safeParse(
|
|
66
|
+
jsonString,
|
|
67
|
+
(x) => WebhookDataBalanceUpdated$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'WebhookDataBalanceUpdated' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -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 WebhookDataBankAccountCreated = {
|
|
11
|
+
bankAccountID: string;
|
|
12
|
+
accountID: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const WebhookDataBankAccountCreated$inboundSchema: z.ZodType<
|
|
17
|
+
WebhookDataBankAccountCreated,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
bankAccountID: z.string(),
|
|
22
|
+
accountID: z.string(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type WebhookDataBankAccountCreated$Outbound = {
|
|
27
|
+
bankAccountID: string;
|
|
28
|
+
accountID: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const WebhookDataBankAccountCreated$outboundSchema: z.ZodType<
|
|
33
|
+
WebhookDataBankAccountCreated$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
WebhookDataBankAccountCreated
|
|
36
|
+
> = z.object({
|
|
37
|
+
bankAccountID: z.string(),
|
|
38
|
+
accountID: 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 WebhookDataBankAccountCreated$ {
|
|
46
|
+
/** @deprecated use `WebhookDataBankAccountCreated$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = WebhookDataBankAccountCreated$inboundSchema;
|
|
48
|
+
/** @deprecated use `WebhookDataBankAccountCreated$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = WebhookDataBankAccountCreated$outboundSchema;
|
|
50
|
+
/** @deprecated use `WebhookDataBankAccountCreated$Outbound` instead. */
|
|
51
|
+
export type Outbound = WebhookDataBankAccountCreated$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function webhookDataBankAccountCreatedToJSON(
|
|
55
|
+
webhookDataBankAccountCreated: WebhookDataBankAccountCreated,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
WebhookDataBankAccountCreated$outboundSchema.parse(
|
|
59
|
+
webhookDataBankAccountCreated,
|
|
60
|
+
),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function webhookDataBankAccountCreatedFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<WebhookDataBankAccountCreated, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => WebhookDataBankAccountCreated$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'WebhookDataBankAccountCreated' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|