@randock/nameshift-api-client 0.0.214 → 0.0.216
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 +3 -0
- package/README.md +3 -3
- package/dist/models/AccountBankAccountDto.d.ts +5 -22
- package/dist/models/AccountBankAccountDto.js +5 -16
- package/dist/models/AccountBankAccountDtoDetails.d.ts +27 -0
- package/dist/models/AccountBankAccountDtoDetails.js +54 -0
- package/dist/models/CreateBankAccountInput.d.ts +2 -20
- package/dist/models/CreateBankAccountInput.js +3 -11
- package/dist/models/DomainTransferDetailsWorkflowDto.d.ts +6 -0
- package/dist/models/DomainTransferDetailsWorkflowDto.js +4 -0
- package/dist/models/SepaBankAccountDetails.d.ts +58 -0
- package/dist/models/SepaBankAccountDetails.js +71 -0
- package/dist/models/SubscriptionDetailsDto.d.ts +3 -2
- package/dist/models/SubscriptionDetailsDto.js +4 -3
- package/dist/models/UkBankAccountDetails.d.ts +58 -0
- package/dist/models/UkBankAccountDetails.js +71 -0
- package/dist/models/UpdateBankAccountInput.d.ts +2 -20
- package/dist/models/UpdateBankAccountInput.js +3 -11
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/models/AccountBankAccountDto.ts +15 -34
- package/src/models/AccountBankAccountDtoDetails.ts +73 -0
- package/src/models/CreateBankAccountInput.ts +5 -30
- package/src/models/DomainTransferDetailsWorkflowDto.ts +9 -0
- package/src/models/SepaBankAccountDetails.ts +104 -0
- package/src/models/SubscriptionDetailsDto.ts +12 -5
- package/src/models/UkBankAccountDetails.ts +104 -0
- package/src/models/UpdateBankAccountInput.ts +5 -30
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -25,6 +25,7 @@ src/apis/UsersPublicApi.ts
|
|
|
25
25
|
src/apis/index.ts
|
|
26
26
|
src/index.ts
|
|
27
27
|
src/models/AccountBankAccountDto.ts
|
|
28
|
+
src/models/AccountBankAccountDtoDetails.ts
|
|
28
29
|
src/models/AccountDto.ts
|
|
29
30
|
src/models/AccountMetricsDto.ts
|
|
30
31
|
src/models/AccountNotificationDto.ts
|
|
@@ -185,6 +186,7 @@ src/models/SellerSecurityUserDto.ts
|
|
|
185
186
|
src/models/SellerSubscriptionListItemDto.ts
|
|
186
187
|
src/models/SellerSubscriptionListItemDtoDomainInformation.ts
|
|
187
188
|
src/models/SeoMetricsDto.ts
|
|
189
|
+
src/models/SepaBankAccountDetails.ts
|
|
188
190
|
src/models/SetDomainTransferConfirmationInput.ts
|
|
189
191
|
src/models/SetNewPasswordInput.ts
|
|
190
192
|
src/models/SetPayoutProviderInput.ts
|
|
@@ -209,6 +211,7 @@ src/models/TaskListDomainDto.ts
|
|
|
209
211
|
src/models/TaskListDomainTransferDto.ts
|
|
210
212
|
src/models/TaskListLeadDto.ts
|
|
211
213
|
src/models/ThrottlerException.ts
|
|
214
|
+
src/models/UkBankAccountDetails.ts
|
|
212
215
|
src/models/UpdateAccountBillingInformationInput.ts
|
|
213
216
|
src/models/UpdateBankAccountInput.ts
|
|
214
217
|
src/models/UpdateDomainInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.216
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.216 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
cc40a8e655cf7ed1f6246420c57ab6f9066ec99c1a37b75ed311c916ca44207d21b5333f169effe9a7426149dbbc1c41
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AccountBankAccountDtoDetails } from './AccountBankAccountDtoDetails';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -23,40 +24,22 @@ export interface AccountBankAccountDto {
|
|
|
23
24
|
id: string;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
|
-
* @type {
|
|
27
|
-
* @memberof AccountBankAccountDto
|
|
28
|
-
*/
|
|
29
|
-
primary: boolean;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
27
|
+
* @type {AccountBankAccountDtoDetails}
|
|
33
28
|
* @memberof AccountBankAccountDto
|
|
34
29
|
*/
|
|
35
|
-
|
|
30
|
+
details: AccountBankAccountDtoDetails;
|
|
36
31
|
/**
|
|
37
32
|
*
|
|
38
|
-
* @type {
|
|
33
|
+
* @type {boolean}
|
|
39
34
|
* @memberof AccountBankAccountDto
|
|
40
35
|
*/
|
|
41
|
-
|
|
36
|
+
primary: boolean;
|
|
42
37
|
/**
|
|
43
38
|
*
|
|
44
39
|
* @type {string}
|
|
45
40
|
* @memberof AccountBankAccountDto
|
|
46
41
|
*/
|
|
47
42
|
currencyCode: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof AccountBankAccountDto
|
|
52
|
-
*/
|
|
53
|
-
iban: string | null;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof AccountBankAccountDto
|
|
58
|
-
*/
|
|
59
|
-
bban: string | null;
|
|
60
43
|
}
|
|
61
44
|
/**
|
|
62
45
|
* Check if a given object implements the AccountBankAccountDto interface.
|
|
@@ -18,24 +18,19 @@ exports.AccountBankAccountDtoFromJSON = AccountBankAccountDtoFromJSON;
|
|
|
18
18
|
exports.AccountBankAccountDtoFromJSONTyped = AccountBankAccountDtoFromJSONTyped;
|
|
19
19
|
exports.AccountBankAccountDtoToJSON = AccountBankAccountDtoToJSON;
|
|
20
20
|
exports.AccountBankAccountDtoToJSONTyped = AccountBankAccountDtoToJSONTyped;
|
|
21
|
+
var AccountBankAccountDtoDetails_1 = require("./AccountBankAccountDtoDetails");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the AccountBankAccountDto interface.
|
|
23
24
|
*/
|
|
24
25
|
function instanceOfAccountBankAccountDto(value) {
|
|
25
26
|
if (!('id' in value) || value['id'] === undefined)
|
|
26
27
|
return false;
|
|
27
|
-
if (!('
|
|
28
|
-
return false;
|
|
29
|
-
if (!('bic' in value) || value['bic'] === undefined)
|
|
28
|
+
if (!('details' in value) || value['details'] === undefined)
|
|
30
29
|
return false;
|
|
31
|
-
if (!('
|
|
30
|
+
if (!('primary' in value) || value['primary'] === undefined)
|
|
32
31
|
return false;
|
|
33
32
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
34
33
|
return false;
|
|
35
|
-
if (!('iban' in value) || value['iban'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
if (!('bban' in value) || value['bban'] === undefined)
|
|
38
|
-
return false;
|
|
39
34
|
return true;
|
|
40
35
|
}
|
|
41
36
|
function AccountBankAccountDtoFromJSON(json) {
|
|
@@ -47,12 +42,9 @@ function AccountBankAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
42
|
}
|
|
48
43
|
return {
|
|
49
44
|
'id': json['id'],
|
|
45
|
+
'details': (0, AccountBankAccountDtoDetails_1.AccountBankAccountDtoDetailsFromJSON)(json['details']),
|
|
50
46
|
'primary': json['primary'],
|
|
51
|
-
'bic': json['bic'],
|
|
52
|
-
'countryCode': json['countryCode'],
|
|
53
47
|
'currencyCode': json['currencyCode'],
|
|
54
|
-
'iban': json['iban'],
|
|
55
|
-
'bban': json['bban'],
|
|
56
48
|
};
|
|
57
49
|
}
|
|
58
50
|
function AccountBankAccountDtoToJSON(json) {
|
|
@@ -65,11 +57,8 @@ function AccountBankAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
65
57
|
}
|
|
66
58
|
return {
|
|
67
59
|
'id': value['id'],
|
|
60
|
+
'details': (0, AccountBankAccountDtoDetails_1.AccountBankAccountDtoDetailsToJSON)(value['details']),
|
|
68
61
|
'primary': value['primary'],
|
|
69
|
-
'bic': value['bic'],
|
|
70
|
-
'countryCode': value['countryCode'],
|
|
71
62
|
'currencyCode': value['currencyCode'],
|
|
72
|
-
'iban': value['iban'],
|
|
73
|
-
'bban': value['bban'],
|
|
74
63
|
};
|
|
75
64
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
import type { SepaBankAccountDetails } from './SepaBankAccountDetails';
|
|
13
|
+
import type { UkBankAccountDetails } from './UkBankAccountDetails';
|
|
14
|
+
/**
|
|
15
|
+
* @type AccountBankAccountDtoDetails
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export type AccountBankAccountDtoDetails = {
|
|
20
|
+
type: 'SepaBankAccountDetails';
|
|
21
|
+
} & SepaBankAccountDetails | {
|
|
22
|
+
type: 'UkBankAccountDetails';
|
|
23
|
+
} & UkBankAccountDetails;
|
|
24
|
+
export declare function AccountBankAccountDtoDetailsFromJSON(json: any): AccountBankAccountDtoDetails;
|
|
25
|
+
export declare function AccountBankAccountDtoDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountBankAccountDtoDetails;
|
|
26
|
+
export declare function AccountBankAccountDtoDetailsToJSON(json: any): any;
|
|
27
|
+
export declare function AccountBankAccountDtoDetailsToJSONTyped(value?: AccountBankAccountDtoDetails | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.AccountBankAccountDtoDetailsFromJSON = AccountBankAccountDtoDetailsFromJSON;
|
|
17
|
+
exports.AccountBankAccountDtoDetailsFromJSONTyped = AccountBankAccountDtoDetailsFromJSONTyped;
|
|
18
|
+
exports.AccountBankAccountDtoDetailsToJSON = AccountBankAccountDtoDetailsToJSON;
|
|
19
|
+
exports.AccountBankAccountDtoDetailsToJSONTyped = AccountBankAccountDtoDetailsToJSONTyped;
|
|
20
|
+
var SepaBankAccountDetails_1 = require("./SepaBankAccountDetails");
|
|
21
|
+
var UkBankAccountDetails_1 = require("./UkBankAccountDetails");
|
|
22
|
+
function AccountBankAccountDtoDetailsFromJSON(json) {
|
|
23
|
+
return AccountBankAccountDtoDetailsFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
function AccountBankAccountDtoDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
switch (json['type']) {
|
|
30
|
+
case 'SepaBankAccountDetails':
|
|
31
|
+
return Object.assign({}, (0, SepaBankAccountDetails_1.SepaBankAccountDetailsFromJSONTyped)(json, true), { type: 'SepaBankAccountDetails' });
|
|
32
|
+
case 'UkBankAccountDetails':
|
|
33
|
+
return Object.assign({}, (0, UkBankAccountDetails_1.UkBankAccountDetailsFromJSONTyped)(json, true), { type: 'UkBankAccountDetails' });
|
|
34
|
+
default:
|
|
35
|
+
throw new Error("No variant of AccountBankAccountDtoDetails exists with 'type=".concat(json['type'], "'"));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function AccountBankAccountDtoDetailsToJSON(json) {
|
|
39
|
+
return AccountBankAccountDtoDetailsToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function AccountBankAccountDtoDetailsToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
switch (value['type']) {
|
|
47
|
+
case 'SepaBankAccountDetails':
|
|
48
|
+
return Object.assign({}, (0, SepaBankAccountDetails_1.SepaBankAccountDetailsToJSON)(value), { type: 'SepaBankAccountDetails' });
|
|
49
|
+
case 'UkBankAccountDetails':
|
|
50
|
+
return Object.assign({}, (0, UkBankAccountDetails_1.UkBankAccountDetailsToJSON)(value), { type: 'UkBankAccountDetails' });
|
|
51
|
+
default:
|
|
52
|
+
throw new Error("No variant of AccountBankAccountDtoDetails exists with 'type=".concat(value['type'], "'"));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -23,28 +23,10 @@ export interface CreateBankAccountInput {
|
|
|
23
23
|
currencyCode: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {
|
|
27
|
-
* @memberof CreateBankAccountInput
|
|
28
|
-
*/
|
|
29
|
-
countryCode: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof CreateBankAccountInput
|
|
34
|
-
*/
|
|
35
|
-
bic: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof CreateBankAccountInput
|
|
40
|
-
*/
|
|
41
|
-
iban?: string | null;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
26
|
+
* @type {object}
|
|
45
27
|
* @memberof CreateBankAccountInput
|
|
46
28
|
*/
|
|
47
|
-
|
|
29
|
+
details: object;
|
|
48
30
|
}
|
|
49
31
|
/**
|
|
50
32
|
* Check if a given object implements the CreateBankAccountInput interface.
|
|
@@ -24,9 +24,7 @@ exports.CreateBankAccountInputToJSONTyped = CreateBankAccountInputToJSONTyped;
|
|
|
24
24
|
function instanceOfCreateBankAccountInput(value) {
|
|
25
25
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
28
|
-
return false;
|
|
29
|
-
if (!('bic' in value) || value['bic'] === undefined)
|
|
27
|
+
if (!('details' in value) || value['details'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
return true;
|
|
32
30
|
}
|
|
@@ -39,10 +37,7 @@ function CreateBankAccountInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
37
|
}
|
|
40
38
|
return {
|
|
41
39
|
'currencyCode': json['currencyCode'],
|
|
42
|
-
'
|
|
43
|
-
'bic': json['bic'],
|
|
44
|
-
'iban': json['iban'] == null ? undefined : json['iban'],
|
|
45
|
-
'bban': json['bban'] == null ? undefined : json['bban'],
|
|
40
|
+
'details': json['details'],
|
|
46
41
|
};
|
|
47
42
|
}
|
|
48
43
|
function CreateBankAccountInputToJSON(json) {
|
|
@@ -55,9 +50,6 @@ function CreateBankAccountInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
55
50
|
}
|
|
56
51
|
return {
|
|
57
52
|
'currencyCode': value['currencyCode'],
|
|
58
|
-
'
|
|
59
|
-
'bic': value['bic'],
|
|
60
|
-
'iban': value['iban'],
|
|
61
|
-
'bban': value['bban'],
|
|
53
|
+
'details': value['details'],
|
|
62
54
|
};
|
|
63
55
|
}
|
|
@@ -16,6 +16,12 @@ import type { DomainTransferDetailWorkflowStepDto } from './DomainTransferDetail
|
|
|
16
16
|
* @interface DomainTransferDetailsWorkflowDto
|
|
17
17
|
*/
|
|
18
18
|
export interface DomainTransferDetailsWorkflowDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof DomainTransferDetailsWorkflowDto
|
|
23
|
+
*/
|
|
24
|
+
name: string | null;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
@@ -33,6 +33,8 @@ exports.DomainTransferDetailsWorkflowDtoPathEnum = {
|
|
|
33
33
|
* Check if a given object implements the DomainTransferDetailsWorkflowDto interface.
|
|
34
34
|
*/
|
|
35
35
|
function instanceOfDomainTransferDetailsWorkflowDto(value) {
|
|
36
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
if (!('path' in value) || value['path'] === undefined)
|
|
37
39
|
return false;
|
|
38
40
|
if (!('steps' in value) || value['steps'] === undefined)
|
|
@@ -47,6 +49,7 @@ function DomainTransferDetailsWorkflowDtoFromJSONTyped(json, ignoreDiscriminator
|
|
|
47
49
|
return json;
|
|
48
50
|
}
|
|
49
51
|
return {
|
|
52
|
+
'name': json['name'],
|
|
50
53
|
'path': json['path'],
|
|
51
54
|
'steps': (json['steps'].map(DomainTransferDetailWorkflowStepDto_1.DomainTransferDetailWorkflowStepDtoFromJSON)),
|
|
52
55
|
};
|
|
@@ -60,6 +63,7 @@ function DomainTransferDetailsWorkflowDtoToJSONTyped(value, ignoreDiscriminator)
|
|
|
60
63
|
return value;
|
|
61
64
|
}
|
|
62
65
|
return {
|
|
66
|
+
'name': value['name'],
|
|
63
67
|
'path': value['path'],
|
|
64
68
|
'steps': (value['steps'].map(DomainTransferDetailWorkflowStepDto_1.DomainTransferDetailWorkflowStepDtoToJSON)),
|
|
65
69
|
};
|
|
@@ -0,0 +1,58 @@
|
|
|
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 SepaBankAccountDetails
|
|
16
|
+
*/
|
|
17
|
+
export interface SepaBankAccountDetails {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SepaBankAccountDetails
|
|
22
|
+
*/
|
|
23
|
+
type: SepaBankAccountDetailsTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SepaBankAccountDetails
|
|
28
|
+
*/
|
|
29
|
+
countryCode: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SepaBankAccountDetails
|
|
34
|
+
*/
|
|
35
|
+
bic: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SepaBankAccountDetails
|
|
40
|
+
*/
|
|
41
|
+
iban: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const SepaBankAccountDetailsTypeEnum: {
|
|
47
|
+
readonly UK_BANK_ACCOUNT_DETAILS: "UkBankAccountDetails";
|
|
48
|
+
readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
|
|
49
|
+
};
|
|
50
|
+
export type SepaBankAccountDetailsTypeEnum = typeof SepaBankAccountDetailsTypeEnum[keyof typeof SepaBankAccountDetailsTypeEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the SepaBankAccountDetails interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfSepaBankAccountDetails(value: object): value is SepaBankAccountDetails;
|
|
55
|
+
export declare function SepaBankAccountDetailsFromJSON(json: any): SepaBankAccountDetails;
|
|
56
|
+
export declare function SepaBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SepaBankAccountDetails;
|
|
57
|
+
export declare function SepaBankAccountDetailsToJSON(json: any): SepaBankAccountDetails;
|
|
58
|
+
export declare function SepaBankAccountDetailsToJSONTyped(value?: SepaBankAccountDetails | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.SepaBankAccountDetailsTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfSepaBankAccountDetails = instanceOfSepaBankAccountDetails;
|
|
18
|
+
exports.SepaBankAccountDetailsFromJSON = SepaBankAccountDetailsFromJSON;
|
|
19
|
+
exports.SepaBankAccountDetailsFromJSONTyped = SepaBankAccountDetailsFromJSONTyped;
|
|
20
|
+
exports.SepaBankAccountDetailsToJSON = SepaBankAccountDetailsToJSON;
|
|
21
|
+
exports.SepaBankAccountDetailsToJSONTyped = SepaBankAccountDetailsToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SepaBankAccountDetailsTypeEnum = {
|
|
26
|
+
UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
|
|
27
|
+
SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the SepaBankAccountDetails interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfSepaBankAccountDetails(value) {
|
|
33
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('bic' in value) || value['bic'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('iban' in value) || value['iban'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function SepaBankAccountDetailsFromJSON(json) {
|
|
44
|
+
return SepaBankAccountDetailsFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function SepaBankAccountDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'type': json['type'],
|
|
52
|
+
'countryCode': json['countryCode'],
|
|
53
|
+
'bic': json['bic'],
|
|
54
|
+
'iban': json['iban'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function SepaBankAccountDetailsToJSON(json) {
|
|
58
|
+
return SepaBankAccountDetailsToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function SepaBankAccountDetailsToJSONTyped(value, ignoreDiscriminator) {
|
|
61
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'type': value['type'],
|
|
67
|
+
'countryCode': value['countryCode'],
|
|
68
|
+
'bic': value['bic'],
|
|
69
|
+
'iban': value['iban'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -13,6 +13,7 @@ import type { InvoiceItemDto } from './InvoiceItemDto';
|
|
|
13
13
|
import type { SubscriptionDetailsDomainDto } from './SubscriptionDetailsDomainDto';
|
|
14
14
|
import type { MoneyDto } from './MoneyDto';
|
|
15
15
|
import type { SubscriptionDetailsBillingPeriodicityDto } from './SubscriptionDetailsBillingPeriodicityDto';
|
|
16
|
+
import type { DomainTransferDetailsDto } from './DomainTransferDetailsDto';
|
|
16
17
|
import type { SubscriptionCompanyInfoDto } from './SubscriptionCompanyInfoDto';
|
|
17
18
|
import type { AddressDto } from './AddressDto';
|
|
18
19
|
import type { SubscriptionDetailsDomainSellerDto } from './SubscriptionDetailsDomainSellerDto';
|
|
@@ -150,10 +151,10 @@ export interface SubscriptionDetailsDto {
|
|
|
150
151
|
sellerInfo: SubscriptionDetailsDomainSellerDto;
|
|
151
152
|
/**
|
|
152
153
|
*
|
|
153
|
-
* @type {Array<
|
|
154
|
+
* @type {Array<DomainTransferDetailsDto>}
|
|
154
155
|
* @memberof SubscriptionDetailsDto
|
|
155
156
|
*/
|
|
156
|
-
|
|
157
|
+
domainTransfers: Array<DomainTransferDetailsDto>;
|
|
157
158
|
}
|
|
158
159
|
/**
|
|
159
160
|
* @export
|
|
@@ -23,6 +23,7 @@ var InvoiceItemDto_1 = require("./InvoiceItemDto");
|
|
|
23
23
|
var SubscriptionDetailsDomainDto_1 = require("./SubscriptionDetailsDomainDto");
|
|
24
24
|
var MoneyDto_1 = require("./MoneyDto");
|
|
25
25
|
var SubscriptionDetailsBillingPeriodicityDto_1 = require("./SubscriptionDetailsBillingPeriodicityDto");
|
|
26
|
+
var DomainTransferDetailsDto_1 = require("./DomainTransferDetailsDto");
|
|
26
27
|
var SubscriptionCompanyInfoDto_1 = require("./SubscriptionCompanyInfoDto");
|
|
27
28
|
var AddressDto_1 = require("./AddressDto");
|
|
28
29
|
var SubscriptionDetailsDomainSellerDto_1 = require("./SubscriptionDetailsDomainSellerDto");
|
|
@@ -89,7 +90,7 @@ function instanceOfSubscriptionDetailsDto(value) {
|
|
|
89
90
|
return false;
|
|
90
91
|
if (!('sellerInfo' in value) || value['sellerInfo'] === undefined)
|
|
91
92
|
return false;
|
|
92
|
-
if (!('
|
|
93
|
+
if (!('domainTransfers' in value) || value['domainTransfers'] === undefined)
|
|
93
94
|
return false;
|
|
94
95
|
return true;
|
|
95
96
|
}
|
|
@@ -122,7 +123,7 @@ function SubscriptionDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
122
123
|
'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
|
|
123
124
|
'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
|
|
124
125
|
'sellerInfo': (0, SubscriptionDetailsDomainSellerDto_1.SubscriptionDetailsDomainSellerDtoFromJSON)(json['sellerInfo']),
|
|
125
|
-
'
|
|
126
|
+
'domainTransfers': (json['domainTransfers'].map(DomainTransferDetailsDto_1.DomainTransferDetailsDtoFromJSON)),
|
|
126
127
|
};
|
|
127
128
|
}
|
|
128
129
|
function SubscriptionDetailsDtoToJSON(json) {
|
|
@@ -155,6 +156,6 @@ function SubscriptionDetailsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
155
156
|
'startedAt': (value['startedAt'] == null ? null : value['startedAt'].toISOString()),
|
|
156
157
|
'finishedAt': (value['finishedAt'] == null ? null : value['finishedAt'].toISOString()),
|
|
157
158
|
'sellerInfo': (0, SubscriptionDetailsDomainSellerDto_1.SubscriptionDetailsDomainSellerDtoToJSON)(value['sellerInfo']),
|
|
158
|
-
'
|
|
159
|
+
'domainTransfers': (value['domainTransfers'].map(DomainTransferDetailsDto_1.DomainTransferDetailsDtoToJSON)),
|
|
159
160
|
};
|
|
160
161
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 UkBankAccountDetails
|
|
16
|
+
*/
|
|
17
|
+
export interface UkBankAccountDetails {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UkBankAccountDetails
|
|
22
|
+
*/
|
|
23
|
+
type: UkBankAccountDetailsTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UkBankAccountDetails
|
|
28
|
+
*/
|
|
29
|
+
countryCode: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UkBankAccountDetails
|
|
34
|
+
*/
|
|
35
|
+
sortCode: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UkBankAccountDetails
|
|
40
|
+
*/
|
|
41
|
+
accountNumber: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const UkBankAccountDetailsTypeEnum: {
|
|
47
|
+
readonly UK_BANK_ACCOUNT_DETAILS: "UkBankAccountDetails";
|
|
48
|
+
readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
|
|
49
|
+
};
|
|
50
|
+
export type UkBankAccountDetailsTypeEnum = typeof UkBankAccountDetailsTypeEnum[keyof typeof UkBankAccountDetailsTypeEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the UkBankAccountDetails interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfUkBankAccountDetails(value: object): value is UkBankAccountDetails;
|
|
55
|
+
export declare function UkBankAccountDetailsFromJSON(json: any): UkBankAccountDetails;
|
|
56
|
+
export declare function UkBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UkBankAccountDetails;
|
|
57
|
+
export declare function UkBankAccountDetailsToJSON(json: any): UkBankAccountDetails;
|
|
58
|
+
export declare function UkBankAccountDetailsToJSONTyped(value?: UkBankAccountDetails | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.UkBankAccountDetailsTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfUkBankAccountDetails = instanceOfUkBankAccountDetails;
|
|
18
|
+
exports.UkBankAccountDetailsFromJSON = UkBankAccountDetailsFromJSON;
|
|
19
|
+
exports.UkBankAccountDetailsFromJSONTyped = UkBankAccountDetailsFromJSONTyped;
|
|
20
|
+
exports.UkBankAccountDetailsToJSON = UkBankAccountDetailsToJSON;
|
|
21
|
+
exports.UkBankAccountDetailsToJSONTyped = UkBankAccountDetailsToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.UkBankAccountDetailsTypeEnum = {
|
|
26
|
+
UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
|
|
27
|
+
SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the UkBankAccountDetails interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfUkBankAccountDetails(value) {
|
|
33
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('sortCode' in value) || value['sortCode'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('accountNumber' in value) || value['accountNumber'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function UkBankAccountDetailsFromJSON(json) {
|
|
44
|
+
return UkBankAccountDetailsFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function UkBankAccountDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'type': json['type'],
|
|
52
|
+
'countryCode': json['countryCode'],
|
|
53
|
+
'sortCode': json['sortCode'],
|
|
54
|
+
'accountNumber': json['accountNumber'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function UkBankAccountDetailsToJSON(json) {
|
|
58
|
+
return UkBankAccountDetailsToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function UkBankAccountDetailsToJSONTyped(value, ignoreDiscriminator) {
|
|
61
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'type': value['type'],
|
|
67
|
+
'countryCode': value['countryCode'],
|
|
68
|
+
'sortCode': value['sortCode'],
|
|
69
|
+
'accountNumber': value['accountNumber'],
|
|
70
|
+
};
|
|
71
|
+
}
|