@randock/nameshift-api-client 0.0.444 → 0.0.445
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/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +15 -1
- package/dist/apis/AdminApi.js +58 -0
- package/dist/models/ChangeInvoiceStatusInput.d.ts +42 -0
- package/dist/models/ChangeInvoiceStatusInput.js +61 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +60 -0
- package/src/models/ChangeInvoiceStatusInput.ts +79 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -162,6 +162,7 @@ src/models/BuyerSubscriptionListItemDtoDomainInformation.ts
|
|
|
162
162
|
src/models/BuyerTaskDetailsDto.ts
|
|
163
163
|
src/models/CaBankAccountDetails.ts
|
|
164
164
|
src/models/ChallengeRewardBalanceDto.ts
|
|
165
|
+
src/models/ChangeInvoiceStatusInput.ts
|
|
165
166
|
src/models/ChangeOrderStatusInput.ts
|
|
166
167
|
src/models/ChangeSubscriptionStatusInput.ts
|
|
167
168
|
src/models/ChangeUserEmailWithOtpInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.445
|
|
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.445 --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
|
+
b972e9daf76cceacccbb7825d774124b14483923c71389748433c63cb8a6842b4f88948562a297b3f1aff7a23bc1c021
|
package/dist/apis/AdminApi.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 { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
|
|
13
|
+
import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminDeleteAuctionRequest {
|
|
15
15
|
auctionId: string;
|
|
16
16
|
}
|
|
@@ -30,6 +30,10 @@ export interface AdminApiBulkCommissionActionsRequest {
|
|
|
30
30
|
export interface AdminApiCancelDomainTransferRequest {
|
|
31
31
|
transferId: string;
|
|
32
32
|
}
|
|
33
|
+
export interface AdminApiChangeInvoiceStatusRequest {
|
|
34
|
+
invoiceId: string;
|
|
35
|
+
changeInvoiceStatusInput: ChangeInvoiceStatusInput;
|
|
36
|
+
}
|
|
33
37
|
export interface AdminApiChangeOrderStatusRequest {
|
|
34
38
|
orderId: string;
|
|
35
39
|
changeOrderStatusInput: ChangeOrderStatusInput;
|
|
@@ -335,6 +339,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
335
339
|
* Cancel domain transfer
|
|
336
340
|
*/
|
|
337
341
|
cancelDomainTransfer(requestParameters: AdminApiCancelDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
342
|
+
/**
|
|
343
|
+
* Updates the status of an existing invoice.
|
|
344
|
+
* Change invoice status
|
|
345
|
+
*/
|
|
346
|
+
changeInvoiceStatusRaw(requestParameters: AdminApiChangeInvoiceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
347
|
+
/**
|
|
348
|
+
* Updates the status of an existing invoice.
|
|
349
|
+
* Change invoice status
|
|
350
|
+
*/
|
|
351
|
+
changeInvoiceStatus(requestParameters: AdminApiChangeInvoiceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
338
352
|
/**
|
|
339
353
|
* Updates the invoice status of an existing order.
|
|
340
354
|
* Change order status
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -307,6 +307,64 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
307
307
|
});
|
|
308
308
|
});
|
|
309
309
|
};
|
|
310
|
+
/**
|
|
311
|
+
* Updates the status of an existing invoice.
|
|
312
|
+
* Change invoice status
|
|
313
|
+
*/
|
|
314
|
+
AdminApi.prototype.changeInvoiceStatusRaw = function (requestParameters, initOverrides) {
|
|
315
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
316
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
317
|
+
return __generator(this, function (_a) {
|
|
318
|
+
switch (_a.label) {
|
|
319
|
+
case 0:
|
|
320
|
+
if (requestParameters['invoiceId'] == null) {
|
|
321
|
+
throw new runtime.RequiredError('invoiceId', 'Required parameter "invoiceId" was null or undefined when calling changeInvoiceStatus().');
|
|
322
|
+
}
|
|
323
|
+
if (requestParameters['changeInvoiceStatusInput'] == null) {
|
|
324
|
+
throw new runtime.RequiredError('changeInvoiceStatusInput', 'Required parameter "changeInvoiceStatusInput" was null or undefined when calling changeInvoiceStatus().');
|
|
325
|
+
}
|
|
326
|
+
queryParameters = {};
|
|
327
|
+
headerParameters = {};
|
|
328
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
329
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
330
|
+
token = this.configuration.accessToken;
|
|
331
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
332
|
+
case 1:
|
|
333
|
+
tokenString = _a.sent();
|
|
334
|
+
if (tokenString) {
|
|
335
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
336
|
+
}
|
|
337
|
+
_a.label = 2;
|
|
338
|
+
case 2: return [4 /*yield*/, this.request({
|
|
339
|
+
path: "/admin/invoices/{invoiceId}/status".replace("{".concat("invoiceId", "}"), encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
340
|
+
method: 'PATCH',
|
|
341
|
+
headers: headerParameters,
|
|
342
|
+
query: queryParameters,
|
|
343
|
+
body: (0, index_1.ChangeInvoiceStatusInputToJSON)(requestParameters['changeInvoiceStatusInput']),
|
|
344
|
+
}, initOverrides)];
|
|
345
|
+
case 3:
|
|
346
|
+
response = _a.sent();
|
|
347
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
});
|
|
351
|
+
};
|
|
352
|
+
/**
|
|
353
|
+
* Updates the status of an existing invoice.
|
|
354
|
+
* Change invoice status
|
|
355
|
+
*/
|
|
356
|
+
AdminApi.prototype.changeInvoiceStatus = function (requestParameters, initOverrides) {
|
|
357
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
358
|
+
return __generator(this, function (_a) {
|
|
359
|
+
switch (_a.label) {
|
|
360
|
+
case 0: return [4 /*yield*/, this.changeInvoiceStatusRaw(requestParameters, initOverrides)];
|
|
361
|
+
case 1:
|
|
362
|
+
_a.sent();
|
|
363
|
+
return [2 /*return*/];
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
});
|
|
367
|
+
};
|
|
310
368
|
/**
|
|
311
369
|
* Updates the invoice status of an existing order.
|
|
312
370
|
* Change order status
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 ChangeInvoiceStatusInput
|
|
16
|
+
*/
|
|
17
|
+
export interface ChangeInvoiceStatusInput {
|
|
18
|
+
/**
|
|
19
|
+
* New status to apply to the invoice
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ChangeInvoiceStatusInput
|
|
22
|
+
*/
|
|
23
|
+
status: ChangeInvoiceStatusInputStatusEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const ChangeInvoiceStatusInputStatusEnum: {
|
|
29
|
+
readonly DRAFT: "draft";
|
|
30
|
+
readonly PENDING_PAYMENT: "pending_payment";
|
|
31
|
+
readonly PAID: "paid";
|
|
32
|
+
readonly CANCELLED: "cancelled";
|
|
33
|
+
};
|
|
34
|
+
export type ChangeInvoiceStatusInputStatusEnum = typeof ChangeInvoiceStatusInputStatusEnum[keyof typeof ChangeInvoiceStatusInputStatusEnum];
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the ChangeInvoiceStatusInput interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfChangeInvoiceStatusInput(value: object): value is ChangeInvoiceStatusInput;
|
|
39
|
+
export declare function ChangeInvoiceStatusInputFromJSON(json: any): ChangeInvoiceStatusInput;
|
|
40
|
+
export declare function ChangeInvoiceStatusInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeInvoiceStatusInput;
|
|
41
|
+
export declare function ChangeInvoiceStatusInputToJSON(json: any): ChangeInvoiceStatusInput;
|
|
42
|
+
export declare function ChangeInvoiceStatusInputToJSONTyped(value?: ChangeInvoiceStatusInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.ChangeInvoiceStatusInputStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfChangeInvoiceStatusInput = instanceOfChangeInvoiceStatusInput;
|
|
18
|
+
exports.ChangeInvoiceStatusInputFromJSON = ChangeInvoiceStatusInputFromJSON;
|
|
19
|
+
exports.ChangeInvoiceStatusInputFromJSONTyped = ChangeInvoiceStatusInputFromJSONTyped;
|
|
20
|
+
exports.ChangeInvoiceStatusInputToJSON = ChangeInvoiceStatusInputToJSON;
|
|
21
|
+
exports.ChangeInvoiceStatusInputToJSONTyped = ChangeInvoiceStatusInputToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ChangeInvoiceStatusInputStatusEnum = {
|
|
26
|
+
DRAFT: 'draft',
|
|
27
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
28
|
+
PAID: 'paid',
|
|
29
|
+
CANCELLED: 'cancelled'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ChangeInvoiceStatusInput interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfChangeInvoiceStatusInput(value) {
|
|
35
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function ChangeInvoiceStatusInputFromJSON(json) {
|
|
40
|
+
return ChangeInvoiceStatusInputFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ChangeInvoiceStatusInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'status': json['status'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function ChangeInvoiceStatusInputToJSON(json) {
|
|
51
|
+
return ChangeInvoiceStatusInputToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ChangeInvoiceStatusInputToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'status': value['status'],
|
|
60
|
+
};
|
|
61
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ export * from './BuyerSubscriptionListItemDtoDomainInformation';
|
|
|
126
126
|
export * from './BuyerTaskDetailsDto';
|
|
127
127
|
export * from './CaBankAccountDetails';
|
|
128
128
|
export * from './ChallengeRewardBalanceDto';
|
|
129
|
+
export * from './ChangeInvoiceStatusInput';
|
|
129
130
|
export * from './ChangeOrderStatusInput';
|
|
130
131
|
export * from './ChangeSubscriptionStatusInput';
|
|
131
132
|
export * from './ChangeUserEmailWithOtpInput';
|
package/dist/models/index.js
CHANGED
|
@@ -144,6 +144,7 @@ __exportStar(require("./BuyerSubscriptionListItemDtoDomainInformation"), exports
|
|
|
144
144
|
__exportStar(require("./BuyerTaskDetailsDto"), exports);
|
|
145
145
|
__exportStar(require("./CaBankAccountDetails"), exports);
|
|
146
146
|
__exportStar(require("./ChallengeRewardBalanceDto"), exports);
|
|
147
|
+
__exportStar(require("./ChangeInvoiceStatusInput"), exports);
|
|
147
148
|
__exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
148
149
|
__exportStar(require("./ChangeSubscriptionStatusInput"), exports);
|
|
149
150
|
__exportStar(require("./ChangeUserEmailWithOtpInput"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -27,6 +27,7 @@ import type {
|
|
|
27
27
|
AdminGetAllDomainTransfers200Response,
|
|
28
28
|
BadRequestException,
|
|
29
29
|
BulkCommissionActionsInput,
|
|
30
|
+
ChangeInvoiceStatusInput,
|
|
30
31
|
ChangeOrderStatusInput,
|
|
31
32
|
ChangeSubscriptionStatusInput,
|
|
32
33
|
CommissionListDto,
|
|
@@ -89,6 +90,8 @@ import {
|
|
|
89
90
|
BadRequestExceptionToJSON,
|
|
90
91
|
BulkCommissionActionsInputFromJSON,
|
|
91
92
|
BulkCommissionActionsInputToJSON,
|
|
93
|
+
ChangeInvoiceStatusInputFromJSON,
|
|
94
|
+
ChangeInvoiceStatusInputToJSON,
|
|
92
95
|
ChangeOrderStatusInputFromJSON,
|
|
93
96
|
ChangeOrderStatusInputToJSON,
|
|
94
97
|
ChangeSubscriptionStatusInputFromJSON,
|
|
@@ -184,6 +187,11 @@ export interface AdminApiCancelDomainTransferRequest {
|
|
|
184
187
|
transferId: string;
|
|
185
188
|
}
|
|
186
189
|
|
|
190
|
+
export interface AdminApiChangeInvoiceStatusRequest {
|
|
191
|
+
invoiceId: string;
|
|
192
|
+
changeInvoiceStatusInput: ChangeInvoiceStatusInput;
|
|
193
|
+
}
|
|
194
|
+
|
|
187
195
|
export interface AdminApiChangeOrderStatusRequest {
|
|
188
196
|
orderId: string;
|
|
189
197
|
changeOrderStatusInput: ChangeOrderStatusInput;
|
|
@@ -672,6 +680,58 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
672
680
|
await this.cancelDomainTransferRaw(requestParameters, initOverrides);
|
|
673
681
|
}
|
|
674
682
|
|
|
683
|
+
/**
|
|
684
|
+
* Updates the status of an existing invoice.
|
|
685
|
+
* Change invoice status
|
|
686
|
+
*/
|
|
687
|
+
async changeInvoiceStatusRaw(requestParameters: AdminApiChangeInvoiceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
688
|
+
if (requestParameters['invoiceId'] == null) {
|
|
689
|
+
throw new runtime.RequiredError(
|
|
690
|
+
'invoiceId',
|
|
691
|
+
'Required parameter "invoiceId" was null or undefined when calling changeInvoiceStatus().'
|
|
692
|
+
);
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
if (requestParameters['changeInvoiceStatusInput'] == null) {
|
|
696
|
+
throw new runtime.RequiredError(
|
|
697
|
+
'changeInvoiceStatusInput',
|
|
698
|
+
'Required parameter "changeInvoiceStatusInput" was null or undefined when calling changeInvoiceStatus().'
|
|
699
|
+
);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
const queryParameters: any = {};
|
|
703
|
+
|
|
704
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
705
|
+
|
|
706
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
707
|
+
|
|
708
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
709
|
+
const token = this.configuration.accessToken;
|
|
710
|
+
const tokenString = await token("bearer", []);
|
|
711
|
+
|
|
712
|
+
if (tokenString) {
|
|
713
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
const response = await this.request({
|
|
717
|
+
path: `/admin/invoices/{invoiceId}/status`.replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
718
|
+
method: 'PATCH',
|
|
719
|
+
headers: headerParameters,
|
|
720
|
+
query: queryParameters,
|
|
721
|
+
body: ChangeInvoiceStatusInputToJSON(requestParameters['changeInvoiceStatusInput']),
|
|
722
|
+
}, initOverrides);
|
|
723
|
+
|
|
724
|
+
return new runtime.VoidApiResponse(response);
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Updates the status of an existing invoice.
|
|
729
|
+
* Change invoice status
|
|
730
|
+
*/
|
|
731
|
+
async changeInvoiceStatus(requestParameters: AdminApiChangeInvoiceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
732
|
+
await this.changeInvoiceStatusRaw(requestParameters, initOverrides);
|
|
733
|
+
}
|
|
734
|
+
|
|
675
735
|
/**
|
|
676
736
|
* Updates the invoice status of an existing order.
|
|
677
737
|
* Change order status
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 ChangeInvoiceStatusInput
|
|
20
|
+
*/
|
|
21
|
+
export interface ChangeInvoiceStatusInput {
|
|
22
|
+
/**
|
|
23
|
+
* New status to apply to the invoice
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ChangeInvoiceStatusInput
|
|
26
|
+
*/
|
|
27
|
+
status: ChangeInvoiceStatusInputStatusEnum;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export const ChangeInvoiceStatusInputStatusEnum = {
|
|
35
|
+
DRAFT: 'draft',
|
|
36
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
37
|
+
PAID: 'paid',
|
|
38
|
+
CANCELLED: 'cancelled'
|
|
39
|
+
} as const;
|
|
40
|
+
export type ChangeInvoiceStatusInputStatusEnum = typeof ChangeInvoiceStatusInputStatusEnum[keyof typeof ChangeInvoiceStatusInputStatusEnum];
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ChangeInvoiceStatusInput interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfChangeInvoiceStatusInput(value: object): value is ChangeInvoiceStatusInput {
|
|
47
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ChangeInvoiceStatusInputFromJSON(json: any): ChangeInvoiceStatusInput {
|
|
52
|
+
return ChangeInvoiceStatusInputFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ChangeInvoiceStatusInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeInvoiceStatusInput {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'status': json['status'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ChangeInvoiceStatusInputToJSON(json: any): ChangeInvoiceStatusInput {
|
|
66
|
+
return ChangeInvoiceStatusInputToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ChangeInvoiceStatusInputToJSONTyped(value?: ChangeInvoiceStatusInput | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'status': value['status'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -128,6 +128,7 @@ export * from './BuyerSubscriptionListItemDtoDomainInformation';
|
|
|
128
128
|
export * from './BuyerTaskDetailsDto';
|
|
129
129
|
export * from './CaBankAccountDetails';
|
|
130
130
|
export * from './ChallengeRewardBalanceDto';
|
|
131
|
+
export * from './ChangeInvoiceStatusInput';
|
|
131
132
|
export * from './ChangeOrderStatusInput';
|
|
132
133
|
export * from './ChangeSubscriptionStatusInput';
|
|
133
134
|
export * from './ChangeUserEmailWithOtpInput';
|