@randock/nameshift-api-client 0.0.417 → 0.0.419
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
|
@@ -21,7 +21,103 @@ export interface CreateSubscriptionManualTransactionInput {
|
|
|
21
21
|
* @memberof CreateSubscriptionManualTransactionInput
|
|
22
22
|
*/
|
|
23
23
|
invoiceId?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* Selected payment method (canonical name)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateSubscriptionManualTransactionInput
|
|
28
|
+
*/
|
|
29
|
+
selectedPaymentMethod?: CreateSubscriptionManualTransactionInputSelectedPaymentMethodEnum;
|
|
30
|
+
/**
|
|
31
|
+
* URL to redirect to when payment is successful
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateSubscriptionManualTransactionInput
|
|
34
|
+
*/
|
|
35
|
+
successUrl?: string;
|
|
36
|
+
/**
|
|
37
|
+
* URL to redirect to when payment is cancelled
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateSubscriptionManualTransactionInput
|
|
40
|
+
*/
|
|
41
|
+
cancelUrl?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Payment session ID used as Mollie card token
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreateSubscriptionManualTransactionInput
|
|
46
|
+
*/
|
|
47
|
+
sessionId?: string;
|
|
24
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const CreateSubscriptionManualTransactionInputSelectedPaymentMethodEnum: {
|
|
53
|
+
readonly ACSS_DEBIT: "acss_debit";
|
|
54
|
+
readonly AFFIRM: "affirm";
|
|
55
|
+
readonly AFTERPAY_CLEARPAY: "afterpay_clearpay";
|
|
56
|
+
readonly ALIPAY: "alipay";
|
|
57
|
+
readonly ALMA: "alma";
|
|
58
|
+
readonly AMAZON_PAY: "amazon_pay";
|
|
59
|
+
readonly APPLE_PAY: "apple_pay";
|
|
60
|
+
readonly AU_BECS_DEBIT: "au_becs_debit";
|
|
61
|
+
readonly BACS_DEBIT: "bacs_debit";
|
|
62
|
+
readonly BANCOMAT_PAY: "bancomat_pay";
|
|
63
|
+
readonly BANCONTACT: "bancontact";
|
|
64
|
+
readonly BELFIUS: "belfius";
|
|
65
|
+
readonly BILLIE: "billie";
|
|
66
|
+
readonly BLIK: "blik";
|
|
67
|
+
readonly BOLETO: "boleto";
|
|
68
|
+
readonly BANK_TRANSFER: "bank_transfer";
|
|
69
|
+
readonly CARD: "card";
|
|
70
|
+
readonly CARD_PRESENT: "card_present";
|
|
71
|
+
readonly CASHAPP: "cashapp";
|
|
72
|
+
readonly CUSTOMER_BALANCE: "customer_balance";
|
|
73
|
+
readonly EPS: "eps";
|
|
74
|
+
readonly FPX: "fpx";
|
|
75
|
+
readonly GIFTCARD: "giftcard";
|
|
76
|
+
readonly GIROPAY: "giropay";
|
|
77
|
+
readonly GOOGLE_PAY: "google_pay";
|
|
78
|
+
readonly GOPAY: "gopay";
|
|
79
|
+
readonly GRABPAY: "grabpay";
|
|
80
|
+
readonly ID_BANK_TRANSFER: "id_bank_transfer";
|
|
81
|
+
readonly IDEAL: "ideal";
|
|
82
|
+
readonly IN3: "in3";
|
|
83
|
+
readonly INTERAC_PRESENT: "interac_present";
|
|
84
|
+
readonly KAKAO_PAY: "kakao_pay";
|
|
85
|
+
readonly KBC: "kbc";
|
|
86
|
+
readonly KLARNA: "klarna";
|
|
87
|
+
readonly KONBINI: "konbini";
|
|
88
|
+
readonly KR_CARD: "kr_card";
|
|
89
|
+
readonly LINK: "link";
|
|
90
|
+
readonly MB_WAY: "mb_way";
|
|
91
|
+
readonly MOBILEPAY: "mobilepay";
|
|
92
|
+
readonly MULTIBANCO: "multibanco";
|
|
93
|
+
readonly NAVER_PAY: "naver_pay";
|
|
94
|
+
readonly NZ_BANK_ACCOUNT: "nz_bank_account";
|
|
95
|
+
readonly OXXO: "oxxo";
|
|
96
|
+
readonly PAY_BY_BANK: "pay_by_bank";
|
|
97
|
+
readonly PAYCO: "payco";
|
|
98
|
+
readonly PAYNOW: "paynow";
|
|
99
|
+
readonly PAYPAL: "paypal";
|
|
100
|
+
readonly PAYTO: "payto";
|
|
101
|
+
readonly PIX: "pix";
|
|
102
|
+
readonly PROMPTPAY: "promptpay";
|
|
103
|
+
readonly PRZELEWY24: "przelewy24";
|
|
104
|
+
readonly QRIS: "qris";
|
|
105
|
+
readonly RECHNUNG: "rechnung";
|
|
106
|
+
readonly REVOLUT_PAY: "revolut_pay";
|
|
107
|
+
readonly SAMSUNG_PAY: "samsung_pay";
|
|
108
|
+
readonly SATISPAY: "satispay";
|
|
109
|
+
readonly SEPA_DEBIT: "sepa_debit";
|
|
110
|
+
readonly SHOPEEPAY: "shopeepay";
|
|
111
|
+
readonly SOFORT: "sofort";
|
|
112
|
+
readonly STRIPE_BALANCE: "stripe_balance";
|
|
113
|
+
readonly SWISH: "swish";
|
|
114
|
+
readonly TWINT: "twint";
|
|
115
|
+
readonly US_BANK_ACCOUNT: "us_bank_account";
|
|
116
|
+
readonly VOUCHER: "voucher";
|
|
117
|
+
readonly WECHAT_PAY: "wechat_pay";
|
|
118
|
+
readonly ZIP: "zip";
|
|
119
|
+
};
|
|
120
|
+
export type CreateSubscriptionManualTransactionInputSelectedPaymentMethodEnum = typeof CreateSubscriptionManualTransactionInputSelectedPaymentMethodEnum[keyof typeof CreateSubscriptionManualTransactionInputSelectedPaymentMethodEnum];
|
|
25
121
|
/**
|
|
26
122
|
* Check if a given object implements the CreateSubscriptionManualTransactionInput interface.
|
|
27
123
|
*/
|
|
@@ -13,11 +13,83 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateSubscriptionManualTransactionInputSelectedPaymentMethodEnum = void 0;
|
|
16
17
|
exports.instanceOfCreateSubscriptionManualTransactionInput = instanceOfCreateSubscriptionManualTransactionInput;
|
|
17
18
|
exports.CreateSubscriptionManualTransactionInputFromJSON = CreateSubscriptionManualTransactionInputFromJSON;
|
|
18
19
|
exports.CreateSubscriptionManualTransactionInputFromJSONTyped = CreateSubscriptionManualTransactionInputFromJSONTyped;
|
|
19
20
|
exports.CreateSubscriptionManualTransactionInputToJSON = CreateSubscriptionManualTransactionInputToJSON;
|
|
20
21
|
exports.CreateSubscriptionManualTransactionInputToJSONTyped = CreateSubscriptionManualTransactionInputToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CreateSubscriptionManualTransactionInputSelectedPaymentMethodEnum = {
|
|
26
|
+
ACSS_DEBIT: 'acss_debit',
|
|
27
|
+
AFFIRM: 'affirm',
|
|
28
|
+
AFTERPAY_CLEARPAY: 'afterpay_clearpay',
|
|
29
|
+
ALIPAY: 'alipay',
|
|
30
|
+
ALMA: 'alma',
|
|
31
|
+
AMAZON_PAY: 'amazon_pay',
|
|
32
|
+
APPLE_PAY: 'apple_pay',
|
|
33
|
+
AU_BECS_DEBIT: 'au_becs_debit',
|
|
34
|
+
BACS_DEBIT: 'bacs_debit',
|
|
35
|
+
BANCOMAT_PAY: 'bancomat_pay',
|
|
36
|
+
BANCONTACT: 'bancontact',
|
|
37
|
+
BELFIUS: 'belfius',
|
|
38
|
+
BILLIE: 'billie',
|
|
39
|
+
BLIK: 'blik',
|
|
40
|
+
BOLETO: 'boleto',
|
|
41
|
+
BANK_TRANSFER: 'bank_transfer',
|
|
42
|
+
CARD: 'card',
|
|
43
|
+
CARD_PRESENT: 'card_present',
|
|
44
|
+
CASHAPP: 'cashapp',
|
|
45
|
+
CUSTOMER_BALANCE: 'customer_balance',
|
|
46
|
+
EPS: 'eps',
|
|
47
|
+
FPX: 'fpx',
|
|
48
|
+
GIFTCARD: 'giftcard',
|
|
49
|
+
GIROPAY: 'giropay',
|
|
50
|
+
GOOGLE_PAY: 'google_pay',
|
|
51
|
+
GOPAY: 'gopay',
|
|
52
|
+
GRABPAY: 'grabpay',
|
|
53
|
+
ID_BANK_TRANSFER: 'id_bank_transfer',
|
|
54
|
+
IDEAL: 'ideal',
|
|
55
|
+
IN3: 'in3',
|
|
56
|
+
INTERAC_PRESENT: 'interac_present',
|
|
57
|
+
KAKAO_PAY: 'kakao_pay',
|
|
58
|
+
KBC: 'kbc',
|
|
59
|
+
KLARNA: 'klarna',
|
|
60
|
+
KONBINI: 'konbini',
|
|
61
|
+
KR_CARD: 'kr_card',
|
|
62
|
+
LINK: 'link',
|
|
63
|
+
MB_WAY: 'mb_way',
|
|
64
|
+
MOBILEPAY: 'mobilepay',
|
|
65
|
+
MULTIBANCO: 'multibanco',
|
|
66
|
+
NAVER_PAY: 'naver_pay',
|
|
67
|
+
NZ_BANK_ACCOUNT: 'nz_bank_account',
|
|
68
|
+
OXXO: 'oxxo',
|
|
69
|
+
PAY_BY_BANK: 'pay_by_bank',
|
|
70
|
+
PAYCO: 'payco',
|
|
71
|
+
PAYNOW: 'paynow',
|
|
72
|
+
PAYPAL: 'paypal',
|
|
73
|
+
PAYTO: 'payto',
|
|
74
|
+
PIX: 'pix',
|
|
75
|
+
PROMPTPAY: 'promptpay',
|
|
76
|
+
PRZELEWY24: 'przelewy24',
|
|
77
|
+
QRIS: 'qris',
|
|
78
|
+
RECHNUNG: 'rechnung',
|
|
79
|
+
REVOLUT_PAY: 'revolut_pay',
|
|
80
|
+
SAMSUNG_PAY: 'samsung_pay',
|
|
81
|
+
SATISPAY: 'satispay',
|
|
82
|
+
SEPA_DEBIT: 'sepa_debit',
|
|
83
|
+
SHOPEEPAY: 'shopeepay',
|
|
84
|
+
SOFORT: 'sofort',
|
|
85
|
+
STRIPE_BALANCE: 'stripe_balance',
|
|
86
|
+
SWISH: 'swish',
|
|
87
|
+
TWINT: 'twint',
|
|
88
|
+
US_BANK_ACCOUNT: 'us_bank_account',
|
|
89
|
+
VOUCHER: 'voucher',
|
|
90
|
+
WECHAT_PAY: 'wechat_pay',
|
|
91
|
+
ZIP: 'zip'
|
|
92
|
+
};
|
|
21
93
|
/**
|
|
22
94
|
* Check if a given object implements the CreateSubscriptionManualTransactionInput interface.
|
|
23
95
|
*/
|
|
@@ -33,6 +105,10 @@ function CreateSubscriptionManualTransactionInputFromJSONTyped(json, ignoreDiscr
|
|
|
33
105
|
}
|
|
34
106
|
return {
|
|
35
107
|
'invoiceId': json['invoiceId'] == null ? undefined : json['invoiceId'],
|
|
108
|
+
'selectedPaymentMethod': json['selectedPaymentMethod'] == null ? undefined : json['selectedPaymentMethod'],
|
|
109
|
+
'successUrl': json['successUrl'] == null ? undefined : json['successUrl'],
|
|
110
|
+
'cancelUrl': json['cancelUrl'] == null ? undefined : json['cancelUrl'],
|
|
111
|
+
'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
|
|
36
112
|
};
|
|
37
113
|
}
|
|
38
114
|
function CreateSubscriptionManualTransactionInputToJSON(json) {
|
|
@@ -45,5 +121,9 @@ function CreateSubscriptionManualTransactionInputToJSONTyped(value, ignoreDiscri
|
|
|
45
121
|
}
|
|
46
122
|
return {
|
|
47
123
|
'invoiceId': value['invoiceId'],
|
|
124
|
+
'selectedPaymentMethod': value['selectedPaymentMethod'],
|
|
125
|
+
'successUrl': value['successUrl'],
|
|
126
|
+
'cancelUrl': value['cancelUrl'],
|
|
127
|
+
'sessionId': value['sessionId'],
|
|
48
128
|
};
|
|
49
129
|
}
|
|
@@ -27,18 +27,24 @@ export interface InvoiceTransactionDto {
|
|
|
27
27
|
* @memberof InvoiceTransactionDto
|
|
28
28
|
*/
|
|
29
29
|
gateway: InvoiceTransactionDtoGatewayEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Gateway transfer token when required by provider. Can be null for gateways that do not use one.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InvoiceTransactionDto
|
|
34
|
+
*/
|
|
35
|
+
gatewayTransferToken: string | null;
|
|
30
36
|
/**
|
|
31
37
|
*
|
|
32
38
|
* @type {string}
|
|
33
39
|
* @memberof InvoiceTransactionDto
|
|
34
40
|
*/
|
|
35
|
-
|
|
41
|
+
selectedPaymentMethod: InvoiceTransactionDtoSelectedPaymentMethodEnum;
|
|
36
42
|
/**
|
|
37
43
|
*
|
|
38
44
|
* @type {string}
|
|
39
45
|
* @memberof InvoiceTransactionDto
|
|
40
46
|
*/
|
|
41
|
-
|
|
47
|
+
paymentMode: InvoiceTransactionDtoPaymentModeEnum;
|
|
42
48
|
/**
|
|
43
49
|
*
|
|
44
50
|
* @type {string}
|
|
@@ -57,9 +63,82 @@ export interface InvoiceTransactionDto {
|
|
|
57
63
|
*/
|
|
58
64
|
export declare const InvoiceTransactionDtoGatewayEnum: {
|
|
59
65
|
readonly STRIPE: "stripe";
|
|
66
|
+
readonly MOLLIE: "mollie";
|
|
60
67
|
readonly NICKY: "nicky";
|
|
61
68
|
};
|
|
62
69
|
export type InvoiceTransactionDtoGatewayEnum = typeof InvoiceTransactionDtoGatewayEnum[keyof typeof InvoiceTransactionDtoGatewayEnum];
|
|
70
|
+
/**
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
export declare const InvoiceTransactionDtoSelectedPaymentMethodEnum: {
|
|
74
|
+
readonly ACSS_DEBIT: "acss_debit";
|
|
75
|
+
readonly AFFIRM: "affirm";
|
|
76
|
+
readonly AFTERPAY_CLEARPAY: "afterpay_clearpay";
|
|
77
|
+
readonly ALIPAY: "alipay";
|
|
78
|
+
readonly ALMA: "alma";
|
|
79
|
+
readonly AMAZON_PAY: "amazon_pay";
|
|
80
|
+
readonly APPLE_PAY: "apple_pay";
|
|
81
|
+
readonly AU_BECS_DEBIT: "au_becs_debit";
|
|
82
|
+
readonly BACS_DEBIT: "bacs_debit";
|
|
83
|
+
readonly BANCOMAT_PAY: "bancomat_pay";
|
|
84
|
+
readonly BANCONTACT: "bancontact";
|
|
85
|
+
readonly BELFIUS: "belfius";
|
|
86
|
+
readonly BILLIE: "billie";
|
|
87
|
+
readonly BLIK: "blik";
|
|
88
|
+
readonly BOLETO: "boleto";
|
|
89
|
+
readonly BANK_TRANSFER: "bank_transfer";
|
|
90
|
+
readonly CARD: "card";
|
|
91
|
+
readonly CARD_PRESENT: "card_present";
|
|
92
|
+
readonly CASHAPP: "cashapp";
|
|
93
|
+
readonly CUSTOMER_BALANCE: "customer_balance";
|
|
94
|
+
readonly EPS: "eps";
|
|
95
|
+
readonly FPX: "fpx";
|
|
96
|
+
readonly GIFTCARD: "giftcard";
|
|
97
|
+
readonly GIROPAY: "giropay";
|
|
98
|
+
readonly GOOGLE_PAY: "google_pay";
|
|
99
|
+
readonly GOPAY: "gopay";
|
|
100
|
+
readonly GRABPAY: "grabpay";
|
|
101
|
+
readonly ID_BANK_TRANSFER: "id_bank_transfer";
|
|
102
|
+
readonly IDEAL: "ideal";
|
|
103
|
+
readonly IN3: "in3";
|
|
104
|
+
readonly INTERAC_PRESENT: "interac_present";
|
|
105
|
+
readonly KAKAO_PAY: "kakao_pay";
|
|
106
|
+
readonly KBC: "kbc";
|
|
107
|
+
readonly KLARNA: "klarna";
|
|
108
|
+
readonly KONBINI: "konbini";
|
|
109
|
+
readonly KR_CARD: "kr_card";
|
|
110
|
+
readonly LINK: "link";
|
|
111
|
+
readonly MB_WAY: "mb_way";
|
|
112
|
+
readonly MOBILEPAY: "mobilepay";
|
|
113
|
+
readonly MULTIBANCO: "multibanco";
|
|
114
|
+
readonly NAVER_PAY: "naver_pay";
|
|
115
|
+
readonly NZ_BANK_ACCOUNT: "nz_bank_account";
|
|
116
|
+
readonly OXXO: "oxxo";
|
|
117
|
+
readonly PAY_BY_BANK: "pay_by_bank";
|
|
118
|
+
readonly PAYCO: "payco";
|
|
119
|
+
readonly PAYNOW: "paynow";
|
|
120
|
+
readonly PAYPAL: "paypal";
|
|
121
|
+
readonly PAYTO: "payto";
|
|
122
|
+
readonly PIX: "pix";
|
|
123
|
+
readonly PROMPTPAY: "promptpay";
|
|
124
|
+
readonly PRZELEWY24: "przelewy24";
|
|
125
|
+
readonly QRIS: "qris";
|
|
126
|
+
readonly RECHNUNG: "rechnung";
|
|
127
|
+
readonly REVOLUT_PAY: "revolut_pay";
|
|
128
|
+
readonly SAMSUNG_PAY: "samsung_pay";
|
|
129
|
+
readonly SATISPAY: "satispay";
|
|
130
|
+
readonly SEPA_DEBIT: "sepa_debit";
|
|
131
|
+
readonly SHOPEEPAY: "shopeepay";
|
|
132
|
+
readonly SOFORT: "sofort";
|
|
133
|
+
readonly STRIPE_BALANCE: "stripe_balance";
|
|
134
|
+
readonly SWISH: "swish";
|
|
135
|
+
readonly TWINT: "twint";
|
|
136
|
+
readonly US_BANK_ACCOUNT: "us_bank_account";
|
|
137
|
+
readonly VOUCHER: "voucher";
|
|
138
|
+
readonly WECHAT_PAY: "wechat_pay";
|
|
139
|
+
readonly ZIP: "zip";
|
|
140
|
+
};
|
|
141
|
+
export type InvoiceTransactionDtoSelectedPaymentMethodEnum = typeof InvoiceTransactionDtoSelectedPaymentMethodEnum[keyof typeof InvoiceTransactionDtoSelectedPaymentMethodEnum];
|
|
63
142
|
/**
|
|
64
143
|
* @export
|
|
65
144
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.InvoiceTransactionDtoStatusEnum = exports.InvoiceTransactionDtoPaymentModeEnum = exports.InvoiceTransactionDtoGatewayEnum = void 0;
|
|
16
|
+
exports.InvoiceTransactionDtoStatusEnum = exports.InvoiceTransactionDtoPaymentModeEnum = exports.InvoiceTransactionDtoSelectedPaymentMethodEnum = exports.InvoiceTransactionDtoGatewayEnum = void 0;
|
|
17
17
|
exports.instanceOfInvoiceTransactionDto = instanceOfInvoiceTransactionDto;
|
|
18
18
|
exports.InvoiceTransactionDtoFromJSON = InvoiceTransactionDtoFromJSON;
|
|
19
19
|
exports.InvoiceTransactionDtoFromJSONTyped = InvoiceTransactionDtoFromJSONTyped;
|
|
@@ -24,8 +24,80 @@ exports.InvoiceTransactionDtoToJSONTyped = InvoiceTransactionDtoToJSONTyped;
|
|
|
24
24
|
*/
|
|
25
25
|
exports.InvoiceTransactionDtoGatewayEnum = {
|
|
26
26
|
STRIPE: 'stripe',
|
|
27
|
+
MOLLIE: 'mollie',
|
|
27
28
|
NICKY: 'nicky'
|
|
28
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.InvoiceTransactionDtoSelectedPaymentMethodEnum = {
|
|
34
|
+
ACSS_DEBIT: 'acss_debit',
|
|
35
|
+
AFFIRM: 'affirm',
|
|
36
|
+
AFTERPAY_CLEARPAY: 'afterpay_clearpay',
|
|
37
|
+
ALIPAY: 'alipay',
|
|
38
|
+
ALMA: 'alma',
|
|
39
|
+
AMAZON_PAY: 'amazon_pay',
|
|
40
|
+
APPLE_PAY: 'apple_pay',
|
|
41
|
+
AU_BECS_DEBIT: 'au_becs_debit',
|
|
42
|
+
BACS_DEBIT: 'bacs_debit',
|
|
43
|
+
BANCOMAT_PAY: 'bancomat_pay',
|
|
44
|
+
BANCONTACT: 'bancontact',
|
|
45
|
+
BELFIUS: 'belfius',
|
|
46
|
+
BILLIE: 'billie',
|
|
47
|
+
BLIK: 'blik',
|
|
48
|
+
BOLETO: 'boleto',
|
|
49
|
+
BANK_TRANSFER: 'bank_transfer',
|
|
50
|
+
CARD: 'card',
|
|
51
|
+
CARD_PRESENT: 'card_present',
|
|
52
|
+
CASHAPP: 'cashapp',
|
|
53
|
+
CUSTOMER_BALANCE: 'customer_balance',
|
|
54
|
+
EPS: 'eps',
|
|
55
|
+
FPX: 'fpx',
|
|
56
|
+
GIFTCARD: 'giftcard',
|
|
57
|
+
GIROPAY: 'giropay',
|
|
58
|
+
GOOGLE_PAY: 'google_pay',
|
|
59
|
+
GOPAY: 'gopay',
|
|
60
|
+
GRABPAY: 'grabpay',
|
|
61
|
+
ID_BANK_TRANSFER: 'id_bank_transfer',
|
|
62
|
+
IDEAL: 'ideal',
|
|
63
|
+
IN3: 'in3',
|
|
64
|
+
INTERAC_PRESENT: 'interac_present',
|
|
65
|
+
KAKAO_PAY: 'kakao_pay',
|
|
66
|
+
KBC: 'kbc',
|
|
67
|
+
KLARNA: 'klarna',
|
|
68
|
+
KONBINI: 'konbini',
|
|
69
|
+
KR_CARD: 'kr_card',
|
|
70
|
+
LINK: 'link',
|
|
71
|
+
MB_WAY: 'mb_way',
|
|
72
|
+
MOBILEPAY: 'mobilepay',
|
|
73
|
+
MULTIBANCO: 'multibanco',
|
|
74
|
+
NAVER_PAY: 'naver_pay',
|
|
75
|
+
NZ_BANK_ACCOUNT: 'nz_bank_account',
|
|
76
|
+
OXXO: 'oxxo',
|
|
77
|
+
PAY_BY_BANK: 'pay_by_bank',
|
|
78
|
+
PAYCO: 'payco',
|
|
79
|
+
PAYNOW: 'paynow',
|
|
80
|
+
PAYPAL: 'paypal',
|
|
81
|
+
PAYTO: 'payto',
|
|
82
|
+
PIX: 'pix',
|
|
83
|
+
PROMPTPAY: 'promptpay',
|
|
84
|
+
PRZELEWY24: 'przelewy24',
|
|
85
|
+
QRIS: 'qris',
|
|
86
|
+
RECHNUNG: 'rechnung',
|
|
87
|
+
REVOLUT_PAY: 'revolut_pay',
|
|
88
|
+
SAMSUNG_PAY: 'samsung_pay',
|
|
89
|
+
SATISPAY: 'satispay',
|
|
90
|
+
SEPA_DEBIT: 'sepa_debit',
|
|
91
|
+
SHOPEEPAY: 'shopeepay',
|
|
92
|
+
SOFORT: 'sofort',
|
|
93
|
+
STRIPE_BALANCE: 'stripe_balance',
|
|
94
|
+
SWISH: 'swish',
|
|
95
|
+
TWINT: 'twint',
|
|
96
|
+
US_BANK_ACCOUNT: 'us_bank_account',
|
|
97
|
+
VOUCHER: 'voucher',
|
|
98
|
+
WECHAT_PAY: 'wechat_pay',
|
|
99
|
+
ZIP: 'zip'
|
|
100
|
+
};
|
|
29
101
|
/**
|
|
30
102
|
* @export
|
|
31
103
|
*/
|
|
@@ -52,10 +124,12 @@ function instanceOfInvoiceTransactionDto(value) {
|
|
|
52
124
|
return false;
|
|
53
125
|
if (!('gateway' in value) || value['gateway'] === undefined)
|
|
54
126
|
return false;
|
|
55
|
-
if (!('paymentMode' in value) || value['paymentMode'] === undefined)
|
|
56
|
-
return false;
|
|
57
127
|
if (!('gatewayTransferToken' in value) || value['gatewayTransferToken'] === undefined)
|
|
58
128
|
return false;
|
|
129
|
+
if (!('selectedPaymentMethod' in value) || value['selectedPaymentMethod'] === undefined)
|
|
130
|
+
return false;
|
|
131
|
+
if (!('paymentMode' in value) || value['paymentMode'] === undefined)
|
|
132
|
+
return false;
|
|
59
133
|
if (!('status' in value) || value['status'] === undefined)
|
|
60
134
|
return false;
|
|
61
135
|
if (!('redirectUrl' in value) || value['redirectUrl'] === undefined)
|
|
@@ -72,8 +146,9 @@ function InvoiceTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
146
|
return {
|
|
73
147
|
'id': json['id'],
|
|
74
148
|
'gateway': json['gateway'],
|
|
75
|
-
'paymentMode': json['paymentMode'],
|
|
76
149
|
'gatewayTransferToken': json['gatewayTransferToken'],
|
|
150
|
+
'selectedPaymentMethod': json['selectedPaymentMethod'],
|
|
151
|
+
'paymentMode': json['paymentMode'],
|
|
77
152
|
'status': json['status'],
|
|
78
153
|
'redirectUrl': json['redirectUrl'],
|
|
79
154
|
};
|
|
@@ -89,8 +164,9 @@ function InvoiceTransactionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
89
164
|
return {
|
|
90
165
|
'id': value['id'],
|
|
91
166
|
'gateway': value['gateway'],
|
|
92
|
-
'paymentMode': value['paymentMode'],
|
|
93
167
|
'gatewayTransferToken': value['gatewayTransferToken'],
|
|
168
|
+
'selectedPaymentMethod': value['selectedPaymentMethod'],
|
|
169
|
+
'paymentMode': value['paymentMode'],
|
|
94
170
|
'status': value['status'],
|
|
95
171
|
'redirectUrl': value['redirectUrl'],
|
|
96
172
|
};
|
|
@@ -44,6 +44,18 @@ export interface OrderDto {
|
|
|
44
44
|
* @memberof OrderDto
|
|
45
45
|
*/
|
|
46
46
|
decidedCountry: string;
|
|
47
|
+
/**
|
|
48
|
+
* Available payment methods per gateway (canonical ids), keyed by PaymentGateway
|
|
49
|
+
* @type {object}
|
|
50
|
+
* @memberof OrderDto
|
|
51
|
+
*/
|
|
52
|
+
availablePaymentMethods: object;
|
|
53
|
+
/**
|
|
54
|
+
* Selected payment method on the active transaction (canonical)
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof OrderDto
|
|
57
|
+
*/
|
|
58
|
+
selectedPaymentMethod: OrderDtoSelectedPaymentMethodEnum | null;
|
|
47
59
|
/**
|
|
48
60
|
*
|
|
49
61
|
* @type {MoneyDto}
|
|
@@ -115,7 +127,7 @@ export interface OrderDto {
|
|
|
115
127
|
* @type {InvoiceTransactionDto}
|
|
116
128
|
* @memberof OrderDto
|
|
117
129
|
*/
|
|
118
|
-
transaction: InvoiceTransactionDto;
|
|
130
|
+
transaction: InvoiceTransactionDto | null;
|
|
119
131
|
/**
|
|
120
132
|
*
|
|
121
133
|
* @type {boolean}
|
|
@@ -145,6 +157,78 @@ export declare const OrderDtoStatusEnum: {
|
|
|
145
157
|
readonly CANCELLED: "cancelled";
|
|
146
158
|
};
|
|
147
159
|
export type OrderDtoStatusEnum = typeof OrderDtoStatusEnum[keyof typeof OrderDtoStatusEnum];
|
|
160
|
+
/**
|
|
161
|
+
* @export
|
|
162
|
+
*/
|
|
163
|
+
export declare const OrderDtoSelectedPaymentMethodEnum: {
|
|
164
|
+
readonly ACSS_DEBIT: "acss_debit";
|
|
165
|
+
readonly AFFIRM: "affirm";
|
|
166
|
+
readonly AFTERPAY_CLEARPAY: "afterpay_clearpay";
|
|
167
|
+
readonly ALIPAY: "alipay";
|
|
168
|
+
readonly ALMA: "alma";
|
|
169
|
+
readonly AMAZON_PAY: "amazon_pay";
|
|
170
|
+
readonly APPLE_PAY: "apple_pay";
|
|
171
|
+
readonly AU_BECS_DEBIT: "au_becs_debit";
|
|
172
|
+
readonly BACS_DEBIT: "bacs_debit";
|
|
173
|
+
readonly BANCOMAT_PAY: "bancomat_pay";
|
|
174
|
+
readonly BANCONTACT: "bancontact";
|
|
175
|
+
readonly BELFIUS: "belfius";
|
|
176
|
+
readonly BILLIE: "billie";
|
|
177
|
+
readonly BLIK: "blik";
|
|
178
|
+
readonly BOLETO: "boleto";
|
|
179
|
+
readonly BANK_TRANSFER: "bank_transfer";
|
|
180
|
+
readonly CARD: "card";
|
|
181
|
+
readonly CARD_PRESENT: "card_present";
|
|
182
|
+
readonly CASHAPP: "cashapp";
|
|
183
|
+
readonly CUSTOMER_BALANCE: "customer_balance";
|
|
184
|
+
readonly EPS: "eps";
|
|
185
|
+
readonly FPX: "fpx";
|
|
186
|
+
readonly GIFTCARD: "giftcard";
|
|
187
|
+
readonly GIROPAY: "giropay";
|
|
188
|
+
readonly GOOGLE_PAY: "google_pay";
|
|
189
|
+
readonly GOPAY: "gopay";
|
|
190
|
+
readonly GRABPAY: "grabpay";
|
|
191
|
+
readonly ID_BANK_TRANSFER: "id_bank_transfer";
|
|
192
|
+
readonly IDEAL: "ideal";
|
|
193
|
+
readonly IN3: "in3";
|
|
194
|
+
readonly INTERAC_PRESENT: "interac_present";
|
|
195
|
+
readonly KAKAO_PAY: "kakao_pay";
|
|
196
|
+
readonly KBC: "kbc";
|
|
197
|
+
readonly KLARNA: "klarna";
|
|
198
|
+
readonly KONBINI: "konbini";
|
|
199
|
+
readonly KR_CARD: "kr_card";
|
|
200
|
+
readonly LINK: "link";
|
|
201
|
+
readonly MB_WAY: "mb_way";
|
|
202
|
+
readonly MOBILEPAY: "mobilepay";
|
|
203
|
+
readonly MULTIBANCO: "multibanco";
|
|
204
|
+
readonly NAVER_PAY: "naver_pay";
|
|
205
|
+
readonly NZ_BANK_ACCOUNT: "nz_bank_account";
|
|
206
|
+
readonly OXXO: "oxxo";
|
|
207
|
+
readonly PAY_BY_BANK: "pay_by_bank";
|
|
208
|
+
readonly PAYCO: "payco";
|
|
209
|
+
readonly PAYNOW: "paynow";
|
|
210
|
+
readonly PAYPAL: "paypal";
|
|
211
|
+
readonly PAYTO: "payto";
|
|
212
|
+
readonly PIX: "pix";
|
|
213
|
+
readonly PROMPTPAY: "promptpay";
|
|
214
|
+
readonly PRZELEWY24: "przelewy24";
|
|
215
|
+
readonly QRIS: "qris";
|
|
216
|
+
readonly RECHNUNG: "rechnung";
|
|
217
|
+
readonly REVOLUT_PAY: "revolut_pay";
|
|
218
|
+
readonly SAMSUNG_PAY: "samsung_pay";
|
|
219
|
+
readonly SATISPAY: "satispay";
|
|
220
|
+
readonly SEPA_DEBIT: "sepa_debit";
|
|
221
|
+
readonly SHOPEEPAY: "shopeepay";
|
|
222
|
+
readonly SOFORT: "sofort";
|
|
223
|
+
readonly STRIPE_BALANCE: "stripe_balance";
|
|
224
|
+
readonly SWISH: "swish";
|
|
225
|
+
readonly TWINT: "twint";
|
|
226
|
+
readonly US_BANK_ACCOUNT: "us_bank_account";
|
|
227
|
+
readonly VOUCHER: "voucher";
|
|
228
|
+
readonly WECHAT_PAY: "wechat_pay";
|
|
229
|
+
readonly ZIP: "zip";
|
|
230
|
+
};
|
|
231
|
+
export type OrderDtoSelectedPaymentMethodEnum = typeof OrderDtoSelectedPaymentMethodEnum[keyof typeof OrderDtoSelectedPaymentMethodEnum];
|
|
148
232
|
/**
|
|
149
233
|
* @export
|
|
150
234
|
*/
|
package/dist/models/OrderDto.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.OrderDtoEnabledPaymentMethodsEnum = exports.OrderDtoStatusEnum = void 0;
|
|
16
|
+
exports.OrderDtoEnabledPaymentMethodsEnum = exports.OrderDtoSelectedPaymentMethodEnum = exports.OrderDtoStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfOrderDto = instanceOfOrderDto;
|
|
18
18
|
exports.OrderDtoFromJSON = OrderDtoFromJSON;
|
|
19
19
|
exports.OrderDtoFromJSONTyped = OrderDtoFromJSONTyped;
|
|
@@ -33,6 +33,77 @@ exports.OrderDtoStatusEnum = {
|
|
|
33
33
|
PAID: 'paid',
|
|
34
34
|
CANCELLED: 'cancelled'
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
exports.OrderDtoSelectedPaymentMethodEnum = {
|
|
40
|
+
ACSS_DEBIT: 'acss_debit',
|
|
41
|
+
AFFIRM: 'affirm',
|
|
42
|
+
AFTERPAY_CLEARPAY: 'afterpay_clearpay',
|
|
43
|
+
ALIPAY: 'alipay',
|
|
44
|
+
ALMA: 'alma',
|
|
45
|
+
AMAZON_PAY: 'amazon_pay',
|
|
46
|
+
APPLE_PAY: 'apple_pay',
|
|
47
|
+
AU_BECS_DEBIT: 'au_becs_debit',
|
|
48
|
+
BACS_DEBIT: 'bacs_debit',
|
|
49
|
+
BANCOMAT_PAY: 'bancomat_pay',
|
|
50
|
+
BANCONTACT: 'bancontact',
|
|
51
|
+
BELFIUS: 'belfius',
|
|
52
|
+
BILLIE: 'billie',
|
|
53
|
+
BLIK: 'blik',
|
|
54
|
+
BOLETO: 'boleto',
|
|
55
|
+
BANK_TRANSFER: 'bank_transfer',
|
|
56
|
+
CARD: 'card',
|
|
57
|
+
CARD_PRESENT: 'card_present',
|
|
58
|
+
CASHAPP: 'cashapp',
|
|
59
|
+
CUSTOMER_BALANCE: 'customer_balance',
|
|
60
|
+
EPS: 'eps',
|
|
61
|
+
FPX: 'fpx',
|
|
62
|
+
GIFTCARD: 'giftcard',
|
|
63
|
+
GIROPAY: 'giropay',
|
|
64
|
+
GOOGLE_PAY: 'google_pay',
|
|
65
|
+
GOPAY: 'gopay',
|
|
66
|
+
GRABPAY: 'grabpay',
|
|
67
|
+
ID_BANK_TRANSFER: 'id_bank_transfer',
|
|
68
|
+
IDEAL: 'ideal',
|
|
69
|
+
IN3: 'in3',
|
|
70
|
+
INTERAC_PRESENT: 'interac_present',
|
|
71
|
+
KAKAO_PAY: 'kakao_pay',
|
|
72
|
+
KBC: 'kbc',
|
|
73
|
+
KLARNA: 'klarna',
|
|
74
|
+
KONBINI: 'konbini',
|
|
75
|
+
KR_CARD: 'kr_card',
|
|
76
|
+
LINK: 'link',
|
|
77
|
+
MB_WAY: 'mb_way',
|
|
78
|
+
MOBILEPAY: 'mobilepay',
|
|
79
|
+
MULTIBANCO: 'multibanco',
|
|
80
|
+
NAVER_PAY: 'naver_pay',
|
|
81
|
+
NZ_BANK_ACCOUNT: 'nz_bank_account',
|
|
82
|
+
OXXO: 'oxxo',
|
|
83
|
+
PAY_BY_BANK: 'pay_by_bank',
|
|
84
|
+
PAYCO: 'payco',
|
|
85
|
+
PAYNOW: 'paynow',
|
|
86
|
+
PAYPAL: 'paypal',
|
|
87
|
+
PAYTO: 'payto',
|
|
88
|
+
PIX: 'pix',
|
|
89
|
+
PROMPTPAY: 'promptpay',
|
|
90
|
+
PRZELEWY24: 'przelewy24',
|
|
91
|
+
QRIS: 'qris',
|
|
92
|
+
RECHNUNG: 'rechnung',
|
|
93
|
+
REVOLUT_PAY: 'revolut_pay',
|
|
94
|
+
SAMSUNG_PAY: 'samsung_pay',
|
|
95
|
+
SATISPAY: 'satispay',
|
|
96
|
+
SEPA_DEBIT: 'sepa_debit',
|
|
97
|
+
SHOPEEPAY: 'shopeepay',
|
|
98
|
+
SOFORT: 'sofort',
|
|
99
|
+
STRIPE_BALANCE: 'stripe_balance',
|
|
100
|
+
SWISH: 'swish',
|
|
101
|
+
TWINT: 'twint',
|
|
102
|
+
US_BANK_ACCOUNT: 'us_bank_account',
|
|
103
|
+
VOUCHER: 'voucher',
|
|
104
|
+
WECHAT_PAY: 'wechat_pay',
|
|
105
|
+
ZIP: 'zip'
|
|
106
|
+
};
|
|
36
107
|
/**
|
|
37
108
|
* @export
|
|
38
109
|
*/
|
|
@@ -52,6 +123,10 @@ function instanceOfOrderDto(value) {
|
|
|
52
123
|
return false;
|
|
53
124
|
if (!('decidedCountry' in value) || value['decidedCountry'] === undefined)
|
|
54
125
|
return false;
|
|
126
|
+
if (!('availablePaymentMethods' in value) || value['availablePaymentMethods'] === undefined)
|
|
127
|
+
return false;
|
|
128
|
+
if (!('selectedPaymentMethod' in value) || value['selectedPaymentMethod'] === undefined)
|
|
129
|
+
return false;
|
|
55
130
|
if (!('basePrice' in value) || value['basePrice'] === undefined)
|
|
56
131
|
return false;
|
|
57
132
|
if (!('totalPrice' in value) || value['totalPrice'] === undefined)
|
|
@@ -96,6 +171,8 @@ function OrderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
96
171
|
'status': json['status'],
|
|
97
172
|
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
|
|
98
173
|
'decidedCountry': json['decidedCountry'],
|
|
174
|
+
'availablePaymentMethods': json['availablePaymentMethods'],
|
|
175
|
+
'selectedPaymentMethod': json['selectedPaymentMethod'],
|
|
99
176
|
'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
|
|
100
177
|
'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
|
|
101
178
|
'totalTaxPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalTaxPrice']),
|
|
@@ -126,6 +203,8 @@ function OrderDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
126
203
|
'status': value['status'],
|
|
127
204
|
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
128
205
|
'decidedCountry': value['decidedCountry'],
|
|
206
|
+
'availablePaymentMethods': value['availablePaymentMethods'],
|
|
207
|
+
'selectedPaymentMethod': value['selectedPaymentMethod'],
|
|
129
208
|
'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
|
|
130
209
|
'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
|
|
131
210
|
'totalTaxPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalTaxPrice']),
|