@randock/nameshift-api-client 0.0.137 → 0.0.139
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 +1 -1
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +5 -5
- package/dist/apis/AccountsApi.js +8 -8
- package/dist/models/DomainDto.d.ts +6 -0
- package/dist/models/DomainDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithDomainUrlDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithDomainUrlDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
- package/dist/models/UpdateAccountBillingInformationInput.d.ts +33 -0
- package/dist/models/UpdateAccountBillingInformationInput.js +52 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +14 -14
- package/src/models/DomainDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithDomainUrlDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +9 -0
- package/src/models/{CreateAccountPaymentProviderInput.ts → UpdateAccountBillingInformationInput.ts} +11 -11
- package/src/models/index.ts +1 -1
- package/dist/models/CreateAccountPaymentProviderInput.d.ts +0 -33
- package/dist/models/CreateAccountPaymentProviderInput.js +0 -52
package/.openapi-generator/FILES
CHANGED
|
@@ -47,7 +47,6 @@ src/models/ChartDataPoint.ts
|
|
|
47
47
|
src/models/CompanyInformationDto.ts
|
|
48
48
|
src/models/CompanyTaxIdDto.ts
|
|
49
49
|
src/models/ConflictException.ts
|
|
50
|
-
src/models/CreateAccountPaymentProviderInput.ts
|
|
51
50
|
src/models/CreateBuyerLeadMessageInput.ts
|
|
52
51
|
src/models/CreateLeadInput.ts
|
|
53
52
|
src/models/CreateLeadMessageInput.ts
|
|
@@ -138,6 +137,7 @@ src/models/SetNewPasswordInput.ts
|
|
|
138
137
|
src/models/StoreBuyerLocaleInput.ts
|
|
139
138
|
src/models/StoreUserLocaleInput.ts
|
|
140
139
|
src/models/ThrottlerException.ts
|
|
140
|
+
src/models/UpdateAccountBillingInformationInput.ts
|
|
141
141
|
src/models/UpdateDomainInput.ts
|
|
142
142
|
src/models/UpdateDomainTransferAuthCodeInput.ts
|
|
143
143
|
src/models/UpdateLeadInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.139
|
|
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.139 --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
|
+
ac3c87e6594ffbb6e0b2b61f245a10d1bc4439dbfe81b58293e6b2a6a59a3263260375441e93e6ae6c6c784107ba81f3
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountPaymentProviderSessionDto, AccountSettingsInput,
|
|
13
|
+
import type { AccountPaymentProviderSessionDto, AccountSettingsInput, IntersectionAccountDtoWithSettingsDtoWithNotificationsDto, UpdateAccountBillingInformationInput } from '../models/index';
|
|
14
14
|
export interface AccountsApiGetAccountPaymentProviderSessionRequest {
|
|
15
15
|
accountId: string;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface AccountsApiPostBillingInformationRequest {
|
|
18
18
|
accountId: string;
|
|
19
|
-
|
|
19
|
+
updateAccountBillingInformationInput: UpdateAccountBillingInformationInput;
|
|
20
20
|
}
|
|
21
21
|
export interface AccountsApiPostReadAccountNotificationRequest {
|
|
22
22
|
accountId: string;
|
|
@@ -49,11 +49,11 @@ export declare class AccountsApi extends runtime.BaseAPI {
|
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
postBillingInformationRaw(requestParameters: AccountsApiPostBillingInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
postBillingInformation(requestParameters: AccountsApiPostBillingInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
57
57
|
/**
|
|
58
58
|
*
|
|
59
59
|
*/
|
package/dist/apis/AccountsApi.js
CHANGED
|
@@ -181,17 +181,17 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
181
181
|
/**
|
|
182
182
|
*
|
|
183
183
|
*/
|
|
184
|
-
AccountsApi.prototype.
|
|
184
|
+
AccountsApi.prototype.postBillingInformationRaw = function (requestParameters, initOverrides) {
|
|
185
185
|
return __awaiter(this, void 0, void 0, function () {
|
|
186
186
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
187
187
|
return __generator(this, function (_a) {
|
|
188
188
|
switch (_a.label) {
|
|
189
189
|
case 0:
|
|
190
190
|
if (requestParameters['accountId'] == null) {
|
|
191
|
-
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling
|
|
191
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling postBillingInformation().');
|
|
192
192
|
}
|
|
193
|
-
if (requestParameters['
|
|
194
|
-
throw new runtime.RequiredError('
|
|
193
|
+
if (requestParameters['updateAccountBillingInformationInput'] == null) {
|
|
194
|
+
throw new runtime.RequiredError('updateAccountBillingInformationInput', 'Required parameter "updateAccountBillingInformationInput" was null or undefined when calling postBillingInformation().');
|
|
195
195
|
}
|
|
196
196
|
queryParameters = {};
|
|
197
197
|
headerParameters = {};
|
|
@@ -206,11 +206,11 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
206
206
|
}
|
|
207
207
|
_a.label = 2;
|
|
208
208
|
case 2: return [4 /*yield*/, this.request({
|
|
209
|
-
path: "/private/accounts/{accountId}/
|
|
209
|
+
path: "/private/accounts/{accountId}/billing-information".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
210
210
|
method: 'POST',
|
|
211
211
|
headers: headerParameters,
|
|
212
212
|
query: queryParameters,
|
|
213
|
-
body: (0, index_1.
|
|
213
|
+
body: (0, index_1.UpdateAccountBillingInformationInputToJSON)(requestParameters['updateAccountBillingInformationInput']),
|
|
214
214
|
}, initOverrides)];
|
|
215
215
|
case 3:
|
|
216
216
|
response = _a.sent();
|
|
@@ -222,11 +222,11 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
222
222
|
/**
|
|
223
223
|
*
|
|
224
224
|
*/
|
|
225
|
-
AccountsApi.prototype.
|
|
225
|
+
AccountsApi.prototype.postBillingInformation = function (requestParameters, initOverrides) {
|
|
226
226
|
return __awaiter(this, void 0, void 0, function () {
|
|
227
227
|
return __generator(this, function (_a) {
|
|
228
228
|
switch (_a.label) {
|
|
229
|
-
case 0: return [4 /*yield*/, this.
|
|
229
|
+
case 0: return [4 /*yield*/, this.postBillingInformationRaw(requestParameters, initOverrides)];
|
|
230
230
|
case 1:
|
|
231
231
|
_a.sent();
|
|
232
232
|
return [2 /*return*/];
|
|
@@ -95,6 +95,12 @@ export interface DomainDto {
|
|
|
95
95
|
* @memberof DomainDto
|
|
96
96
|
*/
|
|
97
97
|
deletedAt: Date | null;
|
|
98
|
+
/**
|
|
99
|
+
* The amount of pageviews for this domain, or null if none are tracked.
|
|
100
|
+
* @type {number}
|
|
101
|
+
* @memberof DomainDto
|
|
102
|
+
*/
|
|
103
|
+
pageviews: number | null;
|
|
98
104
|
}
|
|
99
105
|
/**
|
|
100
106
|
* Check if a given object implements the DomainDto interface.
|
package/dist/models/DomainDto.js
CHANGED
|
@@ -49,6 +49,8 @@ function instanceOfDomainDto(value) {
|
|
|
49
49
|
return false;
|
|
50
50
|
if (!('deletedAt' in value) || value['deletedAt'] === undefined)
|
|
51
51
|
return false;
|
|
52
|
+
if (!('pageviews' in value) || value['pageviews'] === undefined)
|
|
53
|
+
return false;
|
|
52
54
|
return true;
|
|
53
55
|
}
|
|
54
56
|
function DomainDtoFromJSON(json) {
|
|
@@ -72,6 +74,7 @@ function DomainDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
74
|
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
73
75
|
'createdAt': (new Date(json['createdAt'])),
|
|
74
76
|
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
77
|
+
'pageviews': json['pageviews'],
|
|
75
78
|
};
|
|
76
79
|
}
|
|
77
80
|
function DomainDtoToJSON(json) {
|
|
@@ -96,5 +99,6 @@ function DomainDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
96
99
|
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
97
100
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
98
101
|
'deletedAt': (value['deletedAt'] == null ? null : value['deletedAt'].toISOString()),
|
|
102
|
+
'pageviews': value['pageviews'],
|
|
99
103
|
};
|
|
100
104
|
}
|
|
@@ -96,6 +96,12 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
96
96
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
97
97
|
*/
|
|
98
98
|
deletedAt: Date | null;
|
|
99
|
+
/**
|
|
100
|
+
* The amount of pageviews for this domain, or null if none are tracked.
|
|
101
|
+
* @type {number}
|
|
102
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
103
|
+
*/
|
|
104
|
+
pageviews: number | null;
|
|
99
105
|
/**
|
|
100
106
|
*
|
|
101
107
|
* @type {AccountDto}
|
|
@@ -50,6 +50,8 @@ function instanceOfIntersectionDomainDtoWithAccountDto(value) {
|
|
|
50
50
|
return false;
|
|
51
51
|
if (!('deletedAt' in value) || value['deletedAt'] === undefined)
|
|
52
52
|
return false;
|
|
53
|
+
if (!('pageviews' in value) || value['pageviews'] === undefined)
|
|
54
|
+
return false;
|
|
53
55
|
if (!('account' in value) || value['account'] === undefined)
|
|
54
56
|
return false;
|
|
55
57
|
return true;
|
|
@@ -75,6 +77,7 @@ function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscrimina
|
|
|
75
77
|
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
76
78
|
'createdAt': (new Date(json['createdAt'])),
|
|
77
79
|
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
80
|
+
'pageviews': json['pageviews'],
|
|
78
81
|
'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
|
|
79
82
|
};
|
|
80
83
|
}
|
|
@@ -100,6 +103,7 @@ function IntersectionDomainDtoWithAccountDtoToJSONTyped(value, ignoreDiscriminat
|
|
|
100
103
|
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
101
104
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
102
105
|
'deletedAt': (value['deletedAt'] == null ? null : value['deletedAt'].toISOString()),
|
|
106
|
+
'pageviews': value['pageviews'],
|
|
103
107
|
'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
|
|
104
108
|
};
|
|
105
109
|
}
|
|
@@ -101,6 +101,12 @@ export interface IntersectionDomainDtoWithDomainUrlDto {
|
|
|
101
101
|
* @memberof IntersectionDomainDtoWithDomainUrlDto
|
|
102
102
|
*/
|
|
103
103
|
deletedAt: Date | null;
|
|
104
|
+
/**
|
|
105
|
+
* The amount of pageviews for this domain, or null if none are tracked.
|
|
106
|
+
* @type {number}
|
|
107
|
+
* @memberof IntersectionDomainDtoWithDomainUrlDto
|
|
108
|
+
*/
|
|
109
|
+
pageviews: number | null;
|
|
104
110
|
}
|
|
105
111
|
/**
|
|
106
112
|
* Check if a given object implements the IntersectionDomainDtoWithDomainUrlDto interface.
|
|
@@ -51,6 +51,8 @@ function instanceOfIntersectionDomainDtoWithDomainUrlDto(value) {
|
|
|
51
51
|
return false;
|
|
52
52
|
if (!('deletedAt' in value) || value['deletedAt'] === undefined)
|
|
53
53
|
return false;
|
|
54
|
+
if (!('pageviews' in value) || value['pageviews'] === undefined)
|
|
55
|
+
return false;
|
|
54
56
|
return true;
|
|
55
57
|
}
|
|
56
58
|
function IntersectionDomainDtoWithDomainUrlDtoFromJSON(json) {
|
|
@@ -75,6 +77,7 @@ function IntersectionDomainDtoWithDomainUrlDtoFromJSONTyped(json, ignoreDiscrimi
|
|
|
75
77
|
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
76
78
|
'createdAt': (new Date(json['createdAt'])),
|
|
77
79
|
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
80
|
+
'pageviews': json['pageviews'],
|
|
78
81
|
};
|
|
79
82
|
}
|
|
80
83
|
function IntersectionDomainDtoWithDomainUrlDtoToJSON(json) {
|
|
@@ -100,5 +103,6 @@ function IntersectionDomainDtoWithDomainUrlDtoToJSONTyped(value, ignoreDiscrimin
|
|
|
100
103
|
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
101
104
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
102
105
|
'deletedAt': (value['deletedAt'] == null ? null : value['deletedAt'].toISOString()),
|
|
106
|
+
'pageviews': value['pageviews'],
|
|
103
107
|
};
|
|
104
108
|
}
|
|
@@ -96,6 +96,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
96
96
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
97
97
|
*/
|
|
98
98
|
deletedAt: Date | null;
|
|
99
|
+
/**
|
|
100
|
+
* The amount of pageviews for this domain, or null if none are tracked.
|
|
101
|
+
* @type {number}
|
|
102
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
103
|
+
*/
|
|
104
|
+
pageviews: number | null;
|
|
99
105
|
/**
|
|
100
106
|
*
|
|
101
107
|
* @type {AccountDto}
|
|
@@ -50,6 +50,8 @@ function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
|
|
|
50
50
|
return false;
|
|
51
51
|
if (!('deletedAt' in value) || value['deletedAt'] === undefined)
|
|
52
52
|
return false;
|
|
53
|
+
if (!('pageviews' in value) || value['pageviews'] === undefined)
|
|
54
|
+
return false;
|
|
53
55
|
if (!('hijacker' in value) || value['hijacker'] === undefined)
|
|
54
56
|
return false;
|
|
55
57
|
if (!('account' in value) || value['account'] === undefined)
|
|
@@ -77,6 +79,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
|
|
|
77
79
|
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
78
80
|
'createdAt': (new Date(json['createdAt'])),
|
|
79
81
|
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
82
|
+
'pageviews': json['pageviews'],
|
|
80
83
|
'hijacker': (0, AccountDto_1.AccountDtoFromJSON)(json['hijacker']),
|
|
81
84
|
'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
|
|
82
85
|
};
|
|
@@ -103,6 +106,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(value, ig
|
|
|
103
106
|
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
104
107
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
105
108
|
'deletedAt': (value['deletedAt'] == null ? null : value['deletedAt'].toISOString()),
|
|
109
|
+
'pageviews': value['pageviews'],
|
|
106
110
|
'hijacker': (0, AccountDto_1.AccountDtoToJSON)(value['hijacker']),
|
|
107
111
|
'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
|
|
108
112
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { BillingInformationDto } from './BillingInformationDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateAccountBillingInformationInput
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateAccountBillingInformationInput {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {BillingInformationDto}
|
|
22
|
+
* @memberof UpdateAccountBillingInformationInput
|
|
23
|
+
*/
|
|
24
|
+
billingInformation: BillingInformationDto;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the UpdateAccountBillingInformationInput interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfUpdateAccountBillingInformationInput(value: object): value is UpdateAccountBillingInformationInput;
|
|
30
|
+
export declare function UpdateAccountBillingInformationInputFromJSON(json: any): UpdateAccountBillingInformationInput;
|
|
31
|
+
export declare function UpdateAccountBillingInformationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccountBillingInformationInput;
|
|
32
|
+
export declare function UpdateAccountBillingInformationInputToJSON(json: any): UpdateAccountBillingInformationInput;
|
|
33
|
+
export declare function UpdateAccountBillingInformationInputToJSONTyped(value?: UpdateAccountBillingInformationInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfUpdateAccountBillingInformationInput = instanceOfUpdateAccountBillingInformationInput;
|
|
17
|
+
exports.UpdateAccountBillingInformationInputFromJSON = UpdateAccountBillingInformationInputFromJSON;
|
|
18
|
+
exports.UpdateAccountBillingInformationInputFromJSONTyped = UpdateAccountBillingInformationInputFromJSONTyped;
|
|
19
|
+
exports.UpdateAccountBillingInformationInputToJSON = UpdateAccountBillingInformationInputToJSON;
|
|
20
|
+
exports.UpdateAccountBillingInformationInputToJSONTyped = UpdateAccountBillingInformationInputToJSONTyped;
|
|
21
|
+
var BillingInformationDto_1 = require("./BillingInformationDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UpdateAccountBillingInformationInput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUpdateAccountBillingInformationInput(value) {
|
|
26
|
+
if (!('billingInformation' in value) || value['billingInformation'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function UpdateAccountBillingInformationInputFromJSON(json) {
|
|
31
|
+
return UpdateAccountBillingInformationInputFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function UpdateAccountBillingInformationInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoFromJSON)(json['billingInformation']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function UpdateAccountBillingInformationInputToJSON(json) {
|
|
42
|
+
return UpdateAccountBillingInformationInputToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function UpdateAccountBillingInformationInputToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoToJSON)(value['billingInformation']),
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -26,7 +26,6 @@ export * from './ChartDataPoint';
|
|
|
26
26
|
export * from './CompanyInformationDto';
|
|
27
27
|
export * from './CompanyTaxIdDto';
|
|
28
28
|
export * from './ConflictException';
|
|
29
|
-
export * from './CreateAccountPaymentProviderInput';
|
|
30
29
|
export * from './CreateBuyerLeadMessageInput';
|
|
31
30
|
export * from './CreateLeadInput';
|
|
32
31
|
export * from './CreateLeadMessageInput';
|
|
@@ -117,6 +116,7 @@ export * from './SetNewPasswordInput';
|
|
|
117
116
|
export * from './StoreBuyerLocaleInput';
|
|
118
117
|
export * from './StoreUserLocaleInput';
|
|
119
118
|
export * from './ThrottlerException';
|
|
119
|
+
export * from './UpdateAccountBillingInformationInput';
|
|
120
120
|
export * from './UpdateDomainInput';
|
|
121
121
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
122
122
|
export * from './UpdateLeadInput';
|
package/dist/models/index.js
CHANGED
|
@@ -44,7 +44,6 @@ __exportStar(require("./ChartDataPoint"), exports);
|
|
|
44
44
|
__exportStar(require("./CompanyInformationDto"), exports);
|
|
45
45
|
__exportStar(require("./CompanyTaxIdDto"), exports);
|
|
46
46
|
__exportStar(require("./ConflictException"), exports);
|
|
47
|
-
__exportStar(require("./CreateAccountPaymentProviderInput"), exports);
|
|
48
47
|
__exportStar(require("./CreateBuyerLeadMessageInput"), exports);
|
|
49
48
|
__exportStar(require("./CreateLeadInput"), exports);
|
|
50
49
|
__exportStar(require("./CreateLeadMessageInput"), exports);
|
|
@@ -135,6 +134,7 @@ __exportStar(require("./SetNewPasswordInput"), exports);
|
|
|
135
134
|
__exportStar(require("./StoreBuyerLocaleInput"), exports);
|
|
136
135
|
__exportStar(require("./StoreUserLocaleInput"), exports);
|
|
137
136
|
__exportStar(require("./ThrottlerException"), exports);
|
|
137
|
+
__exportStar(require("./UpdateAccountBillingInformationInput"), exports);
|
|
138
138
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
139
139
|
__exportStar(require("./UpdateDomainTransferAuthCodeInput"), exports);
|
|
140
140
|
__exportStar(require("./UpdateLeadInput"), exports);
|
package/package.json
CHANGED
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -18,10 +18,10 @@ import type {
|
|
|
18
18
|
AccountPaymentProviderSessionDto,
|
|
19
19
|
AccountSettingsInput,
|
|
20
20
|
BadRequestException,
|
|
21
|
-
CreateAccountPaymentProviderInput,
|
|
22
21
|
IntersectionAccountDtoWithSettingsDtoWithNotificationsDto,
|
|
23
22
|
NotFoundException,
|
|
24
23
|
ThrottlerException,
|
|
24
|
+
UpdateAccountBillingInformationInput,
|
|
25
25
|
ValidationException,
|
|
26
26
|
} from '../models/index';
|
|
27
27
|
import {
|
|
@@ -31,14 +31,14 @@ import {
|
|
|
31
31
|
AccountSettingsInputToJSON,
|
|
32
32
|
BadRequestExceptionFromJSON,
|
|
33
33
|
BadRequestExceptionToJSON,
|
|
34
|
-
CreateAccountPaymentProviderInputFromJSON,
|
|
35
|
-
CreateAccountPaymentProviderInputToJSON,
|
|
36
34
|
IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoFromJSON,
|
|
37
35
|
IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoToJSON,
|
|
38
36
|
NotFoundExceptionFromJSON,
|
|
39
37
|
NotFoundExceptionToJSON,
|
|
40
38
|
ThrottlerExceptionFromJSON,
|
|
41
39
|
ThrottlerExceptionToJSON,
|
|
40
|
+
UpdateAccountBillingInformationInputFromJSON,
|
|
41
|
+
UpdateAccountBillingInformationInputToJSON,
|
|
42
42
|
ValidationExceptionFromJSON,
|
|
43
43
|
ValidationExceptionToJSON,
|
|
44
44
|
} from '../models/index';
|
|
@@ -47,9 +47,9 @@ export interface AccountsApiGetAccountPaymentProviderSessionRequest {
|
|
|
47
47
|
accountId: string;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export interface
|
|
50
|
+
export interface AccountsApiPostBillingInformationRequest {
|
|
51
51
|
accountId: string;
|
|
52
|
-
|
|
52
|
+
updateAccountBillingInformationInput: UpdateAccountBillingInformationInput;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export interface AccountsApiPostReadAccountNotificationRequest {
|
|
@@ -145,18 +145,18 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
145
145
|
/**
|
|
146
146
|
*
|
|
147
147
|
*/
|
|
148
|
-
async
|
|
148
|
+
async postBillingInformationRaw(requestParameters: AccountsApiPostBillingInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
149
149
|
if (requestParameters['accountId'] == null) {
|
|
150
150
|
throw new runtime.RequiredError(
|
|
151
151
|
'accountId',
|
|
152
|
-
'Required parameter "accountId" was null or undefined when calling
|
|
152
|
+
'Required parameter "accountId" was null or undefined when calling postBillingInformation().'
|
|
153
153
|
);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
if (requestParameters['
|
|
156
|
+
if (requestParameters['updateAccountBillingInformationInput'] == null) {
|
|
157
157
|
throw new runtime.RequiredError(
|
|
158
|
-
'
|
|
159
|
-
'Required parameter "
|
|
158
|
+
'updateAccountBillingInformationInput',
|
|
159
|
+
'Required parameter "updateAccountBillingInformationInput" was null or undefined when calling postBillingInformation().'
|
|
160
160
|
);
|
|
161
161
|
}
|
|
162
162
|
|
|
@@ -175,11 +175,11 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
const response = await this.request({
|
|
178
|
-
path: `/private/accounts/{accountId}/
|
|
178
|
+
path: `/private/accounts/{accountId}/billing-information`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
179
179
|
method: 'POST',
|
|
180
180
|
headers: headerParameters,
|
|
181
181
|
query: queryParameters,
|
|
182
|
-
body:
|
|
182
|
+
body: UpdateAccountBillingInformationInputToJSON(requestParameters['updateAccountBillingInformationInput']),
|
|
183
183
|
}, initOverrides);
|
|
184
184
|
|
|
185
185
|
return new runtime.VoidApiResponse(response);
|
|
@@ -188,8 +188,8 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
188
188
|
/**
|
|
189
189
|
*
|
|
190
190
|
*/
|
|
191
|
-
async
|
|
192
|
-
await this.
|
|
191
|
+
async postBillingInformation(requestParameters: AccountsApiPostBillingInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
192
|
+
await this.postBillingInformationRaw(requestParameters, initOverrides);
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
/**
|
package/src/models/DomainDto.ts
CHANGED
|
@@ -106,6 +106,12 @@ export interface DomainDto {
|
|
|
106
106
|
* @memberof DomainDto
|
|
107
107
|
*/
|
|
108
108
|
deletedAt: Date | null;
|
|
109
|
+
/**
|
|
110
|
+
* The amount of pageviews for this domain, or null if none are tracked.
|
|
111
|
+
* @type {number}
|
|
112
|
+
* @memberof DomainDto
|
|
113
|
+
*/
|
|
114
|
+
pageviews: number | null;
|
|
109
115
|
}
|
|
110
116
|
|
|
111
117
|
/**
|
|
@@ -125,6 +131,7 @@ export function instanceOfDomainDto(value: object): value is DomainDto {
|
|
|
125
131
|
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
126
132
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
127
133
|
if (!('deletedAt' in value) || value['deletedAt'] === undefined) return false;
|
|
134
|
+
if (!('pageviews' in value) || value['pageviews'] === undefined) return false;
|
|
128
135
|
return true;
|
|
129
136
|
}
|
|
130
137
|
|
|
@@ -151,6 +158,7 @@ export function DomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
151
158
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
152
159
|
'createdAt': (new Date(json['createdAt'])),
|
|
153
160
|
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
161
|
+
'pageviews': json['pageviews'],
|
|
154
162
|
};
|
|
155
163
|
}
|
|
156
164
|
|
|
@@ -178,6 +186,7 @@ export function DomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
178
186
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
179
187
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
180
188
|
'deletedAt': (value['deletedAt'] == null ? null : (value['deletedAt'] as any).toISOString()),
|
|
189
|
+
'pageviews': value['pageviews'],
|
|
181
190
|
};
|
|
182
191
|
}
|
|
183
192
|
|
|
@@ -113,6 +113,12 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
113
113
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
114
114
|
*/
|
|
115
115
|
deletedAt: Date | null;
|
|
116
|
+
/**
|
|
117
|
+
* The amount of pageviews for this domain, or null if none are tracked.
|
|
118
|
+
* @type {number}
|
|
119
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
120
|
+
*/
|
|
121
|
+
pageviews: number | null;
|
|
116
122
|
/**
|
|
117
123
|
*
|
|
118
124
|
* @type {AccountDto}
|
|
@@ -138,6 +144,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): va
|
|
|
138
144
|
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
139
145
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
140
146
|
if (!('deletedAt' in value) || value['deletedAt'] === undefined) return false;
|
|
147
|
+
if (!('pageviews' in value) || value['pageviews'] === undefined) return false;
|
|
141
148
|
if (!('account' in value) || value['account'] === undefined) return false;
|
|
142
149
|
return true;
|
|
143
150
|
}
|
|
@@ -165,6 +172,7 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
|
|
|
165
172
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
166
173
|
'createdAt': (new Date(json['createdAt'])),
|
|
167
174
|
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
175
|
+
'pageviews': json['pageviews'],
|
|
168
176
|
'account': AccountDtoFromJSON(json['account']),
|
|
169
177
|
};
|
|
170
178
|
}
|
|
@@ -193,6 +201,7 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
|
|
|
193
201
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
194
202
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
195
203
|
'deletedAt': (value['deletedAt'] == null ? null : (value['deletedAt'] as any).toISOString()),
|
|
204
|
+
'pageviews': value['pageviews'],
|
|
196
205
|
'account': AccountDtoToJSON(value['account']),
|
|
197
206
|
};
|
|
198
207
|
}
|
|
@@ -112,6 +112,12 @@ export interface IntersectionDomainDtoWithDomainUrlDto {
|
|
|
112
112
|
* @memberof IntersectionDomainDtoWithDomainUrlDto
|
|
113
113
|
*/
|
|
114
114
|
deletedAt: Date | null;
|
|
115
|
+
/**
|
|
116
|
+
* The amount of pageviews for this domain, or null if none are tracked.
|
|
117
|
+
* @type {number}
|
|
118
|
+
* @memberof IntersectionDomainDtoWithDomainUrlDto
|
|
119
|
+
*/
|
|
120
|
+
pageviews: number | null;
|
|
115
121
|
}
|
|
116
122
|
|
|
117
123
|
/**
|
|
@@ -132,6 +138,7 @@ export function instanceOfIntersectionDomainDtoWithDomainUrlDto(value: object):
|
|
|
132
138
|
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
133
139
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
134
140
|
if (!('deletedAt' in value) || value['deletedAt'] === undefined) return false;
|
|
141
|
+
if (!('pageviews' in value) || value['pageviews'] === undefined) return false;
|
|
135
142
|
return true;
|
|
136
143
|
}
|
|
137
144
|
|
|
@@ -159,6 +166,7 @@ export function IntersectionDomainDtoWithDomainUrlDtoFromJSONTyped(json: any, ig
|
|
|
159
166
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
160
167
|
'createdAt': (new Date(json['createdAt'])),
|
|
161
168
|
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
169
|
+
'pageviews': json['pageviews'],
|
|
162
170
|
};
|
|
163
171
|
}
|
|
164
172
|
|
|
@@ -187,6 +195,7 @@ export function IntersectionDomainDtoWithDomainUrlDtoFromJSONTyped(json: any, ig
|
|
|
187
195
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
188
196
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
189
197
|
'deletedAt': (value['deletedAt'] == null ? null : (value['deletedAt'] as any).toISOString()),
|
|
198
|
+
'pageviews': value['pageviews'],
|
|
190
199
|
};
|
|
191
200
|
}
|
|
192
201
|
|
|
@@ -113,6 +113,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
113
113
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
114
114
|
*/
|
|
115
115
|
deletedAt: Date | null;
|
|
116
|
+
/**
|
|
117
|
+
* The amount of pageviews for this domain, or null if none are tracked.
|
|
118
|
+
* @type {number}
|
|
119
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
120
|
+
*/
|
|
121
|
+
pageviews: number | null;
|
|
116
122
|
/**
|
|
117
123
|
*
|
|
118
124
|
* @type {AccountDto}
|
|
@@ -144,6 +150,7 @@ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(val
|
|
|
144
150
|
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
145
151
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
146
152
|
if (!('deletedAt' in value) || value['deletedAt'] === undefined) return false;
|
|
153
|
+
if (!('pageviews' in value) || value['pageviews'] === undefined) return false;
|
|
147
154
|
if (!('hijacker' in value) || value['hijacker'] === undefined) return false;
|
|
148
155
|
if (!('account' in value) || value['account'] === undefined) return false;
|
|
149
156
|
return true;
|
|
@@ -172,6 +179,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
|
|
|
172
179
|
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
173
180
|
'createdAt': (new Date(json['createdAt'])),
|
|
174
181
|
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
182
|
+
'pageviews': json['pageviews'],
|
|
175
183
|
'hijacker': AccountDtoFromJSON(json['hijacker']),
|
|
176
184
|
'account': AccountDtoFromJSON(json['account']),
|
|
177
185
|
};
|
|
@@ -201,6 +209,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
|
|
|
201
209
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
202
210
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
203
211
|
'deletedAt': (value['deletedAt'] == null ? null : (value['deletedAt'] as any).toISOString()),
|
|
212
|
+
'pageviews': value['pageviews'],
|
|
204
213
|
'hijacker': AccountDtoToJSON(value['hijacker']),
|
|
205
214
|
'account': AccountDtoToJSON(value['account']),
|
|
206
215
|
};
|
package/src/models/{CreateAccountPaymentProviderInput.ts → UpdateAccountBillingInformationInput.ts}
RENAMED
|
@@ -24,30 +24,30 @@ import {
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @export
|
|
27
|
-
* @interface
|
|
27
|
+
* @interface UpdateAccountBillingInformationInput
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface UpdateAccountBillingInformationInput {
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {BillingInformationDto}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof UpdateAccountBillingInformationInput
|
|
34
34
|
*/
|
|
35
35
|
billingInformation: BillingInformationDto;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* Check if a given object implements the
|
|
39
|
+
* Check if a given object implements the UpdateAccountBillingInformationInput interface.
|
|
40
40
|
*/
|
|
41
|
-
export function
|
|
41
|
+
export function instanceOfUpdateAccountBillingInformationInput(value: object): value is UpdateAccountBillingInformationInput {
|
|
42
42
|
if (!('billingInformation' in value) || value['billingInformation'] === undefined) return false;
|
|
43
43
|
return true;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
export function
|
|
47
|
-
return
|
|
46
|
+
export function UpdateAccountBillingInformationInputFromJSON(json: any): UpdateAccountBillingInformationInput {
|
|
47
|
+
return UpdateAccountBillingInformationInputFromJSONTyped(json, false);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export function
|
|
50
|
+
export function UpdateAccountBillingInformationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccountBillingInformationInput {
|
|
51
51
|
if (json == null) {
|
|
52
52
|
return json;
|
|
53
53
|
}
|
|
@@ -57,11 +57,11 @@ export function CreateAccountPaymentProviderInputFromJSONTyped(json: any, ignore
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export function
|
|
61
|
-
return
|
|
60
|
+
export function UpdateAccountBillingInformationInputToJSON(json: any): UpdateAccountBillingInformationInput {
|
|
61
|
+
return UpdateAccountBillingInformationInputToJSONTyped(json, false);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export function
|
|
64
|
+
export function UpdateAccountBillingInformationInputToJSONTyped(value?: UpdateAccountBillingInformationInput | null, ignoreDiscriminator: boolean = false): any {
|
|
65
65
|
if (value == null) {
|
|
66
66
|
return value;
|
|
67
67
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -28,7 +28,6 @@ export * from './ChartDataPoint';
|
|
|
28
28
|
export * from './CompanyInformationDto';
|
|
29
29
|
export * from './CompanyTaxIdDto';
|
|
30
30
|
export * from './ConflictException';
|
|
31
|
-
export * from './CreateAccountPaymentProviderInput';
|
|
32
31
|
export * from './CreateBuyerLeadMessageInput';
|
|
33
32
|
export * from './CreateLeadInput';
|
|
34
33
|
export * from './CreateLeadMessageInput';
|
|
@@ -119,6 +118,7 @@ export * from './SetNewPasswordInput';
|
|
|
119
118
|
export * from './StoreBuyerLocaleInput';
|
|
120
119
|
export * from './StoreUserLocaleInput';
|
|
121
120
|
export * from './ThrottlerException';
|
|
121
|
+
export * from './UpdateAccountBillingInformationInput';
|
|
122
122
|
export * from './UpdateDomainInput';
|
|
123
123
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
124
124
|
export * from './UpdateLeadInput';
|
|
@@ -1,33 +0,0 @@
|
|
|
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 { BillingInformationDto } from './BillingInformationDto';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CreateAccountPaymentProviderInput
|
|
17
|
-
*/
|
|
18
|
-
export interface CreateAccountPaymentProviderInput {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {BillingInformationDto}
|
|
22
|
-
* @memberof CreateAccountPaymentProviderInput
|
|
23
|
-
*/
|
|
24
|
-
billingInformation: BillingInformationDto;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the CreateAccountPaymentProviderInput interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfCreateAccountPaymentProviderInput(value: object): value is CreateAccountPaymentProviderInput;
|
|
30
|
-
export declare function CreateAccountPaymentProviderInputFromJSON(json: any): CreateAccountPaymentProviderInput;
|
|
31
|
-
export declare function CreateAccountPaymentProviderInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccountPaymentProviderInput;
|
|
32
|
-
export declare function CreateAccountPaymentProviderInputToJSON(json: any): CreateAccountPaymentProviderInput;
|
|
33
|
-
export declare function CreateAccountPaymentProviderInputToJSONTyped(value?: CreateAccountPaymentProviderInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,52 +0,0 @@
|
|
|
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.instanceOfCreateAccountPaymentProviderInput = instanceOfCreateAccountPaymentProviderInput;
|
|
17
|
-
exports.CreateAccountPaymentProviderInputFromJSON = CreateAccountPaymentProviderInputFromJSON;
|
|
18
|
-
exports.CreateAccountPaymentProviderInputFromJSONTyped = CreateAccountPaymentProviderInputFromJSONTyped;
|
|
19
|
-
exports.CreateAccountPaymentProviderInputToJSON = CreateAccountPaymentProviderInputToJSON;
|
|
20
|
-
exports.CreateAccountPaymentProviderInputToJSONTyped = CreateAccountPaymentProviderInputToJSONTyped;
|
|
21
|
-
var BillingInformationDto_1 = require("./BillingInformationDto");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the CreateAccountPaymentProviderInput interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfCreateAccountPaymentProviderInput(value) {
|
|
26
|
-
if (!('billingInformation' in value) || value['billingInformation'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
function CreateAccountPaymentProviderInputFromJSON(json) {
|
|
31
|
-
return CreateAccountPaymentProviderInputFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
function CreateAccountPaymentProviderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (json == null) {
|
|
35
|
-
return json;
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoFromJSON)(json['billingInformation']),
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function CreateAccountPaymentProviderInputToJSON(json) {
|
|
42
|
-
return CreateAccountPaymentProviderInputToJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
function CreateAccountPaymentProviderInputToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
-
if (value == null) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoToJSON)(value['billingInformation']),
|
|
51
|
-
};
|
|
52
|
-
}
|