@randock/nameshift-api-client 0.0.441 → 0.0.442
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 +8 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +49 -1
- package/dist/apis/AdminApi.js +187 -0
- package/dist/models/AdminBankDepositAccountBankAccountDto.d.ts +39 -0
- package/dist/models/AdminBankDepositAccountBankAccountDto.js +56 -0
- package/dist/models/AdminBankDepositAccountDto.d.ts +38 -0
- package/dist/models/AdminBankDepositAccountDto.js +55 -0
- package/dist/models/AdminBankDepositDto.d.ts +76 -0
- package/dist/models/AdminBankDepositDto.js +81 -0
- package/dist/models/AdminBankDepositInvoiceDto.d.ts +54 -0
- package/dist/models/AdminBankDepositInvoiceDto.js +69 -0
- package/dist/models/AdminBankDepositInvoiceTransactionDto.d.ts +39 -0
- package/dist/models/AdminBankDepositInvoiceTransactionDto.js +56 -0
- package/dist/models/AirwallexBankAccountDetailsDto.d.ts +1 -1
- package/dist/models/LinkBankDepositToBankAccountInput.d.ts +32 -0
- package/dist/models/LinkBankDepositToBankAccountInput.js +51 -0
- package/dist/models/LinkBankDepositToInvoiceInput.d.ts +32 -0
- package/dist/models/LinkBankDepositToInvoiceInput.js +51 -0
- package/dist/models/ListBankDeposits200Response.d.ts +47 -0
- package/dist/models/ListBankDeposits200Response.js +62 -0
- package/dist/models/OrderListItemDto.d.ts +1 -1
- package/dist/models/OrderListItemDtoTransaction.d.ts +95 -6
- package/dist/models/OrderListItemDtoTransaction.js +93 -8
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +192 -0
- package/src/models/AdminBankDepositAccountBankAccountDto.ts +83 -0
- package/src/models/AdminBankDepositAccountDto.ts +75 -0
- package/src/models/AdminBankDepositDto.ts +144 -0
- package/src/models/AdminBankDepositInvoiceDto.ts +97 -0
- package/src/models/AdminBankDepositInvoiceTransactionDto.ts +83 -0
- package/src/models/AirwallexBankAccountDetailsDto.ts +1 -1
- package/src/models/LinkBankDepositToBankAccountInput.ts +66 -0
- package/src/models/LinkBankDepositToInvoiceInput.ts +66 -0
- package/src/models/ListBankDeposits200Response.ts +106 -0
- package/src/models/OrderListItemDto.ts +1 -1
- package/src/models/OrderListItemDtoTransaction.ts +106 -19
- package/src/models/index.ts +8 -0
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { AdminVerificationDepositDto } from './AdminVerificationDepositDto';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -22,6 +21,12 @@ export interface OrderListItemDtoTransaction {
|
|
|
22
21
|
* @memberof OrderListItemDtoTransaction
|
|
23
22
|
*/
|
|
24
23
|
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Invoice transaction status.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OrderListItemDtoTransaction
|
|
28
|
+
*/
|
|
29
|
+
status: OrderListItemDtoTransactionStatusEnum;
|
|
25
30
|
/**
|
|
26
31
|
* Payment gateway.
|
|
27
32
|
* @type {string}
|
|
@@ -29,18 +34,30 @@ export interface OrderListItemDtoTransaction {
|
|
|
29
34
|
*/
|
|
30
35
|
gateway: OrderListItemDtoTransactionGatewayEnum;
|
|
31
36
|
/**
|
|
32
|
-
*
|
|
37
|
+
* Selected payment method.
|
|
33
38
|
* @type {string}
|
|
34
39
|
* @memberof OrderListItemDtoTransaction
|
|
35
40
|
*/
|
|
36
|
-
|
|
41
|
+
paymentMethod: OrderListItemDtoTransactionPaymentMethodEnum;
|
|
37
42
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {
|
|
43
|
+
* Processed bank deposit ID linked to this transaction, if any.
|
|
44
|
+
* @type {string}
|
|
40
45
|
* @memberof OrderListItemDtoTransaction
|
|
41
46
|
*/
|
|
42
|
-
|
|
47
|
+
depositId: string | null;
|
|
43
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const OrderListItemDtoTransactionStatusEnum: {
|
|
53
|
+
readonly OPEN: "open";
|
|
54
|
+
readonly PAID: "paid";
|
|
55
|
+
readonly PENDING: "pending";
|
|
56
|
+
readonly ERROR: "error";
|
|
57
|
+
readonly CANCELLED: "cancelled";
|
|
58
|
+
readonly REFUNDED: "refunded";
|
|
59
|
+
};
|
|
60
|
+
export type OrderListItemDtoTransactionStatusEnum = typeof OrderListItemDtoTransactionStatusEnum[keyof typeof OrderListItemDtoTransactionStatusEnum];
|
|
44
61
|
/**
|
|
45
62
|
* @export
|
|
46
63
|
*/
|
|
@@ -51,6 +68,78 @@ export declare const OrderListItemDtoTransactionGatewayEnum: {
|
|
|
51
68
|
readonly AIRWALLEX: "airwallex";
|
|
52
69
|
};
|
|
53
70
|
export type OrderListItemDtoTransactionGatewayEnum = typeof OrderListItemDtoTransactionGatewayEnum[keyof typeof OrderListItemDtoTransactionGatewayEnum];
|
|
71
|
+
/**
|
|
72
|
+
* @export
|
|
73
|
+
*/
|
|
74
|
+
export declare const OrderListItemDtoTransactionPaymentMethodEnum: {
|
|
75
|
+
readonly ACSS_DEBIT: "acss_debit";
|
|
76
|
+
readonly AFFIRM: "affirm";
|
|
77
|
+
readonly AFTERPAY_CLEARPAY: "afterpay_clearpay";
|
|
78
|
+
readonly ALIPAY: "alipay";
|
|
79
|
+
readonly ALMA: "alma";
|
|
80
|
+
readonly AMAZON_PAY: "amazon_pay";
|
|
81
|
+
readonly APPLE_PAY: "apple_pay";
|
|
82
|
+
readonly AU_BECS_DEBIT: "au_becs_debit";
|
|
83
|
+
readonly BACS_DEBIT: "bacs_debit";
|
|
84
|
+
readonly BANCOMAT_PAY: "bancomat_pay";
|
|
85
|
+
readonly BANCONTACT: "bancontact";
|
|
86
|
+
readonly BELFIUS: "belfius";
|
|
87
|
+
readonly BILLIE: "billie";
|
|
88
|
+
readonly BLIK: "blik";
|
|
89
|
+
readonly BOLETO: "boleto";
|
|
90
|
+
readonly BANK_TRANSFER: "bank_transfer";
|
|
91
|
+
readonly CARD: "card";
|
|
92
|
+
readonly CARD_PRESENT: "card_present";
|
|
93
|
+
readonly CASHAPP: "cashapp";
|
|
94
|
+
readonly CUSTOMER_BALANCE: "customer_balance";
|
|
95
|
+
readonly EPS: "eps";
|
|
96
|
+
readonly FPX: "fpx";
|
|
97
|
+
readonly GIFTCARD: "giftcard";
|
|
98
|
+
readonly GIROPAY: "giropay";
|
|
99
|
+
readonly GOOGLE_PAY: "google_pay";
|
|
100
|
+
readonly GOPAY: "gopay";
|
|
101
|
+
readonly GRABPAY: "grabpay";
|
|
102
|
+
readonly ID_BANK_TRANSFER: "id_bank_transfer";
|
|
103
|
+
readonly IDEAL: "ideal";
|
|
104
|
+
readonly IN3: "in3";
|
|
105
|
+
readonly INTERAC_PRESENT: "interac_present";
|
|
106
|
+
readonly KAKAO_PAY: "kakao_pay";
|
|
107
|
+
readonly KBC: "kbc";
|
|
108
|
+
readonly KLARNA: "klarna";
|
|
109
|
+
readonly KONBINI: "konbini";
|
|
110
|
+
readonly KR_CARD: "kr_card";
|
|
111
|
+
readonly LINK: "link";
|
|
112
|
+
readonly MB_WAY: "mb_way";
|
|
113
|
+
readonly MOBILEPAY: "mobilepay";
|
|
114
|
+
readonly MULTIBANCO: "multibanco";
|
|
115
|
+
readonly NAVER_PAY: "naver_pay";
|
|
116
|
+
readonly NZ_BANK_ACCOUNT: "nz_bank_account";
|
|
117
|
+
readonly OXXO: "oxxo";
|
|
118
|
+
readonly PAY_BY_BANK: "pay_by_bank";
|
|
119
|
+
readonly PAYCO: "payco";
|
|
120
|
+
readonly PAYNOW: "paynow";
|
|
121
|
+
readonly PAYPAL: "paypal";
|
|
122
|
+
readonly PAYTO: "payto";
|
|
123
|
+
readonly PIX: "pix";
|
|
124
|
+
readonly PROMPTPAY: "promptpay";
|
|
125
|
+
readonly PRZELEWY24: "przelewy24";
|
|
126
|
+
readonly QRIS: "qris";
|
|
127
|
+
readonly RECHNUNG: "rechnung";
|
|
128
|
+
readonly REVOLUT_PAY: "revolut_pay";
|
|
129
|
+
readonly SAMSUNG_PAY: "samsung_pay";
|
|
130
|
+
readonly SATISPAY: "satispay";
|
|
131
|
+
readonly SEPA_DEBIT: "sepa_debit";
|
|
132
|
+
readonly SHOPEEPAY: "shopeepay";
|
|
133
|
+
readonly SOFORT: "sofort";
|
|
134
|
+
readonly STRIPE_BALANCE: "stripe_balance";
|
|
135
|
+
readonly SWISH: "swish";
|
|
136
|
+
readonly TWINT: "twint";
|
|
137
|
+
readonly US_BANK_ACCOUNT: "us_bank_account";
|
|
138
|
+
readonly VOUCHER: "voucher";
|
|
139
|
+
readonly WECHAT_PAY: "wechat_pay";
|
|
140
|
+
readonly ZIP: "zip";
|
|
141
|
+
};
|
|
142
|
+
export type OrderListItemDtoTransactionPaymentMethodEnum = typeof OrderListItemDtoTransactionPaymentMethodEnum[keyof typeof OrderListItemDtoTransactionPaymentMethodEnum];
|
|
54
143
|
/**
|
|
55
144
|
* Check if a given object implements the OrderListItemDtoTransaction interface.
|
|
56
145
|
*/
|
|
@@ -13,13 +13,23 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.OrderListItemDtoTransactionGatewayEnum = void 0;
|
|
16
|
+
exports.OrderListItemDtoTransactionPaymentMethodEnum = exports.OrderListItemDtoTransactionGatewayEnum = exports.OrderListItemDtoTransactionStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfOrderListItemDtoTransaction = instanceOfOrderListItemDtoTransaction;
|
|
18
18
|
exports.OrderListItemDtoTransactionFromJSON = OrderListItemDtoTransactionFromJSON;
|
|
19
19
|
exports.OrderListItemDtoTransactionFromJSONTyped = OrderListItemDtoTransactionFromJSONTyped;
|
|
20
20
|
exports.OrderListItemDtoTransactionToJSON = OrderListItemDtoTransactionToJSON;
|
|
21
21
|
exports.OrderListItemDtoTransactionToJSONTyped = OrderListItemDtoTransactionToJSONTyped;
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.OrderListItemDtoTransactionStatusEnum = {
|
|
26
|
+
OPEN: 'open',
|
|
27
|
+
PAID: 'paid',
|
|
28
|
+
PENDING: 'pending',
|
|
29
|
+
ERROR: 'error',
|
|
30
|
+
CANCELLED: 'cancelled',
|
|
31
|
+
REFUNDED: 'refunded'
|
|
32
|
+
};
|
|
23
33
|
/**
|
|
24
34
|
* @export
|
|
25
35
|
*/
|
|
@@ -29,17 +39,90 @@ exports.OrderListItemDtoTransactionGatewayEnum = {
|
|
|
29
39
|
NICKY: 'nicky',
|
|
30
40
|
AIRWALLEX: 'airwallex'
|
|
31
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
exports.OrderListItemDtoTransactionPaymentMethodEnum = {
|
|
46
|
+
ACSS_DEBIT: 'acss_debit',
|
|
47
|
+
AFFIRM: 'affirm',
|
|
48
|
+
AFTERPAY_CLEARPAY: 'afterpay_clearpay',
|
|
49
|
+
ALIPAY: 'alipay',
|
|
50
|
+
ALMA: 'alma',
|
|
51
|
+
AMAZON_PAY: 'amazon_pay',
|
|
52
|
+
APPLE_PAY: 'apple_pay',
|
|
53
|
+
AU_BECS_DEBIT: 'au_becs_debit',
|
|
54
|
+
BACS_DEBIT: 'bacs_debit',
|
|
55
|
+
BANCOMAT_PAY: 'bancomat_pay',
|
|
56
|
+
BANCONTACT: 'bancontact',
|
|
57
|
+
BELFIUS: 'belfius',
|
|
58
|
+
BILLIE: 'billie',
|
|
59
|
+
BLIK: 'blik',
|
|
60
|
+
BOLETO: 'boleto',
|
|
61
|
+
BANK_TRANSFER: 'bank_transfer',
|
|
62
|
+
CARD: 'card',
|
|
63
|
+
CARD_PRESENT: 'card_present',
|
|
64
|
+
CASHAPP: 'cashapp',
|
|
65
|
+
CUSTOMER_BALANCE: 'customer_balance',
|
|
66
|
+
EPS: 'eps',
|
|
67
|
+
FPX: 'fpx',
|
|
68
|
+
GIFTCARD: 'giftcard',
|
|
69
|
+
GIROPAY: 'giropay',
|
|
70
|
+
GOOGLE_PAY: 'google_pay',
|
|
71
|
+
GOPAY: 'gopay',
|
|
72
|
+
GRABPAY: 'grabpay',
|
|
73
|
+
ID_BANK_TRANSFER: 'id_bank_transfer',
|
|
74
|
+
IDEAL: 'ideal',
|
|
75
|
+
IN3: 'in3',
|
|
76
|
+
INTERAC_PRESENT: 'interac_present',
|
|
77
|
+
KAKAO_PAY: 'kakao_pay',
|
|
78
|
+
KBC: 'kbc',
|
|
79
|
+
KLARNA: 'klarna',
|
|
80
|
+
KONBINI: 'konbini',
|
|
81
|
+
KR_CARD: 'kr_card',
|
|
82
|
+
LINK: 'link',
|
|
83
|
+
MB_WAY: 'mb_way',
|
|
84
|
+
MOBILEPAY: 'mobilepay',
|
|
85
|
+
MULTIBANCO: 'multibanco',
|
|
86
|
+
NAVER_PAY: 'naver_pay',
|
|
87
|
+
NZ_BANK_ACCOUNT: 'nz_bank_account',
|
|
88
|
+
OXXO: 'oxxo',
|
|
89
|
+
PAY_BY_BANK: 'pay_by_bank',
|
|
90
|
+
PAYCO: 'payco',
|
|
91
|
+
PAYNOW: 'paynow',
|
|
92
|
+
PAYPAL: 'paypal',
|
|
93
|
+
PAYTO: 'payto',
|
|
94
|
+
PIX: 'pix',
|
|
95
|
+
PROMPTPAY: 'promptpay',
|
|
96
|
+
PRZELEWY24: 'przelewy24',
|
|
97
|
+
QRIS: 'qris',
|
|
98
|
+
RECHNUNG: 'rechnung',
|
|
99
|
+
REVOLUT_PAY: 'revolut_pay',
|
|
100
|
+
SAMSUNG_PAY: 'samsung_pay',
|
|
101
|
+
SATISPAY: 'satispay',
|
|
102
|
+
SEPA_DEBIT: 'sepa_debit',
|
|
103
|
+
SHOPEEPAY: 'shopeepay',
|
|
104
|
+
SOFORT: 'sofort',
|
|
105
|
+
STRIPE_BALANCE: 'stripe_balance',
|
|
106
|
+
SWISH: 'swish',
|
|
107
|
+
TWINT: 'twint',
|
|
108
|
+
US_BANK_ACCOUNT: 'us_bank_account',
|
|
109
|
+
VOUCHER: 'voucher',
|
|
110
|
+
WECHAT_PAY: 'wechat_pay',
|
|
111
|
+
ZIP: 'zip'
|
|
112
|
+
};
|
|
32
113
|
/**
|
|
33
114
|
* Check if a given object implements the OrderListItemDtoTransaction interface.
|
|
34
115
|
*/
|
|
35
116
|
function instanceOfOrderListItemDtoTransaction(value) {
|
|
36
117
|
if (!('id' in value) || value['id'] === undefined)
|
|
37
118
|
return false;
|
|
119
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
120
|
+
return false;
|
|
38
121
|
if (!('gateway' in value) || value['gateway'] === undefined)
|
|
39
122
|
return false;
|
|
40
|
-
if (!('
|
|
123
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined)
|
|
41
124
|
return false;
|
|
42
|
-
if (!('
|
|
125
|
+
if (!('depositId' in value) || value['depositId'] === undefined)
|
|
43
126
|
return false;
|
|
44
127
|
return true;
|
|
45
128
|
}
|
|
@@ -52,9 +135,10 @@ function OrderListItemDtoTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
135
|
}
|
|
53
136
|
return {
|
|
54
137
|
'id': json['id'],
|
|
138
|
+
'status': json['status'],
|
|
55
139
|
'gateway': json['gateway'],
|
|
56
|
-
'
|
|
57
|
-
'
|
|
140
|
+
'paymentMethod': json['paymentMethod'],
|
|
141
|
+
'depositId': json['depositId'],
|
|
58
142
|
};
|
|
59
143
|
}
|
|
60
144
|
function OrderListItemDtoTransactionToJSON(json) {
|
|
@@ -67,8 +151,9 @@ function OrderListItemDtoTransactionToJSONTyped(value, ignoreDiscriminator) {
|
|
|
67
151
|
}
|
|
68
152
|
return {
|
|
69
153
|
'id': value['id'],
|
|
154
|
+
'status': value['status'],
|
|
70
155
|
'gateway': value['gateway'],
|
|
71
|
-
'
|
|
72
|
-
'
|
|
156
|
+
'paymentMethod': value['paymentMethod'],
|
|
157
|
+
'depositId': value['depositId'],
|
|
73
158
|
};
|
|
74
159
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -43,6 +43,11 @@ export * from './AdminAccountSettingsInput';
|
|
|
43
43
|
export * from './AdminAuctionCommissionByDateRangeInput';
|
|
44
44
|
export * from './AdminAuctionConfigurationInput';
|
|
45
45
|
export * from './AdminBankAccountDto';
|
|
46
|
+
export * from './AdminBankDepositAccountBankAccountDto';
|
|
47
|
+
export * from './AdminBankDepositAccountDto';
|
|
48
|
+
export * from './AdminBankDepositDto';
|
|
49
|
+
export * from './AdminBankDepositInvoiceDto';
|
|
50
|
+
export * from './AdminBankDepositInvoiceTransactionDto';
|
|
46
51
|
export * from './AdminBuyerLoginDto';
|
|
47
52
|
export * from './AdminChallengeListDto';
|
|
48
53
|
export * from './AdminChallengeListItemDto';
|
|
@@ -271,6 +276,8 @@ export * from './LeaseToOwnDto';
|
|
|
271
276
|
export * from './LedgerMutationAttachmentDto';
|
|
272
277
|
export * from './LedgerMutationDto';
|
|
273
278
|
export * from './LedgerMutationsDto';
|
|
279
|
+
export * from './LinkBankDepositToBankAccountInput';
|
|
280
|
+
export * from './LinkBankDepositToInvoiceInput';
|
|
274
281
|
export * from './List200Response';
|
|
275
282
|
export * from './List200Response1';
|
|
276
283
|
export * from './List200Response2';
|
|
@@ -282,6 +289,7 @@ export * from './ListAccountUserDto';
|
|
|
282
289
|
export * from './ListAccounts200Response';
|
|
283
290
|
export * from './ListAuctions200Response';
|
|
284
291
|
export * from './ListBankAccounts200Response';
|
|
292
|
+
export * from './ListBankDeposits200Response';
|
|
285
293
|
export * from './ListBuyerNotifications200Response';
|
|
286
294
|
export * from './ListDomains200Response';
|
|
287
295
|
export * from './ListDomainsWithUpdatedPricing200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -61,6 +61,11 @@ __exportStar(require("./AdminAccountSettingsInput"), exports);
|
|
|
61
61
|
__exportStar(require("./AdminAuctionCommissionByDateRangeInput"), exports);
|
|
62
62
|
__exportStar(require("./AdminAuctionConfigurationInput"), exports);
|
|
63
63
|
__exportStar(require("./AdminBankAccountDto"), exports);
|
|
64
|
+
__exportStar(require("./AdminBankDepositAccountBankAccountDto"), exports);
|
|
65
|
+
__exportStar(require("./AdminBankDepositAccountDto"), exports);
|
|
66
|
+
__exportStar(require("./AdminBankDepositDto"), exports);
|
|
67
|
+
__exportStar(require("./AdminBankDepositInvoiceDto"), exports);
|
|
68
|
+
__exportStar(require("./AdminBankDepositInvoiceTransactionDto"), exports);
|
|
64
69
|
__exportStar(require("./AdminBuyerLoginDto"), exports);
|
|
65
70
|
__exportStar(require("./AdminChallengeListDto"), exports);
|
|
66
71
|
__exportStar(require("./AdminChallengeListItemDto"), exports);
|
|
@@ -289,6 +294,8 @@ __exportStar(require("./LeaseToOwnDto"), exports);
|
|
|
289
294
|
__exportStar(require("./LedgerMutationAttachmentDto"), exports);
|
|
290
295
|
__exportStar(require("./LedgerMutationDto"), exports);
|
|
291
296
|
__exportStar(require("./LedgerMutationsDto"), exports);
|
|
297
|
+
__exportStar(require("./LinkBankDepositToBankAccountInput"), exports);
|
|
298
|
+
__exportStar(require("./LinkBankDepositToInvoiceInput"), exports);
|
|
292
299
|
__exportStar(require("./List200Response"), exports);
|
|
293
300
|
__exportStar(require("./List200Response1"), exports);
|
|
294
301
|
__exportStar(require("./List200Response2"), exports);
|
|
@@ -300,6 +307,7 @@ __exportStar(require("./ListAccountUserDto"), exports);
|
|
|
300
307
|
__exportStar(require("./ListAccounts200Response"), exports);
|
|
301
308
|
__exportStar(require("./ListAuctions200Response"), exports);
|
|
302
309
|
__exportStar(require("./ListBankAccounts200Response"), exports);
|
|
310
|
+
__exportStar(require("./ListBankDeposits200Response"), exports);
|
|
303
311
|
__exportStar(require("./ListBuyerNotifications200Response"), exports);
|
|
304
312
|
__exportStar(require("./ListDomains200Response"), exports);
|
|
305
313
|
__exportStar(require("./ListDomainsWithUpdatedPricing200Response"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -46,8 +46,11 @@ import type {
|
|
|
46
46
|
IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto,
|
|
47
47
|
LeadMessageDto,
|
|
48
48
|
LedgerMutationsDto,
|
|
49
|
+
LinkBankDepositToBankAccountInput,
|
|
50
|
+
LinkBankDepositToInvoiceInput,
|
|
49
51
|
ListAccounts200Response,
|
|
50
52
|
ListBankAccounts200Response,
|
|
53
|
+
ListBankDeposits200Response,
|
|
51
54
|
ListDomains200Response,
|
|
52
55
|
ListLeads200Response,
|
|
53
56
|
NotFoundException,
|
|
@@ -124,10 +127,16 @@ import {
|
|
|
124
127
|
LeadMessageDtoToJSON,
|
|
125
128
|
LedgerMutationsDtoFromJSON,
|
|
126
129
|
LedgerMutationsDtoToJSON,
|
|
130
|
+
LinkBankDepositToBankAccountInputFromJSON,
|
|
131
|
+
LinkBankDepositToBankAccountInputToJSON,
|
|
132
|
+
LinkBankDepositToInvoiceInputFromJSON,
|
|
133
|
+
LinkBankDepositToInvoiceInputToJSON,
|
|
127
134
|
ListAccounts200ResponseFromJSON,
|
|
128
135
|
ListAccounts200ResponseToJSON,
|
|
129
136
|
ListBankAccounts200ResponseFromJSON,
|
|
130
137
|
ListBankAccounts200ResponseToJSON,
|
|
138
|
+
ListBankDeposits200ResponseFromJSON,
|
|
139
|
+
ListBankDeposits200ResponseToJSON,
|
|
131
140
|
ListDomains200ResponseFromJSON,
|
|
132
141
|
ListDomains200ResponseToJSON,
|
|
133
142
|
ListLeads200ResponseFromJSON,
|
|
@@ -282,6 +291,7 @@ export interface AdminApiGetAllOrdersRequest {
|
|
|
282
291
|
sortBy?: Array<string>;
|
|
283
292
|
filterSearchTerm?: string;
|
|
284
293
|
filterStatus?: string;
|
|
294
|
+
filterNotLeadDrafts?: string;
|
|
285
295
|
}
|
|
286
296
|
|
|
287
297
|
export interface AdminApiGetAllOwnedDomainsRequest {
|
|
@@ -318,6 +328,16 @@ export interface AdminApiGetSubscriptionDetailsRequest {
|
|
|
318
328
|
subscriptionId: string;
|
|
319
329
|
}
|
|
320
330
|
|
|
331
|
+
export interface AdminApiLinkBankDepositToBankAccountRequest {
|
|
332
|
+
depositId: string;
|
|
333
|
+
linkBankDepositToBankAccountInput: LinkBankDepositToBankAccountInput;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export interface AdminApiLinkBankDepositToInvoiceRequest {
|
|
337
|
+
depositId: string;
|
|
338
|
+
linkBankDepositToInvoiceInput: LinkBankDepositToInvoiceInput;
|
|
339
|
+
}
|
|
340
|
+
|
|
321
341
|
export interface AdminApiListAccountsRequest {
|
|
322
342
|
filter?: { [key: string]: string; };
|
|
323
343
|
page?: number;
|
|
@@ -339,6 +359,14 @@ export interface AdminApiListBankAccountsRequest {
|
|
|
339
359
|
filterAccountId?: string;
|
|
340
360
|
}
|
|
341
361
|
|
|
362
|
+
export interface AdminApiListBankDepositsRequest {
|
|
363
|
+
filter?: { [key: string]: string; };
|
|
364
|
+
page?: number;
|
|
365
|
+
limit?: number;
|
|
366
|
+
sortBy?: Array<string>;
|
|
367
|
+
filterSearchTerm?: string;
|
|
368
|
+
}
|
|
369
|
+
|
|
342
370
|
export interface AdminApiListDomainLocksRequest {
|
|
343
371
|
domainId: string;
|
|
344
372
|
}
|
|
@@ -1613,6 +1641,10 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1613
1641
|
queryParameters['filter[status]'] = requestParameters['filterStatus'];
|
|
1614
1642
|
}
|
|
1615
1643
|
|
|
1644
|
+
if (requestParameters['filterNotLeadDrafts'] != null) {
|
|
1645
|
+
queryParameters['filter[not_lead_drafts]'] = requestParameters['filterNotLeadDrafts'];
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1616
1648
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1617
1649
|
|
|
1618
1650
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -1931,6 +1963,110 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1931
1963
|
return await response.value();
|
|
1932
1964
|
}
|
|
1933
1965
|
|
|
1966
|
+
/**
|
|
1967
|
+
* Links a bank deposit with an account bank account. Requires super admin role.
|
|
1968
|
+
* Link bank deposit to bank account
|
|
1969
|
+
*/
|
|
1970
|
+
async linkBankDepositToBankAccountRaw(requestParameters: AdminApiLinkBankDepositToBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1971
|
+
if (requestParameters['depositId'] == null) {
|
|
1972
|
+
throw new runtime.RequiredError(
|
|
1973
|
+
'depositId',
|
|
1974
|
+
'Required parameter "depositId" was null or undefined when calling linkBankDepositToBankAccount().'
|
|
1975
|
+
);
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
if (requestParameters['linkBankDepositToBankAccountInput'] == null) {
|
|
1979
|
+
throw new runtime.RequiredError(
|
|
1980
|
+
'linkBankDepositToBankAccountInput',
|
|
1981
|
+
'Required parameter "linkBankDepositToBankAccountInput" was null or undefined when calling linkBankDepositToBankAccount().'
|
|
1982
|
+
);
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
const queryParameters: any = {};
|
|
1986
|
+
|
|
1987
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1988
|
+
|
|
1989
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1990
|
+
|
|
1991
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1992
|
+
const token = this.configuration.accessToken;
|
|
1993
|
+
const tokenString = await token("bearer", []);
|
|
1994
|
+
|
|
1995
|
+
if (tokenString) {
|
|
1996
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
const response = await this.request({
|
|
2000
|
+
path: `/admin/bank-deposits/{depositId}/link-bank-account`.replace(`{${"depositId"}}`, encodeURIComponent(String(requestParameters['depositId']))),
|
|
2001
|
+
method: 'POST',
|
|
2002
|
+
headers: headerParameters,
|
|
2003
|
+
query: queryParameters,
|
|
2004
|
+
body: LinkBankDepositToBankAccountInputToJSON(requestParameters['linkBankDepositToBankAccountInput']),
|
|
2005
|
+
}, initOverrides);
|
|
2006
|
+
|
|
2007
|
+
return new runtime.VoidApiResponse(response);
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
/**
|
|
2011
|
+
* Links a bank deposit with an account bank account. Requires super admin role.
|
|
2012
|
+
* Link bank deposit to bank account
|
|
2013
|
+
*/
|
|
2014
|
+
async linkBankDepositToBankAccount(requestParameters: AdminApiLinkBankDepositToBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
2015
|
+
await this.linkBankDepositToBankAccountRaw(requestParameters, initOverrides);
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
/**
|
|
2019
|
+
* Links a bank deposit with an invoice. Requires super admin role.
|
|
2020
|
+
* Link bank deposit to invoice
|
|
2021
|
+
*/
|
|
2022
|
+
async linkBankDepositToInvoiceRaw(requestParameters: AdminApiLinkBankDepositToInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
2023
|
+
if (requestParameters['depositId'] == null) {
|
|
2024
|
+
throw new runtime.RequiredError(
|
|
2025
|
+
'depositId',
|
|
2026
|
+
'Required parameter "depositId" was null or undefined when calling linkBankDepositToInvoice().'
|
|
2027
|
+
);
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
if (requestParameters['linkBankDepositToInvoiceInput'] == null) {
|
|
2031
|
+
throw new runtime.RequiredError(
|
|
2032
|
+
'linkBankDepositToInvoiceInput',
|
|
2033
|
+
'Required parameter "linkBankDepositToInvoiceInput" was null or undefined when calling linkBankDepositToInvoice().'
|
|
2034
|
+
);
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
const queryParameters: any = {};
|
|
2038
|
+
|
|
2039
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2040
|
+
|
|
2041
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2042
|
+
|
|
2043
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2044
|
+
const token = this.configuration.accessToken;
|
|
2045
|
+
const tokenString = await token("bearer", []);
|
|
2046
|
+
|
|
2047
|
+
if (tokenString) {
|
|
2048
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
const response = await this.request({
|
|
2052
|
+
path: `/admin/bank-deposits/{depositId}/link-invoice`.replace(`{${"depositId"}}`, encodeURIComponent(String(requestParameters['depositId']))),
|
|
2053
|
+
method: 'POST',
|
|
2054
|
+
headers: headerParameters,
|
|
2055
|
+
query: queryParameters,
|
|
2056
|
+
body: LinkBankDepositToInvoiceInputToJSON(requestParameters['linkBankDepositToInvoiceInput']),
|
|
2057
|
+
}, initOverrides);
|
|
2058
|
+
|
|
2059
|
+
return new runtime.VoidApiResponse(response);
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
/**
|
|
2063
|
+
* Links a bank deposit with an invoice. Requires super admin role.
|
|
2064
|
+
* Link bank deposit to invoice
|
|
2065
|
+
*/
|
|
2066
|
+
async linkBankDepositToInvoice(requestParameters: AdminApiLinkBankDepositToInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
2067
|
+
await this.linkBankDepositToInvoiceRaw(requestParameters, initOverrides);
|
|
2068
|
+
}
|
|
2069
|
+
|
|
1934
2070
|
/**
|
|
1935
2071
|
* Lists all seller accounts.
|
|
1936
2072
|
* List accounts
|
|
@@ -2123,6 +2259,62 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
2123
2259
|
return await response.value();
|
|
2124
2260
|
}
|
|
2125
2261
|
|
|
2262
|
+
/**
|
|
2263
|
+
* Lists Airwallex bank deposits across all bank accounts.
|
|
2264
|
+
* List all bank deposits
|
|
2265
|
+
*/
|
|
2266
|
+
async listBankDepositsRaw(requestParameters: AdminApiListBankDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListBankDeposits200Response>> {
|
|
2267
|
+
const queryParameters: any = {};
|
|
2268
|
+
|
|
2269
|
+
if (requestParameters['filter'] != null) {
|
|
2270
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
2271
|
+
}
|
|
2272
|
+
|
|
2273
|
+
if (requestParameters['page'] != null) {
|
|
2274
|
+
queryParameters['page'] = requestParameters['page'];
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
if (requestParameters['limit'] != null) {
|
|
2278
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
if (requestParameters['sortBy'] != null) {
|
|
2282
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
if (requestParameters['filterSearchTerm'] != null) {
|
|
2286
|
+
queryParameters['filter[search_term]'] = requestParameters['filterSearchTerm'];
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2290
|
+
|
|
2291
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2292
|
+
const token = this.configuration.accessToken;
|
|
2293
|
+
const tokenString = await token("bearer", []);
|
|
2294
|
+
|
|
2295
|
+
if (tokenString) {
|
|
2296
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
const response = await this.request({
|
|
2300
|
+
path: `/admin/bank-deposits`,
|
|
2301
|
+
method: 'GET',
|
|
2302
|
+
headers: headerParameters,
|
|
2303
|
+
query: queryParameters,
|
|
2304
|
+
}, initOverrides);
|
|
2305
|
+
|
|
2306
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListBankDeposits200ResponseFromJSON(jsonValue));
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2309
|
+
/**
|
|
2310
|
+
* Lists Airwallex bank deposits across all bank accounts.
|
|
2311
|
+
* List all bank deposits
|
|
2312
|
+
*/
|
|
2313
|
+
async listBankDeposits(requestParameters: AdminApiListBankDepositsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListBankDeposits200Response> {
|
|
2314
|
+
const response = await this.listBankDepositsRaw(requestParameters, initOverrides);
|
|
2315
|
+
return await response.value();
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2126
2318
|
/**
|
|
2127
2319
|
* Returns all active locks for the specified domain.
|
|
2128
2320
|
* List domain locks
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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
|
+
import type { AdminBankDepositAccountDto } from './AdminBankDepositAccountDto';
|
|
17
|
+
import {
|
|
18
|
+
AdminBankDepositAccountDtoFromJSON,
|
|
19
|
+
AdminBankDepositAccountDtoFromJSONTyped,
|
|
20
|
+
AdminBankDepositAccountDtoToJSON,
|
|
21
|
+
AdminBankDepositAccountDtoToJSONTyped,
|
|
22
|
+
} from './AdminBankDepositAccountDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AdminBankDepositAccountBankAccountDto
|
|
28
|
+
*/
|
|
29
|
+
export interface AdminBankDepositAccountBankAccountDto {
|
|
30
|
+
/**
|
|
31
|
+
* Bank account ID.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminBankDepositAccountBankAccountDto
|
|
34
|
+
*/
|
|
35
|
+
accountBankAccountId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Seller account linked to the bank account.
|
|
38
|
+
* @type {AdminBankDepositAccountDto}
|
|
39
|
+
* @memberof AdminBankDepositAccountBankAccountDto
|
|
40
|
+
*/
|
|
41
|
+
account: AdminBankDepositAccountDto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the AdminBankDepositAccountBankAccountDto interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfAdminBankDepositAccountBankAccountDto(value: object): value is AdminBankDepositAccountBankAccountDto {
|
|
48
|
+
if (!('accountBankAccountId' in value) || value['accountBankAccountId'] === undefined) return false;
|
|
49
|
+
if (!('account' in value) || value['account'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function AdminBankDepositAccountBankAccountDtoFromJSON(json: any): AdminBankDepositAccountBankAccountDto {
|
|
54
|
+
return AdminBankDepositAccountBankAccountDtoFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function AdminBankDepositAccountBankAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBankDepositAccountBankAccountDto {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'accountBankAccountId': json['accountBankAccountId'],
|
|
64
|
+
'account': AdminBankDepositAccountDtoFromJSON(json['account']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function AdminBankDepositAccountBankAccountDtoToJSON(json: any): AdminBankDepositAccountBankAccountDto {
|
|
69
|
+
return AdminBankDepositAccountBankAccountDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function AdminBankDepositAccountBankAccountDtoToJSONTyped(value?: AdminBankDepositAccountBankAccountDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'accountBankAccountId': value['accountBankAccountId'],
|
|
80
|
+
'account': AdminBankDepositAccountDtoToJSON(value['account']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|