@randock/nameshift-api-client 0.0.417 → 0.0.418
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/.openapi-generator/FILES +1 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +1 -0
- package/dist/apis/AccountsApi.js +1 -0
- package/dist/apis/MolliePublicApi.d.ts +25 -0
- package/dist/apis/MolliePublicApi.js +118 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AccountPaymentMethodProfileDto.d.ts +1 -0
- package/dist/models/AccountPaymentMethodProfileDto.js +1 -0
- package/dist/models/CreateAccountPaymentManualTransactionInput.d.ts +84 -0
- package/dist/models/CreateAccountPaymentManualTransactionInput.js +76 -1
- package/dist/models/CreateManualTransactionInput.d.ts +84 -0
- package/dist/models/CreateManualTransactionInput.js +76 -1
- package/dist/models/CreateSubscriptionManualTransactionInput.d.ts +96 -0
- package/dist/models/CreateSubscriptionManualTransactionInput.js +80 -0
- package/dist/models/InvoiceTransactionDto.d.ts +81 -2
- package/dist/models/InvoiceTransactionDto.js +81 -5
- package/dist/models/OrderDto.d.ts +85 -1
- package/dist/models/OrderDto.js +80 -1
- package/dist/models/SubscriptionDto.d.ts +85 -1
- package/dist/models/SubscriptionDto.js +80 -1
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +1 -0
- package/src/apis/MolliePublicApi.ts +55 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AccountPaymentMethodProfileDto.ts +1 -0
- package/src/models/CreateAccountPaymentManualTransactionInput.ts +89 -0
- package/src/models/CreateManualTransactionInput.ts +89 -0
- package/src/models/CreateSubscriptionManualTransactionInput.ts +107 -0
- package/src/models/InvoiceTransactionDto.ts +88 -5
- package/src/models/OrderDto.ts +92 -1
- package/src/models/SubscriptionDto.ts +92 -1
|
@@ -53,6 +53,18 @@ export interface SubscriptionDto {
|
|
|
53
53
|
* @memberof SubscriptionDto
|
|
54
54
|
*/
|
|
55
55
|
decidedCountry: string;
|
|
56
|
+
/**
|
|
57
|
+
* Available payment methods per gateway (raw provider ids), keyed by PaymentGateway
|
|
58
|
+
* @type {object}
|
|
59
|
+
* @memberof SubscriptionDto
|
|
60
|
+
*/
|
|
61
|
+
availablePaymentMethods: object;
|
|
62
|
+
/**
|
|
63
|
+
* Selected payment method on the active transaction (canonical)
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof SubscriptionDto
|
|
66
|
+
*/
|
|
67
|
+
selectedPaymentMethod: SubscriptionDtoSelectedPaymentMethodEnum | null;
|
|
56
68
|
/**
|
|
57
69
|
*
|
|
58
70
|
* @type {MoneyDto}
|
|
@@ -124,7 +136,7 @@ export interface SubscriptionDto {
|
|
|
124
136
|
* @type {InvoiceTransactionDto}
|
|
125
137
|
* @memberof SubscriptionDto
|
|
126
138
|
*/
|
|
127
|
-
transaction: InvoiceTransactionDto;
|
|
139
|
+
transaction: InvoiceTransactionDto | null;
|
|
128
140
|
/**
|
|
129
141
|
*
|
|
130
142
|
* @type {boolean}
|
|
@@ -203,6 +215,78 @@ export declare const SubscriptionDtoStatusEnum: {
|
|
|
203
215
|
readonly FINISHED: "finished";
|
|
204
216
|
};
|
|
205
217
|
export type SubscriptionDtoStatusEnum = typeof SubscriptionDtoStatusEnum[keyof typeof SubscriptionDtoStatusEnum];
|
|
218
|
+
/**
|
|
219
|
+
* @export
|
|
220
|
+
*/
|
|
221
|
+
export declare const SubscriptionDtoSelectedPaymentMethodEnum: {
|
|
222
|
+
readonly ACSS_DEBIT: "acss_debit";
|
|
223
|
+
readonly AFFIRM: "affirm";
|
|
224
|
+
readonly AFTERPAY_CLEARPAY: "afterpay_clearpay";
|
|
225
|
+
readonly ALIPAY: "alipay";
|
|
226
|
+
readonly ALMA: "alma";
|
|
227
|
+
readonly AMAZON_PAY: "amazon_pay";
|
|
228
|
+
readonly APPLE_PAY: "apple_pay";
|
|
229
|
+
readonly AU_BECS_DEBIT: "au_becs_debit";
|
|
230
|
+
readonly BACS_DEBIT: "bacs_debit";
|
|
231
|
+
readonly BANCOMAT_PAY: "bancomat_pay";
|
|
232
|
+
readonly BANCONTACT: "bancontact";
|
|
233
|
+
readonly BELFIUS: "belfius";
|
|
234
|
+
readonly BILLIE: "billie";
|
|
235
|
+
readonly BLIK: "blik";
|
|
236
|
+
readonly BOLETO: "boleto";
|
|
237
|
+
readonly BANK_TRANSFER: "bank_transfer";
|
|
238
|
+
readonly CARD: "card";
|
|
239
|
+
readonly CARD_PRESENT: "card_present";
|
|
240
|
+
readonly CASHAPP: "cashapp";
|
|
241
|
+
readonly CUSTOMER_BALANCE: "customer_balance";
|
|
242
|
+
readonly EPS: "eps";
|
|
243
|
+
readonly FPX: "fpx";
|
|
244
|
+
readonly GIFTCARD: "giftcard";
|
|
245
|
+
readonly GIROPAY: "giropay";
|
|
246
|
+
readonly GOOGLE_PAY: "google_pay";
|
|
247
|
+
readonly GOPAY: "gopay";
|
|
248
|
+
readonly GRABPAY: "grabpay";
|
|
249
|
+
readonly ID_BANK_TRANSFER: "id_bank_transfer";
|
|
250
|
+
readonly IDEAL: "ideal";
|
|
251
|
+
readonly IN3: "in3";
|
|
252
|
+
readonly INTERAC_PRESENT: "interac_present";
|
|
253
|
+
readonly KAKAO_PAY: "kakao_pay";
|
|
254
|
+
readonly KBC: "kbc";
|
|
255
|
+
readonly KLARNA: "klarna";
|
|
256
|
+
readonly KONBINI: "konbini";
|
|
257
|
+
readonly KR_CARD: "kr_card";
|
|
258
|
+
readonly LINK: "link";
|
|
259
|
+
readonly MB_WAY: "mb_way";
|
|
260
|
+
readonly MOBILEPAY: "mobilepay";
|
|
261
|
+
readonly MULTIBANCO: "multibanco";
|
|
262
|
+
readonly NAVER_PAY: "naver_pay";
|
|
263
|
+
readonly NZ_BANK_ACCOUNT: "nz_bank_account";
|
|
264
|
+
readonly OXXO: "oxxo";
|
|
265
|
+
readonly PAY_BY_BANK: "pay_by_bank";
|
|
266
|
+
readonly PAYCO: "payco";
|
|
267
|
+
readonly PAYNOW: "paynow";
|
|
268
|
+
readonly PAYPAL: "paypal";
|
|
269
|
+
readonly PAYTO: "payto";
|
|
270
|
+
readonly PIX: "pix";
|
|
271
|
+
readonly PROMPTPAY: "promptpay";
|
|
272
|
+
readonly PRZELEWY24: "przelewy24";
|
|
273
|
+
readonly QRIS: "qris";
|
|
274
|
+
readonly RECHNUNG: "rechnung";
|
|
275
|
+
readonly REVOLUT_PAY: "revolut_pay";
|
|
276
|
+
readonly SAMSUNG_PAY: "samsung_pay";
|
|
277
|
+
readonly SATISPAY: "satispay";
|
|
278
|
+
readonly SEPA_DEBIT: "sepa_debit";
|
|
279
|
+
readonly SHOPEEPAY: "shopeepay";
|
|
280
|
+
readonly SOFORT: "sofort";
|
|
281
|
+
readonly STRIPE_BALANCE: "stripe_balance";
|
|
282
|
+
readonly SWISH: "swish";
|
|
283
|
+
readonly TWINT: "twint";
|
|
284
|
+
readonly US_BANK_ACCOUNT: "us_bank_account";
|
|
285
|
+
readonly VOUCHER: "voucher";
|
|
286
|
+
readonly WECHAT_PAY: "wechat_pay";
|
|
287
|
+
readonly ZIP: "zip";
|
|
288
|
+
};
|
|
289
|
+
export type SubscriptionDtoSelectedPaymentMethodEnum = typeof SubscriptionDtoSelectedPaymentMethodEnum[keyof typeof SubscriptionDtoSelectedPaymentMethodEnum];
|
|
206
290
|
/**
|
|
207
291
|
* @export
|
|
208
292
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SubscriptionDtoLeadStatusEnum = exports.SubscriptionDtoTypeEnum = exports.SubscriptionDtoStatusEnum = void 0;
|
|
16
|
+
exports.SubscriptionDtoLeadStatusEnum = exports.SubscriptionDtoTypeEnum = exports.SubscriptionDtoSelectedPaymentMethodEnum = exports.SubscriptionDtoStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfSubscriptionDto = instanceOfSubscriptionDto;
|
|
18
18
|
exports.SubscriptionDtoFromJSON = SubscriptionDtoFromJSON;
|
|
19
19
|
exports.SubscriptionDtoFromJSONTyped = SubscriptionDtoFromJSONTyped;
|
|
@@ -37,6 +37,77 @@ exports.SubscriptionDtoStatusEnum = {
|
|
|
37
37
|
CANCELLED: 'cancelled',
|
|
38
38
|
FINISHED: 'finished'
|
|
39
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
exports.SubscriptionDtoSelectedPaymentMethodEnum = {
|
|
44
|
+
ACSS_DEBIT: 'acss_debit',
|
|
45
|
+
AFFIRM: 'affirm',
|
|
46
|
+
AFTERPAY_CLEARPAY: 'afterpay_clearpay',
|
|
47
|
+
ALIPAY: 'alipay',
|
|
48
|
+
ALMA: 'alma',
|
|
49
|
+
AMAZON_PAY: 'amazon_pay',
|
|
50
|
+
APPLE_PAY: 'apple_pay',
|
|
51
|
+
AU_BECS_DEBIT: 'au_becs_debit',
|
|
52
|
+
BACS_DEBIT: 'bacs_debit',
|
|
53
|
+
BANCOMAT_PAY: 'bancomat_pay',
|
|
54
|
+
BANCONTACT: 'bancontact',
|
|
55
|
+
BELFIUS: 'belfius',
|
|
56
|
+
BILLIE: 'billie',
|
|
57
|
+
BLIK: 'blik',
|
|
58
|
+
BOLETO: 'boleto',
|
|
59
|
+
BANK_TRANSFER: 'bank_transfer',
|
|
60
|
+
CARD: 'card',
|
|
61
|
+
CARD_PRESENT: 'card_present',
|
|
62
|
+
CASHAPP: 'cashapp',
|
|
63
|
+
CUSTOMER_BALANCE: 'customer_balance',
|
|
64
|
+
EPS: 'eps',
|
|
65
|
+
FPX: 'fpx',
|
|
66
|
+
GIFTCARD: 'giftcard',
|
|
67
|
+
GIROPAY: 'giropay',
|
|
68
|
+
GOOGLE_PAY: 'google_pay',
|
|
69
|
+
GOPAY: 'gopay',
|
|
70
|
+
GRABPAY: 'grabpay',
|
|
71
|
+
ID_BANK_TRANSFER: 'id_bank_transfer',
|
|
72
|
+
IDEAL: 'ideal',
|
|
73
|
+
IN3: 'in3',
|
|
74
|
+
INTERAC_PRESENT: 'interac_present',
|
|
75
|
+
KAKAO_PAY: 'kakao_pay',
|
|
76
|
+
KBC: 'kbc',
|
|
77
|
+
KLARNA: 'klarna',
|
|
78
|
+
KONBINI: 'konbini',
|
|
79
|
+
KR_CARD: 'kr_card',
|
|
80
|
+
LINK: 'link',
|
|
81
|
+
MB_WAY: 'mb_way',
|
|
82
|
+
MOBILEPAY: 'mobilepay',
|
|
83
|
+
MULTIBANCO: 'multibanco',
|
|
84
|
+
NAVER_PAY: 'naver_pay',
|
|
85
|
+
NZ_BANK_ACCOUNT: 'nz_bank_account',
|
|
86
|
+
OXXO: 'oxxo',
|
|
87
|
+
PAY_BY_BANK: 'pay_by_bank',
|
|
88
|
+
PAYCO: 'payco',
|
|
89
|
+
PAYNOW: 'paynow',
|
|
90
|
+
PAYPAL: 'paypal',
|
|
91
|
+
PAYTO: 'payto',
|
|
92
|
+
PIX: 'pix',
|
|
93
|
+
PROMPTPAY: 'promptpay',
|
|
94
|
+
PRZELEWY24: 'przelewy24',
|
|
95
|
+
QRIS: 'qris',
|
|
96
|
+
RECHNUNG: 'rechnung',
|
|
97
|
+
REVOLUT_PAY: 'revolut_pay',
|
|
98
|
+
SAMSUNG_PAY: 'samsung_pay',
|
|
99
|
+
SATISPAY: 'satispay',
|
|
100
|
+
SEPA_DEBIT: 'sepa_debit',
|
|
101
|
+
SHOPEEPAY: 'shopeepay',
|
|
102
|
+
SOFORT: 'sofort',
|
|
103
|
+
STRIPE_BALANCE: 'stripe_balance',
|
|
104
|
+
SWISH: 'swish',
|
|
105
|
+
TWINT: 'twint',
|
|
106
|
+
US_BANK_ACCOUNT: 'us_bank_account',
|
|
107
|
+
VOUCHER: 'voucher',
|
|
108
|
+
WECHAT_PAY: 'wechat_pay',
|
|
109
|
+
ZIP: 'zip'
|
|
110
|
+
};
|
|
40
111
|
/**
|
|
41
112
|
* @export
|
|
42
113
|
*/
|
|
@@ -68,6 +139,10 @@ function instanceOfSubscriptionDto(value) {
|
|
|
68
139
|
return false;
|
|
69
140
|
if (!('decidedCountry' in value) || value['decidedCountry'] === undefined)
|
|
70
141
|
return false;
|
|
142
|
+
if (!('availablePaymentMethods' in value) || value['availablePaymentMethods'] === undefined)
|
|
143
|
+
return false;
|
|
144
|
+
if (!('selectedPaymentMethod' in value) || value['selectedPaymentMethod'] === undefined)
|
|
145
|
+
return false;
|
|
71
146
|
if (!('basePrice' in value) || value['basePrice'] === undefined)
|
|
72
147
|
return false;
|
|
73
148
|
if (!('recurringPrice' in value) || value['recurringPrice'] === undefined)
|
|
@@ -129,6 +204,8 @@ function SubscriptionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
129
204
|
'status': json['status'],
|
|
130
205
|
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
|
|
131
206
|
'decidedCountry': json['decidedCountry'],
|
|
207
|
+
'availablePaymentMethods': json['availablePaymentMethods'],
|
|
208
|
+
'selectedPaymentMethod': json['selectedPaymentMethod'],
|
|
132
209
|
'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
|
|
133
210
|
'recurringPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['recurringPrice']),
|
|
134
211
|
'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
|
|
@@ -168,6 +245,8 @@ function SubscriptionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
168
245
|
'status': value['status'],
|
|
169
246
|
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
170
247
|
'decidedCountry': value['decidedCountry'],
|
|
248
|
+
'availablePaymentMethods': value['availablePaymentMethods'],
|
|
249
|
+
'selectedPaymentMethod': value['selectedPaymentMethod'],
|
|
171
250
|
'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
|
|
172
251
|
'recurringPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['recurringPrice']),
|
|
173
252
|
'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
|
package/package.json
CHANGED
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -1018,6 +1018,7 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
1018
1018
|
*/
|
|
1019
1019
|
export const GetAccountPaymentMethodsGatewayEnum = {
|
|
1020
1020
|
STRIPE: 'stripe',
|
|
1021
|
+
MOLLIE: 'mollie',
|
|
1021
1022
|
NICKY: 'nicky'
|
|
1022
1023
|
} as const;
|
|
1023
1024
|
export type GetAccountPaymentMethodsGatewayEnum = typeof GetAccountPaymentMethodsGatewayEnum[keyof typeof GetAccountPaymentMethodsGatewayEnum];
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ValidationException,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
ValidationExceptionFromJSON,
|
|
22
|
+
ValidationExceptionToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class MolliePublicApi extends runtime.BaseAPI {
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
async postMollieWebhookRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
34
|
+
const queryParameters: any = {};
|
|
35
|
+
|
|
36
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
37
|
+
|
|
38
|
+
const response = await this.request({
|
|
39
|
+
path: `/mollie/webhook`,
|
|
40
|
+
method: 'POST',
|
|
41
|
+
headers: headerParameters,
|
|
42
|
+
query: queryParameters,
|
|
43
|
+
}, initOverrides);
|
|
44
|
+
|
|
45
|
+
return new runtime.VoidApiResponse(response);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
async postMollieWebhook(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
52
|
+
await this.postMollieWebhookRaw(initOverrides);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './EppApi';
|
|
|
17
17
|
export * from './InvoicesApi';
|
|
18
18
|
export * from './LeadsApi';
|
|
19
19
|
export * from './LeadsPublicApi';
|
|
20
|
+
export * from './MolliePublicApi';
|
|
20
21
|
export * from './NickyPublicApi';
|
|
21
22
|
export * from './NotificationsApi';
|
|
22
23
|
export * from './OrdersPublicApi';
|
|
@@ -71,6 +71,7 @@ export interface AccountPaymentMethodProfileDto {
|
|
|
71
71
|
*/
|
|
72
72
|
export const AccountPaymentMethodProfileDtoGatewayEnum = {
|
|
73
73
|
STRIPE: 'stripe',
|
|
74
|
+
MOLLIE: 'mollie',
|
|
74
75
|
NICKY: 'nicky'
|
|
75
76
|
} as const;
|
|
76
77
|
export type AccountPaymentMethodProfileDtoGatewayEnum = typeof AccountPaymentMethodProfileDtoGatewayEnum[keyof typeof AccountPaymentMethodProfileDtoGatewayEnum];
|
|
@@ -37,6 +37,18 @@ export interface CreateAccountPaymentManualTransactionInput {
|
|
|
37
37
|
* @memberof CreateAccountPaymentManualTransactionInput
|
|
38
38
|
*/
|
|
39
39
|
cancelUrl?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Payment session ID used as Mollie card token
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreateAccountPaymentManualTransactionInput
|
|
44
|
+
*/
|
|
45
|
+
sessionId?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Selected payment method (canonical name)
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CreateAccountPaymentManualTransactionInput
|
|
50
|
+
*/
|
|
51
|
+
selectedPaymentMethod?: CreateAccountPaymentManualTransactionInputSelectedPaymentMethodEnum;
|
|
40
52
|
/**
|
|
41
53
|
* Payment method string to use for this transaction
|
|
42
54
|
* @type {string}
|
|
@@ -55,6 +67,79 @@ export const CreateAccountPaymentManualTransactionInputGatewayEnum = {
|
|
|
55
67
|
} as const;
|
|
56
68
|
export type CreateAccountPaymentManualTransactionInputGatewayEnum = typeof CreateAccountPaymentManualTransactionInputGatewayEnum[keyof typeof CreateAccountPaymentManualTransactionInputGatewayEnum];
|
|
57
69
|
|
|
70
|
+
/**
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
export const CreateAccountPaymentManualTransactionInputSelectedPaymentMethodEnum = {
|
|
74
|
+
ACSS_DEBIT: 'acss_debit',
|
|
75
|
+
AFFIRM: 'affirm',
|
|
76
|
+
AFTERPAY_CLEARPAY: 'afterpay_clearpay',
|
|
77
|
+
ALIPAY: 'alipay',
|
|
78
|
+
ALMA: 'alma',
|
|
79
|
+
AMAZON_PAY: 'amazon_pay',
|
|
80
|
+
APPLE_PAY: 'apple_pay',
|
|
81
|
+
AU_BECS_DEBIT: 'au_becs_debit',
|
|
82
|
+
BACS_DEBIT: 'bacs_debit',
|
|
83
|
+
BANCOMAT_PAY: 'bancomat_pay',
|
|
84
|
+
BANCONTACT: 'bancontact',
|
|
85
|
+
BELFIUS: 'belfius',
|
|
86
|
+
BILLIE: 'billie',
|
|
87
|
+
BLIK: 'blik',
|
|
88
|
+
BOLETO: 'boleto',
|
|
89
|
+
BANK_TRANSFER: 'bank_transfer',
|
|
90
|
+
CARD: 'card',
|
|
91
|
+
CARD_PRESENT: 'card_present',
|
|
92
|
+
CASHAPP: 'cashapp',
|
|
93
|
+
CUSTOMER_BALANCE: 'customer_balance',
|
|
94
|
+
EPS: 'eps',
|
|
95
|
+
FPX: 'fpx',
|
|
96
|
+
GIFTCARD: 'giftcard',
|
|
97
|
+
GIROPAY: 'giropay',
|
|
98
|
+
GOOGLE_PAY: 'google_pay',
|
|
99
|
+
GOPAY: 'gopay',
|
|
100
|
+
GRABPAY: 'grabpay',
|
|
101
|
+
ID_BANK_TRANSFER: 'id_bank_transfer',
|
|
102
|
+
IDEAL: 'ideal',
|
|
103
|
+
IN3: 'in3',
|
|
104
|
+
INTERAC_PRESENT: 'interac_present',
|
|
105
|
+
KAKAO_PAY: 'kakao_pay',
|
|
106
|
+
KBC: 'kbc',
|
|
107
|
+
KLARNA: 'klarna',
|
|
108
|
+
KONBINI: 'konbini',
|
|
109
|
+
KR_CARD: 'kr_card',
|
|
110
|
+
LINK: 'link',
|
|
111
|
+
MB_WAY: 'mb_way',
|
|
112
|
+
MOBILEPAY: 'mobilepay',
|
|
113
|
+
MULTIBANCO: 'multibanco',
|
|
114
|
+
NAVER_PAY: 'naver_pay',
|
|
115
|
+
NZ_BANK_ACCOUNT: 'nz_bank_account',
|
|
116
|
+
OXXO: 'oxxo',
|
|
117
|
+
PAY_BY_BANK: 'pay_by_bank',
|
|
118
|
+
PAYCO: 'payco',
|
|
119
|
+
PAYNOW: 'paynow',
|
|
120
|
+
PAYPAL: 'paypal',
|
|
121
|
+
PAYTO: 'payto',
|
|
122
|
+
PIX: 'pix',
|
|
123
|
+
PROMPTPAY: 'promptpay',
|
|
124
|
+
PRZELEWY24: 'przelewy24',
|
|
125
|
+
QRIS: 'qris',
|
|
126
|
+
RECHNUNG: 'rechnung',
|
|
127
|
+
REVOLUT_PAY: 'revolut_pay',
|
|
128
|
+
SAMSUNG_PAY: 'samsung_pay',
|
|
129
|
+
SATISPAY: 'satispay',
|
|
130
|
+
SEPA_DEBIT: 'sepa_debit',
|
|
131
|
+
SHOPEEPAY: 'shopeepay',
|
|
132
|
+
SOFORT: 'sofort',
|
|
133
|
+
STRIPE_BALANCE: 'stripe_balance',
|
|
134
|
+
SWISH: 'swish',
|
|
135
|
+
TWINT: 'twint',
|
|
136
|
+
US_BANK_ACCOUNT: 'us_bank_account',
|
|
137
|
+
VOUCHER: 'voucher',
|
|
138
|
+
WECHAT_PAY: 'wechat_pay',
|
|
139
|
+
ZIP: 'zip'
|
|
140
|
+
} as const;
|
|
141
|
+
export type CreateAccountPaymentManualTransactionInputSelectedPaymentMethodEnum = typeof CreateAccountPaymentManualTransactionInputSelectedPaymentMethodEnum[keyof typeof CreateAccountPaymentManualTransactionInputSelectedPaymentMethodEnum];
|
|
142
|
+
|
|
58
143
|
|
|
59
144
|
/**
|
|
60
145
|
* Check if a given object implements the CreateAccountPaymentManualTransactionInput interface.
|
|
@@ -77,6 +162,8 @@ export function CreateAccountPaymentManualTransactionInputFromJSONTyped(json: an
|
|
|
77
162
|
'gateway': json['gateway'] == null ? undefined : json['gateway'],
|
|
78
163
|
'successUrl': json['successUrl'] == null ? undefined : json['successUrl'],
|
|
79
164
|
'cancelUrl': json['cancelUrl'] == null ? undefined : json['cancelUrl'],
|
|
165
|
+
'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
|
|
166
|
+
'selectedPaymentMethod': json['selectedPaymentMethod'] == null ? undefined : json['selectedPaymentMethod'],
|
|
80
167
|
'paymentMethodType': json['paymentMethodType'],
|
|
81
168
|
};
|
|
82
169
|
}
|
|
@@ -95,6 +182,8 @@ export function CreateAccountPaymentManualTransactionInputToJSONTyped(value?: Cr
|
|
|
95
182
|
'gateway': value['gateway'],
|
|
96
183
|
'successUrl': value['successUrl'],
|
|
97
184
|
'cancelUrl': value['cancelUrl'],
|
|
185
|
+
'sessionId': value['sessionId'],
|
|
186
|
+
'selectedPaymentMethod': value['selectedPaymentMethod'],
|
|
98
187
|
'paymentMethodType': value['paymentMethodType'],
|
|
99
188
|
};
|
|
100
189
|
}
|
|
@@ -37,6 +37,18 @@ export interface CreateManualTransactionInput {
|
|
|
37
37
|
* @memberof CreateManualTransactionInput
|
|
38
38
|
*/
|
|
39
39
|
cancelUrl?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Payment session ID used as Mollie card token
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreateManualTransactionInput
|
|
44
|
+
*/
|
|
45
|
+
sessionId?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Selected payment method (canonical name)
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CreateManualTransactionInput
|
|
50
|
+
*/
|
|
51
|
+
selectedPaymentMethod?: CreateManualTransactionInputSelectedPaymentMethodEnum;
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
|
|
@@ -49,6 +61,79 @@ export const CreateManualTransactionInputGatewayEnum = {
|
|
|
49
61
|
} as const;
|
|
50
62
|
export type CreateManualTransactionInputGatewayEnum = typeof CreateManualTransactionInputGatewayEnum[keyof typeof CreateManualTransactionInputGatewayEnum];
|
|
51
63
|
|
|
64
|
+
/**
|
|
65
|
+
* @export
|
|
66
|
+
*/
|
|
67
|
+
export const CreateManualTransactionInputSelectedPaymentMethodEnum = {
|
|
68
|
+
ACSS_DEBIT: 'acss_debit',
|
|
69
|
+
AFFIRM: 'affirm',
|
|
70
|
+
AFTERPAY_CLEARPAY: 'afterpay_clearpay',
|
|
71
|
+
ALIPAY: 'alipay',
|
|
72
|
+
ALMA: 'alma',
|
|
73
|
+
AMAZON_PAY: 'amazon_pay',
|
|
74
|
+
APPLE_PAY: 'apple_pay',
|
|
75
|
+
AU_BECS_DEBIT: 'au_becs_debit',
|
|
76
|
+
BACS_DEBIT: 'bacs_debit',
|
|
77
|
+
BANCOMAT_PAY: 'bancomat_pay',
|
|
78
|
+
BANCONTACT: 'bancontact',
|
|
79
|
+
BELFIUS: 'belfius',
|
|
80
|
+
BILLIE: 'billie',
|
|
81
|
+
BLIK: 'blik',
|
|
82
|
+
BOLETO: 'boleto',
|
|
83
|
+
BANK_TRANSFER: 'bank_transfer',
|
|
84
|
+
CARD: 'card',
|
|
85
|
+
CARD_PRESENT: 'card_present',
|
|
86
|
+
CASHAPP: 'cashapp',
|
|
87
|
+
CUSTOMER_BALANCE: 'customer_balance',
|
|
88
|
+
EPS: 'eps',
|
|
89
|
+
FPX: 'fpx',
|
|
90
|
+
GIFTCARD: 'giftcard',
|
|
91
|
+
GIROPAY: 'giropay',
|
|
92
|
+
GOOGLE_PAY: 'google_pay',
|
|
93
|
+
GOPAY: 'gopay',
|
|
94
|
+
GRABPAY: 'grabpay',
|
|
95
|
+
ID_BANK_TRANSFER: 'id_bank_transfer',
|
|
96
|
+
IDEAL: 'ideal',
|
|
97
|
+
IN3: 'in3',
|
|
98
|
+
INTERAC_PRESENT: 'interac_present',
|
|
99
|
+
KAKAO_PAY: 'kakao_pay',
|
|
100
|
+
KBC: 'kbc',
|
|
101
|
+
KLARNA: 'klarna',
|
|
102
|
+
KONBINI: 'konbini',
|
|
103
|
+
KR_CARD: 'kr_card',
|
|
104
|
+
LINK: 'link',
|
|
105
|
+
MB_WAY: 'mb_way',
|
|
106
|
+
MOBILEPAY: 'mobilepay',
|
|
107
|
+
MULTIBANCO: 'multibanco',
|
|
108
|
+
NAVER_PAY: 'naver_pay',
|
|
109
|
+
NZ_BANK_ACCOUNT: 'nz_bank_account',
|
|
110
|
+
OXXO: 'oxxo',
|
|
111
|
+
PAY_BY_BANK: 'pay_by_bank',
|
|
112
|
+
PAYCO: 'payco',
|
|
113
|
+
PAYNOW: 'paynow',
|
|
114
|
+
PAYPAL: 'paypal',
|
|
115
|
+
PAYTO: 'payto',
|
|
116
|
+
PIX: 'pix',
|
|
117
|
+
PROMPTPAY: 'promptpay',
|
|
118
|
+
PRZELEWY24: 'przelewy24',
|
|
119
|
+
QRIS: 'qris',
|
|
120
|
+
RECHNUNG: 'rechnung',
|
|
121
|
+
REVOLUT_PAY: 'revolut_pay',
|
|
122
|
+
SAMSUNG_PAY: 'samsung_pay',
|
|
123
|
+
SATISPAY: 'satispay',
|
|
124
|
+
SEPA_DEBIT: 'sepa_debit',
|
|
125
|
+
SHOPEEPAY: 'shopeepay',
|
|
126
|
+
SOFORT: 'sofort',
|
|
127
|
+
STRIPE_BALANCE: 'stripe_balance',
|
|
128
|
+
SWISH: 'swish',
|
|
129
|
+
TWINT: 'twint',
|
|
130
|
+
US_BANK_ACCOUNT: 'us_bank_account',
|
|
131
|
+
VOUCHER: 'voucher',
|
|
132
|
+
WECHAT_PAY: 'wechat_pay',
|
|
133
|
+
ZIP: 'zip'
|
|
134
|
+
} as const;
|
|
135
|
+
export type CreateManualTransactionInputSelectedPaymentMethodEnum = typeof CreateManualTransactionInputSelectedPaymentMethodEnum[keyof typeof CreateManualTransactionInputSelectedPaymentMethodEnum];
|
|
136
|
+
|
|
52
137
|
|
|
53
138
|
/**
|
|
54
139
|
* Check if a given object implements the CreateManualTransactionInput interface.
|
|
@@ -70,6 +155,8 @@ export function CreateManualTransactionInputFromJSONTyped(json: any, ignoreDiscr
|
|
|
70
155
|
'gateway': json['gateway'] == null ? undefined : json['gateway'],
|
|
71
156
|
'successUrl': json['successUrl'] == null ? undefined : json['successUrl'],
|
|
72
157
|
'cancelUrl': json['cancelUrl'] == null ? undefined : json['cancelUrl'],
|
|
158
|
+
'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
|
|
159
|
+
'selectedPaymentMethod': json['selectedPaymentMethod'] == null ? undefined : json['selectedPaymentMethod'],
|
|
73
160
|
};
|
|
74
161
|
}
|
|
75
162
|
|
|
@@ -87,6 +174,8 @@ export function CreateManualTransactionInputToJSONTyped(value?: CreateManualTran
|
|
|
87
174
|
'gateway': value['gateway'],
|
|
88
175
|
'successUrl': value['successUrl'],
|
|
89
176
|
'cancelUrl': value['cancelUrl'],
|
|
177
|
+
'sessionId': value['sessionId'],
|
|
178
|
+
'selectedPaymentMethod': value['selectedPaymentMethod'],
|
|
90
179
|
};
|
|
91
180
|
}
|
|
92
181
|
|
|
@@ -25,8 +25,107 @@ export interface CreateSubscriptionManualTransactionInput {
|
|
|
25
25
|
* @memberof CreateSubscriptionManualTransactionInput
|
|
26
26
|
*/
|
|
27
27
|
invoiceId?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* Selected payment method (canonical name)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateSubscriptionManualTransactionInput
|
|
32
|
+
*/
|
|
33
|
+
selectedPaymentMethod?: CreateSubscriptionManualTransactionInputSelectedPaymentMethodEnum;
|
|
34
|
+
/**
|
|
35
|
+
* URL to redirect to when payment is successful
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateSubscriptionManualTransactionInput
|
|
38
|
+
*/
|
|
39
|
+
successUrl?: string;
|
|
40
|
+
/**
|
|
41
|
+
* URL to redirect to when payment is cancelled
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreateSubscriptionManualTransactionInput
|
|
44
|
+
*/
|
|
45
|
+
cancelUrl?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Payment session ID used as Mollie card token
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CreateSubscriptionManualTransactionInput
|
|
50
|
+
*/
|
|
51
|
+
sessionId?: string;
|
|
28
52
|
}
|
|
29
53
|
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const CreateSubscriptionManualTransactionInputSelectedPaymentMethodEnum = {
|
|
59
|
+
ACSS_DEBIT: 'acss_debit',
|
|
60
|
+
AFFIRM: 'affirm',
|
|
61
|
+
AFTERPAY_CLEARPAY: 'afterpay_clearpay',
|
|
62
|
+
ALIPAY: 'alipay',
|
|
63
|
+
ALMA: 'alma',
|
|
64
|
+
AMAZON_PAY: 'amazon_pay',
|
|
65
|
+
APPLE_PAY: 'apple_pay',
|
|
66
|
+
AU_BECS_DEBIT: 'au_becs_debit',
|
|
67
|
+
BACS_DEBIT: 'bacs_debit',
|
|
68
|
+
BANCOMAT_PAY: 'bancomat_pay',
|
|
69
|
+
BANCONTACT: 'bancontact',
|
|
70
|
+
BELFIUS: 'belfius',
|
|
71
|
+
BILLIE: 'billie',
|
|
72
|
+
BLIK: 'blik',
|
|
73
|
+
BOLETO: 'boleto',
|
|
74
|
+
BANK_TRANSFER: 'bank_transfer',
|
|
75
|
+
CARD: 'card',
|
|
76
|
+
CARD_PRESENT: 'card_present',
|
|
77
|
+
CASHAPP: 'cashapp',
|
|
78
|
+
CUSTOMER_BALANCE: 'customer_balance',
|
|
79
|
+
EPS: 'eps',
|
|
80
|
+
FPX: 'fpx',
|
|
81
|
+
GIFTCARD: 'giftcard',
|
|
82
|
+
GIROPAY: 'giropay',
|
|
83
|
+
GOOGLE_PAY: 'google_pay',
|
|
84
|
+
GOPAY: 'gopay',
|
|
85
|
+
GRABPAY: 'grabpay',
|
|
86
|
+
ID_BANK_TRANSFER: 'id_bank_transfer',
|
|
87
|
+
IDEAL: 'ideal',
|
|
88
|
+
IN3: 'in3',
|
|
89
|
+
INTERAC_PRESENT: 'interac_present',
|
|
90
|
+
KAKAO_PAY: 'kakao_pay',
|
|
91
|
+
KBC: 'kbc',
|
|
92
|
+
KLARNA: 'klarna',
|
|
93
|
+
KONBINI: 'konbini',
|
|
94
|
+
KR_CARD: 'kr_card',
|
|
95
|
+
LINK: 'link',
|
|
96
|
+
MB_WAY: 'mb_way',
|
|
97
|
+
MOBILEPAY: 'mobilepay',
|
|
98
|
+
MULTIBANCO: 'multibanco',
|
|
99
|
+
NAVER_PAY: 'naver_pay',
|
|
100
|
+
NZ_BANK_ACCOUNT: 'nz_bank_account',
|
|
101
|
+
OXXO: 'oxxo',
|
|
102
|
+
PAY_BY_BANK: 'pay_by_bank',
|
|
103
|
+
PAYCO: 'payco',
|
|
104
|
+
PAYNOW: 'paynow',
|
|
105
|
+
PAYPAL: 'paypal',
|
|
106
|
+
PAYTO: 'payto',
|
|
107
|
+
PIX: 'pix',
|
|
108
|
+
PROMPTPAY: 'promptpay',
|
|
109
|
+
PRZELEWY24: 'przelewy24',
|
|
110
|
+
QRIS: 'qris',
|
|
111
|
+
RECHNUNG: 'rechnung',
|
|
112
|
+
REVOLUT_PAY: 'revolut_pay',
|
|
113
|
+
SAMSUNG_PAY: 'samsung_pay',
|
|
114
|
+
SATISPAY: 'satispay',
|
|
115
|
+
SEPA_DEBIT: 'sepa_debit',
|
|
116
|
+
SHOPEEPAY: 'shopeepay',
|
|
117
|
+
SOFORT: 'sofort',
|
|
118
|
+
STRIPE_BALANCE: 'stripe_balance',
|
|
119
|
+
SWISH: 'swish',
|
|
120
|
+
TWINT: 'twint',
|
|
121
|
+
US_BANK_ACCOUNT: 'us_bank_account',
|
|
122
|
+
VOUCHER: 'voucher',
|
|
123
|
+
WECHAT_PAY: 'wechat_pay',
|
|
124
|
+
ZIP: 'zip'
|
|
125
|
+
} as const;
|
|
126
|
+
export type CreateSubscriptionManualTransactionInputSelectedPaymentMethodEnum = typeof CreateSubscriptionManualTransactionInputSelectedPaymentMethodEnum[keyof typeof CreateSubscriptionManualTransactionInputSelectedPaymentMethodEnum];
|
|
127
|
+
|
|
128
|
+
|
|
30
129
|
/**
|
|
31
130
|
* Check if a given object implements the CreateSubscriptionManualTransactionInput interface.
|
|
32
131
|
*/
|
|
@@ -45,6 +144,10 @@ export function CreateSubscriptionManualTransactionInputFromJSONTyped(json: any,
|
|
|
45
144
|
return {
|
|
46
145
|
|
|
47
146
|
'invoiceId': json['invoiceId'] == null ? undefined : json['invoiceId'],
|
|
147
|
+
'selectedPaymentMethod': json['selectedPaymentMethod'] == null ? undefined : json['selectedPaymentMethod'],
|
|
148
|
+
'successUrl': json['successUrl'] == null ? undefined : json['successUrl'],
|
|
149
|
+
'cancelUrl': json['cancelUrl'] == null ? undefined : json['cancelUrl'],
|
|
150
|
+
'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
|
|
48
151
|
};
|
|
49
152
|
}
|
|
50
153
|
|
|
@@ -60,6 +163,10 @@ export function CreateSubscriptionManualTransactionInputToJSONTyped(value?: Crea
|
|
|
60
163
|
return {
|
|
61
164
|
|
|
62
165
|
'invoiceId': value['invoiceId'],
|
|
166
|
+
'selectedPaymentMethod': value['selectedPaymentMethod'],
|
|
167
|
+
'successUrl': value['successUrl'],
|
|
168
|
+
'cancelUrl': value['cancelUrl'],
|
|
169
|
+
'sessionId': value['sessionId'],
|
|
63
170
|
};
|
|
64
171
|
}
|
|
65
172
|
|