@revenexx/sdk 0.0.2 → 0.0.5
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/dist/cjs/sdk.js +13496 -3442
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +13467 -3443
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +13496 -3442
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/address-type.ts +4 -0
- package/src/enums/cart-export-format.ts +4 -0
- package/src/enums/cart-io-apply-mode.ts +5 -0
- package/src/enums/cart-io-direction.ts +4 -0
- package/src/enums/cart-io-entity.ts +4 -0
- package/src/enums/cart-io-format.ts +4 -0
- package/src/enums/cart-item-type.ts +5 -0
- package/src/enums/channel-status.ts +4 -0
- package/src/enums/channel-type.ts +7 -0
- package/src/enums/contact-role.ts +6 -0
- package/src/enums/contact-status.ts +5 -0
- package/src/enums/location-type.ts +6 -0
- package/src/enums/market-status.ts +4 -0
- package/src/enums/order-comment-visibility.ts +4 -0
- package/src/enums/order-item-type.ts +5 -0
- package/src/enums/order-payment-status.ts +9 -0
- package/src/enums/organization-status.ts +4 -0
- package/src/enums/page-status.ts +5 -0
- package/src/enums/payment-fee-type.ts +5 -0
- package/src/enums/payment-method-kind.ts +4 -0
- package/src/enums/price-entry-type.ts +4 -0
- package/src/enums/price-list-status.ts +4 -0
- package/src/enums/shipping-method-matrix-basis.ts +6 -0
- package/src/enums/shipping-method-pricing-type.ts +5 -0
- package/src/index.ts +30 -0
- package/src/models.ts +5628 -410
- package/src/services/apps.ts +154 -154
- package/src/services/avatars.ts +57 -57
- package/src/services/carts.ts +739 -104
- package/src/services/channels.ts +147 -19
- package/src/services/customers.ts +801 -69
- package/src/services/greetings.ts +18 -18
- package/src/services/inventories.ts +1278 -0
- package/src/services/locale.ts +16 -16
- package/src/services/markets.ts +373 -75
- package/src/services/messaging.ts +273 -273
- package/src/services/orders.ts +1648 -0
- package/src/services/pages.ts +2317 -0
- package/src/services/payments.ts +1334 -0
- package/src/services/prices.ts +1036 -0
- package/src/services/products.ts +1836 -272
- package/src/services/search.ts +24 -24
- package/src/services/shipping.ts +956 -0
- package/src/services/sites.ts +116 -116
- package/src/services/storage.ts +72 -72
- package/src/services/tokens.ts +14 -14
- package/types/enums/address-type.d.ts +4 -0
- package/types/enums/cart-export-format.d.ts +4 -0
- package/types/enums/cart-io-apply-mode.d.ts +5 -0
- package/types/enums/cart-io-direction.d.ts +4 -0
- package/types/enums/cart-io-entity.d.ts +4 -0
- package/types/enums/cart-io-format.d.ts +4 -0
- package/types/enums/cart-item-type.d.ts +5 -0
- package/types/enums/channel-status.d.ts +4 -0
- package/types/enums/channel-type.d.ts +7 -0
- package/types/enums/contact-role.d.ts +6 -0
- package/types/enums/contact-status.d.ts +5 -0
- package/types/enums/location-type.d.ts +6 -0
- package/types/enums/market-status.d.ts +4 -0
- package/types/enums/order-comment-visibility.d.ts +4 -0
- package/types/enums/order-item-type.d.ts +5 -0
- package/types/enums/order-payment-status.d.ts +9 -0
- package/types/enums/organization-status.d.ts +4 -0
- package/types/enums/page-status.d.ts +5 -0
- package/types/enums/payment-fee-type.d.ts +5 -0
- package/types/enums/payment-method-kind.d.ts +4 -0
- package/types/enums/price-entry-type.d.ts +4 -0
- package/types/enums/price-list-status.d.ts +4 -0
- package/types/enums/shipping-method-matrix-basis.d.ts +6 -0
- package/types/enums/shipping-method-pricing-type.d.ts +5 -0
- package/types/index.d.ts +30 -0
- package/types/models.d.ts +5470 -404
- package/types/services/carts.d.ts +271 -12
- package/types/services/channels.d.ts +54 -2
- package/types/services/customers.d.ts +295 -12
- package/types/services/inventories.d.ts +440 -0
- package/types/services/markets.d.ts +123 -6
- package/types/services/orders.d.ts +590 -0
- package/types/services/pages.d.ts +792 -0
- package/types/services/payments.d.ts +480 -0
- package/types/services/prices.d.ts +384 -0
- package/types/services/products.d.ts +646 -32
- package/types/services/shipping.d.ts +351 -0
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
import { Client } from '../client';
|
|
2
|
+
import type { Models } from '../models';
|
|
3
|
+
import { PaymentFeeType } from '../enums/payment-fee-type';
|
|
4
|
+
import { PaymentMethodKind } from '../enums/payment-method-kind';
|
|
5
|
+
export declare class Payments {
|
|
6
|
+
client: Client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @throws {RevenexxException}
|
|
11
|
+
* @returns {Promise<{}>}
|
|
12
|
+
*/
|
|
13
|
+
paymentsList(): Promise<{}>;
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @param {number} params.amount - Order amount — 0 is legal (free orders), negative is not.
|
|
17
|
+
* @param {string} params.methodCode - Code of a configured payment method.
|
|
18
|
+
* @param {string} params.cartId - The cart this payment pays for.
|
|
19
|
+
* @param {string} params.contactId - Paying customer contact.
|
|
20
|
+
* @param {string} params.country - Buyer ISO country code for the eligibility check.
|
|
21
|
+
* @param {string} params.currency - ISO 4217 code (default EUR).
|
|
22
|
+
* @param {string} params.idempotencyKey - Same key answers the same payment instead of a duplicate.
|
|
23
|
+
* @param {object} params.metadata - Free-form metadata.
|
|
24
|
+
* @param {string} params.orderRef - External order reference — also the webhook fallback key.
|
|
25
|
+
* @param {string} params.returnUrl - Where the PSP redirect flow returns the buyer to.
|
|
26
|
+
* @throws {RevenexxException}
|
|
27
|
+
* @returns {Promise<Models.Payment>}
|
|
28
|
+
*/
|
|
29
|
+
paymentsCreate(params: {
|
|
30
|
+
amount: number;
|
|
31
|
+
methodCode: string;
|
|
32
|
+
cartId?: string;
|
|
33
|
+
contactId?: string;
|
|
34
|
+
country?: string;
|
|
35
|
+
currency?: string;
|
|
36
|
+
idempotencyKey?: string;
|
|
37
|
+
metadata?: object;
|
|
38
|
+
orderRef?: string;
|
|
39
|
+
returnUrl?: string;
|
|
40
|
+
}): Promise<Models.Payment>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @param {number} amount - Order amount — 0 is legal (free orders), negative is not.
|
|
44
|
+
* @param {string} methodCode - Code of a configured payment method.
|
|
45
|
+
* @param {string} cartId - The cart this payment pays for.
|
|
46
|
+
* @param {string} contactId - Paying customer contact.
|
|
47
|
+
* @param {string} country - Buyer ISO country code for the eligibility check.
|
|
48
|
+
* @param {string} currency - ISO 4217 code (default EUR).
|
|
49
|
+
* @param {string} idempotencyKey - Same key answers the same payment instead of a duplicate.
|
|
50
|
+
* @param {object} metadata - Free-form metadata.
|
|
51
|
+
* @param {string} orderRef - External order reference — also the webhook fallback key.
|
|
52
|
+
* @param {string} returnUrl - Where the PSP redirect flow returns the buyer to.
|
|
53
|
+
* @throws {RevenexxException}
|
|
54
|
+
* @returns {Promise<Models.Payment>}
|
|
55
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
56
|
+
*/
|
|
57
|
+
paymentsCreate(amount: number, methodCode: string, cartId?: string, contactId?: string, country?: string, currency?: string, idempotencyKey?: string, metadata?: object, orderRef?: string, returnUrl?: string): Promise<Models.Payment>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @throws {RevenexxException}
|
|
61
|
+
* @returns {Promise<{}>}
|
|
62
|
+
*/
|
|
63
|
+
paymentsMethodsList(): Promise<{}>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @param {string} params.code - Stable method code (unique per tenant, e.g. 'invoice', 'card').
|
|
67
|
+
* @param {string} params.name - Display name.
|
|
68
|
+
* @param {string[]} params.countries - Allowed ISO country codes — empty/omitted = unrestricted.
|
|
69
|
+
* @param {string} params.description -
|
|
70
|
+
* @param {boolean} params.enabled - Disabled methods are never eligible (default false).
|
|
71
|
+
* @param {number} params.feeAmount - Fixed amount or percent value, per fee_type (default 0).
|
|
72
|
+
* @param {string} params.feeCurrency - ISO 4217 code (default EUR).
|
|
73
|
+
* @param {PaymentFeeType} params.feeType - How 'fee_amount' applies (default 'none').
|
|
74
|
+
* @param {PaymentMethodKind} params.kind - Self-managed (merchant fulfils, default) or PSP-backed ('provider' required to transact).
|
|
75
|
+
* @param {object} params.labels - Localized display names ({ de, en, … }).
|
|
76
|
+
* @param {number} params.maxOrderValue - Maximum order amount — omitted = no upper bound.
|
|
77
|
+
* @param {object} params.metadata - Free-form metadata.
|
|
78
|
+
* @param {number} params.minOrderValue - Minimum order amount — omitted = no lower bound.
|
|
79
|
+
* @param {number} params.position - Sort position in the checkout (default 0).
|
|
80
|
+
* @param {string} params.provider - PSP code from the catalog — only for kind 'psp'.
|
|
81
|
+
* @param {string} params.providerMethod - The provider's payment method id (e.g. 'card', 'paypal').
|
|
82
|
+
* @throws {RevenexxException}
|
|
83
|
+
* @returns {Promise<Models.PaymentMethod>}
|
|
84
|
+
*/
|
|
85
|
+
paymentsMethodsCreate(params: {
|
|
86
|
+
code: string;
|
|
87
|
+
name: string;
|
|
88
|
+
countries?: string[];
|
|
89
|
+
description?: string;
|
|
90
|
+
enabled?: boolean;
|
|
91
|
+
feeAmount?: number;
|
|
92
|
+
feeCurrency?: string;
|
|
93
|
+
feeType?: PaymentFeeType;
|
|
94
|
+
kind?: PaymentMethodKind;
|
|
95
|
+
labels?: object;
|
|
96
|
+
maxOrderValue?: number;
|
|
97
|
+
metadata?: object;
|
|
98
|
+
minOrderValue?: number;
|
|
99
|
+
position?: number;
|
|
100
|
+
provider?: string;
|
|
101
|
+
providerMethod?: string;
|
|
102
|
+
}): Promise<Models.PaymentMethod>;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @param {string} code - Stable method code (unique per tenant, e.g. 'invoice', 'card').
|
|
106
|
+
* @param {string} name - Display name.
|
|
107
|
+
* @param {string[]} countries - Allowed ISO country codes — empty/omitted = unrestricted.
|
|
108
|
+
* @param {string} description -
|
|
109
|
+
* @param {boolean} enabled - Disabled methods are never eligible (default false).
|
|
110
|
+
* @param {number} feeAmount - Fixed amount or percent value, per fee_type (default 0).
|
|
111
|
+
* @param {string} feeCurrency - ISO 4217 code (default EUR).
|
|
112
|
+
* @param {PaymentFeeType} feeType - How 'fee_amount' applies (default 'none').
|
|
113
|
+
* @param {PaymentMethodKind} kind - Self-managed (merchant fulfils, default) or PSP-backed ('provider' required to transact).
|
|
114
|
+
* @param {object} labels - Localized display names ({ de, en, … }).
|
|
115
|
+
* @param {number} maxOrderValue - Maximum order amount — omitted = no upper bound.
|
|
116
|
+
* @param {object} metadata - Free-form metadata.
|
|
117
|
+
* @param {number} minOrderValue - Minimum order amount — omitted = no lower bound.
|
|
118
|
+
* @param {number} position - Sort position in the checkout (default 0).
|
|
119
|
+
* @param {string} provider - PSP code from the catalog — only for kind 'psp'.
|
|
120
|
+
* @param {string} providerMethod - The provider's payment method id (e.g. 'card', 'paypal').
|
|
121
|
+
* @throws {RevenexxException}
|
|
122
|
+
* @returns {Promise<Models.PaymentMethod>}
|
|
123
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
124
|
+
*/
|
|
125
|
+
paymentsMethodsCreate(code: string, name: string, countries?: string[], description?: string, enabled?: boolean, feeAmount?: number, feeCurrency?: string, feeType?: PaymentFeeType, kind?: PaymentMethodKind, labels?: object, maxOrderValue?: number, metadata?: object, minOrderValue?: number, position?: number, provider?: string, providerMethod?: string): Promise<Models.PaymentMethod>;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @throws {RevenexxException}
|
|
129
|
+
* @returns {Promise<{}>}
|
|
130
|
+
*/
|
|
131
|
+
paymentsMethodsDefaults(): Promise<{}>;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @param {number} params.amount - Order amount the fees are computed against (default 0).
|
|
135
|
+
* @param {string} params.country - Buyer ISO country code — methods with country restrictions need it.
|
|
136
|
+
* @param {string} params.currency - ISO 4217 code (default EUR).
|
|
137
|
+
* @throws {RevenexxException}
|
|
138
|
+
* @returns {Promise<{}>}
|
|
139
|
+
*/
|
|
140
|
+
paymentsMethodsEligible(params?: {
|
|
141
|
+
amount?: number;
|
|
142
|
+
country?: string;
|
|
143
|
+
currency?: string;
|
|
144
|
+
}): Promise<{}>;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @param {number} amount - Order amount the fees are computed against (default 0).
|
|
148
|
+
* @param {string} country - Buyer ISO country code — methods with country restrictions need it.
|
|
149
|
+
* @param {string} currency - ISO 4217 code (default EUR).
|
|
150
|
+
* @throws {RevenexxException}
|
|
151
|
+
* @returns {Promise<{}>}
|
|
152
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
153
|
+
*/
|
|
154
|
+
paymentsMethodsEligible(amount?: number, country?: string, currency?: string): Promise<{}>;
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @param {string} params.id -
|
|
158
|
+
* @throws {RevenexxException}
|
|
159
|
+
* @returns {Promise<{}>}
|
|
160
|
+
*/
|
|
161
|
+
paymentsMethodsDelete(params: {
|
|
162
|
+
id: string;
|
|
163
|
+
}): Promise<{}>;
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @param {string} id -
|
|
167
|
+
* @throws {RevenexxException}
|
|
168
|
+
* @returns {Promise<{}>}
|
|
169
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
170
|
+
*/
|
|
171
|
+
paymentsMethodsDelete(id: string): Promise<{}>;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @param {string} params.id -
|
|
175
|
+
* @throws {RevenexxException}
|
|
176
|
+
* @returns {Promise<Models.PaymentMethod>}
|
|
177
|
+
*/
|
|
178
|
+
paymentsMethodsGet(params: {
|
|
179
|
+
id: string;
|
|
180
|
+
}): Promise<Models.PaymentMethod>;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @param {string} id -
|
|
184
|
+
* @throws {RevenexxException}
|
|
185
|
+
* @returns {Promise<Models.PaymentMethod>}
|
|
186
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
187
|
+
*/
|
|
188
|
+
paymentsMethodsGet(id: string): Promise<Models.PaymentMethod>;
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @param {string} params.id -
|
|
192
|
+
* @param {string} params.code - Stable method code (unique per tenant, e.g. 'invoice', 'card').
|
|
193
|
+
* @param {string[]} params.countries - Allowed ISO country codes — empty/omitted = unrestricted.
|
|
194
|
+
* @param {string} params.description -
|
|
195
|
+
* @param {boolean} params.enabled - Disabled methods are never eligible (default false).
|
|
196
|
+
* @param {number} params.feeAmount - Fixed amount or percent value, per fee_type (default 0).
|
|
197
|
+
* @param {string} params.feeCurrency - ISO 4217 code (default EUR).
|
|
198
|
+
* @param {PaymentFeeType} params.feeType - How 'fee_amount' applies (default 'none').
|
|
199
|
+
* @param {PaymentMethodKind} params.kind - Self-managed (merchant fulfils, default) or PSP-backed ('provider' required to transact).
|
|
200
|
+
* @param {object} params.labels - Localized display names ({ de, en, … }).
|
|
201
|
+
* @param {number} params.maxOrderValue - Maximum order amount — omitted = no upper bound.
|
|
202
|
+
* @param {object} params.metadata - Free-form metadata.
|
|
203
|
+
* @param {number} params.minOrderValue - Minimum order amount — omitted = no lower bound.
|
|
204
|
+
* @param {string} params.name - Display name.
|
|
205
|
+
* @param {number} params.position - Sort position in the checkout (default 0).
|
|
206
|
+
* @param {string} params.provider - PSP code from the catalog — only for kind 'psp'.
|
|
207
|
+
* @param {string} params.providerMethod - The provider's payment method id (e.g. 'card', 'paypal').
|
|
208
|
+
* @throws {RevenexxException}
|
|
209
|
+
* @returns {Promise<Models.PaymentMethod>}
|
|
210
|
+
*/
|
|
211
|
+
paymentsMethodsUpdate(params: {
|
|
212
|
+
id: string;
|
|
213
|
+
code?: string;
|
|
214
|
+
countries?: string[];
|
|
215
|
+
description?: string;
|
|
216
|
+
enabled?: boolean;
|
|
217
|
+
feeAmount?: number;
|
|
218
|
+
feeCurrency?: string;
|
|
219
|
+
feeType?: PaymentFeeType;
|
|
220
|
+
kind?: PaymentMethodKind;
|
|
221
|
+
labels?: object;
|
|
222
|
+
maxOrderValue?: number;
|
|
223
|
+
metadata?: object;
|
|
224
|
+
minOrderValue?: number;
|
|
225
|
+
name?: string;
|
|
226
|
+
position?: number;
|
|
227
|
+
provider?: string;
|
|
228
|
+
providerMethod?: string;
|
|
229
|
+
}): Promise<Models.PaymentMethod>;
|
|
230
|
+
/**
|
|
231
|
+
*
|
|
232
|
+
* @param {string} id -
|
|
233
|
+
* @param {string} code - Stable method code (unique per tenant, e.g. 'invoice', 'card').
|
|
234
|
+
* @param {string[]} countries - Allowed ISO country codes — empty/omitted = unrestricted.
|
|
235
|
+
* @param {string} description -
|
|
236
|
+
* @param {boolean} enabled - Disabled methods are never eligible (default false).
|
|
237
|
+
* @param {number} feeAmount - Fixed amount or percent value, per fee_type (default 0).
|
|
238
|
+
* @param {string} feeCurrency - ISO 4217 code (default EUR).
|
|
239
|
+
* @param {PaymentFeeType} feeType - How 'fee_amount' applies (default 'none').
|
|
240
|
+
* @param {PaymentMethodKind} kind - Self-managed (merchant fulfils, default) or PSP-backed ('provider' required to transact).
|
|
241
|
+
* @param {object} labels - Localized display names ({ de, en, … }).
|
|
242
|
+
* @param {number} maxOrderValue - Maximum order amount — omitted = no upper bound.
|
|
243
|
+
* @param {object} metadata - Free-form metadata.
|
|
244
|
+
* @param {number} minOrderValue - Minimum order amount — omitted = no lower bound.
|
|
245
|
+
* @param {string} name - Display name.
|
|
246
|
+
* @param {number} position - Sort position in the checkout (default 0).
|
|
247
|
+
* @param {string} provider - PSP code from the catalog — only for kind 'psp'.
|
|
248
|
+
* @param {string} providerMethod - The provider's payment method id (e.g. 'card', 'paypal').
|
|
249
|
+
* @throws {RevenexxException}
|
|
250
|
+
* @returns {Promise<Models.PaymentMethod>}
|
|
251
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
252
|
+
*/
|
|
253
|
+
paymentsMethodsUpdate(id: string, code?: string, countries?: string[], description?: string, enabled?: boolean, feeAmount?: number, feeCurrency?: string, feeType?: PaymentFeeType, kind?: PaymentMethodKind, labels?: object, maxOrderValue?: number, metadata?: object, minOrderValue?: number, name?: string, position?: number, provider?: string, providerMethod?: string): Promise<Models.PaymentMethod>;
|
|
254
|
+
/**
|
|
255
|
+
*
|
|
256
|
+
* @throws {RevenexxException}
|
|
257
|
+
* @returns {Promise<{}>}
|
|
258
|
+
*/
|
|
259
|
+
paymentsProvidersList(): Promise<{}>;
|
|
260
|
+
/**
|
|
261
|
+
*
|
|
262
|
+
* @param {string} params.provider - Provider code — must exist in the catalog (GET /payments/providers/catalog).
|
|
263
|
+
* @param {object} params.credentials - PSP credentials — the catalog's credential_fields say which keys the auth scheme expects.
|
|
264
|
+
* @param {boolean} params.enabled - Only enabled providers transact (default false).
|
|
265
|
+
* @param {string} params.name - Display name — defaults to the catalog label.
|
|
266
|
+
* @param {object} params.options - Free-form provider options.
|
|
267
|
+
* @param {boolean} params.testMode - Sandbox/test credentials (default true).
|
|
268
|
+
* @param {string} params.webhookSecret - Shared secret for PSP callback verification.
|
|
269
|
+
* @throws {RevenexxException}
|
|
270
|
+
* @returns {Promise<Models.PaymentProvider>}
|
|
271
|
+
*/
|
|
272
|
+
paymentsProvidersCreate(params: {
|
|
273
|
+
provider: string;
|
|
274
|
+
credentials?: object;
|
|
275
|
+
enabled?: boolean;
|
|
276
|
+
name?: string;
|
|
277
|
+
options?: object;
|
|
278
|
+
testMode?: boolean;
|
|
279
|
+
webhookSecret?: string;
|
|
280
|
+
}): Promise<Models.PaymentProvider>;
|
|
281
|
+
/**
|
|
282
|
+
*
|
|
283
|
+
* @param {string} provider - Provider code — must exist in the catalog (GET /payments/providers/catalog).
|
|
284
|
+
* @param {object} credentials - PSP credentials — the catalog's credential_fields say which keys the auth scheme expects.
|
|
285
|
+
* @param {boolean} enabled - Only enabled providers transact (default false).
|
|
286
|
+
* @param {string} name - Display name — defaults to the catalog label.
|
|
287
|
+
* @param {object} options - Free-form provider options.
|
|
288
|
+
* @param {boolean} testMode - Sandbox/test credentials (default true).
|
|
289
|
+
* @param {string} webhookSecret - Shared secret for PSP callback verification.
|
|
290
|
+
* @throws {RevenexxException}
|
|
291
|
+
* @returns {Promise<Models.PaymentProvider>}
|
|
292
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
293
|
+
*/
|
|
294
|
+
paymentsProvidersCreate(provider: string, credentials?: object, enabled?: boolean, name?: string, options?: object, testMode?: boolean, webhookSecret?: string): Promise<Models.PaymentProvider>;
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* @throws {RevenexxException}
|
|
298
|
+
* @returns {Promise<{}>}
|
|
299
|
+
*/
|
|
300
|
+
paymentsProvidersCatalog(): Promise<{}>;
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @param {string} params.id -
|
|
304
|
+
* @throws {RevenexxException}
|
|
305
|
+
* @returns {Promise<{}>}
|
|
306
|
+
*/
|
|
307
|
+
paymentsProvidersDelete(params: {
|
|
308
|
+
id: string;
|
|
309
|
+
}): Promise<{}>;
|
|
310
|
+
/**
|
|
311
|
+
*
|
|
312
|
+
* @param {string} id -
|
|
313
|
+
* @throws {RevenexxException}
|
|
314
|
+
* @returns {Promise<{}>}
|
|
315
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
316
|
+
*/
|
|
317
|
+
paymentsProvidersDelete(id: string): Promise<{}>;
|
|
318
|
+
/**
|
|
319
|
+
*
|
|
320
|
+
* @param {string} params.id -
|
|
321
|
+
* @throws {RevenexxException}
|
|
322
|
+
* @returns {Promise<Models.PaymentProvider>}
|
|
323
|
+
*/
|
|
324
|
+
paymentsProvidersGet(params: {
|
|
325
|
+
id: string;
|
|
326
|
+
}): Promise<Models.PaymentProvider>;
|
|
327
|
+
/**
|
|
328
|
+
*
|
|
329
|
+
* @param {string} id -
|
|
330
|
+
* @throws {RevenexxException}
|
|
331
|
+
* @returns {Promise<Models.PaymentProvider>}
|
|
332
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
333
|
+
*/
|
|
334
|
+
paymentsProvidersGet(id: string): Promise<Models.PaymentProvider>;
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
* @param {string} params.id -
|
|
338
|
+
* @param {object} params.credentials - PSP credentials — the catalog's credential_fields say which keys the auth scheme expects.
|
|
339
|
+
* @param {boolean} params.enabled - Only enabled providers transact (default false).
|
|
340
|
+
* @param {string} params.name - Display name — defaults to the catalog label.
|
|
341
|
+
* @param {object} params.options - Free-form provider options.
|
|
342
|
+
* @param {string} params.provider - Provider code — must exist in the catalog (GET /payments/providers/catalog).
|
|
343
|
+
* @param {boolean} params.testMode - Sandbox/test credentials (default true).
|
|
344
|
+
* @param {string} params.webhookSecret - Shared secret for PSP callback verification.
|
|
345
|
+
* @throws {RevenexxException}
|
|
346
|
+
* @returns {Promise<Models.PaymentProvider>}
|
|
347
|
+
*/
|
|
348
|
+
paymentsProvidersUpdate(params: {
|
|
349
|
+
id: string;
|
|
350
|
+
credentials?: object;
|
|
351
|
+
enabled?: boolean;
|
|
352
|
+
name?: string;
|
|
353
|
+
options?: object;
|
|
354
|
+
provider?: string;
|
|
355
|
+
testMode?: boolean;
|
|
356
|
+
webhookSecret?: string;
|
|
357
|
+
}): Promise<Models.PaymentProvider>;
|
|
358
|
+
/**
|
|
359
|
+
*
|
|
360
|
+
* @param {string} id -
|
|
361
|
+
* @param {object} credentials - PSP credentials — the catalog's credential_fields say which keys the auth scheme expects.
|
|
362
|
+
* @param {boolean} enabled - Only enabled providers transact (default false).
|
|
363
|
+
* @param {string} name - Display name — defaults to the catalog label.
|
|
364
|
+
* @param {object} options - Free-form provider options.
|
|
365
|
+
* @param {string} provider - Provider code — must exist in the catalog (GET /payments/providers/catalog).
|
|
366
|
+
* @param {boolean} testMode - Sandbox/test credentials (default true).
|
|
367
|
+
* @param {string} webhookSecret - Shared secret for PSP callback verification.
|
|
368
|
+
* @throws {RevenexxException}
|
|
369
|
+
* @returns {Promise<Models.PaymentProvider>}
|
|
370
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
371
|
+
*/
|
|
372
|
+
paymentsProvidersUpdate(id: string, credentials?: object, enabled?: boolean, name?: string, options?: object, provider?: string, testMode?: boolean, webhookSecret?: string): Promise<Models.PaymentProvider>;
|
|
373
|
+
/**
|
|
374
|
+
* Consumes the dispatch envelope from webhooks.revenexx.com: normalizes the provider callback (stripe payment intents + a generic shape), resolves the payment by psp_payment_id or order_ref and moves the ledger. Facts only move forward — provider retries and redeliveries are idempotent no-ops; unverified envelopes are refused.
|
|
375
|
+
*
|
|
376
|
+
* @param {string} params.provider -
|
|
377
|
+
* @param {object} params.data - Request body
|
|
378
|
+
* @throws {RevenexxException}
|
|
379
|
+
* @returns {Promise<{}>}
|
|
380
|
+
*/
|
|
381
|
+
paymentsWebhooksIngest(params: {
|
|
382
|
+
provider: string;
|
|
383
|
+
data: object;
|
|
384
|
+
}): Promise<{}>;
|
|
385
|
+
/**
|
|
386
|
+
* Consumes the dispatch envelope from webhooks.revenexx.com: normalizes the provider callback (stripe payment intents + a generic shape), resolves the payment by psp_payment_id or order_ref and moves the ledger. Facts only move forward — provider retries and redeliveries are idempotent no-ops; unverified envelopes are refused.
|
|
387
|
+
*
|
|
388
|
+
* @param {string} provider -
|
|
389
|
+
* @param {object} data - Request body
|
|
390
|
+
* @throws {RevenexxException}
|
|
391
|
+
* @returns {Promise<{}>}
|
|
392
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
393
|
+
*/
|
|
394
|
+
paymentsWebhooksIngest(provider: string, data: object): Promise<{}>;
|
|
395
|
+
/**
|
|
396
|
+
*
|
|
397
|
+
* @param {string} params.id -
|
|
398
|
+
* @throws {RevenexxException}
|
|
399
|
+
* @returns {Promise<Models.Payment>}
|
|
400
|
+
*/
|
|
401
|
+
paymentsGet(params: {
|
|
402
|
+
id: string;
|
|
403
|
+
}): Promise<Models.Payment>;
|
|
404
|
+
/**
|
|
405
|
+
*
|
|
406
|
+
* @param {string} id -
|
|
407
|
+
* @throws {RevenexxException}
|
|
408
|
+
* @returns {Promise<Models.Payment>}
|
|
409
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
410
|
+
*/
|
|
411
|
+
paymentsGet(id: string): Promise<Models.Payment>;
|
|
412
|
+
/**
|
|
413
|
+
*
|
|
414
|
+
* @param {string} params.id -
|
|
415
|
+
* @throws {RevenexxException}
|
|
416
|
+
* @returns {Promise<Models.Payment>}
|
|
417
|
+
*/
|
|
418
|
+
paymentsCancel(params: {
|
|
419
|
+
id: string;
|
|
420
|
+
}): Promise<Models.Payment>;
|
|
421
|
+
/**
|
|
422
|
+
*
|
|
423
|
+
* @param {string} id -
|
|
424
|
+
* @throws {RevenexxException}
|
|
425
|
+
* @returns {Promise<Models.Payment>}
|
|
426
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
427
|
+
*/
|
|
428
|
+
paymentsCancel(id: string): Promise<Models.Payment>;
|
|
429
|
+
/**
|
|
430
|
+
*
|
|
431
|
+
* @param {string} params.id -
|
|
432
|
+
* @throws {RevenexxException}
|
|
433
|
+
* @returns {Promise<Models.Payment>}
|
|
434
|
+
*/
|
|
435
|
+
paymentsCapture(params: {
|
|
436
|
+
id: string;
|
|
437
|
+
}): Promise<Models.Payment>;
|
|
438
|
+
/**
|
|
439
|
+
*
|
|
440
|
+
* @param {string} id -
|
|
441
|
+
* @throws {RevenexxException}
|
|
442
|
+
* @returns {Promise<Models.Payment>}
|
|
443
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
444
|
+
*/
|
|
445
|
+
paymentsCapture(id: string): Promise<Models.Payment>;
|
|
446
|
+
/**
|
|
447
|
+
*
|
|
448
|
+
* @param {string} params.id -
|
|
449
|
+
* @throws {RevenexxException}
|
|
450
|
+
* @returns {Promise<Models.Payment>}
|
|
451
|
+
*/
|
|
452
|
+
paymentsConfirm(params: {
|
|
453
|
+
id: string;
|
|
454
|
+
}): Promise<Models.Payment>;
|
|
455
|
+
/**
|
|
456
|
+
*
|
|
457
|
+
* @param {string} id -
|
|
458
|
+
* @throws {RevenexxException}
|
|
459
|
+
* @returns {Promise<Models.Payment>}
|
|
460
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
461
|
+
*/
|
|
462
|
+
paymentsConfirm(id: string): Promise<Models.Payment>;
|
|
463
|
+
/**
|
|
464
|
+
*
|
|
465
|
+
* @param {string} params.id -
|
|
466
|
+
* @throws {RevenexxException}
|
|
467
|
+
* @returns {Promise<Models.Payment>}
|
|
468
|
+
*/
|
|
469
|
+
paymentsRefund(params: {
|
|
470
|
+
id: string;
|
|
471
|
+
}): Promise<Models.Payment>;
|
|
472
|
+
/**
|
|
473
|
+
*
|
|
474
|
+
* @param {string} id -
|
|
475
|
+
* @throws {RevenexxException}
|
|
476
|
+
* @returns {Promise<Models.Payment>}
|
|
477
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
478
|
+
*/
|
|
479
|
+
paymentsRefund(id: string): Promise<Models.Payment>;
|
|
480
|
+
}
|