@randock/nameshift-api-client 0.0.219 → 0.0.221
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 +7 -1
- package/README.md +3 -3
- package/dist/apis/BankAccountsApi.d.ts +11 -12
- package/dist/apis/BankAccountsApi.js +27 -30
- package/dist/apis/DomainsApi.d.ts +12 -1
- package/dist/apis/DomainsApi.js +53 -0
- package/dist/apis/OrdersPublicApi.d.ts +13 -0
- package/dist/apis/OrdersPublicApi.js +44 -0
- package/dist/models/AccountBankAccountDto.d.ts +20 -5
- package/dist/models/AccountBankAccountDto.js +17 -4
- package/dist/models/AccountBankAccountDtoDetails.d.ts +7 -1
- package/dist/models/AccountBankAccountDtoDetails.js +10 -0
- package/dist/models/AirwallexBankAccountDetailsDto.d.ts +64 -0
- package/dist/models/AirwallexBankAccountDetailsDto.js +67 -0
- package/dist/models/AirwallexBankAccountDetailsDtoInstitution.d.ts +50 -0
- package/dist/models/AirwallexBankAccountDetailsDtoInstitution.js +63 -0
- package/dist/models/AirwallexBankAccountDetailsDtoLocalMethod.d.ts +39 -0
- package/dist/models/AirwallexBankAccountDetailsDtoLocalMethod.js +56 -0
- package/dist/models/AirwallexBankAccountDetailsDtoLocalMethodCode.d.ts +38 -0
- package/dist/models/AirwallexBankAccountDetailsDtoLocalMethodCode.js +55 -0
- package/dist/models/CaBankAccountDetails.d.ts +66 -0
- package/dist/models/CaBankAccountDetails.js +77 -0
- package/dist/models/DomainExchangeRateDto.d.ts +38 -0
- package/dist/models/DomainExchangeRateDto.js +55 -0
- package/dist/models/SepaBankAccountDetails.d.ts +2 -0
- package/dist/models/SepaBankAccountDetails.js +2 -0
- package/dist/models/UkBankAccountDetails.d.ts +2 -0
- package/dist/models/UkBankAccountDetails.js +2 -0
- package/dist/models/UsBankAccountDetails.d.ts +60 -0
- package/dist/models/UsBankAccountDetails.js +73 -0
- package/dist/models/index.d.ts +7 -1
- package/dist/models/index.js +7 -1
- package/package.json +1 -1
- package/src/apis/BankAccountsApi.ts +35 -45
- package/src/apis/DomainsApi.ts +48 -0
- package/src/apis/OrdersPublicApi.ts +38 -0
- package/src/models/AccountBankAccountDto.ts +29 -8
- package/src/models/AccountBankAccountDtoDetails.ts +23 -1
- package/src/models/AirwallexBankAccountDetailsDto.ts +123 -0
- package/src/models/AirwallexBankAccountDetailsDtoInstitution.ts +93 -0
- package/src/models/AirwallexBankAccountDetailsDtoLocalMethod.ts +83 -0
- package/src/models/AirwallexBankAccountDetailsDtoLocalMethodCode.ts +75 -0
- package/src/models/CaBankAccountDetails.ts +115 -0
- package/src/models/DomainExchangeRateDto.ts +75 -0
- package/src/models/SepaBankAccountDetails.ts +2 -0
- package/src/models/UkBankAccountDetails.ts +2 -0
- package/src/models/UsBankAccountDetails.ts +106 -0
- package/src/models/index.ts +7 -1
- package/dist/models/UpdateBankAccountInput.d.ts +0 -38
- package/dist/models/UpdateBankAccountInput.js +0 -55
- package/src/models/UpdateBankAccountInput.ts +0 -75
|
@@ -45,6 +45,8 @@ export interface SepaBankAccountDetails {
|
|
|
45
45
|
*/
|
|
46
46
|
export declare const SepaBankAccountDetailsTypeEnum: {
|
|
47
47
|
readonly UK_BANK_ACCOUNT_DETAILS: "UkBankAccountDetails";
|
|
48
|
+
readonly US_BANK_ACCOUNT_DETAILS: "UsBankAccountDetails";
|
|
49
|
+
readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
|
|
48
50
|
readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
|
|
49
51
|
};
|
|
50
52
|
export type SepaBankAccountDetailsTypeEnum = typeof SepaBankAccountDetailsTypeEnum[keyof typeof SepaBankAccountDetailsTypeEnum];
|
|
@@ -24,6 +24,8 @@ exports.SepaBankAccountDetailsToJSONTyped = SepaBankAccountDetailsToJSONTyped;
|
|
|
24
24
|
*/
|
|
25
25
|
exports.SepaBankAccountDetailsTypeEnum = {
|
|
26
26
|
UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
|
|
27
|
+
US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
|
|
28
|
+
CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
|
|
27
29
|
SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
@@ -45,6 +45,8 @@ export interface UkBankAccountDetails {
|
|
|
45
45
|
*/
|
|
46
46
|
export declare const UkBankAccountDetailsTypeEnum: {
|
|
47
47
|
readonly UK_BANK_ACCOUNT_DETAILS: "UkBankAccountDetails";
|
|
48
|
+
readonly US_BANK_ACCOUNT_DETAILS: "UsBankAccountDetails";
|
|
49
|
+
readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
|
|
48
50
|
readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
|
|
49
51
|
};
|
|
50
52
|
export type UkBankAccountDetailsTypeEnum = typeof UkBankAccountDetailsTypeEnum[keyof typeof UkBankAccountDetailsTypeEnum];
|
|
@@ -24,6 +24,8 @@ exports.UkBankAccountDetailsToJSONTyped = UkBankAccountDetailsToJSONTyped;
|
|
|
24
24
|
*/
|
|
25
25
|
exports.UkBankAccountDetailsTypeEnum = {
|
|
26
26
|
UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
|
|
27
|
+
US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
|
|
28
|
+
CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
|
|
27
29
|
SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
@@ -0,0 +1,60 @@
|
|
|
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 UsBankAccountDetails
|
|
16
|
+
*/
|
|
17
|
+
export interface UsBankAccountDetails {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UsBankAccountDetails
|
|
22
|
+
*/
|
|
23
|
+
type: UsBankAccountDetailsTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UsBankAccountDetails
|
|
28
|
+
*/
|
|
29
|
+
countryCode: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UsBankAccountDetails
|
|
34
|
+
*/
|
|
35
|
+
routingNumber: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UsBankAccountDetails
|
|
40
|
+
*/
|
|
41
|
+
accountNumber: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const UsBankAccountDetailsTypeEnum: {
|
|
47
|
+
readonly UK_BANK_ACCOUNT_DETAILS: "UkBankAccountDetails";
|
|
48
|
+
readonly US_BANK_ACCOUNT_DETAILS: "UsBankAccountDetails";
|
|
49
|
+
readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
|
|
50
|
+
readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
|
|
51
|
+
};
|
|
52
|
+
export type UsBankAccountDetailsTypeEnum = typeof UsBankAccountDetailsTypeEnum[keyof typeof UsBankAccountDetailsTypeEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the UsBankAccountDetails interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfUsBankAccountDetails(value: object): value is UsBankAccountDetails;
|
|
57
|
+
export declare function UsBankAccountDetailsFromJSON(json: any): UsBankAccountDetails;
|
|
58
|
+
export declare function UsBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsBankAccountDetails;
|
|
59
|
+
export declare function UsBankAccountDetailsToJSON(json: any): UsBankAccountDetails;
|
|
60
|
+
export declare function UsBankAccountDetailsToJSONTyped(value?: UsBankAccountDetails | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
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.UsBankAccountDetailsTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfUsBankAccountDetails = instanceOfUsBankAccountDetails;
|
|
18
|
+
exports.UsBankAccountDetailsFromJSON = UsBankAccountDetailsFromJSON;
|
|
19
|
+
exports.UsBankAccountDetailsFromJSONTyped = UsBankAccountDetailsFromJSONTyped;
|
|
20
|
+
exports.UsBankAccountDetailsToJSON = UsBankAccountDetailsToJSON;
|
|
21
|
+
exports.UsBankAccountDetailsToJSONTyped = UsBankAccountDetailsToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.UsBankAccountDetailsTypeEnum = {
|
|
26
|
+
UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
|
|
27
|
+
US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
|
|
28
|
+
CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
|
|
29
|
+
SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UsBankAccountDetails interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfUsBankAccountDetails(value) {
|
|
35
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('routingNumber' in value) || value['routingNumber'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('accountNumber' in value) || value['accountNumber'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function UsBankAccountDetailsFromJSON(json) {
|
|
46
|
+
return UsBankAccountDetailsFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function UsBankAccountDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'type': json['type'],
|
|
54
|
+
'countryCode': json['countryCode'],
|
|
55
|
+
'routingNumber': json['routingNumber'],
|
|
56
|
+
'accountNumber': json['accountNumber'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function UsBankAccountDetailsToJSON(json) {
|
|
60
|
+
return UsBankAccountDetailsToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function UsBankAccountDetailsToJSONTyped(value, ignoreDiscriminator) {
|
|
63
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'type': value['type'],
|
|
69
|
+
'countryCode': value['countryCode'],
|
|
70
|
+
'routingNumber': value['routingNumber'],
|
|
71
|
+
'accountNumber': value['accountNumber'],
|
|
72
|
+
};
|
|
73
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -15,6 +15,10 @@ export * from './AddressDto';
|
|
|
15
15
|
export * from './AdminAccountLoginDto';
|
|
16
16
|
export * from './AdminAccountSettingsInput';
|
|
17
17
|
export * from './AdminGetAllDomainTransfers200Response';
|
|
18
|
+
export * from './AirwallexBankAccountDetailsDto';
|
|
19
|
+
export * from './AirwallexBankAccountDetailsDtoInstitution';
|
|
20
|
+
export * from './AirwallexBankAccountDetailsDtoLocalMethod';
|
|
21
|
+
export * from './AirwallexBankAccountDetailsDtoLocalMethodCode';
|
|
18
22
|
export * from './BadRequestException';
|
|
19
23
|
export * from './BatchDeleteBuyerLeadsInput';
|
|
20
24
|
export * from './BatchImportPreviewDto';
|
|
@@ -33,6 +37,7 @@ export * from './BuyerSecurityUserDto';
|
|
|
33
37
|
export * from './BuyerSessionDto';
|
|
34
38
|
export * from './BuyerSubscriptionListItemDto';
|
|
35
39
|
export * from './BuyerSubscriptionListItemDtoDomainInformation';
|
|
40
|
+
export * from './CaBankAccountDetails';
|
|
36
41
|
export * from './ChangeOrderStatusInput';
|
|
37
42
|
export * from './ChangeSubscriptionStatusInput';
|
|
38
43
|
export * from './ChartDataPoint';
|
|
@@ -50,6 +55,7 @@ export * from './CreateSubscriptionBillingPeriodicityInput';
|
|
|
50
55
|
export * from './CreateSubscriptionInput';
|
|
51
56
|
export * from './DeleteDomainsInput';
|
|
52
57
|
export * from './DomainDto';
|
|
58
|
+
export * from './DomainExchangeRateDto';
|
|
53
59
|
export * from './DomainSalesInformationDto';
|
|
54
60
|
export * from './DomainSalesInformationLeaseToOwnConfigurationDto';
|
|
55
61
|
export * from './DomainSellerDto';
|
|
@@ -187,7 +193,6 @@ export * from './TaskListLeadDto';
|
|
|
187
193
|
export * from './ThrottlerException';
|
|
188
194
|
export * from './UkBankAccountDetails';
|
|
189
195
|
export * from './UpdateAccountBillingInformationInput';
|
|
190
|
-
export * from './UpdateBankAccountInput';
|
|
191
196
|
export * from './UpdateBuyerDomainTransferIpsTagInputDto';
|
|
192
197
|
export * from './UpdateDomainInput';
|
|
193
198
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
@@ -195,6 +200,7 @@ export * from './UpdateLeadInput';
|
|
|
195
200
|
export * from './UpdateOrderInput';
|
|
196
201
|
export * from './UpdateSubscriptionBillingPeriodicityInput';
|
|
197
202
|
export * from './UpdateSubscriptionInput';
|
|
203
|
+
export * from './UsBankAccountDetails';
|
|
198
204
|
export * from './UserPasswordResetDto';
|
|
199
205
|
export * from './ValidationError';
|
|
200
206
|
export * from './ValidationException';
|
package/dist/models/index.js
CHANGED
|
@@ -33,6 +33,10 @@ __exportStar(require("./AddressDto"), exports);
|
|
|
33
33
|
__exportStar(require("./AdminAccountLoginDto"), exports);
|
|
34
34
|
__exportStar(require("./AdminAccountSettingsInput"), exports);
|
|
35
35
|
__exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
|
|
36
|
+
__exportStar(require("./AirwallexBankAccountDetailsDto"), exports);
|
|
37
|
+
__exportStar(require("./AirwallexBankAccountDetailsDtoInstitution"), exports);
|
|
38
|
+
__exportStar(require("./AirwallexBankAccountDetailsDtoLocalMethod"), exports);
|
|
39
|
+
__exportStar(require("./AirwallexBankAccountDetailsDtoLocalMethodCode"), exports);
|
|
36
40
|
__exportStar(require("./BadRequestException"), exports);
|
|
37
41
|
__exportStar(require("./BatchDeleteBuyerLeadsInput"), exports);
|
|
38
42
|
__exportStar(require("./BatchImportPreviewDto"), exports);
|
|
@@ -51,6 +55,7 @@ __exportStar(require("./BuyerSecurityUserDto"), exports);
|
|
|
51
55
|
__exportStar(require("./BuyerSessionDto"), exports);
|
|
52
56
|
__exportStar(require("./BuyerSubscriptionListItemDto"), exports);
|
|
53
57
|
__exportStar(require("./BuyerSubscriptionListItemDtoDomainInformation"), exports);
|
|
58
|
+
__exportStar(require("./CaBankAccountDetails"), exports);
|
|
54
59
|
__exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
55
60
|
__exportStar(require("./ChangeSubscriptionStatusInput"), exports);
|
|
56
61
|
__exportStar(require("./ChartDataPoint"), exports);
|
|
@@ -68,6 +73,7 @@ __exportStar(require("./CreateSubscriptionBillingPeriodicityInput"), exports);
|
|
|
68
73
|
__exportStar(require("./CreateSubscriptionInput"), exports);
|
|
69
74
|
__exportStar(require("./DeleteDomainsInput"), exports);
|
|
70
75
|
__exportStar(require("./DomainDto"), exports);
|
|
76
|
+
__exportStar(require("./DomainExchangeRateDto"), exports);
|
|
71
77
|
__exportStar(require("./DomainSalesInformationDto"), exports);
|
|
72
78
|
__exportStar(require("./DomainSalesInformationLeaseToOwnConfigurationDto"), exports);
|
|
73
79
|
__exportStar(require("./DomainSellerDto"), exports);
|
|
@@ -205,7 +211,6 @@ __exportStar(require("./TaskListLeadDto"), exports);
|
|
|
205
211
|
__exportStar(require("./ThrottlerException"), exports);
|
|
206
212
|
__exportStar(require("./UkBankAccountDetails"), exports);
|
|
207
213
|
__exportStar(require("./UpdateAccountBillingInformationInput"), exports);
|
|
208
|
-
__exportStar(require("./UpdateBankAccountInput"), exports);
|
|
209
214
|
__exportStar(require("./UpdateBuyerDomainTransferIpsTagInputDto"), exports);
|
|
210
215
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
211
216
|
__exportStar(require("./UpdateDomainTransferAuthCodeInput"), exports);
|
|
@@ -213,6 +218,7 @@ __exportStar(require("./UpdateLeadInput"), exports);
|
|
|
213
218
|
__exportStar(require("./UpdateOrderInput"), exports);
|
|
214
219
|
__exportStar(require("./UpdateSubscriptionBillingPeriodicityInput"), exports);
|
|
215
220
|
__exportStar(require("./UpdateSubscriptionInput"), exports);
|
|
221
|
+
__exportStar(require("./UsBankAccountDetails"), exports);
|
|
216
222
|
__exportStar(require("./UserPasswordResetDto"), exports);
|
|
217
223
|
__exportStar(require("./ValidationError"), exports);
|
|
218
224
|
__exportStar(require("./ValidationException"), exports);
|
package/package.json
CHANGED
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
AccountBankAccountDto,
|
|
19
|
+
AirwallexBankAccountDetailsDto,
|
|
19
20
|
CreateBankAccountInput,
|
|
20
21
|
ThrottlerException,
|
|
21
|
-
UpdateBankAccountInput,
|
|
22
22
|
ValidationException,
|
|
23
23
|
} from '../models/index';
|
|
24
24
|
import {
|
|
25
25
|
AccountBankAccountDtoFromJSON,
|
|
26
26
|
AccountBankAccountDtoToJSON,
|
|
27
|
+
AirwallexBankAccountDetailsDtoFromJSON,
|
|
28
|
+
AirwallexBankAccountDetailsDtoToJSON,
|
|
27
29
|
CreateBankAccountInputFromJSON,
|
|
28
30
|
CreateBankAccountInputToJSON,
|
|
29
31
|
ThrottlerExceptionFromJSON,
|
|
30
32
|
ThrottlerExceptionToJSON,
|
|
31
|
-
UpdateBankAccountInputFromJSON,
|
|
32
|
-
UpdateBankAccountInputToJSON,
|
|
33
33
|
ValidationExceptionFromJSON,
|
|
34
34
|
ValidationExceptionToJSON,
|
|
35
35
|
} from '../models/index';
|
|
@@ -44,19 +44,18 @@ export interface BankAccountsApiDeleteBankAccountRequest {
|
|
|
44
44
|
bankAccountId: string;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export interface
|
|
47
|
+
export interface BankAccountsApiGetBankAccountToUseForMicrodepositRequest {
|
|
48
|
+
bankAccountId: string;
|
|
48
49
|
accountId: string;
|
|
49
50
|
}
|
|
50
51
|
|
|
51
|
-
export interface
|
|
52
|
+
export interface BankAccountsApiListBankAccountsRequest {
|
|
52
53
|
accountId: string;
|
|
53
|
-
bankAccountId: string;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
export interface
|
|
56
|
+
export interface BankAccountsApiMakeBankAccountPrimaryRequest {
|
|
57
57
|
accountId: string;
|
|
58
58
|
bankAccountId: string;
|
|
59
|
-
updateBankAccountInput: UpdateBankAccountInput;
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
/**
|
|
@@ -164,11 +163,18 @@ export class BankAccountsApi extends runtime.BaseAPI {
|
|
|
164
163
|
/**
|
|
165
164
|
*
|
|
166
165
|
*/
|
|
167
|
-
async
|
|
166
|
+
async getBankAccountToUseForMicrodepositRaw(requestParameters: BankAccountsApiGetBankAccountToUseForMicrodepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AirwallexBankAccountDetailsDto>> {
|
|
167
|
+
if (requestParameters['bankAccountId'] == null) {
|
|
168
|
+
throw new runtime.RequiredError(
|
|
169
|
+
'bankAccountId',
|
|
170
|
+
'Required parameter "bankAccountId" was null or undefined when calling getBankAccountToUseForMicrodeposit().'
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
|
|
168
174
|
if (requestParameters['accountId'] == null) {
|
|
169
175
|
throw new runtime.RequiredError(
|
|
170
176
|
'accountId',
|
|
171
|
-
'Required parameter "accountId" was null or undefined when calling
|
|
177
|
+
'Required parameter "accountId" was null or undefined when calling getBankAccountToUseForMicrodeposit().'
|
|
172
178
|
);
|
|
173
179
|
}
|
|
174
180
|
|
|
@@ -185,38 +191,31 @@ export class BankAccountsApi extends runtime.BaseAPI {
|
|
|
185
191
|
}
|
|
186
192
|
}
|
|
187
193
|
const response = await this.request({
|
|
188
|
-
path: `/private/accounts/{accountId}/bank-accounts`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
194
|
+
path: `/private/accounts/{accountId}/bank-accounts/{bankAccountId}/microdeposit`.replace(`{${"bankAccountId"}}`, encodeURIComponent(String(requestParameters['bankAccountId']))).replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
189
195
|
method: 'GET',
|
|
190
196
|
headers: headerParameters,
|
|
191
197
|
query: queryParameters,
|
|
192
198
|
}, initOverrides);
|
|
193
199
|
|
|
194
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
200
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AirwallexBankAccountDetailsDtoFromJSON(jsonValue));
|
|
195
201
|
}
|
|
196
202
|
|
|
197
203
|
/**
|
|
198
204
|
*
|
|
199
205
|
*/
|
|
200
|
-
async
|
|
201
|
-
const response = await this.
|
|
206
|
+
async getBankAccountToUseForMicrodeposit(requestParameters: BankAccountsApiGetBankAccountToUseForMicrodepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AirwallexBankAccountDetailsDto> {
|
|
207
|
+
const response = await this.getBankAccountToUseForMicrodepositRaw(requestParameters, initOverrides);
|
|
202
208
|
return await response.value();
|
|
203
209
|
}
|
|
204
210
|
|
|
205
211
|
/**
|
|
206
212
|
*
|
|
207
213
|
*/
|
|
208
|
-
async
|
|
214
|
+
async listBankAccountsRaw(requestParameters: BankAccountsApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountBankAccountDto>>> {
|
|
209
215
|
if (requestParameters['accountId'] == null) {
|
|
210
216
|
throw new runtime.RequiredError(
|
|
211
217
|
'accountId',
|
|
212
|
-
'Required parameter "accountId" was null or undefined when calling
|
|
213
|
-
);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
if (requestParameters['bankAccountId'] == null) {
|
|
217
|
-
throw new runtime.RequiredError(
|
|
218
|
-
'bankAccountId',
|
|
219
|
-
'Required parameter "bankAccountId" was null or undefined when calling makeBankAccountPrimary().'
|
|
218
|
+
'Required parameter "accountId" was null or undefined when calling listBankAccounts().'
|
|
220
219
|
);
|
|
221
220
|
}
|
|
222
221
|
|
|
@@ -233,44 +232,38 @@ export class BankAccountsApi extends runtime.BaseAPI {
|
|
|
233
232
|
}
|
|
234
233
|
}
|
|
235
234
|
const response = await this.request({
|
|
236
|
-
path: `/private/accounts/{accountId}/bank-accounts
|
|
237
|
-
method: '
|
|
235
|
+
path: `/private/accounts/{accountId}/bank-accounts`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
236
|
+
method: 'GET',
|
|
238
237
|
headers: headerParameters,
|
|
239
238
|
query: queryParameters,
|
|
240
239
|
}, initOverrides);
|
|
241
240
|
|
|
242
|
-
return new runtime.
|
|
241
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AccountBankAccountDtoFromJSON));
|
|
243
242
|
}
|
|
244
243
|
|
|
245
244
|
/**
|
|
246
245
|
*
|
|
247
246
|
*/
|
|
248
|
-
async
|
|
249
|
-
await this.
|
|
247
|
+
async listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountBankAccountDto>> {
|
|
248
|
+
const response = await this.listBankAccountsRaw(requestParameters, initOverrides);
|
|
249
|
+
return await response.value();
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
253
|
*
|
|
254
254
|
*/
|
|
255
|
-
async
|
|
255
|
+
async makeBankAccountPrimaryRaw(requestParameters: BankAccountsApiMakeBankAccountPrimaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
256
256
|
if (requestParameters['accountId'] == null) {
|
|
257
257
|
throw new runtime.RequiredError(
|
|
258
258
|
'accountId',
|
|
259
|
-
'Required parameter "accountId" was null or undefined when calling
|
|
259
|
+
'Required parameter "accountId" was null or undefined when calling makeBankAccountPrimary().'
|
|
260
260
|
);
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
if (requestParameters['bankAccountId'] == null) {
|
|
264
264
|
throw new runtime.RequiredError(
|
|
265
265
|
'bankAccountId',
|
|
266
|
-
'Required parameter "bankAccountId" was null or undefined when calling
|
|
267
|
-
);
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
if (requestParameters['updateBankAccountInput'] == null) {
|
|
271
|
-
throw new runtime.RequiredError(
|
|
272
|
-
'updateBankAccountInput',
|
|
273
|
-
'Required parameter "updateBankAccountInput" was null or undefined when calling updateBankAccount().'
|
|
266
|
+
'Required parameter "bankAccountId" was null or undefined when calling makeBankAccountPrimary().'
|
|
274
267
|
);
|
|
275
268
|
}
|
|
276
269
|
|
|
@@ -278,8 +271,6 @@ export class BankAccountsApi extends runtime.BaseAPI {
|
|
|
278
271
|
|
|
279
272
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
280
273
|
|
|
281
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
282
|
-
|
|
283
274
|
if (this.configuration && this.configuration.accessToken) {
|
|
284
275
|
const token = this.configuration.accessToken;
|
|
285
276
|
const tokenString = await token("bearer", []);
|
|
@@ -289,11 +280,10 @@ export class BankAccountsApi extends runtime.BaseAPI {
|
|
|
289
280
|
}
|
|
290
281
|
}
|
|
291
282
|
const response = await this.request({
|
|
292
|
-
path: `/private/accounts/{accountId}/bank-accounts/{bankAccountId}`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))).replace(`{${"bankAccountId"}}`, encodeURIComponent(String(requestParameters['bankAccountId']))),
|
|
293
|
-
method: '
|
|
283
|
+
path: `/private/accounts/{accountId}/bank-accounts/{bankAccountId}/make-primary`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))).replace(`{${"bankAccountId"}}`, encodeURIComponent(String(requestParameters['bankAccountId']))),
|
|
284
|
+
method: 'POST',
|
|
294
285
|
headers: headerParameters,
|
|
295
286
|
query: queryParameters,
|
|
296
|
-
body: UpdateBankAccountInputToJSON(requestParameters['updateBankAccountInput']),
|
|
297
287
|
}, initOverrides);
|
|
298
288
|
|
|
299
289
|
return new runtime.VoidApiResponse(response);
|
|
@@ -302,8 +292,8 @@ export class BankAccountsApi extends runtime.BaseAPI {
|
|
|
302
292
|
/**
|
|
303
293
|
*
|
|
304
294
|
*/
|
|
305
|
-
async
|
|
306
|
-
await this.
|
|
295
|
+
async makeBankAccountPrimary(requestParameters: BankAccountsApiMakeBankAccountPrimaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
296
|
+
await this.makeBankAccountPrimaryRaw(requestParameters, initOverrides);
|
|
307
297
|
}
|
|
308
298
|
|
|
309
299
|
}
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -19,6 +19,7 @@ import type {
|
|
|
19
19
|
BatchImportPreviewDto,
|
|
20
20
|
BatchUpdateDomainsInput,
|
|
21
21
|
DeleteDomainsInput,
|
|
22
|
+
DomainExchangeRateDto,
|
|
22
23
|
DomainUrlDto,
|
|
23
24
|
GetAllDomainTransfers200Response,
|
|
24
25
|
IntersectionDomainDtoWithHijackerDtoWithAccountDto,
|
|
@@ -39,6 +40,8 @@ import {
|
|
|
39
40
|
BatchUpdateDomainsInputToJSON,
|
|
40
41
|
DeleteDomainsInputFromJSON,
|
|
41
42
|
DeleteDomainsInputToJSON,
|
|
43
|
+
DomainExchangeRateDtoFromJSON,
|
|
44
|
+
DomainExchangeRateDtoToJSON,
|
|
42
45
|
DomainUrlDtoFromJSON,
|
|
43
46
|
DomainUrlDtoToJSON,
|
|
44
47
|
GetAllDomainTransfers200ResponseFromJSON,
|
|
@@ -93,6 +96,10 @@ export interface DomainsApiGetDomainRequest {
|
|
|
93
96
|
domainId: string;
|
|
94
97
|
}
|
|
95
98
|
|
|
99
|
+
export interface DomainsApiGetDomainExchangeRateRequest {
|
|
100
|
+
domainId: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
96
103
|
export interface DomainsApiGetDomainTransferRequest {
|
|
97
104
|
transferId: string;
|
|
98
105
|
}
|
|
@@ -486,6 +493,47 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
486
493
|
return await response.value();
|
|
487
494
|
}
|
|
488
495
|
|
|
496
|
+
/**
|
|
497
|
+
*
|
|
498
|
+
*/
|
|
499
|
+
async getDomainExchangeRateRaw(requestParameters: DomainsApiGetDomainExchangeRateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainExchangeRateDto>> {
|
|
500
|
+
if (requestParameters['domainId'] == null) {
|
|
501
|
+
throw new runtime.RequiredError(
|
|
502
|
+
'domainId',
|
|
503
|
+
'Required parameter "domainId" was null or undefined when calling getDomainExchangeRate().'
|
|
504
|
+
);
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
const queryParameters: any = {};
|
|
508
|
+
|
|
509
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
510
|
+
|
|
511
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
512
|
+
const token = this.configuration.accessToken;
|
|
513
|
+
const tokenString = await token("bearer", []);
|
|
514
|
+
|
|
515
|
+
if (tokenString) {
|
|
516
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
const response = await this.request({
|
|
520
|
+
path: `/private/domains/{domainId}/exchange-rate`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
|
|
521
|
+
method: 'GET',
|
|
522
|
+
headers: headerParameters,
|
|
523
|
+
query: queryParameters,
|
|
524
|
+
}, initOverrides);
|
|
525
|
+
|
|
526
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DomainExchangeRateDtoFromJSON(jsonValue));
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
*
|
|
531
|
+
*/
|
|
532
|
+
async getDomainExchangeRate(requestParameters: DomainsApiGetDomainExchangeRateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainExchangeRateDto> {
|
|
533
|
+
const response = await this.getDomainExchangeRateRaw(requestParameters, initOverrides);
|
|
534
|
+
return await response.value();
|
|
535
|
+
}
|
|
536
|
+
|
|
489
537
|
/**
|
|
490
538
|
*
|
|
491
539
|
*/
|
|
@@ -47,6 +47,10 @@ export interface OrdersPublicApiCreateOrderRequest {
|
|
|
47
47
|
createOrderInput: CreateOrderInput;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
export interface OrdersPublicApiCreateOrderManualTransactionRequest {
|
|
51
|
+
orderId: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
50
54
|
export interface OrdersPublicApiGetOrderRequest {
|
|
51
55
|
orderId: string;
|
|
52
56
|
}
|
|
@@ -97,6 +101,40 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
97
101
|
return await response.value();
|
|
98
102
|
}
|
|
99
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Creates a new manual transaction for active order with specified open invoice
|
|
106
|
+
* Create a new manual transaction for order invoice
|
|
107
|
+
*/
|
|
108
|
+
async createOrderManualTransactionRaw(requestParameters: OrdersPublicApiCreateOrderManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
109
|
+
if (requestParameters['orderId'] == null) {
|
|
110
|
+
throw new runtime.RequiredError(
|
|
111
|
+
'orderId',
|
|
112
|
+
'Required parameter "orderId" was null or undefined when calling createOrderManualTransaction().'
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
const queryParameters: any = {};
|
|
117
|
+
|
|
118
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
119
|
+
|
|
120
|
+
const response = await this.request({
|
|
121
|
+
path: `/orders/{orderId}/invoice/transactions`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))),
|
|
122
|
+
method: 'POST',
|
|
123
|
+
headers: headerParameters,
|
|
124
|
+
query: queryParameters,
|
|
125
|
+
}, initOverrides);
|
|
126
|
+
|
|
127
|
+
return new runtime.VoidApiResponse(response);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Creates a new manual transaction for active order with specified open invoice
|
|
132
|
+
* Create a new manual transaction for order invoice
|
|
133
|
+
*/
|
|
134
|
+
async createOrderManualTransaction(requestParameters: OrdersPublicApiCreateOrderManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
135
|
+
await this.createOrderManualTransactionRaw(requestParameters, initOverrides);
|
|
136
|
+
}
|
|
137
|
+
|
|
100
138
|
/**
|
|
101
139
|
*
|
|
102
140
|
*/
|