mollie-api-typescript 1.6.4 → 1.6.6
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/FUNCTIONS.md +2 -2
- package/README.md +3 -3
- package/dist/commonjs/funcs/{verifyPayeesCreate.d.ts → verifyPayeeCreate.d.ts} +2 -2
- package/dist/commonjs/funcs/verifyPayeeCreate.d.ts.map +1 -0
- package/dist/commonjs/funcs/{verifyPayeesCreate.js → verifyPayeeCreate.js} +4 -4
- package/dist/commonjs/funcs/verifyPayeeCreate.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/captureresponse.d.ts +12 -10
- package/dist/commonjs/models/captureresponse.d.ts.map +1 -1
- package/dist/commonjs/models/captureresponse.js.map +1 -1
- package/dist/commonjs/models/entitycapabilityrequirement.d.ts +1 -2
- package/dist/commonjs/models/entitycapabilityrequirement.d.ts.map +1 -1
- package/dist/commonjs/models/entitycapabilityrequirement.js.map +1 -1
- package/dist/commonjs/models/entitychargeback.d.ts +12 -12
- package/dist/commonjs/models/entityrefundresponse.d.ts +14 -20
- package/dist/commonjs/models/entityrefundresponse.d.ts.map +1 -1
- package/dist/commonjs/models/entityrefundresponse.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +2 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/listcaptureresponse.d.ts +12 -10
- package/dist/commonjs/models/listcaptureresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listcaptureresponse.js.map +1 -1
- package/dist/commonjs/models/listentitychargeback.d.ts +12 -12
- package/dist/commonjs/models/listentityrefund.d.ts +14 -20
- package/dist/commonjs/models/listentityrefund.d.ts.map +1 -1
- package/dist/commonjs/models/listentityrefund.js.map +1 -1
- package/dist/commonjs/models/listpaymentresponse.d.ts +16 -12
- package/dist/commonjs/models/listpaymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listpaymentresponse.js.map +1 -1
- package/dist/commonjs/models/listsalesinvoiceresponse.d.ts +7 -4
- package/dist/commonjs/models/listsalesinvoiceresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsalesinvoiceresponse.js +2 -1
- package/dist/commonjs/models/listsalesinvoiceresponse.js.map +1 -1
- package/dist/commonjs/models/listsettlementcaptureresponse.d.ts +2 -16
- package/dist/commonjs/models/listsettlementcaptureresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsettlementcaptureresponse.js.map +1 -1
- package/dist/commonjs/models/listsettlementchargebackresponse.d.ts +127 -0
- package/dist/commonjs/models/listsettlementchargebackresponse.d.ts.map +1 -0
- package/dist/commonjs/models/listsettlementchargebackresponse.js +98 -0
- package/dist/commonjs/models/listsettlementchargebackresponse.js.map +1 -0
- package/dist/commonjs/models/listsettlementpaymentresponse.d.ts +6 -14
- package/dist/commonjs/models/listsettlementpaymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsettlementpaymentresponse.js.map +1 -1
- package/dist/commonjs/models/listsettlementrefundresponse.d.ts +6 -24
- package/dist/commonjs/models/listsettlementrefundresponse.d.ts.map +1 -1
- package/dist/commonjs/models/listsettlementrefundresponse.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts +1 -1
- package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementchargebacks.js +1 -1
- package/dist/commonjs/models/operations/listsettlementchargebacks.js.map +1 -1
- package/dist/commonjs/models/operations/updatesalesinvoice.d.ts +1 -4
- package/dist/commonjs/models/operations/updatesalesinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatesalesinvoice.js +1 -1
- package/dist/commonjs/models/operations/updatesalesinvoice.js.map +1 -1
- package/dist/commonjs/models/paymentresponse.d.ts +16 -12
- package/dist/commonjs/models/paymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/paymentresponse.js.map +1 -1
- package/dist/commonjs/models/salesinvoicerequest.d.ts +0 -3
- package/dist/commonjs/models/salesinvoicerequest.d.ts.map +1 -1
- package/dist/commonjs/models/salesinvoicerequest.js.map +1 -1
- package/dist/commonjs/models/salesinvoiceresponse.d.ts +7 -4
- package/dist/commonjs/models/salesinvoiceresponse.d.ts.map +1 -1
- package/dist/commonjs/models/salesinvoiceresponse.js +2 -1
- package/dist/commonjs/models/salesinvoiceresponse.js.map +1 -1
- package/dist/commonjs/models/salesinvoicestatus.d.ts +0 -6
- package/dist/commonjs/models/salesinvoicestatus.d.ts.map +1 -1
- package/dist/commonjs/models/salesinvoicestatus.js +0 -3
- package/dist/commonjs/models/salesinvoicestatus.js.map +1 -1
- package/dist/commonjs/models/salesinvoicestatusresponse.d.ts +0 -6
- package/dist/commonjs/models/salesinvoicestatusresponse.d.ts.map +1 -1
- package/dist/commonjs/models/salesinvoicestatusresponse.js +0 -3
- package/dist/commonjs/models/salesinvoicestatusresponse.js.map +1 -1
- package/dist/commonjs/models/salesinvoicestatusupdate.d.ts +40 -0
- package/dist/commonjs/models/salesinvoicestatusupdate.d.ts.map +1 -0
- package/dist/commonjs/models/salesinvoicestatusupdate.js +64 -0
- package/dist/commonjs/models/salesinvoicestatusupdate.js.map +1 -0
- package/dist/commonjs/models/statusreason.d.ts +3 -3
- package/dist/commonjs/models/statusreason.d.ts.map +1 -1
- package/dist/commonjs/models/statusreason.js +2 -1
- package/dist/commonjs/models/statusreason.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -3
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +3 -3
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/{esm/sdk/verifypayees.d.ts → commonjs/sdk/verifypayee.d.ts} +2 -2
- package/dist/commonjs/sdk/verifypayee.d.ts.map +1 -0
- package/dist/commonjs/sdk/{verifypayees.js → verifypayee.js} +7 -7
- package/dist/commonjs/sdk/verifypayee.js.map +1 -0
- package/dist/esm/funcs/{verifyPayeesCreate.d.ts → verifyPayeeCreate.d.ts} +2 -2
- package/dist/esm/funcs/verifyPayeeCreate.d.ts.map +1 -0
- package/dist/esm/funcs/{verifyPayeesCreate.js → verifyPayeeCreate.js} +3 -3
- package/dist/esm/funcs/verifyPayeeCreate.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/captureresponse.d.ts +12 -10
- package/dist/esm/models/captureresponse.d.ts.map +1 -1
- package/dist/esm/models/captureresponse.js.map +1 -1
- package/dist/esm/models/entitycapabilityrequirement.d.ts +1 -2
- package/dist/esm/models/entitycapabilityrequirement.d.ts.map +1 -1
- package/dist/esm/models/entitycapabilityrequirement.js.map +1 -1
- package/dist/esm/models/entitychargeback.d.ts +12 -12
- package/dist/esm/models/entityrefundresponse.d.ts +14 -20
- package/dist/esm/models/entityrefundresponse.d.ts.map +1 -1
- package/dist/esm/models/entityrefundresponse.js.map +1 -1
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/listcaptureresponse.d.ts +12 -10
- package/dist/esm/models/listcaptureresponse.d.ts.map +1 -1
- package/dist/esm/models/listcaptureresponse.js.map +1 -1
- package/dist/esm/models/listentitychargeback.d.ts +12 -12
- package/dist/esm/models/listentityrefund.d.ts +14 -20
- package/dist/esm/models/listentityrefund.d.ts.map +1 -1
- package/dist/esm/models/listentityrefund.js.map +1 -1
- package/dist/esm/models/listpaymentresponse.d.ts +16 -12
- package/dist/esm/models/listpaymentresponse.d.ts.map +1 -1
- package/dist/esm/models/listpaymentresponse.js.map +1 -1
- package/dist/esm/models/listsalesinvoiceresponse.d.ts +7 -4
- package/dist/esm/models/listsalesinvoiceresponse.d.ts.map +1 -1
- package/dist/esm/models/listsalesinvoiceresponse.js +2 -1
- package/dist/esm/models/listsalesinvoiceresponse.js.map +1 -1
- package/dist/esm/models/listsettlementcaptureresponse.d.ts +2 -16
- package/dist/esm/models/listsettlementcaptureresponse.d.ts.map +1 -1
- package/dist/esm/models/listsettlementcaptureresponse.js.map +1 -1
- package/dist/esm/models/listsettlementchargebackresponse.d.ts +127 -0
- package/dist/esm/models/listsettlementchargebackresponse.d.ts.map +1 -0
- package/dist/esm/models/listsettlementchargebackresponse.js +58 -0
- package/dist/esm/models/listsettlementchargebackresponse.js.map +1 -0
- package/dist/esm/models/listsettlementpaymentresponse.d.ts +6 -14
- package/dist/esm/models/listsettlementpaymentresponse.d.ts.map +1 -1
- package/dist/esm/models/listsettlementpaymentresponse.js.map +1 -1
- package/dist/esm/models/listsettlementrefundresponse.d.ts +6 -24
- package/dist/esm/models/listsettlementrefundresponse.d.ts.map +1 -1
- package/dist/esm/models/listsettlementrefundresponse.js.map +1 -1
- package/dist/esm/models/operations/listsettlementchargebacks.d.ts +1 -1
- package/dist/esm/models/operations/listsettlementchargebacks.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementchargebacks.js +1 -1
- package/dist/esm/models/operations/listsettlementchargebacks.js.map +1 -1
- package/dist/esm/models/operations/updatesalesinvoice.d.ts +1 -4
- package/dist/esm/models/operations/updatesalesinvoice.d.ts.map +1 -1
- package/dist/esm/models/operations/updatesalesinvoice.js +1 -1
- package/dist/esm/models/operations/updatesalesinvoice.js.map +1 -1
- package/dist/esm/models/paymentresponse.d.ts +16 -12
- package/dist/esm/models/paymentresponse.d.ts.map +1 -1
- package/dist/esm/models/paymentresponse.js.map +1 -1
- package/dist/esm/models/salesinvoicerequest.d.ts +0 -3
- package/dist/esm/models/salesinvoicerequest.d.ts.map +1 -1
- package/dist/esm/models/salesinvoicerequest.js.map +1 -1
- package/dist/esm/models/salesinvoiceresponse.d.ts +7 -4
- package/dist/esm/models/salesinvoiceresponse.d.ts.map +1 -1
- package/dist/esm/models/salesinvoiceresponse.js +2 -1
- package/dist/esm/models/salesinvoiceresponse.js.map +1 -1
- package/dist/esm/models/salesinvoicestatus.d.ts +0 -6
- package/dist/esm/models/salesinvoicestatus.d.ts.map +1 -1
- package/dist/esm/models/salesinvoicestatus.js +0 -3
- package/dist/esm/models/salesinvoicestatus.js.map +1 -1
- package/dist/esm/models/salesinvoicestatusresponse.d.ts +0 -6
- package/dist/esm/models/salesinvoicestatusresponse.d.ts.map +1 -1
- package/dist/esm/models/salesinvoicestatusresponse.js +0 -3
- package/dist/esm/models/salesinvoicestatusresponse.js.map +1 -1
- package/dist/esm/models/salesinvoicestatusupdate.d.ts +40 -0
- package/dist/esm/models/salesinvoicestatusupdate.d.ts.map +1 -0
- package/dist/esm/models/salesinvoicestatusupdate.js +28 -0
- package/dist/esm/models/salesinvoicestatusupdate.js.map +1 -0
- package/dist/esm/models/statusreason.d.ts +3 -3
- package/dist/esm/models/statusreason.d.ts.map +1 -1
- package/dist/esm/models/statusreason.js +2 -1
- package/dist/esm/models/statusreason.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -3
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +3 -3
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/{commonjs/sdk/verifypayees.d.ts → esm/sdk/verifypayee.d.ts} +2 -2
- package/dist/esm/sdk/verifypayee.d.ts.map +1 -0
- package/dist/esm/sdk/{verifypayees.js → verifypayee.js} +5 -5
- package/dist/esm/sdk/verifypayee.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/{verifyPayeesCreate.ts → verifyPayeeCreate.ts} +2 -2
- package/src/lib/config.ts +3 -3
- package/src/models/captureresponse.ts +12 -10
- package/src/models/entitycapabilityrequirement.ts +1 -2
- package/src/models/entitychargeback.ts +12 -12
- package/src/models/entityrefundresponse.ts +14 -20
- package/src/models/index.ts +2 -0
- package/src/models/listcaptureresponse.ts +12 -10
- package/src/models/listentitychargeback.ts +12 -12
- package/src/models/listentityrefund.ts +14 -20
- package/src/models/listpaymentresponse.ts +16 -12
- package/src/models/listsalesinvoiceresponse.ts +9 -5
- package/src/models/listsettlementcaptureresponse.ts +2 -16
- package/src/models/listsettlementchargebackresponse.ts +240 -0
- package/src/models/listsettlementpaymentresponse.ts +6 -14
- package/src/models/listsettlementrefundresponse.ts +6 -24
- package/src/models/operations/listsettlementchargebacks.ts +2 -2
- package/src/models/operations/updatesalesinvoice.ts +2 -5
- package/src/models/paymentresponse.ts +16 -12
- package/src/models/salesinvoicerequest.ts +0 -3
- package/src/models/salesinvoiceresponse.ts +9 -5
- package/src/models/salesinvoicestatus.ts +0 -6
- package/src/models/salesinvoicestatusresponse.ts +0 -6
- package/src/models/salesinvoicestatusupdate.ts +50 -0
- package/src/models/statusreason.ts +5 -5
- package/src/sdk/sdk.ts +4 -4
- package/src/sdk/{verifypayees.ts → verifypayee.ts} +4 -4
- package/dist/commonjs/funcs/verifyPayeesCreate.d.ts.map +0 -1
- package/dist/commonjs/funcs/verifyPayeesCreate.js.map +0 -1
- package/dist/commonjs/sdk/verifypayees.d.ts.map +0 -1
- package/dist/commonjs/sdk/verifypayees.js.map +0 -1
- package/dist/esm/funcs/verifyPayeesCreate.d.ts.map +0 -1
- package/dist/esm/funcs/verifyPayeesCreate.js.map +0 -1
- package/dist/esm/sdk/verifypayees.d.ts.map +0 -1
- package/dist/esm/sdk/verifypayees.js.map +0 -1
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 6798922f9369
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
|
+
import { Amount, Amount$inboundSchema } from "./amount.js";
|
|
11
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
12
|
+
import {
|
|
13
|
+
SettlementMode,
|
|
14
|
+
SettlementMode$inboundSchema,
|
|
15
|
+
} from "./settlementmode.js";
|
|
16
|
+
import { Url, Url$inboundSchema } from "./url.js";
|
|
17
|
+
import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The amount deducted from your account balance for this chargeback, converted to the currency your account is
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* settled in. Always a **negative** amount.
|
|
24
|
+
*/
|
|
25
|
+
export type ListSettlementChargebackResponseSettlementAmount = {
|
|
26
|
+
/**
|
|
27
|
+
* A three-character ISO 4217 currency code.
|
|
28
|
+
*/
|
|
29
|
+
currency: string;
|
|
30
|
+
/**
|
|
31
|
+
* A string containing an exact monetary amount in the given currency.
|
|
32
|
+
*/
|
|
33
|
+
value: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Reason for the chargeback as given by the bank. Only available for chargebacks of SEPA Direct Debit payments.
|
|
38
|
+
*/
|
|
39
|
+
export type ListSettlementChargebackResponseReason = {
|
|
40
|
+
/**
|
|
41
|
+
* Technical code provided by the bank.
|
|
42
|
+
*/
|
|
43
|
+
code: string;
|
|
44
|
+
/**
|
|
45
|
+
* A more detailed human-friendly description.
|
|
46
|
+
*/
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
52
|
+
*/
|
|
53
|
+
export type ListSettlementChargebackResponseLinks = {
|
|
54
|
+
/**
|
|
55
|
+
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
56
|
+
*/
|
|
57
|
+
self: Url;
|
|
58
|
+
/**
|
|
59
|
+
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
60
|
+
*/
|
|
61
|
+
payment: Url;
|
|
62
|
+
/**
|
|
63
|
+
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
64
|
+
*/
|
|
65
|
+
settlement?: UrlNullable | null | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export type ListSettlementChargebackResponse = {
|
|
69
|
+
/**
|
|
70
|
+
* Indicates the response contains a chargeback object. Will always contain the string `chargeback` for this
|
|
71
|
+
*
|
|
72
|
+
* @remarks
|
|
73
|
+
* endpoint.
|
|
74
|
+
*/
|
|
75
|
+
resource: string;
|
|
76
|
+
/**
|
|
77
|
+
* The identifier uniquely referring to this chargeback. Example: `chb_n9z0tp`.
|
|
78
|
+
*/
|
|
79
|
+
id: string;
|
|
80
|
+
/**
|
|
81
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
82
|
+
*/
|
|
83
|
+
amount: Amount;
|
|
84
|
+
/**
|
|
85
|
+
* The amount deducted from your account balance for this chargeback, converted to the currency your account is
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* settled in. Always a **negative** amount.
|
|
89
|
+
*/
|
|
90
|
+
settlementAmount?:
|
|
91
|
+
| ListSettlementChargebackResponseSettlementAmount
|
|
92
|
+
| null
|
|
93
|
+
| undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Reason for the chargeback as given by the bank. Only available for chargebacks of SEPA Direct Debit payments.
|
|
96
|
+
*/
|
|
97
|
+
reason?: ListSettlementChargebackResponseReason | null | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* The unique identifier of the payment this chargeback was created for. For example: `tr_5B8cwPMGnU6qLbRvo7qEZo`.
|
|
100
|
+
*
|
|
101
|
+
* @remarks
|
|
102
|
+
* The full payment object can be retrieved via the payment URL in the `_links` object.
|
|
103
|
+
*/
|
|
104
|
+
paymentId: string;
|
|
105
|
+
/**
|
|
106
|
+
* The identifier referring to the settlement this payment was settled with. For example, `stl_BkEjN2eBb`. This field
|
|
107
|
+
*
|
|
108
|
+
* @remarks
|
|
109
|
+
* is omitted if the refund is not settled (yet).
|
|
110
|
+
*/
|
|
111
|
+
settlementId?: string | null | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
114
|
+
*/
|
|
115
|
+
createdAt: string;
|
|
116
|
+
/**
|
|
117
|
+
* The date and time the chargeback was reversed if applicable, in
|
|
118
|
+
*
|
|
119
|
+
* @remarks
|
|
120
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
121
|
+
*/
|
|
122
|
+
reversedAt?: string | null | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
125
|
+
*/
|
|
126
|
+
links: ListSettlementChargebackResponseLinks;
|
|
127
|
+
/**
|
|
128
|
+
* Whether this entity was created in live mode or in test mode. Settlements are always in live mode.
|
|
129
|
+
*/
|
|
130
|
+
mode?: SettlementMode | undefined;
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
/** @internal */
|
|
134
|
+
export const ListSettlementChargebackResponseSettlementAmount$inboundSchema:
|
|
135
|
+
z.ZodType<
|
|
136
|
+
ListSettlementChargebackResponseSettlementAmount,
|
|
137
|
+
z.ZodTypeDef,
|
|
138
|
+
unknown
|
|
139
|
+
> = z.object({
|
|
140
|
+
currency: z.string(),
|
|
141
|
+
value: z.string(),
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
export function listSettlementChargebackResponseSettlementAmountFromJSON(
|
|
145
|
+
jsonString: string,
|
|
146
|
+
): SafeParseResult<
|
|
147
|
+
ListSettlementChargebackResponseSettlementAmount,
|
|
148
|
+
SDKValidationError
|
|
149
|
+
> {
|
|
150
|
+
return safeParse(
|
|
151
|
+
jsonString,
|
|
152
|
+
(x) =>
|
|
153
|
+
ListSettlementChargebackResponseSettlementAmount$inboundSchema.parse(
|
|
154
|
+
JSON.parse(x),
|
|
155
|
+
),
|
|
156
|
+
`Failed to parse 'ListSettlementChargebackResponseSettlementAmount' from JSON`,
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/** @internal */
|
|
161
|
+
export const ListSettlementChargebackResponseReason$inboundSchema: z.ZodType<
|
|
162
|
+
ListSettlementChargebackResponseReason,
|
|
163
|
+
z.ZodTypeDef,
|
|
164
|
+
unknown
|
|
165
|
+
> = z.object({
|
|
166
|
+
code: z.string(),
|
|
167
|
+
description: z.string(),
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
export function listSettlementChargebackResponseReasonFromJSON(
|
|
171
|
+
jsonString: string,
|
|
172
|
+
): SafeParseResult<ListSettlementChargebackResponseReason, SDKValidationError> {
|
|
173
|
+
return safeParse(
|
|
174
|
+
jsonString,
|
|
175
|
+
(x) =>
|
|
176
|
+
ListSettlementChargebackResponseReason$inboundSchema.parse(JSON.parse(x)),
|
|
177
|
+
`Failed to parse 'ListSettlementChargebackResponseReason' from JSON`,
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/** @internal */
|
|
182
|
+
export const ListSettlementChargebackResponseLinks$inboundSchema: z.ZodType<
|
|
183
|
+
ListSettlementChargebackResponseLinks,
|
|
184
|
+
z.ZodTypeDef,
|
|
185
|
+
unknown
|
|
186
|
+
> = z.object({
|
|
187
|
+
self: Url$inboundSchema,
|
|
188
|
+
payment: Url$inboundSchema,
|
|
189
|
+
settlement: z.nullable(UrlNullable$inboundSchema).optional(),
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
export function listSettlementChargebackResponseLinksFromJSON(
|
|
193
|
+
jsonString: string,
|
|
194
|
+
): SafeParseResult<ListSettlementChargebackResponseLinks, SDKValidationError> {
|
|
195
|
+
return safeParse(
|
|
196
|
+
jsonString,
|
|
197
|
+
(x) =>
|
|
198
|
+
ListSettlementChargebackResponseLinks$inboundSchema.parse(JSON.parse(x)),
|
|
199
|
+
`Failed to parse 'ListSettlementChargebackResponseLinks' from JSON`,
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/** @internal */
|
|
204
|
+
export const ListSettlementChargebackResponse$inboundSchema: z.ZodType<
|
|
205
|
+
ListSettlementChargebackResponse,
|
|
206
|
+
z.ZodTypeDef,
|
|
207
|
+
unknown
|
|
208
|
+
> = z.object({
|
|
209
|
+
resource: z.string(),
|
|
210
|
+
id: z.string(),
|
|
211
|
+
amount: Amount$inboundSchema,
|
|
212
|
+
settlementAmount: z.nullable(
|
|
213
|
+
z.lazy(() =>
|
|
214
|
+
ListSettlementChargebackResponseSettlementAmount$inboundSchema
|
|
215
|
+
),
|
|
216
|
+
).optional(),
|
|
217
|
+
reason: z.nullable(
|
|
218
|
+
z.lazy(() => ListSettlementChargebackResponseReason$inboundSchema),
|
|
219
|
+
).optional(),
|
|
220
|
+
paymentId: z.string(),
|
|
221
|
+
settlementId: z.nullable(z.string()).optional(),
|
|
222
|
+
createdAt: z.string(),
|
|
223
|
+
reversedAt: z.nullable(z.string()).optional(),
|
|
224
|
+
_links: z.lazy(() => ListSettlementChargebackResponseLinks$inboundSchema),
|
|
225
|
+
mode: SettlementMode$inboundSchema.optional(),
|
|
226
|
+
}).transform((v) => {
|
|
227
|
+
return remap$(v, {
|
|
228
|
+
"_links": "links",
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
export function listSettlementChargebackResponseFromJSON(
|
|
233
|
+
jsonString: string,
|
|
234
|
+
): SafeParseResult<ListSettlementChargebackResponse, SDKValidationError> {
|
|
235
|
+
return safeParse(
|
|
236
|
+
jsonString,
|
|
237
|
+
(x) => ListSettlementChargebackResponse$inboundSchema.parse(JSON.parse(x)),
|
|
238
|
+
`Failed to parse 'ListSettlementChargebackResponse' from JSON`,
|
|
239
|
+
);
|
|
240
|
+
}
|
|
@@ -167,16 +167,12 @@ export type ListSettlementPaymentResponseAmountChargedBack = {
|
|
|
167
167
|
};
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* The amount settled to your account for this payment, converted to the currency your account is settled in.
|
|
171
171
|
*
|
|
172
172
|
* @remarks
|
|
173
|
-
* currency your account is settled in.
|
|
174
173
|
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
* Please note that this amount might be recalculated and changed when the status of the payment changes. We suggest
|
|
179
|
-
* using the List balance transactions endpoint instead to get more accurate settlement amounts for your payments.
|
|
174
|
+
* Amounts not settled by Mollie are not reflected here (e.g. PayPal or gift cards). If no amount is settled by
|
|
175
|
+
* Mollie, this field is omitted from the response.
|
|
180
176
|
*/
|
|
181
177
|
export type ListSettlementPaymentResponseSettlementAmount = {
|
|
182
178
|
/**
|
|
@@ -831,16 +827,12 @@ export type ListSettlementPaymentResponse = {
|
|
|
831
827
|
| ListSettlementPaymentResponseAmountChargedBack
|
|
832
828
|
| undefined;
|
|
833
829
|
/**
|
|
834
|
-
*
|
|
830
|
+
* The amount settled to your account for this payment, converted to the currency your account is settled in.
|
|
835
831
|
*
|
|
836
832
|
* @remarks
|
|
837
|
-
* currency your account is settled in.
|
|
838
|
-
*
|
|
839
|
-
* Any amounts not settled by Mollie will not be reflected in this amount, e.g. PayPal or gift cards. If no amount is
|
|
840
|
-
* settled by Mollie the `settlementAmount` is omitted from the response.
|
|
841
833
|
*
|
|
842
|
-
*
|
|
843
|
-
*
|
|
834
|
+
* Amounts not settled by Mollie are not reflected here (e.g. PayPal or gift cards). If no amount is settled by
|
|
835
|
+
* Mollie, this field is omitted from the response.
|
|
844
836
|
*/
|
|
845
837
|
settlementAmount?: ListSettlementPaymentResponseSettlementAmount | undefined;
|
|
846
838
|
/**
|
|
@@ -26,21 +26,12 @@ import { Url, Url$inboundSchema } from "./url.js";
|
|
|
26
26
|
import { UrlNullable, UrlNullable$inboundSchema } from "./urlnullable.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* The amount deducted from your account balance for this refund, converted to the currency your account is
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* settled in. Always a **negative** amount.
|
|
33
33
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* If the refund is not directly processed by Mollie, for example for PayPal refunds, the settlement amount will be
|
|
37
|
-
* zero.
|
|
38
|
-
*
|
|
39
|
-
* Since the field contains an estimated amount during refund processing, it may change over time. For example, while
|
|
40
|
-
* the refund is queued the settlement amount is likely not yet available.
|
|
41
|
-
*
|
|
42
|
-
* To retrieve accurate settlement amounts we recommend using the
|
|
43
|
-
* [List balance transactions endpoint](list-balance-transactions) instead.
|
|
34
|
+
* For refunds not directly processed by Mollie (e.g. PayPal), the settlement amount is zero.
|
|
44
35
|
*/
|
|
45
36
|
export type ListSettlementRefundResponseSettlementAmount = {
|
|
46
37
|
/**
|
|
@@ -125,21 +116,12 @@ export type ListSettlementRefundResponse = {
|
|
|
125
116
|
*/
|
|
126
117
|
amount: Amount;
|
|
127
118
|
/**
|
|
128
|
-
*
|
|
119
|
+
* The amount deducted from your account balance for this refund, converted to the currency your account is
|
|
129
120
|
*
|
|
130
121
|
* @remarks
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* The amount is a **negative** amount.
|
|
134
|
-
*
|
|
135
|
-
* If the refund is not directly processed by Mollie, for example for PayPal refunds, the settlement amount will be
|
|
136
|
-
* zero.
|
|
137
|
-
*
|
|
138
|
-
* Since the field contains an estimated amount during refund processing, it may change over time. For example, while
|
|
139
|
-
* the refund is queued the settlement amount is likely not yet available.
|
|
122
|
+
* settled in. Always a **negative** amount.
|
|
140
123
|
*
|
|
141
|
-
*
|
|
142
|
-
* [List balance transactions endpoint](list-balance-transactions) instead.
|
|
124
|
+
* For refunds not directly processed by Mollie (e.g. PayPal), the settlement amount is zero.
|
|
143
125
|
*/
|
|
144
126
|
settlementAmount?:
|
|
145
127
|
| ListSettlementRefundResponseSettlementAmount
|
|
@@ -63,7 +63,7 @@ export type ListSettlementChargebacksEmbedded = {
|
|
|
63
63
|
/**
|
|
64
64
|
* A list of chargeback objects.
|
|
65
65
|
*/
|
|
66
|
-
chargebacks: Array<models.
|
|
66
|
+
chargebacks: Array<models.ListSettlementChargebackResponse>;
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
/**
|
|
@@ -135,7 +135,7 @@ export const ListSettlementChargebacksEmbedded$inboundSchema: z.ZodType<
|
|
|
135
135
|
z.ZodTypeDef,
|
|
136
136
|
unknown
|
|
137
137
|
> = z.object({
|
|
138
|
-
chargebacks: z.array(models.
|
|
138
|
+
chargebacks: z.array(models.ListSettlementChargebackResponse$inboundSchema),
|
|
139
139
|
});
|
|
140
140
|
|
|
141
141
|
export function listSettlementChargebacksEmbeddedFromJSON(
|
|
@@ -27,15 +27,12 @@ export type UpdateSalesInvoiceRequestBody = {
|
|
|
27
27
|
* the recipient so they may then pay through our payment system. To skip our payment process, set this to `paid` to
|
|
28
28
|
* mark it as paid. It can then subsequently be sent as well, same as with `issued`.
|
|
29
29
|
*
|
|
30
|
-
* A status value that cannot be set but can be returned is `canceled`, for invoices which were
|
|
31
|
-
* issued, but then canceled. Currently this can only be done for invoices created in the dashboard.
|
|
32
|
-
*
|
|
33
30
|
* Dependent parameters:
|
|
34
31
|
* - `paymentDetails` is required if invoice should be set directly to `paid`
|
|
35
32
|
* - `customerId` and `mandateId` are required if a recurring payment should be used to set the invoice to `paid`
|
|
36
33
|
* - `emailDetails` optional for `issued` and `paid` to send the invoice by email
|
|
37
34
|
*/
|
|
38
|
-
status?: models.
|
|
35
|
+
status?: models.SalesInvoiceStatusUpdate | undefined;
|
|
39
36
|
/**
|
|
40
37
|
* A free-form memo you can set on the invoice, and will be shown on the invoice PDF.
|
|
41
38
|
*/
|
|
@@ -110,7 +107,7 @@ export const UpdateSalesInvoiceRequestBody$outboundSchema: z.ZodType<
|
|
|
110
107
|
UpdateSalesInvoiceRequestBody
|
|
111
108
|
> = z.object({
|
|
112
109
|
testmode: z.boolean().optional(),
|
|
113
|
-
status: models.
|
|
110
|
+
status: models.SalesInvoiceStatusUpdate$outboundSchema.optional(),
|
|
114
111
|
memo: z.nullable(z.string()).optional(),
|
|
115
112
|
paymentTerm: z.nullable(models.SalesInvoicePaymentTerm$outboundSchema)
|
|
116
113
|
.optional(),
|
|
@@ -162,16 +162,18 @@ export type PaymentResponseAmountChargedBack = {
|
|
|
162
162
|
};
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
|
-
* This
|
|
165
|
+
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
166
166
|
*
|
|
167
167
|
* @remarks
|
|
168
|
-
*
|
|
168
|
+
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
169
169
|
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
170
|
+
* The amount that will be settled to your account, converted to the currency your account is settled in. Only
|
|
171
|
+
* available once the payment is finalized and the final settlement amount has been determined.
|
|
172
172
|
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
173
|
+
* Amounts not settled by Mollie are not reflected here (e.g. PayPal or gift cards). If no amount is settled by
|
|
174
|
+
* Mollie, this field is omitted from the response.
|
|
175
|
+
*
|
|
176
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
175
177
|
*/
|
|
176
178
|
export type PaymentResponseSettlementAmount = {
|
|
177
179
|
/**
|
|
@@ -851,16 +853,18 @@ export type PaymentResponse = {
|
|
|
851
853
|
*/
|
|
852
854
|
amountChargedBack?: PaymentResponseAmountChargedBack | undefined;
|
|
853
855
|
/**
|
|
854
|
-
* This
|
|
856
|
+
* **Deprecated.** This field will be removed on January 1st, 2027. Use the [Settlements API](list-settlements) or
|
|
855
857
|
*
|
|
856
858
|
* @remarks
|
|
857
|
-
*
|
|
859
|
+
* the [List balance transactions endpoint](list-balance-transactions) for settlement data.
|
|
860
|
+
*
|
|
861
|
+
* The amount that will be settled to your account, converted to the currency your account is settled in. Only
|
|
862
|
+
* available once the payment is finalized and the final settlement amount has been determined.
|
|
858
863
|
*
|
|
859
|
-
*
|
|
860
|
-
*
|
|
864
|
+
* Amounts not settled by Mollie are not reflected here (e.g. PayPal or gift cards). If no amount is settled by
|
|
865
|
+
* Mollie, this field is omitted from the response.
|
|
861
866
|
*
|
|
862
|
-
*
|
|
863
|
-
* using the List balance transactions endpoint instead to get more accurate settlement amounts for your payments.
|
|
867
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
864
868
|
*/
|
|
865
869
|
settlementAmount?: PaymentResponseSettlementAmount | undefined;
|
|
866
870
|
/**
|
|
@@ -76,9 +76,6 @@ export type SalesInvoiceRequest = {
|
|
|
76
76
|
* the recipient so they may then pay through our payment system. To skip our payment process, set this to `paid` to
|
|
77
77
|
* mark it as paid. It can then subsequently be sent as well, same as with `issued`.
|
|
78
78
|
*
|
|
79
|
-
* A status value that cannot be set but can be returned is `canceled`, for invoices which were
|
|
80
|
-
* issued, but then canceled. Currently this can only be done for invoices created in the dashboard.
|
|
81
|
-
*
|
|
82
79
|
* Dependent parameters:
|
|
83
80
|
* - `paymentDetails` is required if invoice should be set directly to `paid`
|
|
84
81
|
* - `customerId` and `mandateId` are required if a recurring payment should be used to set the invoice to `paid`
|
|
@@ -186,9 +186,6 @@ export type SalesInvoiceResponse = {
|
|
|
186
186
|
* the recipient so they may then pay through our payment system. To skip our payment process, set this to `paid` to
|
|
187
187
|
* mark it as paid. It can then subsequently be sent as well, same as with `issued`.
|
|
188
188
|
*
|
|
189
|
-
* A status value that cannot be set but can be returned is `canceled`, for invoices which were
|
|
190
|
-
* issued, but then canceled. Currently this can only be done for invoices created in the dashboard.
|
|
191
|
-
*
|
|
192
189
|
* Dependent parameters:
|
|
193
190
|
* - `paymentDetails` is required if invoice should be set directly to `paid`
|
|
194
191
|
* - `customerId` and `mandateId` are required if a recurring payment should be used to set the invoice to `paid`
|
|
@@ -221,7 +218,13 @@ export type SalesInvoiceResponse = {
|
|
|
221
218
|
* The payment term to be set on the invoice.
|
|
222
219
|
*/
|
|
223
220
|
paymentTerm?: SalesInvoicePaymentTermResponse | null | undefined;
|
|
224
|
-
|
|
221
|
+
/**
|
|
222
|
+
* Used when setting an invoice to status of `paid`, and will store a payment that fully pays the invoice with the
|
|
223
|
+
*
|
|
224
|
+
* @remarks
|
|
225
|
+
* provided details. Required for `paid` status.
|
|
226
|
+
*/
|
|
227
|
+
paymentDetails?: Array<SalesInvoicePaymentDetailsResponse> | undefined;
|
|
225
228
|
emailDetails?: SalesInvoiceEmailDetails | null | undefined;
|
|
226
229
|
/**
|
|
227
230
|
* The identifier referring to the [customer](get-customer) you want to attempt an automated payment for. If
|
|
@@ -471,7 +474,8 @@ export const SalesInvoiceResponse$inboundSchema: z.ZodType<
|
|
|
471
474
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
472
475
|
paymentTerm: z.nullable(SalesInvoicePaymentTermResponse$inboundSchema)
|
|
473
476
|
.optional(),
|
|
474
|
-
paymentDetails: SalesInvoicePaymentDetailsResponse$inboundSchema
|
|
477
|
+
paymentDetails: z.array(SalesInvoicePaymentDetailsResponse$inboundSchema)
|
|
478
|
+
.optional(),
|
|
475
479
|
emailDetails: z.nullable(SalesInvoiceEmailDetails$inboundSchema).optional(),
|
|
476
480
|
customerId: z.string().optional(),
|
|
477
481
|
mandateId: z.string().optional(),
|
|
@@ -15,9 +15,6 @@ import { ClosedEnum } from "../types/enums.js";
|
|
|
15
15
|
* the recipient so they may then pay through our payment system. To skip our payment process, set this to `paid` to
|
|
16
16
|
* mark it as paid. It can then subsequently be sent as well, same as with `issued`.
|
|
17
17
|
*
|
|
18
|
-
* A status value that cannot be set but can be returned is `canceled`, for invoices which were
|
|
19
|
-
* issued, but then canceled. Currently this can only be done for invoices created in the dashboard.
|
|
20
|
-
*
|
|
21
18
|
* Dependent parameters:
|
|
22
19
|
* - `paymentDetails` is required if invoice should be set directly to `paid`
|
|
23
20
|
* - `customerId` and `mandateId` are required if a recurring payment should be used to set the invoice to `paid`
|
|
@@ -37,9 +34,6 @@ export const SalesInvoiceStatus = {
|
|
|
37
34
|
* the recipient so they may then pay through our payment system. To skip our payment process, set this to `paid` to
|
|
38
35
|
* mark it as paid. It can then subsequently be sent as well, same as with `issued`.
|
|
39
36
|
*
|
|
40
|
-
* A status value that cannot be set but can be returned is `canceled`, for invoices which were
|
|
41
|
-
* issued, but then canceled. Currently this can only be done for invoices created in the dashboard.
|
|
42
|
-
*
|
|
43
37
|
* Dependent parameters:
|
|
44
38
|
* - `paymentDetails` is required if invoice should be set directly to `paid`
|
|
45
39
|
* - `customerId` and `mandateId` are required if a recurring payment should be used to set the invoice to `paid`
|
|
@@ -16,9 +16,6 @@ import { OpenEnum } from "../types/enums.js";
|
|
|
16
16
|
* the recipient so they may then pay through our payment system. To skip our payment process, set this to `paid` to
|
|
17
17
|
* mark it as paid. It can then subsequently be sent as well, same as with `issued`.
|
|
18
18
|
*
|
|
19
|
-
* A status value that cannot be set but can be returned is `canceled`, for invoices which were
|
|
20
|
-
* issued, but then canceled. Currently this can only be done for invoices created in the dashboard.
|
|
21
|
-
*
|
|
22
19
|
* Dependent parameters:
|
|
23
20
|
* - `paymentDetails` is required if invoice should be set directly to `paid`
|
|
24
21
|
* - `customerId` and `mandateId` are required if a recurring payment should be used to set the invoice to `paid`
|
|
@@ -38,9 +35,6 @@ export const SalesInvoiceStatusResponse = {
|
|
|
38
35
|
* the recipient so they may then pay through our payment system. To skip our payment process, set this to `paid` to
|
|
39
36
|
* mark it as paid. It can then subsequently be sent as well, same as with `issued`.
|
|
40
37
|
*
|
|
41
|
-
* A status value that cannot be set but can be returned is `canceled`, for invoices which were
|
|
42
|
-
* issued, but then canceled. Currently this can only be done for invoices created in the dashboard.
|
|
43
|
-
*
|
|
44
38
|
* Dependent parameters:
|
|
45
39
|
* - `paymentDetails` is required if invoice should be set directly to `paid`
|
|
46
40
|
* - `customerId` and `mandateId` are required if a recurring payment should be used to set the invoice to `paid`
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5d2185d698db
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The status for the invoice to end up in.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
*
|
|
14
|
+
* A `draft` invoice is not paid or not sent and can be updated after creation. Setting it to `issued` sends it to
|
|
15
|
+
* the recipient so they may then pay through our payment system. To skip our payment process, set this to `paid` to
|
|
16
|
+
* mark it as paid. It can then subsequently be sent as well, same as with `issued`.
|
|
17
|
+
*
|
|
18
|
+
* Dependent parameters:
|
|
19
|
+
* - `paymentDetails` is required if invoice should be set directly to `paid`
|
|
20
|
+
* - `customerId` and `mandateId` are required if a recurring payment should be used to set the invoice to `paid`
|
|
21
|
+
* - `emailDetails` optional for `issued` and `paid` to send the invoice by email
|
|
22
|
+
*/
|
|
23
|
+
export const SalesInvoiceStatusUpdate = {
|
|
24
|
+
Draft: "draft",
|
|
25
|
+
Issued: "issued",
|
|
26
|
+
Paid: "paid",
|
|
27
|
+
Cancelled: "cancelled",
|
|
28
|
+
} as const;
|
|
29
|
+
/**
|
|
30
|
+
* The status for the invoice to end up in.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
*
|
|
34
|
+
* A `draft` invoice is not paid or not sent and can be updated after creation. Setting it to `issued` sends it to
|
|
35
|
+
* the recipient so they may then pay through our payment system. To skip our payment process, set this to `paid` to
|
|
36
|
+
* mark it as paid. It can then subsequently be sent as well, same as with `issued`.
|
|
37
|
+
*
|
|
38
|
+
* Dependent parameters:
|
|
39
|
+
* - `paymentDetails` is required if invoice should be set directly to `paid`
|
|
40
|
+
* - `customerId` and `mandateId` are required if a recurring payment should be used to set the invoice to `paid`
|
|
41
|
+
* - `emailDetails` optional for `issued` and `paid` to send the invoice by email
|
|
42
|
+
*/
|
|
43
|
+
export type SalesInvoiceStatusUpdate = ClosedEnum<
|
|
44
|
+
typeof SalesInvoiceStatusUpdate
|
|
45
|
+
>;
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const SalesInvoiceStatusUpdate$outboundSchema: z.ZodNativeEnum<
|
|
49
|
+
typeof SalesInvoiceStatusUpdate
|
|
50
|
+
> = z.nativeEnum(SalesInvoiceStatusUpdate);
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod/v3";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import
|
|
8
|
+
import * as openEnums from "../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../types/enums.js";
|
|
9
10
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
11
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
11
12
|
|
|
@@ -143,7 +144,7 @@ export const Code = {
|
|
|
143
144
|
/**
|
|
144
145
|
* A machine-readable code that indicates the reason for the payment's status.
|
|
145
146
|
*/
|
|
146
|
-
export type Code =
|
|
147
|
+
export type Code = OpenEnum<typeof Code>;
|
|
147
148
|
|
|
148
149
|
/**
|
|
149
150
|
* This object offers details about the status of a payment. Currently it is only available for point-of-sale
|
|
@@ -163,9 +164,8 @@ export type StatusReason = {
|
|
|
163
164
|
};
|
|
164
165
|
|
|
165
166
|
/** @internal */
|
|
166
|
-
export const Code$inboundSchema: z.
|
|
167
|
-
Code
|
|
168
|
-
);
|
|
167
|
+
export const Code$inboundSchema: z.ZodType<Code, z.ZodTypeDef, unknown> =
|
|
168
|
+
openEnums.inboundSchema(Code);
|
|
169
169
|
|
|
170
170
|
/** @internal */
|
|
171
171
|
export const StatusReason$inboundSchema: z.ZodType<
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -32,7 +32,7 @@ import { Subscriptions } from "./subscriptions.js";
|
|
|
32
32
|
import { Terminals } from "./terminals.js";
|
|
33
33
|
import { Transfers } from "./transfers.js";
|
|
34
34
|
import { UnmatchedCreditTransfers } from "./unmatchedcredittransfers.js";
|
|
35
|
-
import {
|
|
35
|
+
import { VerifyPayee } from "./verifypayee.js";
|
|
36
36
|
import { Wallets } from "./wallets.js";
|
|
37
37
|
import { WebhookEvents } from "./webhookevents.js";
|
|
38
38
|
import { Webhooks } from "./webhooks.js";
|
|
@@ -195,8 +195,8 @@ export class Client extends ClientSDK {
|
|
|
195
195
|
return (this._transfers ??= new Transfers(this._options));
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
private
|
|
199
|
-
get
|
|
200
|
-
return (this.
|
|
198
|
+
private _verifyPayee?: VerifyPayee;
|
|
199
|
+
get verifyPayee(): VerifyPayee {
|
|
200
|
+
return (this._verifyPayee ??= new VerifyPayee(this._options));
|
|
201
201
|
}
|
|
202
202
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id:
|
|
3
|
+
* @generated-id: 88eb250a7943
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { verifyPayeeCreate } from "../funcs/verifyPayeeCreate.js";
|
|
7
7
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
8
|
import * as models from "../models/index.js";
|
|
9
9
|
import * as operations from "../models/operations/index.js";
|
|
10
10
|
import { unwrapAsync } from "../types/fp.js";
|
|
11
11
|
|
|
12
|
-
export class
|
|
12
|
+
export class VerifyPayee extends ClientSDK {
|
|
13
13
|
/**
|
|
14
14
|
* Verify Payee
|
|
15
15
|
*
|
|
@@ -41,7 +41,7 @@ export class VerifyPayees extends ClientSDK {
|
|
|
41
41
|
request?: operations.VerifyPayeeRequest | undefined,
|
|
42
42
|
options?: RequestOptions,
|
|
43
43
|
): Promise<models.VerificationOfPayeeResponse> {
|
|
44
|
-
return unwrapAsync(
|
|
44
|
+
return unwrapAsync(verifyPayeeCreate(
|
|
45
45
|
this,
|
|
46
46
|
request,
|
|
47
47
|
options,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"verifyPayeesCreate.d.ts","sourceRoot":"","sources":["../../../src/funcs/verifyPayeesCreate.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAMxC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,UAAU,EAClB,OAAO,CAAC,EAAE,UAAU,CAAC,kBAAkB,GAAG,SAAS,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,2BAA2B,EAChC,MAAM,CAAC,aAAa,GACpB,WAAW,GACX,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|