@randock/nameshift-api-client 0.0.352 → 0.0.354
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 +2 -0
- package/README.md +3 -3
- package/dist/apis/InvoicesApi.d.ts +12 -1
- package/dist/apis/InvoicesApi.js +53 -0
- package/dist/apis/SubscriptionsPublicApi.d.ts +2 -2
- package/dist/apis/SubscriptionsPublicApi.js +5 -3
- package/dist/models/BulkDownloadInvoicesInput.d.ts +38 -0
- package/dist/models/BulkDownloadInvoicesInput.js +51 -0
- package/dist/models/BuyerNotificationDto.d.ts +2 -0
- package/dist/models/BuyerNotificationDto.js +2 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +2 -0
- package/dist/models/BuyerNotificationListItemDto.js +2 -0
- package/dist/models/CreateSubscriptionManualTransactionInput.d.ts +32 -0
- package/dist/models/CreateSubscriptionManualTransactionInput.js +49 -0
- package/dist/models/UserNotificationDto.d.ts +2 -0
- package/dist/models/UserNotificationDto.js +2 -0
- package/dist/models/UserNotificationListItemDto.d.ts +2 -0
- package/dist/models/UserNotificationListItemDto.js +2 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/InvoicesApi.ts +50 -0
- package/src/apis/SubscriptionsPublicApi.ts +11 -5
- package/src/models/BulkDownloadInvoicesInput.ts +73 -0
- package/src/models/BuyerNotificationDto.ts +2 -0
- package/src/models/BuyerNotificationListItemDto.ts +2 -0
- package/src/models/CreateSubscriptionManualTransactionInput.ts +65 -0
- package/src/models/UserNotificationDto.ts +2 -0
- package/src/models/UserNotificationListItemDto.ts +2 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -93,6 +93,7 @@ src/models/BatchReadSellerLeadMessageInput.ts
|
|
|
93
93
|
src/models/BatchUpdateDomainsInput.ts
|
|
94
94
|
src/models/BatchVerifyBuyerLeadsInput.ts
|
|
95
95
|
src/models/BillingInformationDto.ts
|
|
96
|
+
src/models/BulkDownloadInvoicesInput.ts
|
|
96
97
|
src/models/BulkMarkBuyerNotificationsAsReadInputDto.ts
|
|
97
98
|
src/models/BulkMarkNotificationsAsReadInputDto.ts
|
|
98
99
|
src/models/BulkUpdateDomainsWithFiltersInput.ts
|
|
@@ -137,6 +138,7 @@ src/models/CreateManualTransactionInput.ts
|
|
|
137
138
|
src/models/CreateOrderInput.ts
|
|
138
139
|
src/models/CreateSubscriptionBillingPeriodicityInput.ts
|
|
139
140
|
src/models/CreateSubscriptionInput.ts
|
|
141
|
+
src/models/CreateSubscriptionManualTransactionInput.ts
|
|
140
142
|
src/models/CursorBasedPageInfo.ts
|
|
141
143
|
src/models/CursorBasedPaginationResponse.ts
|
|
142
144
|
src/models/DeleteDomainsInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.354
|
|
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.354 --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
|
+
8ce6d50fb9aa2215902128dcb6a48e461d0facba59ac9532701ea2c235abcf91adeea6a3ff77979d5a823c7d5637baf0
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GetInvoices200Response } from '../models/index';
|
|
13
|
+
import type { BulkDownloadInvoicesInput, GetInvoices200Response } from '../models/index';
|
|
14
14
|
export interface InvoicesApiDownloadInvoiceRequest {
|
|
15
15
|
invoiceId: string;
|
|
16
16
|
}
|
|
@@ -20,6 +20,9 @@ export interface InvoicesApiGetInvoicesRequest {
|
|
|
20
20
|
limit?: number;
|
|
21
21
|
sortBy?: Array<string>;
|
|
22
22
|
}
|
|
23
|
+
export interface InvoicesApiRequestBulkDownloadInvoicesRequest {
|
|
24
|
+
bulkDownloadInvoicesInput: BulkDownloadInvoicesInput;
|
|
25
|
+
}
|
|
23
26
|
/**
|
|
24
27
|
*
|
|
25
28
|
*/
|
|
@@ -40,4 +43,12 @@ export declare class InvoicesApi extends runtime.BaseAPI {
|
|
|
40
43
|
*
|
|
41
44
|
*/
|
|
42
45
|
getInvoices(requestParameters?: InvoicesApiGetInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInvoices200Response>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
requestBulkDownloadInvoicesRaw(requestParameters: InvoicesApiRequestBulkDownloadInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
requestBulkDownloadInvoices(requestParameters: InvoicesApiRequestBulkDownloadInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
43
54
|
}
|
package/dist/apis/InvoicesApi.js
CHANGED
|
@@ -191,6 +191,59 @@ var InvoicesApi = /** @class */ (function (_super) {
|
|
|
191
191
|
});
|
|
192
192
|
});
|
|
193
193
|
};
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
*/
|
|
197
|
+
InvoicesApi.prototype.requestBulkDownloadInvoicesRaw = function (requestParameters, initOverrides) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
199
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
200
|
+
return __generator(this, function (_a) {
|
|
201
|
+
switch (_a.label) {
|
|
202
|
+
case 0:
|
|
203
|
+
if (requestParameters['bulkDownloadInvoicesInput'] == null) {
|
|
204
|
+
throw new runtime.RequiredError('bulkDownloadInvoicesInput', 'Required parameter "bulkDownloadInvoicesInput" was null or undefined when calling requestBulkDownloadInvoices().');
|
|
205
|
+
}
|
|
206
|
+
queryParameters = {};
|
|
207
|
+
headerParameters = {};
|
|
208
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
209
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
210
|
+
token = this.configuration.accessToken;
|
|
211
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
212
|
+
case 1:
|
|
213
|
+
tokenString = _a.sent();
|
|
214
|
+
if (tokenString) {
|
|
215
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
216
|
+
}
|
|
217
|
+
_a.label = 2;
|
|
218
|
+
case 2: return [4 /*yield*/, this.request({
|
|
219
|
+
path: "/private/invoices/bulk-download",
|
|
220
|
+
method: 'POST',
|
|
221
|
+
headers: headerParameters,
|
|
222
|
+
query: queryParameters,
|
|
223
|
+
body: (0, index_1.BulkDownloadInvoicesInputToJSON)(requestParameters['bulkDownloadInvoicesInput']),
|
|
224
|
+
}, initOverrides)];
|
|
225
|
+
case 3:
|
|
226
|
+
response = _a.sent();
|
|
227
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
*/
|
|
235
|
+
InvoicesApi.prototype.requestBulkDownloadInvoices = function (requestParameters, initOverrides) {
|
|
236
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
237
|
+
return __generator(this, function (_a) {
|
|
238
|
+
switch (_a.label) {
|
|
239
|
+
case 0: return [4 /*yield*/, this.requestBulkDownloadInvoicesRaw(requestParameters, initOverrides)];
|
|
240
|
+
case 1:
|
|
241
|
+
_a.sent();
|
|
242
|
+
return [2 /*return*/];
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
};
|
|
194
247
|
return InvoicesApi;
|
|
195
248
|
}(runtime.BaseAPI));
|
|
196
249
|
exports.InvoicesApi = InvoicesApi;
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateSubscriptionInput, ObjectId, SubscriptionDto, UpdateSubscriptionInput } from '../models/index';
|
|
13
|
+
import type { CreateSubscriptionInput, CreateSubscriptionManualTransactionInput, ObjectId, SubscriptionDto, UpdateSubscriptionInput } from '../models/index';
|
|
14
14
|
export interface SubscriptionsPublicApiCreateSubscriptionRequest {
|
|
15
15
|
createSubscriptionInput: CreateSubscriptionInput;
|
|
16
16
|
}
|
|
17
17
|
export interface SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest {
|
|
18
18
|
subscriptionId: string;
|
|
19
|
-
|
|
19
|
+
createSubscriptionManualTransactionInput: CreateSubscriptionManualTransactionInput;
|
|
20
20
|
}
|
|
21
21
|
export interface SubscriptionsPublicApiGetSubscriptionRequest {
|
|
22
22
|
subscriptionId: string;
|
|
@@ -134,16 +134,18 @@ var SubscriptionsPublicApi = /** @class */ (function (_super) {
|
|
|
134
134
|
if (requestParameters['subscriptionId'] == null) {
|
|
135
135
|
throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling createSubscriptionManualTransaction().');
|
|
136
136
|
}
|
|
137
|
-
if (requestParameters['
|
|
138
|
-
throw new runtime.RequiredError('
|
|
137
|
+
if (requestParameters['createSubscriptionManualTransactionInput'] == null) {
|
|
138
|
+
throw new runtime.RequiredError('createSubscriptionManualTransactionInput', 'Required parameter "createSubscriptionManualTransactionInput" was null or undefined when calling createSubscriptionManualTransaction().');
|
|
139
139
|
}
|
|
140
140
|
queryParameters = {};
|
|
141
141
|
headerParameters = {};
|
|
142
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
142
143
|
return [4 /*yield*/, this.request({
|
|
143
|
-
path: "/subscriptions/{subscriptionId}/invoices/
|
|
144
|
+
path: "/subscriptions/{subscriptionId}/invoices/transactions".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
144
145
|
method: 'POST',
|
|
145
146
|
headers: headerParameters,
|
|
146
147
|
query: queryParameters,
|
|
148
|
+
body: (0, index_1.CreateSubscriptionManualTransactionInputToJSON)(requestParameters['createSubscriptionManualTransactionInput']),
|
|
147
149
|
}, initOverrides)];
|
|
148
150
|
case 1:
|
|
149
151
|
response = _a.sent();
|
|
@@ -0,0 +1,38 @@
|
|
|
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 BulkDownloadInvoicesInput
|
|
16
|
+
*/
|
|
17
|
+
export interface BulkDownloadInvoicesInput {
|
|
18
|
+
/**
|
|
19
|
+
* Start date for filtering invoices
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof BulkDownloadInvoicesInput
|
|
22
|
+
*/
|
|
23
|
+
startDate?: Date;
|
|
24
|
+
/**
|
|
25
|
+
* End date for filtering invoices
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof BulkDownloadInvoicesInput
|
|
28
|
+
*/
|
|
29
|
+
endDate?: Date;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the BulkDownloadInvoicesInput interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfBulkDownloadInvoicesInput(value: object): value is BulkDownloadInvoicesInput;
|
|
35
|
+
export declare function BulkDownloadInvoicesInputFromJSON(json: any): BulkDownloadInvoicesInput;
|
|
36
|
+
export declare function BulkDownloadInvoicesInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkDownloadInvoicesInput;
|
|
37
|
+
export declare function BulkDownloadInvoicesInputToJSON(json: any): BulkDownloadInvoicesInput;
|
|
38
|
+
export declare function BulkDownloadInvoicesInputToJSONTyped(value?: BulkDownloadInvoicesInput | 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.instanceOfBulkDownloadInvoicesInput = instanceOfBulkDownloadInvoicesInput;
|
|
17
|
+
exports.BulkDownloadInvoicesInputFromJSON = BulkDownloadInvoicesInputFromJSON;
|
|
18
|
+
exports.BulkDownloadInvoicesInputFromJSONTyped = BulkDownloadInvoicesInputFromJSONTyped;
|
|
19
|
+
exports.BulkDownloadInvoicesInputToJSON = BulkDownloadInvoicesInputToJSON;
|
|
20
|
+
exports.BulkDownloadInvoicesInputToJSONTyped = BulkDownloadInvoicesInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BulkDownloadInvoicesInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBulkDownloadInvoicesInput(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function BulkDownloadInvoicesInputFromJSON(json) {
|
|
28
|
+
return BulkDownloadInvoicesInputFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function BulkDownloadInvoicesInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
|
36
|
+
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function BulkDownloadInvoicesInputToJSON(json) {
|
|
40
|
+
return BulkDownloadInvoicesInputToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function BulkDownloadInvoicesInputToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'startDate': value['startDate'] == null ? undefined : ((value['startDate']).toISOString()),
|
|
49
|
+
'endDate': value['endDate'] == null ? undefined : ((value['endDate']).toISOString()),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -108,6 +108,8 @@ export declare const BuyerNotificationDtoTypeEnum: {
|
|
|
108
108
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
109
109
|
readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
|
|
110
110
|
readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
|
|
111
|
+
readonly SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: "seller_bulk_download_invoices_completed";
|
|
112
|
+
readonly SELLER_BULK_DOWNLOAD_INVOICES_FAILED: "seller_bulk_download_invoices_failed";
|
|
111
113
|
readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
|
|
112
114
|
readonly ORDER_HAS_BEEN_PAID: "order_has_been_paid";
|
|
113
115
|
readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
|
|
@@ -69,6 +69,8 @@ exports.BuyerNotificationDtoTypeEnum = {
|
|
|
69
69
|
BUYER_INVOICE: 'buyer_invoice',
|
|
70
70
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
71
71
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
72
|
+
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
73
|
+
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
72
74
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
73
75
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
74
76
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
@@ -101,6 +101,8 @@ export declare const BuyerNotificationListItemDtoTypeEnum: {
|
|
|
101
101
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
102
102
|
readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
|
|
103
103
|
readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
|
|
104
|
+
readonly SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: "seller_bulk_download_invoices_completed";
|
|
105
|
+
readonly SELLER_BULK_DOWNLOAD_INVOICES_FAILED: "seller_bulk_download_invoices_failed";
|
|
104
106
|
readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
|
|
105
107
|
readonly ORDER_HAS_BEEN_PAID: "order_has_been_paid";
|
|
106
108
|
readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
|
|
@@ -68,6 +68,8 @@ exports.BuyerNotificationListItemDtoTypeEnum = {
|
|
|
68
68
|
BUYER_INVOICE: 'buyer_invoice',
|
|
69
69
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
70
70
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
71
|
+
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
72
|
+
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
71
73
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
72
74
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
73
75
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
@@ -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 CreateSubscriptionManualTransactionInput
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateSubscriptionManualTransactionInput {
|
|
18
|
+
/**
|
|
19
|
+
* Optional invoice ID. If not provided, the active buyer invoice will be used.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateSubscriptionManualTransactionInput
|
|
22
|
+
*/
|
|
23
|
+
invoiceId?: string | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CreateSubscriptionManualTransactionInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCreateSubscriptionManualTransactionInput(value: object): value is CreateSubscriptionManualTransactionInput;
|
|
29
|
+
export declare function CreateSubscriptionManualTransactionInputFromJSON(json: any): CreateSubscriptionManualTransactionInput;
|
|
30
|
+
export declare function CreateSubscriptionManualTransactionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubscriptionManualTransactionInput;
|
|
31
|
+
export declare function CreateSubscriptionManualTransactionInputToJSON(json: any): CreateSubscriptionManualTransactionInput;
|
|
32
|
+
export declare function CreateSubscriptionManualTransactionInputToJSONTyped(value?: CreateSubscriptionManualTransactionInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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.instanceOfCreateSubscriptionManualTransactionInput = instanceOfCreateSubscriptionManualTransactionInput;
|
|
17
|
+
exports.CreateSubscriptionManualTransactionInputFromJSON = CreateSubscriptionManualTransactionInputFromJSON;
|
|
18
|
+
exports.CreateSubscriptionManualTransactionInputFromJSONTyped = CreateSubscriptionManualTransactionInputFromJSONTyped;
|
|
19
|
+
exports.CreateSubscriptionManualTransactionInputToJSON = CreateSubscriptionManualTransactionInputToJSON;
|
|
20
|
+
exports.CreateSubscriptionManualTransactionInputToJSONTyped = CreateSubscriptionManualTransactionInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateSubscriptionManualTransactionInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateSubscriptionManualTransactionInput(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function CreateSubscriptionManualTransactionInputFromJSON(json) {
|
|
28
|
+
return CreateSubscriptionManualTransactionInputFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function CreateSubscriptionManualTransactionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'invoiceId': json['invoiceId'] == null ? undefined : json['invoiceId'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function CreateSubscriptionManualTransactionInputToJSON(json) {
|
|
39
|
+
return CreateSubscriptionManualTransactionInputToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function CreateSubscriptionManualTransactionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'invoiceId': value['invoiceId'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -108,6 +108,8 @@ export declare const UserNotificationDtoTypeEnum: {
|
|
|
108
108
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
109
109
|
readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
|
|
110
110
|
readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
|
|
111
|
+
readonly SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: "seller_bulk_download_invoices_completed";
|
|
112
|
+
readonly SELLER_BULK_DOWNLOAD_INVOICES_FAILED: "seller_bulk_download_invoices_failed";
|
|
111
113
|
readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
|
|
112
114
|
readonly ORDER_HAS_BEEN_PAID: "order_has_been_paid";
|
|
113
115
|
readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
|
|
@@ -69,6 +69,8 @@ exports.UserNotificationDtoTypeEnum = {
|
|
|
69
69
|
BUYER_INVOICE: 'buyer_invoice',
|
|
70
70
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
71
71
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
72
|
+
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
73
|
+
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
72
74
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
73
75
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
74
76
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
@@ -101,6 +101,8 @@ export declare const UserNotificationListItemDtoTypeEnum: {
|
|
|
101
101
|
readonly BUYER_INVOICE: "buyer_invoice";
|
|
102
102
|
readonly BUYER_RENT_INSTALLMENT_INVOICE: "buyer_rent_installment_invoice";
|
|
103
103
|
readonly BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "buyer_lease_to_own_installment_invoice";
|
|
104
|
+
readonly SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: "seller_bulk_download_invoices_completed";
|
|
105
|
+
readonly SELLER_BULK_DOWNLOAD_INVOICES_FAILED: "seller_bulk_download_invoices_failed";
|
|
104
106
|
readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
|
|
105
107
|
readonly ORDER_HAS_BEEN_PAID: "order_has_been_paid";
|
|
106
108
|
readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
|
|
@@ -68,6 +68,8 @@ exports.UserNotificationListItemDtoTypeEnum = {
|
|
|
68
68
|
BUYER_INVOICE: 'buyer_invoice',
|
|
69
69
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
70
70
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
71
|
+
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
72
|
+
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
71
73
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
72
74
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
73
75
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
package/dist/models/index.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export * from './BatchReadSellerLeadMessageInput';
|
|
|
58
58
|
export * from './BatchUpdateDomainsInput';
|
|
59
59
|
export * from './BatchVerifyBuyerLeadsInput';
|
|
60
60
|
export * from './BillingInformationDto';
|
|
61
|
+
export * from './BulkDownloadInvoicesInput';
|
|
61
62
|
export * from './BulkMarkBuyerNotificationsAsReadInputDto';
|
|
62
63
|
export * from './BulkMarkNotificationsAsReadInputDto';
|
|
63
64
|
export * from './BulkUpdateDomainsWithFiltersInput';
|
|
@@ -102,6 +103,7 @@ export * from './CreateManualTransactionInput';
|
|
|
102
103
|
export * from './CreateOrderInput';
|
|
103
104
|
export * from './CreateSubscriptionBillingPeriodicityInput';
|
|
104
105
|
export * from './CreateSubscriptionInput';
|
|
106
|
+
export * from './CreateSubscriptionManualTransactionInput';
|
|
105
107
|
export * from './CursorBasedPageInfo';
|
|
106
108
|
export * from './CursorBasedPaginationResponse';
|
|
107
109
|
export * from './DeleteDomainsInput';
|
package/dist/models/index.js
CHANGED
|
@@ -76,6 +76,7 @@ __exportStar(require("./BatchReadSellerLeadMessageInput"), exports);
|
|
|
76
76
|
__exportStar(require("./BatchUpdateDomainsInput"), exports);
|
|
77
77
|
__exportStar(require("./BatchVerifyBuyerLeadsInput"), exports);
|
|
78
78
|
__exportStar(require("./BillingInformationDto"), exports);
|
|
79
|
+
__exportStar(require("./BulkDownloadInvoicesInput"), exports);
|
|
79
80
|
__exportStar(require("./BulkMarkBuyerNotificationsAsReadInputDto"), exports);
|
|
80
81
|
__exportStar(require("./BulkMarkNotificationsAsReadInputDto"), exports);
|
|
81
82
|
__exportStar(require("./BulkUpdateDomainsWithFiltersInput"), exports);
|
|
@@ -120,6 +121,7 @@ __exportStar(require("./CreateManualTransactionInput"), exports);
|
|
|
120
121
|
__exportStar(require("./CreateOrderInput"), exports);
|
|
121
122
|
__exportStar(require("./CreateSubscriptionBillingPeriodicityInput"), exports);
|
|
122
123
|
__exportStar(require("./CreateSubscriptionInput"), exports);
|
|
124
|
+
__exportStar(require("./CreateSubscriptionManualTransactionInput"), exports);
|
|
123
125
|
__exportStar(require("./CursorBasedPageInfo"), exports);
|
|
124
126
|
__exportStar(require("./CursorBasedPaginationResponse"), exports);
|
|
125
127
|
__exportStar(require("./DeleteDomainsInput"), exports);
|
package/package.json
CHANGED
package/src/apis/InvoicesApi.ts
CHANGED
|
@@ -15,11 +15,14 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
BulkDownloadInvoicesInput,
|
|
18
19
|
GetInvoices200Response,
|
|
19
20
|
NotFoundException,
|
|
20
21
|
ValidationException,
|
|
21
22
|
} from '../models/index';
|
|
22
23
|
import {
|
|
24
|
+
BulkDownloadInvoicesInputFromJSON,
|
|
25
|
+
BulkDownloadInvoicesInputToJSON,
|
|
23
26
|
GetInvoices200ResponseFromJSON,
|
|
24
27
|
GetInvoices200ResponseToJSON,
|
|
25
28
|
NotFoundExceptionFromJSON,
|
|
@@ -39,6 +42,10 @@ export interface InvoicesApiGetInvoicesRequest {
|
|
|
39
42
|
sortBy?: Array<string>;
|
|
40
43
|
}
|
|
41
44
|
|
|
45
|
+
export interface InvoicesApiRequestBulkDownloadInvoicesRequest {
|
|
46
|
+
bulkDownloadInvoicesInput: BulkDownloadInvoicesInput;
|
|
47
|
+
}
|
|
48
|
+
|
|
42
49
|
/**
|
|
43
50
|
*
|
|
44
51
|
*/
|
|
@@ -135,4 +142,47 @@ export class InvoicesApi extends runtime.BaseAPI {
|
|
|
135
142
|
return await response.value();
|
|
136
143
|
}
|
|
137
144
|
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
*/
|
|
148
|
+
async requestBulkDownloadInvoicesRaw(requestParameters: InvoicesApiRequestBulkDownloadInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
149
|
+
if (requestParameters['bulkDownloadInvoicesInput'] == null) {
|
|
150
|
+
throw new runtime.RequiredError(
|
|
151
|
+
'bulkDownloadInvoicesInput',
|
|
152
|
+
'Required parameter "bulkDownloadInvoicesInput" was null or undefined when calling requestBulkDownloadInvoices().'
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const queryParameters: any = {};
|
|
157
|
+
|
|
158
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
159
|
+
|
|
160
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
161
|
+
|
|
162
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
163
|
+
const token = this.configuration.accessToken;
|
|
164
|
+
const tokenString = await token("bearer", []);
|
|
165
|
+
|
|
166
|
+
if (tokenString) {
|
|
167
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
const response = await this.request({
|
|
171
|
+
path: `/private/invoices/bulk-download`,
|
|
172
|
+
method: 'POST',
|
|
173
|
+
headers: headerParameters,
|
|
174
|
+
query: queryParameters,
|
|
175
|
+
body: BulkDownloadInvoicesInputToJSON(requestParameters['bulkDownloadInvoicesInput']),
|
|
176
|
+
}, initOverrides);
|
|
177
|
+
|
|
178
|
+
return new runtime.VoidApiResponse(response);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
*/
|
|
184
|
+
async requestBulkDownloadInvoices(requestParameters: InvoicesApiRequestBulkDownloadInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
185
|
+
await this.requestBulkDownloadInvoicesRaw(requestParameters, initOverrides);
|
|
186
|
+
}
|
|
187
|
+
|
|
138
188
|
}
|
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
BadRequestException,
|
|
19
19
|
CreateSubscriptionInput,
|
|
20
|
+
CreateSubscriptionManualTransactionInput,
|
|
20
21
|
NotFoundException,
|
|
21
22
|
ObjectId,
|
|
22
23
|
SubscriptionDto,
|
|
@@ -28,6 +29,8 @@ import {
|
|
|
28
29
|
BadRequestExceptionToJSON,
|
|
29
30
|
CreateSubscriptionInputFromJSON,
|
|
30
31
|
CreateSubscriptionInputToJSON,
|
|
32
|
+
CreateSubscriptionManualTransactionInputFromJSON,
|
|
33
|
+
CreateSubscriptionManualTransactionInputToJSON,
|
|
31
34
|
NotFoundExceptionFromJSON,
|
|
32
35
|
NotFoundExceptionToJSON,
|
|
33
36
|
ObjectIdFromJSON,
|
|
@@ -46,7 +49,7 @@ export interface SubscriptionsPublicApiCreateSubscriptionRequest {
|
|
|
46
49
|
|
|
47
50
|
export interface SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest {
|
|
48
51
|
subscriptionId: string;
|
|
49
|
-
|
|
52
|
+
createSubscriptionManualTransactionInput: CreateSubscriptionManualTransactionInput;
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
export interface SubscriptionsPublicApiGetSubscriptionRequest {
|
|
@@ -116,10 +119,10 @@ export class SubscriptionsPublicApi extends runtime.BaseAPI {
|
|
|
116
119
|
);
|
|
117
120
|
}
|
|
118
121
|
|
|
119
|
-
if (requestParameters['
|
|
122
|
+
if (requestParameters['createSubscriptionManualTransactionInput'] == null) {
|
|
120
123
|
throw new runtime.RequiredError(
|
|
121
|
-
'
|
|
122
|
-
'Required parameter "
|
|
124
|
+
'createSubscriptionManualTransactionInput',
|
|
125
|
+
'Required parameter "createSubscriptionManualTransactionInput" was null or undefined when calling createSubscriptionManualTransaction().'
|
|
123
126
|
);
|
|
124
127
|
}
|
|
125
128
|
|
|
@@ -127,11 +130,14 @@ export class SubscriptionsPublicApi extends runtime.BaseAPI {
|
|
|
127
130
|
|
|
128
131
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
129
132
|
|
|
133
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
134
|
+
|
|
130
135
|
const response = await this.request({
|
|
131
|
-
path: `/subscriptions/{subscriptionId}/invoices/
|
|
136
|
+
path: `/subscriptions/{subscriptionId}/invoices/transactions`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
132
137
|
method: 'POST',
|
|
133
138
|
headers: headerParameters,
|
|
134
139
|
query: queryParameters,
|
|
140
|
+
body: CreateSubscriptionManualTransactionInputToJSON(requestParameters['createSubscriptionManualTransactionInput']),
|
|
135
141
|
}, initOverrides);
|
|
136
142
|
|
|
137
143
|
return new runtime.VoidApiResponse(response);
|
|
@@ -0,0 +1,73 @@
|
|
|
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 BulkDownloadInvoicesInput
|
|
20
|
+
*/
|
|
21
|
+
export interface BulkDownloadInvoicesInput {
|
|
22
|
+
/**
|
|
23
|
+
* Start date for filtering invoices
|
|
24
|
+
* @type {Date}
|
|
25
|
+
* @memberof BulkDownloadInvoicesInput
|
|
26
|
+
*/
|
|
27
|
+
startDate?: Date;
|
|
28
|
+
/**
|
|
29
|
+
* End date for filtering invoices
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof BulkDownloadInvoicesInput
|
|
32
|
+
*/
|
|
33
|
+
endDate?: Date;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the BulkDownloadInvoicesInput interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfBulkDownloadInvoicesInput(value: object): value is BulkDownloadInvoicesInput {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function BulkDownloadInvoicesInputFromJSON(json: any): BulkDownloadInvoicesInput {
|
|
44
|
+
return BulkDownloadInvoicesInputFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function BulkDownloadInvoicesInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkDownloadInvoicesInput {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'startDate': json['startDate'] == null ? undefined : (new Date(json['startDate'])),
|
|
54
|
+
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function BulkDownloadInvoicesInputToJSON(json: any): BulkDownloadInvoicesInput {
|
|
59
|
+
return BulkDownloadInvoicesInputToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function BulkDownloadInvoicesInputToJSONTyped(value?: BulkDownloadInvoicesInput | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'startDate': value['startDate'] == null ? undefined : ((value['startDate']).toISOString()),
|
|
70
|
+
'endDate': value['endDate'] == null ? undefined : ((value['endDate']).toISOString()),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -121,6 +121,8 @@ export const BuyerNotificationDtoTypeEnum = {
|
|
|
121
121
|
BUYER_INVOICE: 'buyer_invoice',
|
|
122
122
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
123
123
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
124
|
+
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
125
|
+
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
124
126
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
125
127
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
126
128
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
@@ -107,6 +107,8 @@ export const BuyerNotificationListItemDtoTypeEnum = {
|
|
|
107
107
|
BUYER_INVOICE: 'buyer_invoice',
|
|
108
108
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
109
109
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
110
|
+
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
111
|
+
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
110
112
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
111
113
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
112
114
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
@@ -0,0 +1,65 @@
|
|
|
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 CreateSubscriptionManualTransactionInput
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateSubscriptionManualTransactionInput {
|
|
22
|
+
/**
|
|
23
|
+
* Optional invoice ID. If not provided, the active buyer invoice will be used.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateSubscriptionManualTransactionInput
|
|
26
|
+
*/
|
|
27
|
+
invoiceId?: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the CreateSubscriptionManualTransactionInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfCreateSubscriptionManualTransactionInput(value: object): value is CreateSubscriptionManualTransactionInput {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function CreateSubscriptionManualTransactionInputFromJSON(json: any): CreateSubscriptionManualTransactionInput {
|
|
38
|
+
return CreateSubscriptionManualTransactionInputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function CreateSubscriptionManualTransactionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubscriptionManualTransactionInput {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'invoiceId': json['invoiceId'] == null ? undefined : json['invoiceId'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function CreateSubscriptionManualTransactionInputToJSON(json: any): CreateSubscriptionManualTransactionInput {
|
|
52
|
+
return CreateSubscriptionManualTransactionInputToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function CreateSubscriptionManualTransactionInputToJSONTyped(value?: CreateSubscriptionManualTransactionInput | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'invoiceId': value['invoiceId'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -121,6 +121,8 @@ export const UserNotificationDtoTypeEnum = {
|
|
|
121
121
|
BUYER_INVOICE: 'buyer_invoice',
|
|
122
122
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
123
123
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
124
|
+
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
125
|
+
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
124
126
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
125
127
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
126
128
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
@@ -107,6 +107,8 @@ export const UserNotificationListItemDtoTypeEnum = {
|
|
|
107
107
|
BUYER_INVOICE: 'buyer_invoice',
|
|
108
108
|
BUYER_RENT_INSTALLMENT_INVOICE: 'buyer_rent_installment_invoice',
|
|
109
109
|
BUYER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'buyer_lease_to_own_installment_invoice',
|
|
110
|
+
SELLER_BULK_DOWNLOAD_INVOICES_COMPLETED: 'seller_bulk_download_invoices_completed',
|
|
111
|
+
SELLER_BULK_DOWNLOAD_INVOICES_FAILED: 'seller_bulk_download_invoices_failed',
|
|
110
112
|
EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results',
|
|
111
113
|
ORDER_HAS_BEEN_PAID: 'order_has_been_paid',
|
|
112
114
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
package/src/models/index.ts
CHANGED
|
@@ -60,6 +60,7 @@ export * from './BatchReadSellerLeadMessageInput';
|
|
|
60
60
|
export * from './BatchUpdateDomainsInput';
|
|
61
61
|
export * from './BatchVerifyBuyerLeadsInput';
|
|
62
62
|
export * from './BillingInformationDto';
|
|
63
|
+
export * from './BulkDownloadInvoicesInput';
|
|
63
64
|
export * from './BulkMarkBuyerNotificationsAsReadInputDto';
|
|
64
65
|
export * from './BulkMarkNotificationsAsReadInputDto';
|
|
65
66
|
export * from './BulkUpdateDomainsWithFiltersInput';
|
|
@@ -104,6 +105,7 @@ export * from './CreateManualTransactionInput';
|
|
|
104
105
|
export * from './CreateOrderInput';
|
|
105
106
|
export * from './CreateSubscriptionBillingPeriodicityInput';
|
|
106
107
|
export * from './CreateSubscriptionInput';
|
|
108
|
+
export * from './CreateSubscriptionManualTransactionInput';
|
|
107
109
|
export * from './CursorBasedPageInfo';
|
|
108
110
|
export * from './CursorBasedPaginationResponse';
|
|
109
111
|
export * from './DeleteDomainsInput';
|