@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
|
@@ -31,18 +31,24 @@ export interface InvoiceTransactionDto {
|
|
|
31
31
|
* @memberof InvoiceTransactionDto
|
|
32
32
|
*/
|
|
33
33
|
gateway: InvoiceTransactionDtoGatewayEnum;
|
|
34
|
+
/**
|
|
35
|
+
* Gateway transfer token when required by provider. Can be null for gateways that do not use one.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof InvoiceTransactionDto
|
|
38
|
+
*/
|
|
39
|
+
gatewayTransferToken: string | null;
|
|
34
40
|
/**
|
|
35
41
|
*
|
|
36
42
|
* @type {string}
|
|
37
43
|
* @memberof InvoiceTransactionDto
|
|
38
44
|
*/
|
|
39
|
-
|
|
45
|
+
selectedPaymentMethod: InvoiceTransactionDtoSelectedPaymentMethodEnum;
|
|
40
46
|
/**
|
|
41
47
|
*
|
|
42
48
|
* @type {string}
|
|
43
49
|
* @memberof InvoiceTransactionDto
|
|
44
50
|
*/
|
|
45
|
-
|
|
51
|
+
paymentMode: InvoiceTransactionDtoPaymentModeEnum;
|
|
46
52
|
/**
|
|
47
53
|
*
|
|
48
54
|
* @type {string}
|
|
@@ -63,10 +69,84 @@ export interface InvoiceTransactionDto {
|
|
|
63
69
|
*/
|
|
64
70
|
export const InvoiceTransactionDtoGatewayEnum = {
|
|
65
71
|
STRIPE: 'stripe',
|
|
72
|
+
MOLLIE: 'mollie',
|
|
66
73
|
NICKY: 'nicky'
|
|
67
74
|
} as const;
|
|
68
75
|
export type InvoiceTransactionDtoGatewayEnum = typeof InvoiceTransactionDtoGatewayEnum[keyof typeof InvoiceTransactionDtoGatewayEnum];
|
|
69
76
|
|
|
77
|
+
/**
|
|
78
|
+
* @export
|
|
79
|
+
*/
|
|
80
|
+
export const InvoiceTransactionDtoSelectedPaymentMethodEnum = {
|
|
81
|
+
ACSS_DEBIT: 'acss_debit',
|
|
82
|
+
AFFIRM: 'affirm',
|
|
83
|
+
AFTERPAY_CLEARPAY: 'afterpay_clearpay',
|
|
84
|
+
ALIPAY: 'alipay',
|
|
85
|
+
ALMA: 'alma',
|
|
86
|
+
AMAZON_PAY: 'amazon_pay',
|
|
87
|
+
APPLE_PAY: 'apple_pay',
|
|
88
|
+
AU_BECS_DEBIT: 'au_becs_debit',
|
|
89
|
+
BACS_DEBIT: 'bacs_debit',
|
|
90
|
+
BANCOMAT_PAY: 'bancomat_pay',
|
|
91
|
+
BANCONTACT: 'bancontact',
|
|
92
|
+
BELFIUS: 'belfius',
|
|
93
|
+
BILLIE: 'billie',
|
|
94
|
+
BLIK: 'blik',
|
|
95
|
+
BOLETO: 'boleto',
|
|
96
|
+
BANK_TRANSFER: 'bank_transfer',
|
|
97
|
+
CARD: 'card',
|
|
98
|
+
CARD_PRESENT: 'card_present',
|
|
99
|
+
CASHAPP: 'cashapp',
|
|
100
|
+
CUSTOMER_BALANCE: 'customer_balance',
|
|
101
|
+
EPS: 'eps',
|
|
102
|
+
FPX: 'fpx',
|
|
103
|
+
GIFTCARD: 'giftcard',
|
|
104
|
+
GIROPAY: 'giropay',
|
|
105
|
+
GOOGLE_PAY: 'google_pay',
|
|
106
|
+
GOPAY: 'gopay',
|
|
107
|
+
GRABPAY: 'grabpay',
|
|
108
|
+
ID_BANK_TRANSFER: 'id_bank_transfer',
|
|
109
|
+
IDEAL: 'ideal',
|
|
110
|
+
IN3: 'in3',
|
|
111
|
+
INTERAC_PRESENT: 'interac_present',
|
|
112
|
+
KAKAO_PAY: 'kakao_pay',
|
|
113
|
+
KBC: 'kbc',
|
|
114
|
+
KLARNA: 'klarna',
|
|
115
|
+
KONBINI: 'konbini',
|
|
116
|
+
KR_CARD: 'kr_card',
|
|
117
|
+
LINK: 'link',
|
|
118
|
+
MB_WAY: 'mb_way',
|
|
119
|
+
MOBILEPAY: 'mobilepay',
|
|
120
|
+
MULTIBANCO: 'multibanco',
|
|
121
|
+
NAVER_PAY: 'naver_pay',
|
|
122
|
+
NZ_BANK_ACCOUNT: 'nz_bank_account',
|
|
123
|
+
OXXO: 'oxxo',
|
|
124
|
+
PAY_BY_BANK: 'pay_by_bank',
|
|
125
|
+
PAYCO: 'payco',
|
|
126
|
+
PAYNOW: 'paynow',
|
|
127
|
+
PAYPAL: 'paypal',
|
|
128
|
+
PAYTO: 'payto',
|
|
129
|
+
PIX: 'pix',
|
|
130
|
+
PROMPTPAY: 'promptpay',
|
|
131
|
+
PRZELEWY24: 'przelewy24',
|
|
132
|
+
QRIS: 'qris',
|
|
133
|
+
RECHNUNG: 'rechnung',
|
|
134
|
+
REVOLUT_PAY: 'revolut_pay',
|
|
135
|
+
SAMSUNG_PAY: 'samsung_pay',
|
|
136
|
+
SATISPAY: 'satispay',
|
|
137
|
+
SEPA_DEBIT: 'sepa_debit',
|
|
138
|
+
SHOPEEPAY: 'shopeepay',
|
|
139
|
+
SOFORT: 'sofort',
|
|
140
|
+
STRIPE_BALANCE: 'stripe_balance',
|
|
141
|
+
SWISH: 'swish',
|
|
142
|
+
TWINT: 'twint',
|
|
143
|
+
US_BANK_ACCOUNT: 'us_bank_account',
|
|
144
|
+
VOUCHER: 'voucher',
|
|
145
|
+
WECHAT_PAY: 'wechat_pay',
|
|
146
|
+
ZIP: 'zip'
|
|
147
|
+
} as const;
|
|
148
|
+
export type InvoiceTransactionDtoSelectedPaymentMethodEnum = typeof InvoiceTransactionDtoSelectedPaymentMethodEnum[keyof typeof InvoiceTransactionDtoSelectedPaymentMethodEnum];
|
|
149
|
+
|
|
70
150
|
/**
|
|
71
151
|
* @export
|
|
72
152
|
*/
|
|
@@ -96,8 +176,9 @@ export type InvoiceTransactionDtoStatusEnum = typeof InvoiceTransactionDtoStatus
|
|
|
96
176
|
export function instanceOfInvoiceTransactionDto(value: object): value is InvoiceTransactionDto {
|
|
97
177
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
98
178
|
if (!('gateway' in value) || value['gateway'] === undefined) return false;
|
|
99
|
-
if (!('paymentMode' in value) || value['paymentMode'] === undefined) return false;
|
|
100
179
|
if (!('gatewayTransferToken' in value) || value['gatewayTransferToken'] === undefined) return false;
|
|
180
|
+
if (!('selectedPaymentMethod' in value) || value['selectedPaymentMethod'] === undefined) return false;
|
|
181
|
+
if (!('paymentMode' in value) || value['paymentMode'] === undefined) return false;
|
|
101
182
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
102
183
|
if (!('redirectUrl' in value) || value['redirectUrl'] === undefined) return false;
|
|
103
184
|
return true;
|
|
@@ -115,8 +196,9 @@ export function InvoiceTransactionDtoFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
115
196
|
|
|
116
197
|
'id': json['id'],
|
|
117
198
|
'gateway': json['gateway'],
|
|
118
|
-
'paymentMode': json['paymentMode'],
|
|
119
199
|
'gatewayTransferToken': json['gatewayTransferToken'],
|
|
200
|
+
'selectedPaymentMethod': json['selectedPaymentMethod'],
|
|
201
|
+
'paymentMode': json['paymentMode'],
|
|
120
202
|
'status': json['status'],
|
|
121
203
|
'redirectUrl': json['redirectUrl'],
|
|
122
204
|
};
|
|
@@ -135,8 +217,9 @@ export function InvoiceTransactionDtoToJSONTyped(value?: InvoiceTransactionDto |
|
|
|
135
217
|
|
|
136
218
|
'id': value['id'],
|
|
137
219
|
'gateway': value['gateway'],
|
|
138
|
-
'paymentMode': value['paymentMode'],
|
|
139
220
|
'gatewayTransferToken': value['gatewayTransferToken'],
|
|
221
|
+
'selectedPaymentMethod': value['selectedPaymentMethod'],
|
|
222
|
+
'paymentMode': value['paymentMode'],
|
|
140
223
|
'status': value['status'],
|
|
141
224
|
'redirectUrl': value['redirectUrl'],
|
|
142
225
|
};
|
package/src/models/OrderDto.ts
CHANGED
|
@@ -79,6 +79,18 @@ export interface OrderDto {
|
|
|
79
79
|
* @memberof OrderDto
|
|
80
80
|
*/
|
|
81
81
|
decidedCountry: string;
|
|
82
|
+
/**
|
|
83
|
+
* Available payment methods per gateway (raw provider ids), keyed by PaymentGateway
|
|
84
|
+
* @type {object}
|
|
85
|
+
* @memberof OrderDto
|
|
86
|
+
*/
|
|
87
|
+
availablePaymentMethods: object;
|
|
88
|
+
/**
|
|
89
|
+
* Selected payment method on the active transaction (canonical)
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof OrderDto
|
|
92
|
+
*/
|
|
93
|
+
selectedPaymentMethod: OrderDtoSelectedPaymentMethodEnum | null;
|
|
82
94
|
/**
|
|
83
95
|
*
|
|
84
96
|
* @type {MoneyDto}
|
|
@@ -150,7 +162,7 @@ export interface OrderDto {
|
|
|
150
162
|
* @type {InvoiceTransactionDto}
|
|
151
163
|
* @memberof OrderDto
|
|
152
164
|
*/
|
|
153
|
-
transaction: InvoiceTransactionDto;
|
|
165
|
+
transaction: InvoiceTransactionDto | null;
|
|
154
166
|
/**
|
|
155
167
|
*
|
|
156
168
|
* @type {boolean}
|
|
@@ -183,6 +195,79 @@ export const OrderDtoStatusEnum = {
|
|
|
183
195
|
} as const;
|
|
184
196
|
export type OrderDtoStatusEnum = typeof OrderDtoStatusEnum[keyof typeof OrderDtoStatusEnum];
|
|
185
197
|
|
|
198
|
+
/**
|
|
199
|
+
* @export
|
|
200
|
+
*/
|
|
201
|
+
export const OrderDtoSelectedPaymentMethodEnum = {
|
|
202
|
+
ACSS_DEBIT: 'acss_debit',
|
|
203
|
+
AFFIRM: 'affirm',
|
|
204
|
+
AFTERPAY_CLEARPAY: 'afterpay_clearpay',
|
|
205
|
+
ALIPAY: 'alipay',
|
|
206
|
+
ALMA: 'alma',
|
|
207
|
+
AMAZON_PAY: 'amazon_pay',
|
|
208
|
+
APPLE_PAY: 'apple_pay',
|
|
209
|
+
AU_BECS_DEBIT: 'au_becs_debit',
|
|
210
|
+
BACS_DEBIT: 'bacs_debit',
|
|
211
|
+
BANCOMAT_PAY: 'bancomat_pay',
|
|
212
|
+
BANCONTACT: 'bancontact',
|
|
213
|
+
BELFIUS: 'belfius',
|
|
214
|
+
BILLIE: 'billie',
|
|
215
|
+
BLIK: 'blik',
|
|
216
|
+
BOLETO: 'boleto',
|
|
217
|
+
BANK_TRANSFER: 'bank_transfer',
|
|
218
|
+
CARD: 'card',
|
|
219
|
+
CARD_PRESENT: 'card_present',
|
|
220
|
+
CASHAPP: 'cashapp',
|
|
221
|
+
CUSTOMER_BALANCE: 'customer_balance',
|
|
222
|
+
EPS: 'eps',
|
|
223
|
+
FPX: 'fpx',
|
|
224
|
+
GIFTCARD: 'giftcard',
|
|
225
|
+
GIROPAY: 'giropay',
|
|
226
|
+
GOOGLE_PAY: 'google_pay',
|
|
227
|
+
GOPAY: 'gopay',
|
|
228
|
+
GRABPAY: 'grabpay',
|
|
229
|
+
ID_BANK_TRANSFER: 'id_bank_transfer',
|
|
230
|
+
IDEAL: 'ideal',
|
|
231
|
+
IN3: 'in3',
|
|
232
|
+
INTERAC_PRESENT: 'interac_present',
|
|
233
|
+
KAKAO_PAY: 'kakao_pay',
|
|
234
|
+
KBC: 'kbc',
|
|
235
|
+
KLARNA: 'klarna',
|
|
236
|
+
KONBINI: 'konbini',
|
|
237
|
+
KR_CARD: 'kr_card',
|
|
238
|
+
LINK: 'link',
|
|
239
|
+
MB_WAY: 'mb_way',
|
|
240
|
+
MOBILEPAY: 'mobilepay',
|
|
241
|
+
MULTIBANCO: 'multibanco',
|
|
242
|
+
NAVER_PAY: 'naver_pay',
|
|
243
|
+
NZ_BANK_ACCOUNT: 'nz_bank_account',
|
|
244
|
+
OXXO: 'oxxo',
|
|
245
|
+
PAY_BY_BANK: 'pay_by_bank',
|
|
246
|
+
PAYCO: 'payco',
|
|
247
|
+
PAYNOW: 'paynow',
|
|
248
|
+
PAYPAL: 'paypal',
|
|
249
|
+
PAYTO: 'payto',
|
|
250
|
+
PIX: 'pix',
|
|
251
|
+
PROMPTPAY: 'promptpay',
|
|
252
|
+
PRZELEWY24: 'przelewy24',
|
|
253
|
+
QRIS: 'qris',
|
|
254
|
+
RECHNUNG: 'rechnung',
|
|
255
|
+
REVOLUT_PAY: 'revolut_pay',
|
|
256
|
+
SAMSUNG_PAY: 'samsung_pay',
|
|
257
|
+
SATISPAY: 'satispay',
|
|
258
|
+
SEPA_DEBIT: 'sepa_debit',
|
|
259
|
+
SHOPEEPAY: 'shopeepay',
|
|
260
|
+
SOFORT: 'sofort',
|
|
261
|
+
STRIPE_BALANCE: 'stripe_balance',
|
|
262
|
+
SWISH: 'swish',
|
|
263
|
+
TWINT: 'twint',
|
|
264
|
+
US_BANK_ACCOUNT: 'us_bank_account',
|
|
265
|
+
VOUCHER: 'voucher',
|
|
266
|
+
WECHAT_PAY: 'wechat_pay',
|
|
267
|
+
ZIP: 'zip'
|
|
268
|
+
} as const;
|
|
269
|
+
export type OrderDtoSelectedPaymentMethodEnum = typeof OrderDtoSelectedPaymentMethodEnum[keyof typeof OrderDtoSelectedPaymentMethodEnum];
|
|
270
|
+
|
|
186
271
|
/**
|
|
187
272
|
* @export
|
|
188
273
|
*/
|
|
@@ -201,6 +286,8 @@ export function instanceOfOrderDto(value: object): value is OrderDto {
|
|
|
201
286
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
202
287
|
if (!('selfDeclaredTaxCountry' in value) || value['selfDeclaredTaxCountry'] === undefined) return false;
|
|
203
288
|
if (!('decidedCountry' in value) || value['decidedCountry'] === undefined) return false;
|
|
289
|
+
if (!('availablePaymentMethods' in value) || value['availablePaymentMethods'] === undefined) return false;
|
|
290
|
+
if (!('selectedPaymentMethod' in value) || value['selectedPaymentMethod'] === undefined) return false;
|
|
204
291
|
if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
|
|
205
292
|
if (!('totalPrice' in value) || value['totalPrice'] === undefined) return false;
|
|
206
293
|
if (!('totalTaxPrice' in value) || value['totalTaxPrice'] === undefined) return false;
|
|
@@ -233,6 +320,8 @@ export function OrderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
233
320
|
'status': json['status'],
|
|
234
321
|
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
|
|
235
322
|
'decidedCountry': json['decidedCountry'],
|
|
323
|
+
'availablePaymentMethods': json['availablePaymentMethods'],
|
|
324
|
+
'selectedPaymentMethod': json['selectedPaymentMethod'],
|
|
236
325
|
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
237
326
|
'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
|
|
238
327
|
'totalTaxPrice': MoneyDtoFromJSON(json['totalTaxPrice']),
|
|
@@ -266,6 +355,8 @@ export function OrderDtoToJSONTyped(value?: OrderDto | null, ignoreDiscriminator
|
|
|
266
355
|
'status': value['status'],
|
|
267
356
|
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
268
357
|
'decidedCountry': value['decidedCountry'],
|
|
358
|
+
'availablePaymentMethods': value['availablePaymentMethods'],
|
|
359
|
+
'selectedPaymentMethod': value['selectedPaymentMethod'],
|
|
269
360
|
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
270
361
|
'totalPrice': MoneyDtoToJSON(value['totalPrice']),
|
|
271
362
|
'totalTaxPrice': MoneyDtoToJSON(value['totalTaxPrice']),
|
|
@@ -106,6 +106,18 @@ export interface SubscriptionDto {
|
|
|
106
106
|
* @memberof SubscriptionDto
|
|
107
107
|
*/
|
|
108
108
|
decidedCountry: string;
|
|
109
|
+
/**
|
|
110
|
+
* Available payment methods per gateway (raw provider ids), keyed by PaymentGateway
|
|
111
|
+
* @type {object}
|
|
112
|
+
* @memberof SubscriptionDto
|
|
113
|
+
*/
|
|
114
|
+
availablePaymentMethods: object;
|
|
115
|
+
/**
|
|
116
|
+
* Selected payment method on the active transaction (canonical)
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof SubscriptionDto
|
|
119
|
+
*/
|
|
120
|
+
selectedPaymentMethod: SubscriptionDtoSelectedPaymentMethodEnum | null;
|
|
109
121
|
/**
|
|
110
122
|
*
|
|
111
123
|
* @type {MoneyDto}
|
|
@@ -177,7 +189,7 @@ export interface SubscriptionDto {
|
|
|
177
189
|
* @type {InvoiceTransactionDto}
|
|
178
190
|
* @memberof SubscriptionDto
|
|
179
191
|
*/
|
|
180
|
-
transaction: InvoiceTransactionDto;
|
|
192
|
+
transaction: InvoiceTransactionDto | null;
|
|
181
193
|
/**
|
|
182
194
|
*
|
|
183
195
|
* @type {boolean}
|
|
@@ -259,6 +271,79 @@ export const SubscriptionDtoStatusEnum = {
|
|
|
259
271
|
} as const;
|
|
260
272
|
export type SubscriptionDtoStatusEnum = typeof SubscriptionDtoStatusEnum[keyof typeof SubscriptionDtoStatusEnum];
|
|
261
273
|
|
|
274
|
+
/**
|
|
275
|
+
* @export
|
|
276
|
+
*/
|
|
277
|
+
export const SubscriptionDtoSelectedPaymentMethodEnum = {
|
|
278
|
+
ACSS_DEBIT: 'acss_debit',
|
|
279
|
+
AFFIRM: 'affirm',
|
|
280
|
+
AFTERPAY_CLEARPAY: 'afterpay_clearpay',
|
|
281
|
+
ALIPAY: 'alipay',
|
|
282
|
+
ALMA: 'alma',
|
|
283
|
+
AMAZON_PAY: 'amazon_pay',
|
|
284
|
+
APPLE_PAY: 'apple_pay',
|
|
285
|
+
AU_BECS_DEBIT: 'au_becs_debit',
|
|
286
|
+
BACS_DEBIT: 'bacs_debit',
|
|
287
|
+
BANCOMAT_PAY: 'bancomat_pay',
|
|
288
|
+
BANCONTACT: 'bancontact',
|
|
289
|
+
BELFIUS: 'belfius',
|
|
290
|
+
BILLIE: 'billie',
|
|
291
|
+
BLIK: 'blik',
|
|
292
|
+
BOLETO: 'boleto',
|
|
293
|
+
BANK_TRANSFER: 'bank_transfer',
|
|
294
|
+
CARD: 'card',
|
|
295
|
+
CARD_PRESENT: 'card_present',
|
|
296
|
+
CASHAPP: 'cashapp',
|
|
297
|
+
CUSTOMER_BALANCE: 'customer_balance',
|
|
298
|
+
EPS: 'eps',
|
|
299
|
+
FPX: 'fpx',
|
|
300
|
+
GIFTCARD: 'giftcard',
|
|
301
|
+
GIROPAY: 'giropay',
|
|
302
|
+
GOOGLE_PAY: 'google_pay',
|
|
303
|
+
GOPAY: 'gopay',
|
|
304
|
+
GRABPAY: 'grabpay',
|
|
305
|
+
ID_BANK_TRANSFER: 'id_bank_transfer',
|
|
306
|
+
IDEAL: 'ideal',
|
|
307
|
+
IN3: 'in3',
|
|
308
|
+
INTERAC_PRESENT: 'interac_present',
|
|
309
|
+
KAKAO_PAY: 'kakao_pay',
|
|
310
|
+
KBC: 'kbc',
|
|
311
|
+
KLARNA: 'klarna',
|
|
312
|
+
KONBINI: 'konbini',
|
|
313
|
+
KR_CARD: 'kr_card',
|
|
314
|
+
LINK: 'link',
|
|
315
|
+
MB_WAY: 'mb_way',
|
|
316
|
+
MOBILEPAY: 'mobilepay',
|
|
317
|
+
MULTIBANCO: 'multibanco',
|
|
318
|
+
NAVER_PAY: 'naver_pay',
|
|
319
|
+
NZ_BANK_ACCOUNT: 'nz_bank_account',
|
|
320
|
+
OXXO: 'oxxo',
|
|
321
|
+
PAY_BY_BANK: 'pay_by_bank',
|
|
322
|
+
PAYCO: 'payco',
|
|
323
|
+
PAYNOW: 'paynow',
|
|
324
|
+
PAYPAL: 'paypal',
|
|
325
|
+
PAYTO: 'payto',
|
|
326
|
+
PIX: 'pix',
|
|
327
|
+
PROMPTPAY: 'promptpay',
|
|
328
|
+
PRZELEWY24: 'przelewy24',
|
|
329
|
+
QRIS: 'qris',
|
|
330
|
+
RECHNUNG: 'rechnung',
|
|
331
|
+
REVOLUT_PAY: 'revolut_pay',
|
|
332
|
+
SAMSUNG_PAY: 'samsung_pay',
|
|
333
|
+
SATISPAY: 'satispay',
|
|
334
|
+
SEPA_DEBIT: 'sepa_debit',
|
|
335
|
+
SHOPEEPAY: 'shopeepay',
|
|
336
|
+
SOFORT: 'sofort',
|
|
337
|
+
STRIPE_BALANCE: 'stripe_balance',
|
|
338
|
+
SWISH: 'swish',
|
|
339
|
+
TWINT: 'twint',
|
|
340
|
+
US_BANK_ACCOUNT: 'us_bank_account',
|
|
341
|
+
VOUCHER: 'voucher',
|
|
342
|
+
WECHAT_PAY: 'wechat_pay',
|
|
343
|
+
ZIP: 'zip'
|
|
344
|
+
} as const;
|
|
345
|
+
export type SubscriptionDtoSelectedPaymentMethodEnum = typeof SubscriptionDtoSelectedPaymentMethodEnum[keyof typeof SubscriptionDtoSelectedPaymentMethodEnum];
|
|
346
|
+
|
|
262
347
|
/**
|
|
263
348
|
* @export
|
|
264
349
|
*/
|
|
@@ -290,6 +375,8 @@ export function instanceOfSubscriptionDto(value: object): value is SubscriptionD
|
|
|
290
375
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
291
376
|
if (!('selfDeclaredTaxCountry' in value) || value['selfDeclaredTaxCountry'] === undefined) return false;
|
|
292
377
|
if (!('decidedCountry' in value) || value['decidedCountry'] === undefined) return false;
|
|
378
|
+
if (!('availablePaymentMethods' in value) || value['availablePaymentMethods'] === undefined) return false;
|
|
379
|
+
if (!('selectedPaymentMethod' in value) || value['selectedPaymentMethod'] === undefined) return false;
|
|
293
380
|
if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
|
|
294
381
|
if (!('recurringPrice' in value) || value['recurringPrice'] === undefined) return false;
|
|
295
382
|
if (!('totalPrice' in value) || value['totalPrice'] === undefined) return false;
|
|
@@ -331,6 +418,8 @@ export function SubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
331
418
|
'status': json['status'],
|
|
332
419
|
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
|
|
333
420
|
'decidedCountry': json['decidedCountry'],
|
|
421
|
+
'availablePaymentMethods': json['availablePaymentMethods'],
|
|
422
|
+
'selectedPaymentMethod': json['selectedPaymentMethod'],
|
|
334
423
|
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
335
424
|
'recurringPrice': MoneyDtoFromJSON(json['recurringPrice']),
|
|
336
425
|
'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
|
|
@@ -373,6 +462,8 @@ export function SubscriptionDtoToJSONTyped(value?: SubscriptionDto | null, ignor
|
|
|
373
462
|
'status': value['status'],
|
|
374
463
|
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
375
464
|
'decidedCountry': value['decidedCountry'],
|
|
465
|
+
'availablePaymentMethods': value['availablePaymentMethods'],
|
|
466
|
+
'selectedPaymentMethod': value['selectedPaymentMethod'],
|
|
376
467
|
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
377
468
|
'recurringPrice': MoneyDtoToJSON(value['recurringPrice']),
|
|
378
469
|
'totalPrice': MoneyDtoToJSON(value['totalPrice']),
|