@randock/nameshift-api-client 0.0.217 → 0.0.219
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 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +13 -1
- package/dist/apis/BuyersApi.js +56 -0
- package/dist/apis/SubscriptionsPublicApi.d.ts +28 -0
- package/dist/apis/SubscriptionsPublicApi.js +96 -0
- package/dist/models/BuyerDomainTransferListItemDto.d.ts +6 -0
- package/dist/models/BuyerDomainTransferListItemDto.js +4 -0
- package/dist/models/BuyerSubscriptionListItemDto.d.ts +6 -0
- package/dist/models/BuyerSubscriptionListItemDto.js +4 -0
- package/dist/models/ConcreteDomainTransferTaskData.d.ts +1 -0
- package/dist/models/ConcreteDomainTransferTaskData.js +2 -1
- package/dist/models/SubscriptionDto.d.ts +12 -0
- package/dist/models/SubscriptionDto.js +8 -0
- package/dist/models/UpdateBuyerDomainTransferIpsTagInputDto.d.ts +32 -0
- package/dist/models/UpdateBuyerDomainTransferIpsTagInputDto.js +51 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +58 -0
- package/src/apis/SubscriptionsPublicApi.ts +96 -0
- package/src/models/BuyerDomainTransferListItemDto.ts +9 -0
- package/src/models/BuyerSubscriptionListItemDto.ts +9 -0
- package/src/models/ConcreteDomainTransferTaskData.ts +2 -1
- package/src/models/SubscriptionDto.ts +18 -0
- package/src/models/UpdateBuyerDomainTransferIpsTagInputDto.ts +66 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -214,6 +214,7 @@ src/models/ThrottlerException.ts
|
|
|
214
214
|
src/models/UkBankAccountDetails.ts
|
|
215
215
|
src/models/UpdateAccountBillingInformationInput.ts
|
|
216
216
|
src/models/UpdateBankAccountInput.ts
|
|
217
|
+
src/models/UpdateBuyerDomainTransferIpsTagInputDto.ts
|
|
217
218
|
src/models/UpdateDomainInput.ts
|
|
218
219
|
src/models/UpdateDomainTransferAuthCodeInput.ts
|
|
219
220
|
src/models/UpdateLeadInput.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.13.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.219
|
|
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.219 --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
|
+
31666c1aec07d63779b37dac34328514548f54081c12d451724618608ac445453894721d2eb0fed7e5c55d82e34e3a22
|
package/dist/apis/BuyersApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BuyerDomainTransferAuthCodeDto, BuyerSessionDto, CreateBuyerLeadMessageInput, GetAllInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
|
|
13
|
+
import type { BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BuyerDomainTransferAuthCodeDto, BuyerSessionDto, CreateBuyerLeadMessageInput, GetAllInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateBuyerDomainTransferIpsTagInputDto } from '../models/index';
|
|
14
14
|
export interface BuyersApiAcceptBuyerLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
@@ -81,6 +81,10 @@ export interface BuyersApiRevokeScheduledSubscriptionCancellationRequest {
|
|
|
81
81
|
export interface BuyersApiSetLocaleRequest {
|
|
82
82
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
83
83
|
}
|
|
84
|
+
export interface BuyersApiUpdateDomainTransferIpsTagRequest {
|
|
85
|
+
transferId: string;
|
|
86
|
+
updateBuyerDomainTransferIpsTagInputDto: UpdateBuyerDomainTransferIpsTagInputDto;
|
|
87
|
+
}
|
|
84
88
|
export interface BuyersApiVerifyBuyerLeadRequest {
|
|
85
89
|
leadId: string;
|
|
86
90
|
}
|
|
@@ -240,6 +244,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
240
244
|
*
|
|
241
245
|
*/
|
|
242
246
|
setLocale(requestParameters: BuyersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
*/
|
|
250
|
+
updateDomainTransferIpsTagRaw(requestParameters: BuyersApiUpdateDomainTransferIpsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
251
|
+
/**
|
|
252
|
+
*
|
|
253
|
+
*/
|
|
254
|
+
updateDomainTransferIpsTag(requestParameters: BuyersApiUpdateDomainTransferIpsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
243
255
|
/**
|
|
244
256
|
*
|
|
245
257
|
*/
|
package/dist/apis/BuyersApi.js
CHANGED
|
@@ -1127,6 +1127,62 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
1127
1127
|
});
|
|
1128
1128
|
});
|
|
1129
1129
|
};
|
|
1130
|
+
/**
|
|
1131
|
+
*
|
|
1132
|
+
*/
|
|
1133
|
+
BuyersApi.prototype.updateDomainTransferIpsTagRaw = function (requestParameters, initOverrides) {
|
|
1134
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1135
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1136
|
+
return __generator(this, function (_a) {
|
|
1137
|
+
switch (_a.label) {
|
|
1138
|
+
case 0:
|
|
1139
|
+
if (requestParameters['transferId'] == null) {
|
|
1140
|
+
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling updateDomainTransferIpsTag().');
|
|
1141
|
+
}
|
|
1142
|
+
if (requestParameters['updateBuyerDomainTransferIpsTagInputDto'] == null) {
|
|
1143
|
+
throw new runtime.RequiredError('updateBuyerDomainTransferIpsTagInputDto', 'Required parameter "updateBuyerDomainTransferIpsTagInputDto" was null or undefined when calling updateDomainTransferIpsTag().');
|
|
1144
|
+
}
|
|
1145
|
+
queryParameters = {};
|
|
1146
|
+
headerParameters = {};
|
|
1147
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1148
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1149
|
+
token = this.configuration.accessToken;
|
|
1150
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1151
|
+
case 1:
|
|
1152
|
+
tokenString = _a.sent();
|
|
1153
|
+
if (tokenString) {
|
|
1154
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1155
|
+
}
|
|
1156
|
+
_a.label = 2;
|
|
1157
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1158
|
+
path: "/buyers/private/transfers/{transferId}/ips-tag".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
|
|
1159
|
+
method: 'PATCH',
|
|
1160
|
+
headers: headerParameters,
|
|
1161
|
+
query: queryParameters,
|
|
1162
|
+
body: (0, index_1.UpdateBuyerDomainTransferIpsTagInputDtoToJSON)(requestParameters['updateBuyerDomainTransferIpsTagInputDto']),
|
|
1163
|
+
}, initOverrides)];
|
|
1164
|
+
case 3:
|
|
1165
|
+
response = _a.sent();
|
|
1166
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1167
|
+
}
|
|
1168
|
+
});
|
|
1169
|
+
});
|
|
1170
|
+
};
|
|
1171
|
+
/**
|
|
1172
|
+
*
|
|
1173
|
+
*/
|
|
1174
|
+
BuyersApi.prototype.updateDomainTransferIpsTag = function (requestParameters, initOverrides) {
|
|
1175
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1176
|
+
return __generator(this, function (_a) {
|
|
1177
|
+
switch (_a.label) {
|
|
1178
|
+
case 0: return [4 /*yield*/, this.updateDomainTransferIpsTagRaw(requestParameters, initOverrides)];
|
|
1179
|
+
case 1:
|
|
1180
|
+
_a.sent();
|
|
1181
|
+
return [2 /*return*/];
|
|
1182
|
+
}
|
|
1183
|
+
});
|
|
1184
|
+
});
|
|
1185
|
+
};
|
|
1130
1186
|
/**
|
|
1131
1187
|
*
|
|
1132
1188
|
*/
|
|
@@ -14,9 +14,17 @@ import type { CreateSubscriptionInput, ObjectId, SubscriptionDto, UpdateSubscrip
|
|
|
14
14
|
export interface SubscriptionsPublicApiCreateSubscriptionRequest {
|
|
15
15
|
createSubscriptionInput: CreateSubscriptionInput;
|
|
16
16
|
}
|
|
17
|
+
export interface SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest {
|
|
18
|
+
subscriptionId: string;
|
|
19
|
+
invoiceId: string;
|
|
20
|
+
}
|
|
17
21
|
export interface SubscriptionsPublicApiGetSubscriptionRequest {
|
|
18
22
|
subscriptionId: string;
|
|
19
23
|
}
|
|
24
|
+
export interface SubscriptionsPublicApiGetSubscriptionByInvoiceRequest {
|
|
25
|
+
subscriptionId: string;
|
|
26
|
+
invoiceId: string;
|
|
27
|
+
}
|
|
20
28
|
export interface SubscriptionsPublicApiUpdateSubscriptionRequest {
|
|
21
29
|
subscriptionId: string;
|
|
22
30
|
updateSubscriptionInput: UpdateSubscriptionInput;
|
|
@@ -33,6 +41,16 @@ export declare class SubscriptionsPublicApi extends runtime.BaseAPI {
|
|
|
33
41
|
*
|
|
34
42
|
*/
|
|
35
43
|
createSubscription(requestParameters: SubscriptionsPublicApiCreateSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
|
|
44
|
+
/**
|
|
45
|
+
* Creates a new manual transaction for active subscription with specified open invoice
|
|
46
|
+
* Create a new manual transaction for subscription invoice
|
|
47
|
+
*/
|
|
48
|
+
createSubscriptionManualTransactionRaw(requestParameters: SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
49
|
+
/**
|
|
50
|
+
* Creates a new manual transaction for active subscription with specified open invoice
|
|
51
|
+
* Create a new manual transaction for subscription invoice
|
|
52
|
+
*/
|
|
53
|
+
createSubscriptionManualTransaction(requestParameters: SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
36
54
|
/**
|
|
37
55
|
*
|
|
38
56
|
*/
|
|
@@ -41,6 +59,16 @@ export declare class SubscriptionsPublicApi extends runtime.BaseAPI {
|
|
|
41
59
|
*
|
|
42
60
|
*/
|
|
43
61
|
getSubscription(requestParameters: SubscriptionsPublicApiGetSubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionDto>;
|
|
62
|
+
/**
|
|
63
|
+
* Returns subscription information for a specific invoice
|
|
64
|
+
* Get subscription by invoice
|
|
65
|
+
*/
|
|
66
|
+
getSubscriptionByInvoiceRaw(requestParameters: SubscriptionsPublicApiGetSubscriptionByInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionDto>>;
|
|
67
|
+
/**
|
|
68
|
+
* Returns subscription information for a specific invoice
|
|
69
|
+
* Get subscription by invoice
|
|
70
|
+
*/
|
|
71
|
+
getSubscriptionByInvoice(requestParameters: SubscriptionsPublicApiGetSubscriptionByInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionDto>;
|
|
44
72
|
/**
|
|
45
73
|
*
|
|
46
74
|
*/
|
|
@@ -121,6 +121,53 @@ var SubscriptionsPublicApi = /** @class */ (function (_super) {
|
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
|
+
/**
|
|
125
|
+
* Creates a new manual transaction for active subscription with specified open invoice
|
|
126
|
+
* Create a new manual transaction for subscription invoice
|
|
127
|
+
*/
|
|
128
|
+
SubscriptionsPublicApi.prototype.createSubscriptionManualTransactionRaw = function (requestParameters, initOverrides) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
130
|
+
var queryParameters, headerParameters, response;
|
|
131
|
+
return __generator(this, function (_a) {
|
|
132
|
+
switch (_a.label) {
|
|
133
|
+
case 0:
|
|
134
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
135
|
+
throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling createSubscriptionManualTransaction().');
|
|
136
|
+
}
|
|
137
|
+
if (requestParameters['invoiceId'] == null) {
|
|
138
|
+
throw new runtime.RequiredError('invoiceId', 'Required parameter "invoiceId" was null or undefined when calling createSubscriptionManualTransaction().');
|
|
139
|
+
}
|
|
140
|
+
queryParameters = {};
|
|
141
|
+
headerParameters = {};
|
|
142
|
+
return [4 /*yield*/, this.request({
|
|
143
|
+
path: "/subscriptions/{subscriptionId}/invoices/{invoiceId}/transactions".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))).replace("{".concat("invoiceId", "}"), encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
144
|
+
method: 'POST',
|
|
145
|
+
headers: headerParameters,
|
|
146
|
+
query: queryParameters,
|
|
147
|
+
}, initOverrides)];
|
|
148
|
+
case 1:
|
|
149
|
+
response = _a.sent();
|
|
150
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Creates a new manual transaction for active subscription with specified open invoice
|
|
157
|
+
* Create a new manual transaction for subscription invoice
|
|
158
|
+
*/
|
|
159
|
+
SubscriptionsPublicApi.prototype.createSubscriptionManualTransaction = function (requestParameters, initOverrides) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
161
|
+
return __generator(this, function (_a) {
|
|
162
|
+
switch (_a.label) {
|
|
163
|
+
case 0: return [4 /*yield*/, this.createSubscriptionManualTransactionRaw(requestParameters, initOverrides)];
|
|
164
|
+
case 1:
|
|
165
|
+
_a.sent();
|
|
166
|
+
return [2 /*return*/];
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
};
|
|
124
171
|
/**
|
|
125
172
|
*
|
|
126
173
|
*/
|
|
@@ -165,6 +212,55 @@ var SubscriptionsPublicApi = /** @class */ (function (_super) {
|
|
|
165
212
|
});
|
|
166
213
|
});
|
|
167
214
|
};
|
|
215
|
+
/**
|
|
216
|
+
* Returns subscription information for a specific invoice
|
|
217
|
+
* Get subscription by invoice
|
|
218
|
+
*/
|
|
219
|
+
SubscriptionsPublicApi.prototype.getSubscriptionByInvoiceRaw = function (requestParameters, initOverrides) {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
221
|
+
var queryParameters, headerParameters, response;
|
|
222
|
+
return __generator(this, function (_a) {
|
|
223
|
+
switch (_a.label) {
|
|
224
|
+
case 0:
|
|
225
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
226
|
+
throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling getSubscriptionByInvoice().');
|
|
227
|
+
}
|
|
228
|
+
if (requestParameters['invoiceId'] == null) {
|
|
229
|
+
throw new runtime.RequiredError('invoiceId', 'Required parameter "invoiceId" was null or undefined when calling getSubscriptionByInvoice().');
|
|
230
|
+
}
|
|
231
|
+
queryParameters = {};
|
|
232
|
+
headerParameters = {};
|
|
233
|
+
return [4 /*yield*/, this.request({
|
|
234
|
+
path: "/subscriptions/{subscriptionId}/invoices/{invoiceId}".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))).replace("{".concat("invoiceId", "}"), encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
235
|
+
method: 'GET',
|
|
236
|
+
headers: headerParameters,
|
|
237
|
+
query: queryParameters,
|
|
238
|
+
}, initOverrides)];
|
|
239
|
+
case 1:
|
|
240
|
+
response = _a.sent();
|
|
241
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SubscriptionDtoFromJSON)(jsonValue); })];
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* Returns subscription information for a specific invoice
|
|
248
|
+
* Get subscription by invoice
|
|
249
|
+
*/
|
|
250
|
+
SubscriptionsPublicApi.prototype.getSubscriptionByInvoice = function (requestParameters, initOverrides) {
|
|
251
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
252
|
+
var response;
|
|
253
|
+
return __generator(this, function (_a) {
|
|
254
|
+
switch (_a.label) {
|
|
255
|
+
case 0: return [4 /*yield*/, this.getSubscriptionByInvoiceRaw(requestParameters, initOverrides)];
|
|
256
|
+
case 1:
|
|
257
|
+
response = _a.sent();
|
|
258
|
+
return [4 /*yield*/, response.value()];
|
|
259
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
};
|
|
168
264
|
/**
|
|
169
265
|
*
|
|
170
266
|
*/
|
|
@@ -58,6 +58,12 @@ export interface BuyerDomainTransferListItemDto {
|
|
|
58
58
|
* @memberof BuyerDomainTransferListItemDto
|
|
59
59
|
*/
|
|
60
60
|
createdAt: Date;
|
|
61
|
+
/**
|
|
62
|
+
* The buyer domain transfer IPS tag
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof BuyerDomainTransferListItemDto
|
|
65
|
+
*/
|
|
66
|
+
ipsTag: string | null;
|
|
61
67
|
}
|
|
62
68
|
/**
|
|
63
69
|
* @export
|
|
@@ -56,6 +56,8 @@ function instanceOfBuyerDomainTransferListItemDto(value) {
|
|
|
56
56
|
return false;
|
|
57
57
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
58
58
|
return false;
|
|
59
|
+
if (!('ipsTag' in value) || value['ipsTag'] === undefined)
|
|
60
|
+
return false;
|
|
59
61
|
return true;
|
|
60
62
|
}
|
|
61
63
|
function BuyerDomainTransferListItemDtoFromJSON(json) {
|
|
@@ -73,6 +75,7 @@ function BuyerDomainTransferListItemDtoFromJSONTyped(json, ignoreDiscriminator)
|
|
|
73
75
|
'domainTransferId': json['domainTransferId'],
|
|
74
76
|
'domain': (0, BuyerDomainTransferListItemDomainDto_1.BuyerDomainTransferListItemDomainDtoFromJSON)(json['domain']),
|
|
75
77
|
'createdAt': (new Date(json['createdAt'])),
|
|
78
|
+
'ipsTag': json['ipsTag'],
|
|
76
79
|
};
|
|
77
80
|
}
|
|
78
81
|
function BuyerDomainTransferListItemDtoToJSON(json) {
|
|
@@ -91,5 +94,6 @@ function BuyerDomainTransferListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
91
94
|
'domainTransferId': value['domainTransferId'],
|
|
92
95
|
'domain': (0, BuyerDomainTransferListItemDomainDto_1.BuyerDomainTransferListItemDomainDtoToJSON)(value['domain']),
|
|
93
96
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
97
|
+
'ipsTag': value['ipsTag'],
|
|
94
98
|
};
|
|
95
99
|
}
|
|
@@ -89,6 +89,12 @@ export interface BuyerSubscriptionListItemDto {
|
|
|
89
89
|
* @memberof BuyerSubscriptionListItemDto
|
|
90
90
|
*/
|
|
91
91
|
renewAt: Date;
|
|
92
|
+
/**
|
|
93
|
+
* The subscription payment URL
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
96
|
+
*/
|
|
97
|
+
paymentUrl: string | null;
|
|
92
98
|
}
|
|
93
99
|
/**
|
|
94
100
|
* @export
|
|
@@ -66,6 +66,8 @@ function instanceOfBuyerSubscriptionListItemDto(value) {
|
|
|
66
66
|
return false;
|
|
67
67
|
if (!('renewAt' in value) || value['renewAt'] === undefined)
|
|
68
68
|
return false;
|
|
69
|
+
if (!('paymentUrl' in value) || value['paymentUrl'] === undefined)
|
|
70
|
+
return false;
|
|
69
71
|
return true;
|
|
70
72
|
}
|
|
71
73
|
function BuyerSubscriptionListItemDtoFromJSON(json) {
|
|
@@ -88,6 +90,7 @@ function BuyerSubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
88
90
|
'installments': json['installments'],
|
|
89
91
|
'paidInstallmentsNumber': json['paidInstallmentsNumber'],
|
|
90
92
|
'renewAt': (new Date(json['renewAt'])),
|
|
93
|
+
'paymentUrl': json['paymentUrl'],
|
|
91
94
|
};
|
|
92
95
|
}
|
|
93
96
|
function BuyerSubscriptionListItemDtoToJSON(json) {
|
|
@@ -111,5 +114,6 @@ function BuyerSubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
111
114
|
'installments': value['installments'],
|
|
112
115
|
'paidInstallmentsNumber': value['paidInstallmentsNumber'],
|
|
113
116
|
'renewAt': ((value['renewAt']).toISOString()),
|
|
117
|
+
'paymentUrl': value['paymentUrl'],
|
|
114
118
|
};
|
|
115
119
|
}
|
|
@@ -31,6 +31,7 @@ export declare const ConcreteDomainTransferTaskDataRequirementsEnum: {
|
|
|
31
31
|
readonly OWNED_DOMAIN: "owned_domain";
|
|
32
32
|
readonly OWNED_DOMAIN_TAKEN_BY_BUYER: "owned_domain_taken_by_buyer";
|
|
33
33
|
readonly OWNED_DOMAIN_TAKEN_BY_SELLER: "owned_domain_taken_by_seller";
|
|
34
|
+
readonly DOMAIN_IPS_TAG: "domain_ips_tag";
|
|
34
35
|
};
|
|
35
36
|
export type ConcreteDomainTransferTaskDataRequirementsEnum = typeof ConcreteDomainTransferTaskDataRequirementsEnum[keyof typeof ConcreteDomainTransferTaskDataRequirementsEnum];
|
|
36
37
|
/**
|
|
@@ -27,7 +27,8 @@ exports.ConcreteDomainTransferTaskDataRequirementsEnum = {
|
|
|
27
27
|
BUYER_CONFIRMATION: 'buyer_confirmation',
|
|
28
28
|
OWNED_DOMAIN: 'owned_domain',
|
|
29
29
|
OWNED_DOMAIN_TAKEN_BY_BUYER: 'owned_domain_taken_by_buyer',
|
|
30
|
-
OWNED_DOMAIN_TAKEN_BY_SELLER: 'owned_domain_taken_by_seller'
|
|
30
|
+
OWNED_DOMAIN_TAKEN_BY_SELLER: 'owned_domain_taken_by_seller',
|
|
31
|
+
DOMAIN_IPS_TAG: 'domain_ips_tag'
|
|
31
32
|
};
|
|
32
33
|
/**
|
|
33
34
|
* Check if a given object implements the ConcreteDomainTransferTaskData interface.
|
|
@@ -124,6 +124,18 @@ export interface SubscriptionDto {
|
|
|
124
124
|
* @memberof SubscriptionDto
|
|
125
125
|
*/
|
|
126
126
|
installments: number;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {number}
|
|
130
|
+
* @memberof SubscriptionDto
|
|
131
|
+
*/
|
|
132
|
+
currentInstallment: number;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {number}
|
|
136
|
+
* @memberof SubscriptionDto
|
|
137
|
+
*/
|
|
138
|
+
expectedInstallmentsNumber: number;
|
|
127
139
|
/**
|
|
128
140
|
*
|
|
129
141
|
* @type {SubscriptionBillingPeriodicityDto}
|
|
@@ -81,6 +81,10 @@ function instanceOfSubscriptionDto(value) {
|
|
|
81
81
|
return false;
|
|
82
82
|
if (!('installments' in value) || value['installments'] === undefined)
|
|
83
83
|
return false;
|
|
84
|
+
if (!('currentInstallment' in value) || value['currentInstallment'] === undefined)
|
|
85
|
+
return false;
|
|
86
|
+
if (!('expectedInstallmentsNumber' in value) || value['expectedInstallmentsNumber'] === undefined)
|
|
87
|
+
return false;
|
|
84
88
|
if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined)
|
|
85
89
|
return false;
|
|
86
90
|
return true;
|
|
@@ -110,6 +114,8 @@ function SubscriptionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
110
114
|
'domain': (0, SubscriptionDomainDto_1.SubscriptionDomainDtoFromJSON)(json['domain']),
|
|
111
115
|
'type': json['type'],
|
|
112
116
|
'installments': json['installments'],
|
|
117
|
+
'currentInstallment': json['currentInstallment'],
|
|
118
|
+
'expectedInstallmentsNumber': json['expectedInstallmentsNumber'],
|
|
113
119
|
'billingPeriodicity': (0, SubscriptionBillingPeriodicityDto_1.SubscriptionBillingPeriodicityDtoFromJSON)(json['billingPeriodicity']),
|
|
114
120
|
};
|
|
115
121
|
}
|
|
@@ -139,6 +145,8 @@ function SubscriptionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
139
145
|
'domain': (0, SubscriptionDomainDto_1.SubscriptionDomainDtoToJSON)(value['domain']),
|
|
140
146
|
'type': value['type'],
|
|
141
147
|
'installments': value['installments'],
|
|
148
|
+
'currentInstallment': value['currentInstallment'],
|
|
149
|
+
'expectedInstallmentsNumber': value['expectedInstallmentsNumber'],
|
|
142
150
|
'billingPeriodicity': (0, SubscriptionBillingPeriodicityDto_1.SubscriptionBillingPeriodicityDtoToJSON)(value['billingPeriodicity']),
|
|
143
151
|
};
|
|
144
152
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 UpdateBuyerDomainTransferIpsTagInputDto
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateBuyerDomainTransferIpsTagInputDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateBuyerDomainTransferIpsTagInputDto
|
|
22
|
+
*/
|
|
23
|
+
ipsTag: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UpdateBuyerDomainTransferIpsTagInputDto interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUpdateBuyerDomainTransferIpsTagInputDto(value: object): value is UpdateBuyerDomainTransferIpsTagInputDto;
|
|
29
|
+
export declare function UpdateBuyerDomainTransferIpsTagInputDtoFromJSON(json: any): UpdateBuyerDomainTransferIpsTagInputDto;
|
|
30
|
+
export declare function UpdateBuyerDomainTransferIpsTagInputDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateBuyerDomainTransferIpsTagInputDto;
|
|
31
|
+
export declare function UpdateBuyerDomainTransferIpsTagInputDtoToJSON(json: any): UpdateBuyerDomainTransferIpsTagInputDto;
|
|
32
|
+
export declare function UpdateBuyerDomainTransferIpsTagInputDtoToJSONTyped(value?: UpdateBuyerDomainTransferIpsTagInputDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfUpdateBuyerDomainTransferIpsTagInputDto = instanceOfUpdateBuyerDomainTransferIpsTagInputDto;
|
|
17
|
+
exports.UpdateBuyerDomainTransferIpsTagInputDtoFromJSON = UpdateBuyerDomainTransferIpsTagInputDtoFromJSON;
|
|
18
|
+
exports.UpdateBuyerDomainTransferIpsTagInputDtoFromJSONTyped = UpdateBuyerDomainTransferIpsTagInputDtoFromJSONTyped;
|
|
19
|
+
exports.UpdateBuyerDomainTransferIpsTagInputDtoToJSON = UpdateBuyerDomainTransferIpsTagInputDtoToJSON;
|
|
20
|
+
exports.UpdateBuyerDomainTransferIpsTagInputDtoToJSONTyped = UpdateBuyerDomainTransferIpsTagInputDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateBuyerDomainTransferIpsTagInputDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateBuyerDomainTransferIpsTagInputDto(value) {
|
|
25
|
+
if (!('ipsTag' in value) || value['ipsTag'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UpdateBuyerDomainTransferIpsTagInputDtoFromJSON(json) {
|
|
30
|
+
return UpdateBuyerDomainTransferIpsTagInputDtoFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UpdateBuyerDomainTransferIpsTagInputDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'ipsTag': json['ipsTag'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function UpdateBuyerDomainTransferIpsTagInputDtoToJSON(json) {
|
|
41
|
+
return UpdateBuyerDomainTransferIpsTagInputDtoToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UpdateBuyerDomainTransferIpsTagInputDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'ipsTag': value['ipsTag'],
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -188,6 +188,7 @@ export * from './ThrottlerException';
|
|
|
188
188
|
export * from './UkBankAccountDetails';
|
|
189
189
|
export * from './UpdateAccountBillingInformationInput';
|
|
190
190
|
export * from './UpdateBankAccountInput';
|
|
191
|
+
export * from './UpdateBuyerDomainTransferIpsTagInputDto';
|
|
191
192
|
export * from './UpdateDomainInput';
|
|
192
193
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
193
194
|
export * from './UpdateLeadInput';
|
package/dist/models/index.js
CHANGED
|
@@ -206,6 +206,7 @@ __exportStar(require("./ThrottlerException"), exports);
|
|
|
206
206
|
__exportStar(require("./UkBankAccountDetails"), exports);
|
|
207
207
|
__exportStar(require("./UpdateAccountBillingInformationInput"), exports);
|
|
208
208
|
__exportStar(require("./UpdateBankAccountInput"), exports);
|
|
209
|
+
__exportStar(require("./UpdateBuyerDomainTransferIpsTagInputDto"), exports);
|
|
209
210
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
210
211
|
__exportStar(require("./UpdateDomainTransferAuthCodeInput"), exports);
|
|
211
212
|
__exportStar(require("./UpdateLeadInput"), exports);
|
package/package.json
CHANGED
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -34,6 +34,7 @@ import type {
|
|
|
34
34
|
SetDomainTransferConfirmationInput,
|
|
35
35
|
StoreBuyerLocaleInput,
|
|
36
36
|
ThrottlerException,
|
|
37
|
+
UpdateBuyerDomainTransferIpsTagInputDto,
|
|
37
38
|
ValidationException,
|
|
38
39
|
} from '../models/index';
|
|
39
40
|
import {
|
|
@@ -75,6 +76,8 @@ import {
|
|
|
75
76
|
StoreBuyerLocaleInputToJSON,
|
|
76
77
|
ThrottlerExceptionFromJSON,
|
|
77
78
|
ThrottlerExceptionToJSON,
|
|
79
|
+
UpdateBuyerDomainTransferIpsTagInputDtoFromJSON,
|
|
80
|
+
UpdateBuyerDomainTransferIpsTagInputDtoToJSON,
|
|
78
81
|
ValidationExceptionFromJSON,
|
|
79
82
|
ValidationExceptionToJSON,
|
|
80
83
|
} from '../models/index';
|
|
@@ -167,6 +170,11 @@ export interface BuyersApiSetLocaleRequest {
|
|
|
167
170
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
168
171
|
}
|
|
169
172
|
|
|
173
|
+
export interface BuyersApiUpdateDomainTransferIpsTagRequest {
|
|
174
|
+
transferId: string;
|
|
175
|
+
updateBuyerDomainTransferIpsTagInputDto: UpdateBuyerDomainTransferIpsTagInputDto;
|
|
176
|
+
}
|
|
177
|
+
|
|
170
178
|
export interface BuyersApiVerifyBuyerLeadRequest {
|
|
171
179
|
leadId: string;
|
|
172
180
|
}
|
|
@@ -1024,6 +1032,56 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
1024
1032
|
await this.setLocaleRaw(requestParameters, initOverrides);
|
|
1025
1033
|
}
|
|
1026
1034
|
|
|
1035
|
+
/**
|
|
1036
|
+
*
|
|
1037
|
+
*/
|
|
1038
|
+
async updateDomainTransferIpsTagRaw(requestParameters: BuyersApiUpdateDomainTransferIpsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1039
|
+
if (requestParameters['transferId'] == null) {
|
|
1040
|
+
throw new runtime.RequiredError(
|
|
1041
|
+
'transferId',
|
|
1042
|
+
'Required parameter "transferId" was null or undefined when calling updateDomainTransferIpsTag().'
|
|
1043
|
+
);
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
if (requestParameters['updateBuyerDomainTransferIpsTagInputDto'] == null) {
|
|
1047
|
+
throw new runtime.RequiredError(
|
|
1048
|
+
'updateBuyerDomainTransferIpsTagInputDto',
|
|
1049
|
+
'Required parameter "updateBuyerDomainTransferIpsTagInputDto" was null or undefined when calling updateDomainTransferIpsTag().'
|
|
1050
|
+
);
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
const queryParameters: any = {};
|
|
1054
|
+
|
|
1055
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1056
|
+
|
|
1057
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1058
|
+
|
|
1059
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1060
|
+
const token = this.configuration.accessToken;
|
|
1061
|
+
const tokenString = await token("bearer", []);
|
|
1062
|
+
|
|
1063
|
+
if (tokenString) {
|
|
1064
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
const response = await this.request({
|
|
1068
|
+
path: `/buyers/private/transfers/{transferId}/ips-tag`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
|
|
1069
|
+
method: 'PATCH',
|
|
1070
|
+
headers: headerParameters,
|
|
1071
|
+
query: queryParameters,
|
|
1072
|
+
body: UpdateBuyerDomainTransferIpsTagInputDtoToJSON(requestParameters['updateBuyerDomainTransferIpsTagInputDto']),
|
|
1073
|
+
}, initOverrides);
|
|
1074
|
+
|
|
1075
|
+
return new runtime.VoidApiResponse(response);
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
*
|
|
1080
|
+
*/
|
|
1081
|
+
async updateDomainTransferIpsTag(requestParameters: BuyersApiUpdateDomainTransferIpsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1082
|
+
await this.updateDomainTransferIpsTagRaw(requestParameters, initOverrides);
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1027
1085
|
/**
|
|
1028
1086
|
*
|
|
1029
1087
|
*/
|
|
@@ -22,6 +22,7 @@ import type {
|
|
|
22
22
|
SubscriptionDto,
|
|
23
23
|
ThrottlerException,
|
|
24
24
|
UpdateSubscriptionInput,
|
|
25
|
+
ValidationException,
|
|
25
26
|
} from '../models/index';
|
|
26
27
|
import {
|
|
27
28
|
BadRequestExceptionFromJSON,
|
|
@@ -38,16 +39,28 @@ import {
|
|
|
38
39
|
ThrottlerExceptionToJSON,
|
|
39
40
|
UpdateSubscriptionInputFromJSON,
|
|
40
41
|
UpdateSubscriptionInputToJSON,
|
|
42
|
+
ValidationExceptionFromJSON,
|
|
43
|
+
ValidationExceptionToJSON,
|
|
41
44
|
} from '../models/index';
|
|
42
45
|
|
|
43
46
|
export interface SubscriptionsPublicApiCreateSubscriptionRequest {
|
|
44
47
|
createSubscriptionInput: CreateSubscriptionInput;
|
|
45
48
|
}
|
|
46
49
|
|
|
50
|
+
export interface SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest {
|
|
51
|
+
subscriptionId: string;
|
|
52
|
+
invoiceId: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
47
55
|
export interface SubscriptionsPublicApiGetSubscriptionRequest {
|
|
48
56
|
subscriptionId: string;
|
|
49
57
|
}
|
|
50
58
|
|
|
59
|
+
export interface SubscriptionsPublicApiGetSubscriptionByInvoiceRequest {
|
|
60
|
+
subscriptionId: string;
|
|
61
|
+
invoiceId: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
51
64
|
export interface SubscriptionsPublicApiUpdateSubscriptionRequest {
|
|
52
65
|
subscriptionId: string;
|
|
53
66
|
updateSubscriptionInput: UpdateSubscriptionInput;
|
|
@@ -94,6 +107,47 @@ export class SubscriptionsPublicApi extends runtime.BaseAPI {
|
|
|
94
107
|
return await response.value();
|
|
95
108
|
}
|
|
96
109
|
|
|
110
|
+
/**
|
|
111
|
+
* Creates a new manual transaction for active subscription with specified open invoice
|
|
112
|
+
* Create a new manual transaction for subscription invoice
|
|
113
|
+
*/
|
|
114
|
+
async createSubscriptionManualTransactionRaw(requestParameters: SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
115
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
116
|
+
throw new runtime.RequiredError(
|
|
117
|
+
'subscriptionId',
|
|
118
|
+
'Required parameter "subscriptionId" was null or undefined when calling createSubscriptionManualTransaction().'
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (requestParameters['invoiceId'] == null) {
|
|
123
|
+
throw new runtime.RequiredError(
|
|
124
|
+
'invoiceId',
|
|
125
|
+
'Required parameter "invoiceId" was null or undefined when calling createSubscriptionManualTransaction().'
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const queryParameters: any = {};
|
|
130
|
+
|
|
131
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
132
|
+
|
|
133
|
+
const response = await this.request({
|
|
134
|
+
path: `/subscriptions/{subscriptionId}/invoices/{invoiceId}/transactions`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))).replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
135
|
+
method: 'POST',
|
|
136
|
+
headers: headerParameters,
|
|
137
|
+
query: queryParameters,
|
|
138
|
+
}, initOverrides);
|
|
139
|
+
|
|
140
|
+
return new runtime.VoidApiResponse(response);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Creates a new manual transaction for active subscription with specified open invoice
|
|
145
|
+
* Create a new manual transaction for subscription invoice
|
|
146
|
+
*/
|
|
147
|
+
async createSubscriptionManualTransaction(requestParameters: SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
148
|
+
await this.createSubscriptionManualTransactionRaw(requestParameters, initOverrides);
|
|
149
|
+
}
|
|
150
|
+
|
|
97
151
|
/**
|
|
98
152
|
*
|
|
99
153
|
*/
|
|
@@ -127,6 +181,48 @@ export class SubscriptionsPublicApi extends runtime.BaseAPI {
|
|
|
127
181
|
return await response.value();
|
|
128
182
|
}
|
|
129
183
|
|
|
184
|
+
/**
|
|
185
|
+
* Returns subscription information for a specific invoice
|
|
186
|
+
* Get subscription by invoice
|
|
187
|
+
*/
|
|
188
|
+
async getSubscriptionByInvoiceRaw(requestParameters: SubscriptionsPublicApiGetSubscriptionByInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriptionDto>> {
|
|
189
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
190
|
+
throw new runtime.RequiredError(
|
|
191
|
+
'subscriptionId',
|
|
192
|
+
'Required parameter "subscriptionId" was null or undefined when calling getSubscriptionByInvoice().'
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
if (requestParameters['invoiceId'] == null) {
|
|
197
|
+
throw new runtime.RequiredError(
|
|
198
|
+
'invoiceId',
|
|
199
|
+
'Required parameter "invoiceId" was null or undefined when calling getSubscriptionByInvoice().'
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
const queryParameters: any = {};
|
|
204
|
+
|
|
205
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
206
|
+
|
|
207
|
+
const response = await this.request({
|
|
208
|
+
path: `/subscriptions/{subscriptionId}/invoices/{invoiceId}`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))).replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
209
|
+
method: 'GET',
|
|
210
|
+
headers: headerParameters,
|
|
211
|
+
query: queryParameters,
|
|
212
|
+
}, initOverrides);
|
|
213
|
+
|
|
214
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionDtoFromJSON(jsonValue));
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Returns subscription information for a specific invoice
|
|
219
|
+
* Get subscription by invoice
|
|
220
|
+
*/
|
|
221
|
+
async getSubscriptionByInvoice(requestParameters: SubscriptionsPublicApiGetSubscriptionByInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionDto> {
|
|
222
|
+
const response = await this.getSubscriptionByInvoiceRaw(requestParameters, initOverrides);
|
|
223
|
+
return await response.value();
|
|
224
|
+
}
|
|
225
|
+
|
|
130
226
|
/**
|
|
131
227
|
*
|
|
132
228
|
*/
|
|
@@ -69,6 +69,12 @@ export interface BuyerDomainTransferListItemDto {
|
|
|
69
69
|
* @memberof BuyerDomainTransferListItemDto
|
|
70
70
|
*/
|
|
71
71
|
createdAt: Date;
|
|
72
|
+
/**
|
|
73
|
+
* The buyer domain transfer IPS tag
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof BuyerDomainTransferListItemDto
|
|
76
|
+
*/
|
|
77
|
+
ipsTag: string | null;
|
|
72
78
|
}
|
|
73
79
|
|
|
74
80
|
|
|
@@ -106,6 +112,7 @@ export function instanceOfBuyerDomainTransferListItemDto(value: object): value i
|
|
|
106
112
|
if (!('domainTransferId' in value) || value['domainTransferId'] === undefined) return false;
|
|
107
113
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
108
114
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
115
|
+
if (!('ipsTag' in value) || value['ipsTag'] === undefined) return false;
|
|
109
116
|
return true;
|
|
110
117
|
}
|
|
111
118
|
|
|
@@ -126,6 +133,7 @@ export function BuyerDomainTransferListItemDtoFromJSONTyped(json: any, ignoreDis
|
|
|
126
133
|
'domainTransferId': json['domainTransferId'],
|
|
127
134
|
'domain': BuyerDomainTransferListItemDomainDtoFromJSON(json['domain']),
|
|
128
135
|
'createdAt': (new Date(json['createdAt'])),
|
|
136
|
+
'ipsTag': json['ipsTag'],
|
|
129
137
|
};
|
|
130
138
|
}
|
|
131
139
|
|
|
@@ -147,6 +155,7 @@ export function BuyerDomainTransferListItemDtoToJSONTyped(value?: BuyerDomainTra
|
|
|
147
155
|
'domainTransferId': value['domainTransferId'],
|
|
148
156
|
'domain': BuyerDomainTransferListItemDomainDtoToJSON(value['domain']),
|
|
149
157
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
158
|
+
'ipsTag': value['ipsTag'],
|
|
150
159
|
};
|
|
151
160
|
}
|
|
152
161
|
|
|
@@ -106,6 +106,12 @@ export interface BuyerSubscriptionListItemDto {
|
|
|
106
106
|
* @memberof BuyerSubscriptionListItemDto
|
|
107
107
|
*/
|
|
108
108
|
renewAt: Date;
|
|
109
|
+
/**
|
|
110
|
+
* The subscription payment URL
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
113
|
+
*/
|
|
114
|
+
paymentUrl: string | null;
|
|
109
115
|
}
|
|
110
116
|
|
|
111
117
|
|
|
@@ -147,6 +153,7 @@ export function instanceOfBuyerSubscriptionListItemDto(value: object): value is
|
|
|
147
153
|
if (!('installments' in value) || value['installments'] === undefined) return false;
|
|
148
154
|
if (!('paidInstallmentsNumber' in value) || value['paidInstallmentsNumber'] === undefined) return false;
|
|
149
155
|
if (!('renewAt' in value) || value['renewAt'] === undefined) return false;
|
|
156
|
+
if (!('paymentUrl' in value) || value['paymentUrl'] === undefined) return false;
|
|
150
157
|
return true;
|
|
151
158
|
}
|
|
152
159
|
|
|
@@ -172,6 +179,7 @@ export function BuyerSubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscr
|
|
|
172
179
|
'installments': json['installments'],
|
|
173
180
|
'paidInstallmentsNumber': json['paidInstallmentsNumber'],
|
|
174
181
|
'renewAt': (new Date(json['renewAt'])),
|
|
182
|
+
'paymentUrl': json['paymentUrl'],
|
|
175
183
|
};
|
|
176
184
|
}
|
|
177
185
|
|
|
@@ -198,6 +206,7 @@ export function BuyerSubscriptionListItemDtoToJSONTyped(value?: BuyerSubscriptio
|
|
|
198
206
|
'installments': value['installments'],
|
|
199
207
|
'paidInstallmentsNumber': value['paidInstallmentsNumber'],
|
|
200
208
|
'renewAt': ((value['renewAt']).toISOString()),
|
|
209
|
+
'paymentUrl': value['paymentUrl'],
|
|
201
210
|
};
|
|
202
211
|
}
|
|
203
212
|
|
|
@@ -36,7 +36,8 @@ export const ConcreteDomainTransferTaskDataRequirementsEnum = {
|
|
|
36
36
|
BUYER_CONFIRMATION: 'buyer_confirmation',
|
|
37
37
|
OWNED_DOMAIN: 'owned_domain',
|
|
38
38
|
OWNED_DOMAIN_TAKEN_BY_BUYER: 'owned_domain_taken_by_buyer',
|
|
39
|
-
OWNED_DOMAIN_TAKEN_BY_SELLER: 'owned_domain_taken_by_seller'
|
|
39
|
+
OWNED_DOMAIN_TAKEN_BY_SELLER: 'owned_domain_taken_by_seller',
|
|
40
|
+
DOMAIN_IPS_TAG: 'domain_ips_tag'
|
|
40
41
|
} as const;
|
|
41
42
|
export type ConcreteDomainTransferTaskDataRequirementsEnum = typeof ConcreteDomainTransferTaskDataRequirementsEnum[keyof typeof ConcreteDomainTransferTaskDataRequirementsEnum];
|
|
42
43
|
|
|
@@ -171,6 +171,18 @@ export interface SubscriptionDto {
|
|
|
171
171
|
* @memberof SubscriptionDto
|
|
172
172
|
*/
|
|
173
173
|
installments: number;
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @type {number}
|
|
177
|
+
* @memberof SubscriptionDto
|
|
178
|
+
*/
|
|
179
|
+
currentInstallment: number;
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
* @type {number}
|
|
183
|
+
* @memberof SubscriptionDto
|
|
184
|
+
*/
|
|
185
|
+
expectedInstallmentsNumber: number;
|
|
174
186
|
/**
|
|
175
187
|
*
|
|
176
188
|
* @type {SubscriptionBillingPeriodicityDto}
|
|
@@ -223,6 +235,8 @@ export function instanceOfSubscriptionDto(value: object): value is SubscriptionD
|
|
|
223
235
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
224
236
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
225
237
|
if (!('installments' in value) || value['installments'] === undefined) return false;
|
|
238
|
+
if (!('currentInstallment' in value) || value['currentInstallment'] === undefined) return false;
|
|
239
|
+
if (!('expectedInstallmentsNumber' in value) || value['expectedInstallmentsNumber'] === undefined) return false;
|
|
226
240
|
if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined) return false;
|
|
227
241
|
return true;
|
|
228
242
|
}
|
|
@@ -254,6 +268,8 @@ export function SubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
254
268
|
'domain': SubscriptionDomainDtoFromJSON(json['domain']),
|
|
255
269
|
'type': json['type'],
|
|
256
270
|
'installments': json['installments'],
|
|
271
|
+
'currentInstallment': json['currentInstallment'],
|
|
272
|
+
'expectedInstallmentsNumber': json['expectedInstallmentsNumber'],
|
|
257
273
|
'billingPeriodicity': SubscriptionBillingPeriodicityDtoFromJSON(json['billingPeriodicity']),
|
|
258
274
|
};
|
|
259
275
|
}
|
|
@@ -286,6 +302,8 @@ export function SubscriptionDtoToJSONTyped(value?: SubscriptionDto | null, ignor
|
|
|
286
302
|
'domain': SubscriptionDomainDtoToJSON(value['domain']),
|
|
287
303
|
'type': value['type'],
|
|
288
304
|
'installments': value['installments'],
|
|
305
|
+
'currentInstallment': value['currentInstallment'],
|
|
306
|
+
'expectedInstallmentsNumber': value['expectedInstallmentsNumber'],
|
|
289
307
|
'billingPeriodicity': SubscriptionBillingPeriodicityDtoToJSON(value['billingPeriodicity']),
|
|
290
308
|
};
|
|
291
309
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 UpdateBuyerDomainTransferIpsTagInputDto
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateBuyerDomainTransferIpsTagInputDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateBuyerDomainTransferIpsTagInputDto
|
|
26
|
+
*/
|
|
27
|
+
ipsTag: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UpdateBuyerDomainTransferIpsTagInputDto interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUpdateBuyerDomainTransferIpsTagInputDto(value: object): value is UpdateBuyerDomainTransferIpsTagInputDto {
|
|
34
|
+
if (!('ipsTag' in value) || value['ipsTag'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function UpdateBuyerDomainTransferIpsTagInputDtoFromJSON(json: any): UpdateBuyerDomainTransferIpsTagInputDto {
|
|
39
|
+
return UpdateBuyerDomainTransferIpsTagInputDtoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function UpdateBuyerDomainTransferIpsTagInputDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateBuyerDomainTransferIpsTagInputDto {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'ipsTag': json['ipsTag'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UpdateBuyerDomainTransferIpsTagInputDtoToJSON(json: any): UpdateBuyerDomainTransferIpsTagInputDto {
|
|
53
|
+
return UpdateBuyerDomainTransferIpsTagInputDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UpdateBuyerDomainTransferIpsTagInputDtoToJSONTyped(value?: UpdateBuyerDomainTransferIpsTagInputDto | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'ipsTag': value['ipsTag'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -190,6 +190,7 @@ export * from './ThrottlerException';
|
|
|
190
190
|
export * from './UkBankAccountDetails';
|
|
191
191
|
export * from './UpdateAccountBillingInformationInput';
|
|
192
192
|
export * from './UpdateBankAccountInput';
|
|
193
|
+
export * from './UpdateBuyerDomainTransferIpsTagInputDto';
|
|
193
194
|
export * from './UpdateDomainInput';
|
|
194
195
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
195
196
|
export * from './UpdateLeadInput';
|