@randock/nameshift-api-client 0.0.419 → 0.0.421
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 +2 -0
- package/README.md +3 -3
- package/dist/apis/OrdersPublicApi.d.ts +1 -0
- package/dist/apis/OrdersPublicApi.js +3 -0
- package/dist/apis/SubscriptionsPublicApi.d.ts +2 -0
- package/dist/apis/SubscriptionsPublicApi.js +6 -0
- package/dist/models/CreateAccountPaymentManualTransactionInput.d.ts +0 -96
- package/dist/models/CreateAccountPaymentManualTransactionInput.js +1 -80
- package/dist/models/CreateManualTransactionInput.d.ts +2 -8
- package/dist/models/CreateManualTransactionInput.js +2 -4
- package/dist/models/CreateSubscriptionManualTransactionInput.d.ts +2 -8
- package/dist/models/CreateSubscriptionManualTransactionInput.js +2 -4
- package/dist/models/OrderListItemDto.d.ts +13 -0
- package/dist/models/OrderListItemDto.js +9 -0
- package/dist/models/OrderListItemDtoTransaction.d.ts +53 -0
- package/dist/models/OrderListItemDtoTransaction.js +68 -0
- package/dist/models/SubscriptionListItemDto.d.ts +19 -0
- package/dist/models/SubscriptionListItemDto.js +13 -0
- package/dist/models/SubscriptionListItemDtoTransaction.d.ts +53 -0
- package/dist/models/SubscriptionListItemDtoTransaction.js +68 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/OrdersPublicApi.ts +5 -0
- package/src/apis/SubscriptionsPublicApi.ts +10 -0
- package/src/models/CreateAccountPaymentManualTransactionInput.ts +0 -105
- package/src/models/CreateManualTransactionInput.ts +4 -12
- package/src/models/CreateSubscriptionManualTransactionInput.ts +4 -12
- package/src/models/OrderListItemDto.ts +25 -0
- package/src/models/OrderListItemDtoTransaction.ts +96 -0
- package/src/models/SubscriptionListItemDto.ts +34 -0
- package/src/models/SubscriptionListItemDtoTransaction.ts +96 -0
- package/src/models/index.ts +2 -0
|
@@ -21,6 +21,7 @@ exports.SubscriptionListItemDtoToJSON = SubscriptionListItemDtoToJSON;
|
|
|
21
21
|
exports.SubscriptionListItemDtoToJSONTyped = SubscriptionListItemDtoToJSONTyped;
|
|
22
22
|
var SubscriptionListItemBillingPeriodicityDto_1 = require("./SubscriptionListItemBillingPeriodicityDto");
|
|
23
23
|
var SubscriptionListItemDtoBuyerInformation_1 = require("./SubscriptionListItemDtoBuyerInformation");
|
|
24
|
+
var SubscriptionListItemDtoTransaction_1 = require("./SubscriptionListItemDtoTransaction");
|
|
24
25
|
var SubscriptionListItemDtoSellerAccount_1 = require("./SubscriptionListItemDtoSellerAccount");
|
|
25
26
|
var MoneyDto_1 = require("./MoneyDto");
|
|
26
27
|
var SubscriptionListItemDtoDomainInformation_1 = require("./SubscriptionListItemDtoDomainInformation");
|
|
@@ -117,6 +118,12 @@ function instanceOfSubscriptionListItemDto(value) {
|
|
|
117
118
|
return false;
|
|
118
119
|
if (!('sellerLeaseToOwnKickBackPercentage' in value) || value['sellerLeaseToOwnKickBackPercentage'] === undefined)
|
|
119
120
|
return false;
|
|
121
|
+
if (!('isLeadImported' in value) || value['isLeadImported'] === undefined)
|
|
122
|
+
return false;
|
|
123
|
+
if (!('leadId' in value) || value['leadId'] === undefined)
|
|
124
|
+
return false;
|
|
125
|
+
if (!('transaction' in value) || value['transaction'] === undefined)
|
|
126
|
+
return false;
|
|
120
127
|
return true;
|
|
121
128
|
}
|
|
122
129
|
function SubscriptionListItemDtoFromJSON(json) {
|
|
@@ -152,6 +159,9 @@ function SubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
152
159
|
'recurringMarkupPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['recurringMarkupPrice']),
|
|
153
160
|
'billingPeriodicity': (0, SubscriptionListItemBillingPeriodicityDto_1.SubscriptionListItemBillingPeriodicityDtoFromJSON)(json['billingPeriodicity']),
|
|
154
161
|
'sellerLeaseToOwnKickBackPercentage': json['sellerLeaseToOwnKickBackPercentage'],
|
|
162
|
+
'isLeadImported': json['isLeadImported'],
|
|
163
|
+
'leadId': json['leadId'],
|
|
164
|
+
'transaction': (0, SubscriptionListItemDtoTransaction_1.SubscriptionListItemDtoTransactionFromJSON)(json['transaction']),
|
|
155
165
|
};
|
|
156
166
|
}
|
|
157
167
|
function SubscriptionListItemDtoToJSON(json) {
|
|
@@ -188,5 +198,8 @@ function SubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
188
198
|
'recurringMarkupPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['recurringMarkupPrice']),
|
|
189
199
|
'billingPeriodicity': (0, SubscriptionListItemBillingPeriodicityDto_1.SubscriptionListItemBillingPeriodicityDtoToJSON)(value['billingPeriodicity']),
|
|
190
200
|
'sellerLeaseToOwnKickBackPercentage': value['sellerLeaseToOwnKickBackPercentage'],
|
|
201
|
+
'isLeadImported': value['isLeadImported'],
|
|
202
|
+
'leadId': value['leadId'],
|
|
203
|
+
'transaction': (0, SubscriptionListItemDtoTransaction_1.SubscriptionListItemDtoTransactionToJSON)(value['transaction']),
|
|
191
204
|
};
|
|
192
205
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SubscriptionListItemDtoTransaction
|
|
16
|
+
*/
|
|
17
|
+
export interface SubscriptionListItemDtoTransaction {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof SubscriptionListItemDtoTransaction
|
|
22
|
+
*/
|
|
23
|
+
id: object;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SubscriptionListItemDtoTransaction
|
|
28
|
+
*/
|
|
29
|
+
gateway: SubscriptionListItemDtoTransactionGatewayEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SubscriptionListItemDtoTransaction
|
|
34
|
+
*/
|
|
35
|
+
gatewayCustomerId: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const SubscriptionListItemDtoTransactionGatewayEnum: {
|
|
41
|
+
readonly STRIPE: "stripe";
|
|
42
|
+
readonly MOLLIE: "mollie";
|
|
43
|
+
readonly NICKY: "nicky";
|
|
44
|
+
};
|
|
45
|
+
export type SubscriptionListItemDtoTransactionGatewayEnum = typeof SubscriptionListItemDtoTransactionGatewayEnum[keyof typeof SubscriptionListItemDtoTransactionGatewayEnum];
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the SubscriptionListItemDtoTransaction interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfSubscriptionListItemDtoTransaction(value: object): value is SubscriptionListItemDtoTransaction;
|
|
50
|
+
export declare function SubscriptionListItemDtoTransactionFromJSON(json: any): SubscriptionListItemDtoTransaction;
|
|
51
|
+
export declare function SubscriptionListItemDtoTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemDtoTransaction;
|
|
52
|
+
export declare function SubscriptionListItemDtoTransactionToJSON(json: any): SubscriptionListItemDtoTransaction;
|
|
53
|
+
export declare function SubscriptionListItemDtoTransactionToJSONTyped(value?: SubscriptionListItemDtoTransaction | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SubscriptionListItemDtoTransactionGatewayEnum = void 0;
|
|
17
|
+
exports.instanceOfSubscriptionListItemDtoTransaction = instanceOfSubscriptionListItemDtoTransaction;
|
|
18
|
+
exports.SubscriptionListItemDtoTransactionFromJSON = SubscriptionListItemDtoTransactionFromJSON;
|
|
19
|
+
exports.SubscriptionListItemDtoTransactionFromJSONTyped = SubscriptionListItemDtoTransactionFromJSONTyped;
|
|
20
|
+
exports.SubscriptionListItemDtoTransactionToJSON = SubscriptionListItemDtoTransactionToJSON;
|
|
21
|
+
exports.SubscriptionListItemDtoTransactionToJSONTyped = SubscriptionListItemDtoTransactionToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SubscriptionListItemDtoTransactionGatewayEnum = {
|
|
26
|
+
STRIPE: 'stripe',
|
|
27
|
+
MOLLIE: 'mollie',
|
|
28
|
+
NICKY: 'nicky'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the SubscriptionListItemDtoTransaction interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfSubscriptionListItemDtoTransaction(value) {
|
|
34
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('gateway' in value) || value['gateway'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('gatewayCustomerId' in value) || value['gatewayCustomerId'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function SubscriptionListItemDtoTransactionFromJSON(json) {
|
|
43
|
+
return SubscriptionListItemDtoTransactionFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function SubscriptionListItemDtoTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'gateway': json['gateway'],
|
|
52
|
+
'gatewayCustomerId': json['gatewayCustomerId'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function SubscriptionListItemDtoTransactionToJSON(json) {
|
|
56
|
+
return SubscriptionListItemDtoTransactionToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function SubscriptionListItemDtoTransactionToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'gateway': value['gateway'],
|
|
66
|
+
'gatewayCustomerId': value['gatewayCustomerId'],
|
|
67
|
+
};
|
|
68
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -311,6 +311,7 @@ export * from './OrderListItemDto';
|
|
|
311
311
|
export * from './OrderListItemDtoBuyerInformation';
|
|
312
312
|
export * from './OrderListItemDtoDomainInformation';
|
|
313
313
|
export * from './OrderListItemDtoSellerAccount';
|
|
314
|
+
export * from './OrderListItemDtoTransaction';
|
|
314
315
|
export * from './OwnedDomainDto';
|
|
315
316
|
export * from './PageBasedPageInfo';
|
|
316
317
|
export * from './PageBasedPaginationResponse';
|
|
@@ -417,6 +418,7 @@ export * from './SubscriptionListItemDto';
|
|
|
417
418
|
export * from './SubscriptionListItemDtoBuyerInformation';
|
|
418
419
|
export * from './SubscriptionListItemDtoDomainInformation';
|
|
419
420
|
export * from './SubscriptionListItemDtoSellerAccount';
|
|
421
|
+
export * from './SubscriptionListItemDtoTransaction';
|
|
420
422
|
export * from './TaskDataChallengeRewardDto';
|
|
421
423
|
export * from './TaskDataDomainTransferDto';
|
|
422
424
|
export * from './TaskDetailsDto';
|
package/dist/models/index.js
CHANGED
|
@@ -329,6 +329,7 @@ __exportStar(require("./OrderListItemDto"), exports);
|
|
|
329
329
|
__exportStar(require("./OrderListItemDtoBuyerInformation"), exports);
|
|
330
330
|
__exportStar(require("./OrderListItemDtoDomainInformation"), exports);
|
|
331
331
|
__exportStar(require("./OrderListItemDtoSellerAccount"), exports);
|
|
332
|
+
__exportStar(require("./OrderListItemDtoTransaction"), exports);
|
|
332
333
|
__exportStar(require("./OwnedDomainDto"), exports);
|
|
333
334
|
__exportStar(require("./PageBasedPageInfo"), exports);
|
|
334
335
|
__exportStar(require("./PageBasedPaginationResponse"), exports);
|
|
@@ -435,6 +436,7 @@ __exportStar(require("./SubscriptionListItemDto"), exports);
|
|
|
435
436
|
__exportStar(require("./SubscriptionListItemDtoBuyerInformation"), exports);
|
|
436
437
|
__exportStar(require("./SubscriptionListItemDtoDomainInformation"), exports);
|
|
437
438
|
__exportStar(require("./SubscriptionListItemDtoSellerAccount"), exports);
|
|
439
|
+
__exportStar(require("./SubscriptionListItemDtoTransaction"), exports);
|
|
438
440
|
__exportStar(require("./TaskDataChallengeRewardDto"), exports);
|
|
439
441
|
__exportStar(require("./TaskDataDomainTransferDto"), exports);
|
|
440
442
|
__exportStar(require("./TaskDetailsDto"), exports);
|
package/package.json
CHANGED
|
@@ -58,6 +58,7 @@ export interface OrdersPublicApiDownloadOrderProformaInvoiceRequest {
|
|
|
58
58
|
|
|
59
59
|
export interface OrdersPublicApiGetOrderRequest {
|
|
60
60
|
orderId: string;
|
|
61
|
+
includePaymentMethods?: boolean;
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
export interface OrdersPublicApiUpdateOrderRequest {
|
|
@@ -196,6 +197,10 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
196
197
|
|
|
197
198
|
const queryParameters: any = {};
|
|
198
199
|
|
|
200
|
+
if (requestParameters['includePaymentMethods'] != null) {
|
|
201
|
+
queryParameters['includePaymentMethods'] = requestParameters['includePaymentMethods'];
|
|
202
|
+
}
|
|
203
|
+
|
|
199
204
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
200
205
|
|
|
201
206
|
const response = await this.request({
|
|
@@ -59,11 +59,13 @@ export interface SubscriptionsPublicApiDownloadSubscriptionProformaInvoiceReques
|
|
|
59
59
|
|
|
60
60
|
export interface SubscriptionsPublicApiGetSubscriptionRequest {
|
|
61
61
|
subscriptionId: string;
|
|
62
|
+
includePaymentMethods?: boolean;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
export interface SubscriptionsPublicApiGetSubscriptionByInvoiceRequest {
|
|
65
66
|
subscriptionId: string;
|
|
66
67
|
invoiceId: string;
|
|
68
|
+
includePaymentMethods?: boolean;
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
export interface SubscriptionsPublicApiUpdateSubscriptionRequest {
|
|
@@ -211,6 +213,10 @@ export class SubscriptionsPublicApi extends runtime.BaseAPI {
|
|
|
211
213
|
|
|
212
214
|
const queryParameters: any = {};
|
|
213
215
|
|
|
216
|
+
if (requestParameters['includePaymentMethods'] != null) {
|
|
217
|
+
queryParameters['includePaymentMethods'] = requestParameters['includePaymentMethods'];
|
|
218
|
+
}
|
|
219
|
+
|
|
214
220
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
215
221
|
|
|
216
222
|
const response = await this.request({
|
|
@@ -252,6 +258,10 @@ export class SubscriptionsPublicApi extends runtime.BaseAPI {
|
|
|
252
258
|
|
|
253
259
|
const queryParameters: any = {};
|
|
254
260
|
|
|
261
|
+
if (requestParameters['includePaymentMethods'] != null) {
|
|
262
|
+
queryParameters['includePaymentMethods'] = requestParameters['includePaymentMethods'];
|
|
263
|
+
}
|
|
264
|
+
|
|
255
265
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
256
266
|
|
|
257
267
|
const response = await this.request({
|
|
@@ -25,30 +25,6 @@ export interface CreateAccountPaymentManualTransactionInput {
|
|
|
25
25
|
* @memberof CreateAccountPaymentManualTransactionInput
|
|
26
26
|
*/
|
|
27
27
|
gateway?: CreateAccountPaymentManualTransactionInputGatewayEnum;
|
|
28
|
-
/**
|
|
29
|
-
* URL to redirect to when payment is successful
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof CreateAccountPaymentManualTransactionInput
|
|
32
|
-
*/
|
|
33
|
-
successUrl?: string;
|
|
34
|
-
/**
|
|
35
|
-
* URL to redirect to when payment is cancelled
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof CreateAccountPaymentManualTransactionInput
|
|
38
|
-
*/
|
|
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;
|
|
52
28
|
/**
|
|
53
29
|
* Payment method string to use for this transaction
|
|
54
30
|
* @type {string}
|
|
@@ -67,79 +43,6 @@ export const CreateAccountPaymentManualTransactionInputGatewayEnum = {
|
|
|
67
43
|
} as const;
|
|
68
44
|
export type CreateAccountPaymentManualTransactionInputGatewayEnum = typeof CreateAccountPaymentManualTransactionInputGatewayEnum[keyof typeof CreateAccountPaymentManualTransactionInputGatewayEnum];
|
|
69
45
|
|
|
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
|
-
|
|
143
46
|
|
|
144
47
|
/**
|
|
145
48
|
* Check if a given object implements the CreateAccountPaymentManualTransactionInput interface.
|
|
@@ -160,10 +63,6 @@ export function CreateAccountPaymentManualTransactionInputFromJSONTyped(json: an
|
|
|
160
63
|
return {
|
|
161
64
|
|
|
162
65
|
'gateway': json['gateway'] == null ? undefined : json['gateway'],
|
|
163
|
-
'successUrl': json['successUrl'] == null ? undefined : json['successUrl'],
|
|
164
|
-
'cancelUrl': json['cancelUrl'] == null ? undefined : json['cancelUrl'],
|
|
165
|
-
'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
|
|
166
|
-
'selectedPaymentMethod': json['selectedPaymentMethod'] == null ? undefined : json['selectedPaymentMethod'],
|
|
167
66
|
'paymentMethodType': json['paymentMethodType'],
|
|
168
67
|
};
|
|
169
68
|
}
|
|
@@ -180,10 +79,6 @@ export function CreateAccountPaymentManualTransactionInputToJSONTyped(value?: Cr
|
|
|
180
79
|
return {
|
|
181
80
|
|
|
182
81
|
'gateway': value['gateway'],
|
|
183
|
-
'successUrl': value['successUrl'],
|
|
184
|
-
'cancelUrl': value['cancelUrl'],
|
|
185
|
-
'sessionId': value['sessionId'],
|
|
186
|
-
'selectedPaymentMethod': value['selectedPaymentMethod'],
|
|
187
82
|
'paymentMethodType': value['paymentMethodType'],
|
|
188
83
|
};
|
|
189
84
|
}
|
|
@@ -26,17 +26,11 @@ export interface CreateManualTransactionInput {
|
|
|
26
26
|
*/
|
|
27
27
|
gateway?: CreateManualTransactionInputGatewayEnum;
|
|
28
28
|
/**
|
|
29
|
-
* URL to redirect to
|
|
29
|
+
* URL to redirect to after payment
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof CreateManualTransactionInput
|
|
32
32
|
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* URL to redirect to when payment is cancelled
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof CreateManualTransactionInput
|
|
38
|
-
*/
|
|
39
|
-
cancelUrl?: string;
|
|
33
|
+
returnUrl?: string;
|
|
40
34
|
/**
|
|
41
35
|
* Payment session ID used as Mollie card token
|
|
42
36
|
* @type {string}
|
|
@@ -153,8 +147,7 @@ export function CreateManualTransactionInputFromJSONTyped(json: any, ignoreDiscr
|
|
|
153
147
|
return {
|
|
154
148
|
|
|
155
149
|
'gateway': json['gateway'] == null ? undefined : json['gateway'],
|
|
156
|
-
'
|
|
157
|
-
'cancelUrl': json['cancelUrl'] == null ? undefined : json['cancelUrl'],
|
|
150
|
+
'returnUrl': json['returnUrl'] == null ? undefined : json['returnUrl'],
|
|
158
151
|
'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
|
|
159
152
|
'selectedPaymentMethod': json['selectedPaymentMethod'] == null ? undefined : json['selectedPaymentMethod'],
|
|
160
153
|
};
|
|
@@ -172,8 +165,7 @@ export function CreateManualTransactionInputToJSONTyped(value?: CreateManualTran
|
|
|
172
165
|
return {
|
|
173
166
|
|
|
174
167
|
'gateway': value['gateway'],
|
|
175
|
-
'
|
|
176
|
-
'cancelUrl': value['cancelUrl'],
|
|
168
|
+
'returnUrl': value['returnUrl'],
|
|
177
169
|
'sessionId': value['sessionId'],
|
|
178
170
|
'selectedPaymentMethod': value['selectedPaymentMethod'],
|
|
179
171
|
};
|
|
@@ -32,17 +32,11 @@ export interface CreateSubscriptionManualTransactionInput {
|
|
|
32
32
|
*/
|
|
33
33
|
selectedPaymentMethod?: CreateSubscriptionManualTransactionInputSelectedPaymentMethodEnum;
|
|
34
34
|
/**
|
|
35
|
-
* URL to redirect to
|
|
35
|
+
* URL to redirect to after payment
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof CreateSubscriptionManualTransactionInput
|
|
38
38
|
*/
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* URL to redirect to when payment is cancelled
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof CreateSubscriptionManualTransactionInput
|
|
44
|
-
*/
|
|
45
|
-
cancelUrl?: string;
|
|
39
|
+
returnUrl?: string;
|
|
46
40
|
/**
|
|
47
41
|
* Payment session ID used as Mollie card token
|
|
48
42
|
* @type {string}
|
|
@@ -145,8 +139,7 @@ export function CreateSubscriptionManualTransactionInputFromJSONTyped(json: any,
|
|
|
145
139
|
|
|
146
140
|
'invoiceId': json['invoiceId'] == null ? undefined : json['invoiceId'],
|
|
147
141
|
'selectedPaymentMethod': json['selectedPaymentMethod'] == null ? undefined : json['selectedPaymentMethod'],
|
|
148
|
-
'
|
|
149
|
-
'cancelUrl': json['cancelUrl'] == null ? undefined : json['cancelUrl'],
|
|
142
|
+
'returnUrl': json['returnUrl'] == null ? undefined : json['returnUrl'],
|
|
150
143
|
'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
|
|
151
144
|
};
|
|
152
145
|
}
|
|
@@ -164,8 +157,7 @@ export function CreateSubscriptionManualTransactionInputToJSONTyped(value?: Crea
|
|
|
164
157
|
|
|
165
158
|
'invoiceId': value['invoiceId'],
|
|
166
159
|
'selectedPaymentMethod': value['selectedPaymentMethod'],
|
|
167
|
-
'
|
|
168
|
-
'cancelUrl': value['cancelUrl'],
|
|
160
|
+
'returnUrl': value['returnUrl'],
|
|
169
161
|
'sessionId': value['sessionId'],
|
|
170
162
|
};
|
|
171
163
|
}
|
|
@@ -34,6 +34,13 @@ import {
|
|
|
34
34
|
OrderListItemDtoBuyerInformationToJSON,
|
|
35
35
|
OrderListItemDtoBuyerInformationToJSONTyped,
|
|
36
36
|
} from './OrderListItemDtoBuyerInformation';
|
|
37
|
+
import type { OrderListItemDtoTransaction } from './OrderListItemDtoTransaction';
|
|
38
|
+
import {
|
|
39
|
+
OrderListItemDtoTransactionFromJSON,
|
|
40
|
+
OrderListItemDtoTransactionFromJSONTyped,
|
|
41
|
+
OrderListItemDtoTransactionToJSON,
|
|
42
|
+
OrderListItemDtoTransactionToJSONTyped,
|
|
43
|
+
} from './OrderListItemDtoTransaction';
|
|
37
44
|
import type { OrderListItemDtoSellerAccount } from './OrderListItemDtoSellerAccount';
|
|
38
45
|
import {
|
|
39
46
|
OrderListItemDtoSellerAccountFromJSON,
|
|
@@ -114,6 +121,12 @@ export interface OrderListItemDto {
|
|
|
114
121
|
* @memberof OrderListItemDto
|
|
115
122
|
*/
|
|
116
123
|
leadId: object | null;
|
|
124
|
+
/**
|
|
125
|
+
* Indicates whether the order is imported from a lead.
|
|
126
|
+
* @type {boolean}
|
|
127
|
+
* @memberof OrderListItemDto
|
|
128
|
+
*/
|
|
129
|
+
isLeadImported: boolean;
|
|
117
130
|
/**
|
|
118
131
|
* The order auction ID
|
|
119
132
|
* @type {object}
|
|
@@ -126,6 +139,12 @@ export interface OrderListItemDto {
|
|
|
126
139
|
* @memberof OrderListItemDto
|
|
127
140
|
*/
|
|
128
141
|
domainTransferId: object | null;
|
|
142
|
+
/**
|
|
143
|
+
* The selected invoice transaction data (paid one or latest fallback).
|
|
144
|
+
* @type {OrderListItemDtoTransaction}
|
|
145
|
+
* @memberof OrderListItemDto
|
|
146
|
+
*/
|
|
147
|
+
transaction: OrderListItemDtoTransaction | null;
|
|
129
148
|
}
|
|
130
149
|
|
|
131
150
|
|
|
@@ -156,8 +175,10 @@ export function instanceOfOrderListItemDto(value: object): value is OrderListIte
|
|
|
156
175
|
if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
|
|
157
176
|
if (!('basePriceEur' in value) || value['basePriceEur'] === undefined) return false;
|
|
158
177
|
if (!('leadId' in value) || value['leadId'] === undefined) return false;
|
|
178
|
+
if (!('isLeadImported' in value) || value['isLeadImported'] === undefined) return false;
|
|
159
179
|
if (!('auctionId' in value) || value['auctionId'] === undefined) return false;
|
|
160
180
|
if (!('domainTransferId' in value) || value['domainTransferId'] === undefined) return false;
|
|
181
|
+
if (!('transaction' in value) || value['transaction'] === undefined) return false;
|
|
161
182
|
return true;
|
|
162
183
|
}
|
|
163
184
|
|
|
@@ -182,8 +203,10 @@ export function OrderListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
182
203
|
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
183
204
|
'basePriceEur': MoneyDtoFromJSON(json['basePriceEur']),
|
|
184
205
|
'leadId': json['leadId'],
|
|
206
|
+
'isLeadImported': json['isLeadImported'],
|
|
185
207
|
'auctionId': json['auctionId'],
|
|
186
208
|
'domainTransferId': json['domainTransferId'],
|
|
209
|
+
'transaction': OrderListItemDtoTransactionFromJSON(json['transaction']),
|
|
187
210
|
};
|
|
188
211
|
}
|
|
189
212
|
|
|
@@ -209,8 +232,10 @@ export function OrderListItemDtoToJSONTyped(value?: OrderListItemDto | null, ign
|
|
|
209
232
|
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
210
233
|
'basePriceEur': MoneyDtoToJSON(value['basePriceEur']),
|
|
211
234
|
'leadId': value['leadId'],
|
|
235
|
+
'isLeadImported': value['isLeadImported'],
|
|
212
236
|
'auctionId': value['auctionId'],
|
|
213
237
|
'domainTransferId': value['domainTransferId'],
|
|
238
|
+
'transaction': OrderListItemDtoTransactionToJSON(value['transaction']),
|
|
214
239
|
};
|
|
215
240
|
}
|
|
216
241
|
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OrderListItemDtoTransaction
|
|
20
|
+
*/
|
|
21
|
+
export interface OrderListItemDtoTransaction {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {object}
|
|
25
|
+
* @memberof OrderListItemDtoTransaction
|
|
26
|
+
*/
|
|
27
|
+
id: object;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OrderListItemDtoTransaction
|
|
32
|
+
*/
|
|
33
|
+
gateway: OrderListItemDtoTransactionGatewayEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof OrderListItemDtoTransaction
|
|
38
|
+
*/
|
|
39
|
+
gatewayCustomerId: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const OrderListItemDtoTransactionGatewayEnum = {
|
|
47
|
+
STRIPE: 'stripe',
|
|
48
|
+
MOLLIE: 'mollie',
|
|
49
|
+
NICKY: 'nicky'
|
|
50
|
+
} as const;
|
|
51
|
+
export type OrderListItemDtoTransactionGatewayEnum = typeof OrderListItemDtoTransactionGatewayEnum[keyof typeof OrderListItemDtoTransactionGatewayEnum];
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the OrderListItemDtoTransaction interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfOrderListItemDtoTransaction(value: object): value is OrderListItemDtoTransaction {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('gateway' in value) || value['gateway'] === undefined) return false;
|
|
60
|
+
if (!('gatewayCustomerId' in value) || value['gatewayCustomerId'] === undefined) return false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function OrderListItemDtoTransactionFromJSON(json: any): OrderListItemDtoTransaction {
|
|
65
|
+
return OrderListItemDtoTransactionFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function OrderListItemDtoTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDtoTransaction {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'id': json['id'],
|
|
75
|
+
'gateway': json['gateway'],
|
|
76
|
+
'gatewayCustomerId': json['gatewayCustomerId'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function OrderListItemDtoTransactionToJSON(json: any): OrderListItemDtoTransaction {
|
|
81
|
+
return OrderListItemDtoTransactionToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function OrderListItemDtoTransactionToJSONTyped(value?: OrderListItemDtoTransaction | null, ignoreDiscriminator: boolean = false): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'id': value['id'],
|
|
92
|
+
'gateway': value['gateway'],
|
|
93
|
+
'gatewayCustomerId': value['gatewayCustomerId'],
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|