@randock/nameshift-api-client 0.0.233 → 0.0.235

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.
@@ -52,6 +52,7 @@ src/models/AirwallexBankAccountDetailsDtoLocalMethod.ts
52
52
  src/models/AirwallexBankAccountDetailsDtoLocalMethodCode.ts
53
53
  src/models/AirwallexDepositDto.ts
54
54
  src/models/AirwallexDepositDtoFee.ts
55
+ src/models/AuBankAccountDetails.ts
55
56
  src/models/BadRequestException.ts
56
57
  src/models/BatchDeleteBuyerLeadsInput.ts
57
58
  src/models/BatchImportPreviewDto.ts
@@ -169,6 +170,7 @@ src/models/MoneyDto.ts
169
170
  src/models/MoneyInput.ts
170
171
  src/models/MozMetrics.ts
171
172
  src/models/NotFoundException.ts
173
+ src/models/NzBankAccountDetails.ts
172
174
  src/models/ObjectId.ts
173
175
  src/models/OrderCompanyInfoDto.ts
174
176
  src/models/OrderCompanyTaxIdDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.233
1
+ ## @randock/nameshift-api-client@0.0.235
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.233 --save
39
+ npm install @randock/nameshift-api-client@0.0.235 --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
- 7e0f5b9725936a1b849e44c383e2135f4cb969675fcfff00aef5f4795db3629d81751285a85e94ef135067b9a4dace9a
47
+ 4946203675ba3a3b913898b51acc04add7cfdafb641bbeba0d2ce66731784fe70119abc594b3c682720fcff0ba8d10cd
@@ -9,7 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { AuBankAccountDetails } from './AuBankAccountDetails';
12
13
  import type { CaBankAccountDetails } from './CaBankAccountDetails';
14
+ import type { NzBankAccountDetails } from './NzBankAccountDetails';
13
15
  import type { SepaBankAccountDetails } from './SepaBankAccountDetails';
14
16
  import type { UkBankAccountDetails } from './UkBankAccountDetails';
15
17
  import type { UsBankAccountDetails } from './UsBankAccountDetails';
@@ -19,8 +21,12 @@ import type { UsBankAccountDetails } from './UsBankAccountDetails';
19
21
  * @export
20
22
  */
21
23
  export type AccountBankAccountDtoDetails = {
24
+ type: 'AuBankAccountDetails';
25
+ } & AuBankAccountDetails | {
22
26
  type: 'CaBankAccountDetails';
23
27
  } & CaBankAccountDetails | {
28
+ type: 'NzBankAccountDetails';
29
+ } & NzBankAccountDetails | {
24
30
  type: 'SepaBankAccountDetails';
25
31
  } & SepaBankAccountDetails | {
26
32
  type: 'UkBankAccountDetails';
@@ -17,7 +17,9 @@ exports.AccountBankAccountDtoDetailsFromJSON = AccountBankAccountDtoDetailsFromJ
17
17
  exports.AccountBankAccountDtoDetailsFromJSONTyped = AccountBankAccountDtoDetailsFromJSONTyped;
18
18
  exports.AccountBankAccountDtoDetailsToJSON = AccountBankAccountDtoDetailsToJSON;
19
19
  exports.AccountBankAccountDtoDetailsToJSONTyped = AccountBankAccountDtoDetailsToJSONTyped;
20
+ var AuBankAccountDetails_1 = require("./AuBankAccountDetails");
20
21
  var CaBankAccountDetails_1 = require("./CaBankAccountDetails");
22
+ var NzBankAccountDetails_1 = require("./NzBankAccountDetails");
21
23
  var SepaBankAccountDetails_1 = require("./SepaBankAccountDetails");
22
24
  var UkBankAccountDetails_1 = require("./UkBankAccountDetails");
23
25
  var UsBankAccountDetails_1 = require("./UsBankAccountDetails");
@@ -29,8 +31,12 @@ function AccountBankAccountDtoDetailsFromJSONTyped(json, ignoreDiscriminator) {
29
31
  return json;
30
32
  }
31
33
  switch (json['type']) {
34
+ case 'AuBankAccountDetails':
35
+ return Object.assign({}, (0, AuBankAccountDetails_1.AuBankAccountDetailsFromJSONTyped)(json, true), { type: 'AuBankAccountDetails' });
32
36
  case 'CaBankAccountDetails':
33
37
  return Object.assign({}, (0, CaBankAccountDetails_1.CaBankAccountDetailsFromJSONTyped)(json, true), { type: 'CaBankAccountDetails' });
38
+ case 'NzBankAccountDetails':
39
+ return Object.assign({}, (0, NzBankAccountDetails_1.NzBankAccountDetailsFromJSONTyped)(json, true), { type: 'NzBankAccountDetails' });
34
40
  case 'SepaBankAccountDetails':
35
41
  return Object.assign({}, (0, SepaBankAccountDetails_1.SepaBankAccountDetailsFromJSONTyped)(json, true), { type: 'SepaBankAccountDetails' });
36
42
  case 'UkBankAccountDetails':
@@ -50,8 +56,12 @@ function AccountBankAccountDtoDetailsToJSONTyped(value, ignoreDiscriminator) {
50
56
  return value;
51
57
  }
52
58
  switch (value['type']) {
59
+ case 'AuBankAccountDetails':
60
+ return Object.assign({}, (0, AuBankAccountDetails_1.AuBankAccountDetailsToJSON)(value), { type: 'AuBankAccountDetails' });
53
61
  case 'CaBankAccountDetails':
54
62
  return Object.assign({}, (0, CaBankAccountDetails_1.CaBankAccountDetailsToJSON)(value), { type: 'CaBankAccountDetails' });
63
+ case 'NzBankAccountDetails':
64
+ return Object.assign({}, (0, NzBankAccountDetails_1.NzBankAccountDetailsToJSON)(value), { type: 'NzBankAccountDetails' });
55
65
  case 'SepaBankAccountDetails':
56
66
  return Object.assign({}, (0, SepaBankAccountDetails_1.SepaBankAccountDetailsToJSON)(value), { type: 'SepaBankAccountDetails' });
57
67
  case 'UkBankAccountDetails':
@@ -0,0 +1,62 @@
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 AuBankAccountDetails
16
+ */
17
+ export interface AuBankAccountDetails {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AuBankAccountDetails
22
+ */
23
+ type: AuBankAccountDetailsTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AuBankAccountDetails
28
+ */
29
+ countryCode: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AuBankAccountDetails
34
+ */
35
+ accountNumber: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AuBankAccountDetails
40
+ */
41
+ bsb: string;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const AuBankAccountDetailsTypeEnum: {
47
+ readonly UK_BANK_ACCOUNT_DETAILS: "UkBankAccountDetails";
48
+ readonly US_BANK_ACCOUNT_DETAILS: "UsBankAccountDetails";
49
+ readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
50
+ readonly NZ_BANK_ACCOUNT_DETAILS: "NzBankAccountDetails";
51
+ readonly AU_BANK_ACCOUNT_DETAILS: "AuBankAccountDetails";
52
+ readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
53
+ };
54
+ export type AuBankAccountDetailsTypeEnum = typeof AuBankAccountDetailsTypeEnum[keyof typeof AuBankAccountDetailsTypeEnum];
55
+ /**
56
+ * Check if a given object implements the AuBankAccountDetails interface.
57
+ */
58
+ export declare function instanceOfAuBankAccountDetails(value: object): value is AuBankAccountDetails;
59
+ export declare function AuBankAccountDetailsFromJSON(json: any): AuBankAccountDetails;
60
+ export declare function AuBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuBankAccountDetails;
61
+ export declare function AuBankAccountDetailsToJSON(json: any): AuBankAccountDetails;
62
+ export declare function AuBankAccountDetailsToJSONTyped(value?: AuBankAccountDetails | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,75 @@
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.AuBankAccountDetailsTypeEnum = void 0;
17
+ exports.instanceOfAuBankAccountDetails = instanceOfAuBankAccountDetails;
18
+ exports.AuBankAccountDetailsFromJSON = AuBankAccountDetailsFromJSON;
19
+ exports.AuBankAccountDetailsFromJSONTyped = AuBankAccountDetailsFromJSONTyped;
20
+ exports.AuBankAccountDetailsToJSON = AuBankAccountDetailsToJSON;
21
+ exports.AuBankAccountDetailsToJSONTyped = AuBankAccountDetailsToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.AuBankAccountDetailsTypeEnum = {
26
+ UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
27
+ US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
28
+ CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
29
+ NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
30
+ AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
31
+ SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
32
+ };
33
+ /**
34
+ * Check if a given object implements the AuBankAccountDetails interface.
35
+ */
36
+ function instanceOfAuBankAccountDetails(value) {
37
+ if (!('type' in value) || value['type'] === undefined)
38
+ return false;
39
+ if (!('countryCode' in value) || value['countryCode'] === undefined)
40
+ return false;
41
+ if (!('accountNumber' in value) || value['accountNumber'] === undefined)
42
+ return false;
43
+ if (!('bsb' in value) || value['bsb'] === undefined)
44
+ return false;
45
+ return true;
46
+ }
47
+ function AuBankAccountDetailsFromJSON(json) {
48
+ return AuBankAccountDetailsFromJSONTyped(json, false);
49
+ }
50
+ function AuBankAccountDetailsFromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'type': json['type'],
56
+ 'countryCode': json['countryCode'],
57
+ 'accountNumber': json['accountNumber'],
58
+ 'bsb': json['bsb'],
59
+ };
60
+ }
61
+ function AuBankAccountDetailsToJSON(json) {
62
+ return AuBankAccountDetailsToJSONTyped(json, false);
63
+ }
64
+ function AuBankAccountDetailsToJSONTyped(value, ignoreDiscriminator) {
65
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+ 'type': value['type'],
71
+ 'countryCode': value['countryCode'],
72
+ 'accountNumber': value['accountNumber'],
73
+ 'bsb': value['bsb'],
74
+ };
75
+ }
@@ -53,6 +53,8 @@ export declare const CaBankAccountDetailsTypeEnum: {
53
53
  readonly UK_BANK_ACCOUNT_DETAILS: "UkBankAccountDetails";
54
54
  readonly US_BANK_ACCOUNT_DETAILS: "UsBankAccountDetails";
55
55
  readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
56
+ readonly NZ_BANK_ACCOUNT_DETAILS: "NzBankAccountDetails";
57
+ readonly AU_BANK_ACCOUNT_DETAILS: "AuBankAccountDetails";
56
58
  readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
57
59
  };
58
60
  export type CaBankAccountDetailsTypeEnum = typeof CaBankAccountDetailsTypeEnum[keyof typeof CaBankAccountDetailsTypeEnum];
@@ -26,6 +26,8 @@ exports.CaBankAccountDetailsTypeEnum = {
26
26
  UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
27
27
  US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
28
28
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
29
+ NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
30
+ AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
29
31
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
30
32
  };
31
33
  /**
@@ -0,0 +1,56 @@
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 NzBankAccountDetails
16
+ */
17
+ export interface NzBankAccountDetails {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof NzBankAccountDetails
22
+ */
23
+ type: NzBankAccountDetailsTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof NzBankAccountDetails
28
+ */
29
+ countryCode: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof NzBankAccountDetails
34
+ */
35
+ accountNumber: string;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const NzBankAccountDetailsTypeEnum: {
41
+ readonly UK_BANK_ACCOUNT_DETAILS: "UkBankAccountDetails";
42
+ readonly US_BANK_ACCOUNT_DETAILS: "UsBankAccountDetails";
43
+ readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
44
+ readonly NZ_BANK_ACCOUNT_DETAILS: "NzBankAccountDetails";
45
+ readonly AU_BANK_ACCOUNT_DETAILS: "AuBankAccountDetails";
46
+ readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
47
+ };
48
+ export type NzBankAccountDetailsTypeEnum = typeof NzBankAccountDetailsTypeEnum[keyof typeof NzBankAccountDetailsTypeEnum];
49
+ /**
50
+ * Check if a given object implements the NzBankAccountDetails interface.
51
+ */
52
+ export declare function instanceOfNzBankAccountDetails(value: object): value is NzBankAccountDetails;
53
+ export declare function NzBankAccountDetailsFromJSON(json: any): NzBankAccountDetails;
54
+ export declare function NzBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): NzBankAccountDetails;
55
+ export declare function NzBankAccountDetailsToJSON(json: any): NzBankAccountDetails;
56
+ export declare function NzBankAccountDetailsToJSONTyped(value?: NzBankAccountDetails | 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.NzBankAccountDetailsTypeEnum = void 0;
17
+ exports.instanceOfNzBankAccountDetails = instanceOfNzBankAccountDetails;
18
+ exports.NzBankAccountDetailsFromJSON = NzBankAccountDetailsFromJSON;
19
+ exports.NzBankAccountDetailsFromJSONTyped = NzBankAccountDetailsFromJSONTyped;
20
+ exports.NzBankAccountDetailsToJSON = NzBankAccountDetailsToJSON;
21
+ exports.NzBankAccountDetailsToJSONTyped = NzBankAccountDetailsToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.NzBankAccountDetailsTypeEnum = {
26
+ UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
27
+ US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
28
+ CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
29
+ NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
30
+ AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
31
+ SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
32
+ };
33
+ /**
34
+ * Check if a given object implements the NzBankAccountDetails interface.
35
+ */
36
+ function instanceOfNzBankAccountDetails(value) {
37
+ if (!('type' in value) || value['type'] === undefined)
38
+ return false;
39
+ if (!('countryCode' in value) || value['countryCode'] === undefined)
40
+ return false;
41
+ if (!('accountNumber' in value) || value['accountNumber'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function NzBankAccountDetailsFromJSON(json) {
46
+ return NzBankAccountDetailsFromJSONTyped(json, false);
47
+ }
48
+ function NzBankAccountDetailsFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'type': json['type'],
54
+ 'countryCode': json['countryCode'],
55
+ 'accountNumber': json['accountNumber'],
56
+ };
57
+ }
58
+ function NzBankAccountDetailsToJSON(json) {
59
+ return NzBankAccountDetailsToJSONTyped(json, false);
60
+ }
61
+ function NzBankAccountDetailsToJSONTyped(value, ignoreDiscriminator) {
62
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'type': value['type'],
68
+ 'countryCode': value['countryCode'],
69
+ 'accountNumber': value['accountNumber'],
70
+ };
71
+ }
@@ -47,6 +47,8 @@ export declare const SepaBankAccountDetailsTypeEnum: {
47
47
  readonly UK_BANK_ACCOUNT_DETAILS: "UkBankAccountDetails";
48
48
  readonly US_BANK_ACCOUNT_DETAILS: "UsBankAccountDetails";
49
49
  readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
50
+ readonly NZ_BANK_ACCOUNT_DETAILS: "NzBankAccountDetails";
51
+ readonly AU_BANK_ACCOUNT_DETAILS: "AuBankAccountDetails";
50
52
  readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
51
53
  };
52
54
  export type SepaBankAccountDetailsTypeEnum = typeof SepaBankAccountDetailsTypeEnum[keyof typeof SepaBankAccountDetailsTypeEnum];
@@ -26,6 +26,8 @@ exports.SepaBankAccountDetailsTypeEnum = {
26
26
  UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
27
27
  US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
28
28
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
29
+ NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
30
+ AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
29
31
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
30
32
  };
31
33
  /**
@@ -160,7 +160,7 @@ export interface SubscriptionDto {
160
160
  * @type {SubscriptionLeaseToOwnConfigurationDto}
161
161
  * @memberof SubscriptionDto
162
162
  */
163
- leaseToOwn: SubscriptionLeaseToOwnConfigurationDto;
163
+ leaseToOwn: SubscriptionLeaseToOwnConfigurationDto | null;
164
164
  }
165
165
  /**
166
166
  * @export
@@ -47,6 +47,8 @@ export declare const UkBankAccountDetailsTypeEnum: {
47
47
  readonly UK_BANK_ACCOUNT_DETAILS: "UkBankAccountDetails";
48
48
  readonly US_BANK_ACCOUNT_DETAILS: "UsBankAccountDetails";
49
49
  readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
50
+ readonly NZ_BANK_ACCOUNT_DETAILS: "NzBankAccountDetails";
51
+ readonly AU_BANK_ACCOUNT_DETAILS: "AuBankAccountDetails";
50
52
  readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
51
53
  };
52
54
  export type UkBankAccountDetailsTypeEnum = typeof UkBankAccountDetailsTypeEnum[keyof typeof UkBankAccountDetailsTypeEnum];
@@ -26,6 +26,8 @@ exports.UkBankAccountDetailsTypeEnum = {
26
26
  UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
27
27
  US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
28
28
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
29
+ NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
30
+ AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
29
31
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
30
32
  };
31
33
  /**
@@ -47,6 +47,8 @@ export declare const UsBankAccountDetailsTypeEnum: {
47
47
  readonly UK_BANK_ACCOUNT_DETAILS: "UkBankAccountDetails";
48
48
  readonly US_BANK_ACCOUNT_DETAILS: "UsBankAccountDetails";
49
49
  readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
50
+ readonly NZ_BANK_ACCOUNT_DETAILS: "NzBankAccountDetails";
51
+ readonly AU_BANK_ACCOUNT_DETAILS: "AuBankAccountDetails";
50
52
  readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
51
53
  };
52
54
  export type UsBankAccountDetailsTypeEnum = typeof UsBankAccountDetailsTypeEnum[keyof typeof UsBankAccountDetailsTypeEnum];
@@ -26,6 +26,8 @@ exports.UsBankAccountDetailsTypeEnum = {
26
26
  UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
27
27
  US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
28
28
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
29
+ NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
30
+ AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
29
31
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
30
32
  };
31
33
  /**
@@ -24,6 +24,7 @@ export * from './AirwallexBankAccountDetailsDtoLocalMethod';
24
24
  export * from './AirwallexBankAccountDetailsDtoLocalMethodCode';
25
25
  export * from './AirwallexDepositDto';
26
26
  export * from './AirwallexDepositDtoFee';
27
+ export * from './AuBankAccountDetails';
27
28
  export * from './BadRequestException';
28
29
  export * from './BatchDeleteBuyerLeadsInput';
29
30
  export * from './BatchImportPreviewDto';
@@ -141,6 +142,7 @@ export * from './MoneyDto';
141
142
  export * from './MoneyInput';
142
143
  export * from './MozMetrics';
143
144
  export * from './NotFoundException';
145
+ export * from './NzBankAccountDetails';
144
146
  export * from './ObjectId';
145
147
  export * from './OrderCompanyInfoDto';
146
148
  export * from './OrderCompanyTaxIdDto';
@@ -42,6 +42,7 @@ __exportStar(require("./AirwallexBankAccountDetailsDtoLocalMethod"), exports);
42
42
  __exportStar(require("./AirwallexBankAccountDetailsDtoLocalMethodCode"), exports);
43
43
  __exportStar(require("./AirwallexDepositDto"), exports);
44
44
  __exportStar(require("./AirwallexDepositDtoFee"), exports);
45
+ __exportStar(require("./AuBankAccountDetails"), exports);
45
46
  __exportStar(require("./BadRequestException"), exports);
46
47
  __exportStar(require("./BatchDeleteBuyerLeadsInput"), exports);
47
48
  __exportStar(require("./BatchImportPreviewDto"), exports);
@@ -159,6 +160,7 @@ __exportStar(require("./MoneyDto"), exports);
159
160
  __exportStar(require("./MoneyInput"), exports);
160
161
  __exportStar(require("./MozMetrics"), exports);
161
162
  __exportStar(require("./NotFoundException"), exports);
163
+ __exportStar(require("./NzBankAccountDetails"), exports);
162
164
  __exportStar(require("./ObjectId"), exports);
163
165
  __exportStar(require("./OrderCompanyInfoDto"), exports);
164
166
  __exportStar(require("./OrderCompanyTaxIdDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.233",
3
+ "version": "0.0.235",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -12,6 +12,13 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+ import type { AuBankAccountDetails } from './AuBankAccountDetails';
16
+ import {
17
+ instanceOfAuBankAccountDetails,
18
+ AuBankAccountDetailsFromJSON,
19
+ AuBankAccountDetailsFromJSONTyped,
20
+ AuBankAccountDetailsToJSON,
21
+ } from './AuBankAccountDetails';
15
22
  import type { CaBankAccountDetails } from './CaBankAccountDetails';
16
23
  import {
17
24
  instanceOfCaBankAccountDetails,
@@ -19,6 +26,13 @@ import {
19
26
  CaBankAccountDetailsFromJSONTyped,
20
27
  CaBankAccountDetailsToJSON,
21
28
  } from './CaBankAccountDetails';
29
+ import type { NzBankAccountDetails } from './NzBankAccountDetails';
30
+ import {
31
+ instanceOfNzBankAccountDetails,
32
+ NzBankAccountDetailsFromJSON,
33
+ NzBankAccountDetailsFromJSONTyped,
34
+ NzBankAccountDetailsToJSON,
35
+ } from './NzBankAccountDetails';
22
36
  import type { SepaBankAccountDetails } from './SepaBankAccountDetails';
23
37
  import {
24
38
  instanceOfSepaBankAccountDetails,
@@ -46,7 +60,7 @@ import {
46
60
  *
47
61
  * @export
48
62
  */
49
- export type AccountBankAccountDtoDetails = { type: 'CaBankAccountDetails' } & CaBankAccountDetails | { type: 'SepaBankAccountDetails' } & SepaBankAccountDetails | { type: 'UkBankAccountDetails' } & UkBankAccountDetails | { type: 'UsBankAccountDetails' } & UsBankAccountDetails;
63
+ export type AccountBankAccountDtoDetails = { type: 'AuBankAccountDetails' } & AuBankAccountDetails | { type: 'CaBankAccountDetails' } & CaBankAccountDetails | { type: 'NzBankAccountDetails' } & NzBankAccountDetails | { type: 'SepaBankAccountDetails' } & SepaBankAccountDetails | { type: 'UkBankAccountDetails' } & UkBankAccountDetails | { type: 'UsBankAccountDetails' } & UsBankAccountDetails;
50
64
 
51
65
  export function AccountBankAccountDtoDetailsFromJSON(json: any): AccountBankAccountDtoDetails {
52
66
  return AccountBankAccountDtoDetailsFromJSONTyped(json, false);
@@ -57,8 +71,12 @@ export function AccountBankAccountDtoDetailsFromJSONTyped(json: any, ignoreDiscr
57
71
  return json;
58
72
  }
59
73
  switch (json['type']) {
74
+ case 'AuBankAccountDetails':
75
+ return Object.assign({}, AuBankAccountDetailsFromJSONTyped(json, true), { type: 'AuBankAccountDetails' } as const);
60
76
  case 'CaBankAccountDetails':
61
77
  return Object.assign({}, CaBankAccountDetailsFromJSONTyped(json, true), { type: 'CaBankAccountDetails' } as const);
78
+ case 'NzBankAccountDetails':
79
+ return Object.assign({}, NzBankAccountDetailsFromJSONTyped(json, true), { type: 'NzBankAccountDetails' } as const);
62
80
  case 'SepaBankAccountDetails':
63
81
  return Object.assign({}, SepaBankAccountDetailsFromJSONTyped(json, true), { type: 'SepaBankAccountDetails' } as const);
64
82
  case 'UkBankAccountDetails':
@@ -79,8 +97,12 @@ export function AccountBankAccountDtoDetailsToJSONTyped(value?: AccountBankAccou
79
97
  return value;
80
98
  }
81
99
  switch (value['type']) {
100
+ case 'AuBankAccountDetails':
101
+ return Object.assign({}, AuBankAccountDetailsToJSON(value), { type: 'AuBankAccountDetails' } as const);
82
102
  case 'CaBankAccountDetails':
83
103
  return Object.assign({}, CaBankAccountDetailsToJSON(value), { type: 'CaBankAccountDetails' } as const);
104
+ case 'NzBankAccountDetails':
105
+ return Object.assign({}, NzBankAccountDetailsToJSON(value), { type: 'NzBankAccountDetails' } as const);
84
106
  case 'SepaBankAccountDetails':
85
107
  return Object.assign({}, SepaBankAccountDetailsToJSON(value), { type: 'SepaBankAccountDetails' } as const);
86
108
  case 'UkBankAccountDetails':
@@ -0,0 +1,108 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuBankAccountDetails
20
+ */
21
+ export interface AuBankAccountDetails {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AuBankAccountDetails
26
+ */
27
+ type: AuBankAccountDetailsTypeEnum;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AuBankAccountDetails
32
+ */
33
+ countryCode: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AuBankAccountDetails
38
+ */
39
+ accountNumber: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AuBankAccountDetails
44
+ */
45
+ bsb: string;
46
+ }
47
+
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const AuBankAccountDetailsTypeEnum = {
53
+ UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
54
+ US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
55
+ CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
56
+ NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
57
+ AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
58
+ SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
59
+ } as const;
60
+ export type AuBankAccountDetailsTypeEnum = typeof AuBankAccountDetailsTypeEnum[keyof typeof AuBankAccountDetailsTypeEnum];
61
+
62
+
63
+ /**
64
+ * Check if a given object implements the AuBankAccountDetails interface.
65
+ */
66
+ export function instanceOfAuBankAccountDetails(value: object): value is AuBankAccountDetails {
67
+ if (!('type' in value) || value['type'] === undefined) return false;
68
+ if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
69
+ if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
70
+ if (!('bsb' in value) || value['bsb'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function AuBankAccountDetailsFromJSON(json: any): AuBankAccountDetails {
75
+ return AuBankAccountDetailsFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function AuBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuBankAccountDetails {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'type': json['type'],
85
+ 'countryCode': json['countryCode'],
86
+ 'accountNumber': json['accountNumber'],
87
+ 'bsb': json['bsb'],
88
+ };
89
+ }
90
+
91
+ export function AuBankAccountDetailsToJSON(json: any): AuBankAccountDetails {
92
+ return AuBankAccountDetailsToJSONTyped(json, false);
93
+ }
94
+
95
+ export function AuBankAccountDetailsToJSONTyped(value?: AuBankAccountDetails | null, ignoreDiscriminator: boolean = false): any {
96
+ if (value == null) {
97
+ return value;
98
+ }
99
+
100
+ return {
101
+
102
+ 'type': value['type'],
103
+ 'countryCode': value['countryCode'],
104
+ 'accountNumber': value['accountNumber'],
105
+ 'bsb': value['bsb'],
106
+ };
107
+ }
108
+
@@ -59,6 +59,8 @@ export const CaBankAccountDetailsTypeEnum = {
59
59
  UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
60
60
  US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
61
61
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
62
+ NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
63
+ AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
62
64
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
63
65
  } as const;
64
66
  export type CaBankAccountDetailsTypeEnum = typeof CaBankAccountDetailsTypeEnum[keyof typeof CaBankAccountDetailsTypeEnum];
@@ -0,0 +1,99 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface NzBankAccountDetails
20
+ */
21
+ export interface NzBankAccountDetails {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof NzBankAccountDetails
26
+ */
27
+ type: NzBankAccountDetailsTypeEnum;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof NzBankAccountDetails
32
+ */
33
+ countryCode: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof NzBankAccountDetails
38
+ */
39
+ accountNumber: string;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const NzBankAccountDetailsTypeEnum = {
47
+ UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
48
+ US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
49
+ CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
50
+ NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
51
+ AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
52
+ SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
53
+ } as const;
54
+ export type NzBankAccountDetailsTypeEnum = typeof NzBankAccountDetailsTypeEnum[keyof typeof NzBankAccountDetailsTypeEnum];
55
+
56
+
57
+ /**
58
+ * Check if a given object implements the NzBankAccountDetails interface.
59
+ */
60
+ export function instanceOfNzBankAccountDetails(value: object): value is NzBankAccountDetails {
61
+ if (!('type' in value) || value['type'] === undefined) return false;
62
+ if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
63
+ if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function NzBankAccountDetailsFromJSON(json: any): NzBankAccountDetails {
68
+ return NzBankAccountDetailsFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function NzBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): NzBankAccountDetails {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'type': json['type'],
78
+ 'countryCode': json['countryCode'],
79
+ 'accountNumber': json['accountNumber'],
80
+ };
81
+ }
82
+
83
+ export function NzBankAccountDetailsToJSON(json: any): NzBankAccountDetails {
84
+ return NzBankAccountDetailsToJSONTyped(json, false);
85
+ }
86
+
87
+ export function NzBankAccountDetailsToJSONTyped(value?: NzBankAccountDetails | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'type': value['type'],
95
+ 'countryCode': value['countryCode'],
96
+ 'accountNumber': value['accountNumber'],
97
+ };
98
+ }
99
+
@@ -53,6 +53,8 @@ export const SepaBankAccountDetailsTypeEnum = {
53
53
  UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
54
54
  US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
55
55
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
56
+ NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
57
+ AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
56
58
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
57
59
  } as const;
58
60
  export type SepaBankAccountDetailsTypeEnum = typeof SepaBankAccountDetailsTypeEnum[keyof typeof SepaBankAccountDetailsTypeEnum];
@@ -213,7 +213,7 @@ export interface SubscriptionDto {
213
213
  * @type {SubscriptionLeaseToOwnConfigurationDto}
214
214
  * @memberof SubscriptionDto
215
215
  */
216
- leaseToOwn: SubscriptionLeaseToOwnConfigurationDto;
216
+ leaseToOwn: SubscriptionLeaseToOwnConfigurationDto | null;
217
217
  }
218
218
 
219
219
 
@@ -53,6 +53,8 @@ export const UkBankAccountDetailsTypeEnum = {
53
53
  UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
54
54
  US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
55
55
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
56
+ NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
57
+ AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
56
58
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
57
59
  } as const;
58
60
  export type UkBankAccountDetailsTypeEnum = typeof UkBankAccountDetailsTypeEnum[keyof typeof UkBankAccountDetailsTypeEnum];
@@ -53,6 +53,8 @@ export const UsBankAccountDetailsTypeEnum = {
53
53
  UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
54
54
  US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
55
55
  CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
56
+ NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
57
+ AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
56
58
  SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
57
59
  } as const;
58
60
  export type UsBankAccountDetailsTypeEnum = typeof UsBankAccountDetailsTypeEnum[keyof typeof UsBankAccountDetailsTypeEnum];
@@ -26,6 +26,7 @@ export * from './AirwallexBankAccountDetailsDtoLocalMethod';
26
26
  export * from './AirwallexBankAccountDetailsDtoLocalMethodCode';
27
27
  export * from './AirwallexDepositDto';
28
28
  export * from './AirwallexDepositDtoFee';
29
+ export * from './AuBankAccountDetails';
29
30
  export * from './BadRequestException';
30
31
  export * from './BatchDeleteBuyerLeadsInput';
31
32
  export * from './BatchImportPreviewDto';
@@ -143,6 +144,7 @@ export * from './MoneyDto';
143
144
  export * from './MoneyInput';
144
145
  export * from './MozMetrics';
145
146
  export * from './NotFoundException';
147
+ export * from './NzBankAccountDetails';
146
148
  export * from './ObjectId';
147
149
  export * from './OrderCompanyInfoDto';
148
150
  export * from './OrderCompanyTaxIdDto';