yellowgrid-api-ts 3.2.92-dev.0 → 3.2.94-dev.0
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 +1 -0
- package/api.ts +54 -29
- package/dist/api.d.ts +41 -16
- package/dist/api.js +31 -31
- package/docs/AdminNumberPortDTO.md +2 -0
- package/docs/NumberPortingApi.md +6 -5
- package/docs/OrderDetailsDTO.md +2 -0
- package/docs/OrdersApi.md +3 -3
- package/docs/PostAddAdminNoteRequest.md +20 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -122,6 +122,7 @@ docs/PatchSetTcxWizardCnameRequest.md
|
|
|
122
122
|
docs/PatchUpdateAccountContactPasswordRequest.md
|
|
123
123
|
docs/PortalAccountModel.md
|
|
124
124
|
docs/PortalLoginModel.md
|
|
125
|
+
docs/PostAddAdminNoteRequest.md
|
|
125
126
|
docs/PostAddOrderNoteRequest.md
|
|
126
127
|
docs/PostAddWebhook200Response.md
|
|
127
128
|
docs/PostGetClientCredentialsRequest.md
|
package/README.md
CHANGED
|
@@ -372,6 +372,7 @@ Class | Method | HTTP request | Description
|
|
|
372
372
|
- [PatchUpdateAccountContactPasswordRequest](docs/PatchUpdateAccountContactPasswordRequest.md)
|
|
373
373
|
- [PortalAccountModel](docs/PortalAccountModel.md)
|
|
374
374
|
- [PortalLoginModel](docs/PortalLoginModel.md)
|
|
375
|
+
- [PostAddAdminNoteRequest](docs/PostAddAdminNoteRequest.md)
|
|
375
376
|
- [PostAddOrderNoteRequest](docs/PostAddOrderNoteRequest.md)
|
|
376
377
|
- [PostAddWebhook200Response](docs/PostAddWebhook200Response.md)
|
|
377
378
|
- [PostGetClientCredentialsRequest](docs/PostGetClientCredentialsRequest.md)
|
package/api.ts
CHANGED
|
@@ -777,6 +777,12 @@ export interface AdminNumberPortDTO {
|
|
|
777
777
|
* @memberof AdminNumberPortDTO
|
|
778
778
|
*/
|
|
779
779
|
'notes'?: Array<NumberPortNoteDTO>;
|
|
780
|
+
/**
|
|
781
|
+
* Attachments
|
|
782
|
+
* @type {Array<AttachmentModel>}
|
|
783
|
+
* @memberof AdminNumberPortDTO
|
|
784
|
+
*/
|
|
785
|
+
'cloas'?: Array<AttachmentModel>;
|
|
780
786
|
}
|
|
781
787
|
/**
|
|
782
788
|
* Admin Order Request
|
|
@@ -4732,6 +4738,12 @@ export interface OrderDetailsDTO {
|
|
|
4732
4738
|
* @memberof OrderDetailsDTO
|
|
4733
4739
|
*/
|
|
4734
4740
|
'customerEmail'?: string;
|
|
4741
|
+
/**
|
|
4742
|
+
*
|
|
4743
|
+
* @type {OrderTotalModel}
|
|
4744
|
+
* @memberof OrderDetailsDTO
|
|
4745
|
+
*/
|
|
4746
|
+
'totals'?: OrderTotalModel;
|
|
4735
4747
|
}
|
|
4736
4748
|
/**
|
|
4737
4749
|
* OrdersEntity
|
|
@@ -5936,6 +5948,19 @@ export interface PortalLoginModel {
|
|
|
5936
5948
|
*/
|
|
5937
5949
|
'redirect_uri'?: string;
|
|
5938
5950
|
}
|
|
5951
|
+
/**
|
|
5952
|
+
*
|
|
5953
|
+
* @export
|
|
5954
|
+
* @interface PostAddAdminNoteRequest
|
|
5955
|
+
*/
|
|
5956
|
+
export interface PostAddAdminNoteRequest {
|
|
5957
|
+
/**
|
|
5958
|
+
* Note
|
|
5959
|
+
* @type {string}
|
|
5960
|
+
* @memberof PostAddAdminNoteRequest
|
|
5961
|
+
*/
|
|
5962
|
+
'note'?: string;
|
|
5963
|
+
}
|
|
5939
5964
|
/**
|
|
5940
5965
|
*
|
|
5941
5966
|
* @export
|
|
@@ -18440,15 +18465,15 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
18440
18465
|
/**
|
|
18441
18466
|
*
|
|
18442
18467
|
* @param {number} id Number Port ID
|
|
18443
|
-
* @param {
|
|
18468
|
+
* @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
|
|
18444
18469
|
* @param {*} [options] Override http request option.
|
|
18445
18470
|
* @throws {RequiredError}
|
|
18446
18471
|
*/
|
|
18447
|
-
postAddAdminNote: async (id: number,
|
|
18472
|
+
postAddAdminNote: async (id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18448
18473
|
// verify required parameter 'id' is not null or undefined
|
|
18449
18474
|
assertParamExists('postAddAdminNote', 'id', id)
|
|
18450
|
-
// verify required parameter '
|
|
18451
|
-
assertParamExists('postAddAdminNote', '
|
|
18475
|
+
// verify required parameter 'postAddAdminNoteRequest' is not null or undefined
|
|
18476
|
+
assertParamExists('postAddAdminNote', 'postAddAdminNoteRequest', postAddAdminNoteRequest)
|
|
18452
18477
|
const localVarPath = `/admin/sip/numbers/ports/{id}/notes`
|
|
18453
18478
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
18454
18479
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -18469,7 +18494,7 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
18469
18494
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18470
18495
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18471
18496
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18472
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
18497
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postAddAdminNoteRequest, localVarRequestOptions, configuration)
|
|
18473
18498
|
|
|
18474
18499
|
return {
|
|
18475
18500
|
url: toPathString(localVarUrlObj),
|
|
@@ -18891,12 +18916,12 @@ export const NumberPortingApiFp = function(configuration?: Configuration) {
|
|
|
18891
18916
|
/**
|
|
18892
18917
|
*
|
|
18893
18918
|
* @param {number} id Number Port ID
|
|
18894
|
-
* @param {
|
|
18919
|
+
* @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
|
|
18895
18920
|
* @param {*} [options] Override http request option.
|
|
18896
18921
|
* @throws {RequiredError}
|
|
18897
18922
|
*/
|
|
18898
|
-
async postAddAdminNote(id: number,
|
|
18899
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postAddAdminNote(id,
|
|
18923
|
+
async postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>> {
|
|
18924
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postAddAdminNote(id, postAddAdminNoteRequest, options);
|
|
18900
18925
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18901
18926
|
const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.postAddAdminNote']?.[localVarOperationServerIndex]?.url;
|
|
18902
18927
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -19056,12 +19081,12 @@ export const NumberPortingApiFactory = function (configuration?: Configuration,
|
|
|
19056
19081
|
/**
|
|
19057
19082
|
*
|
|
19058
19083
|
* @param {number} id Number Port ID
|
|
19059
|
-
* @param {
|
|
19084
|
+
* @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
|
|
19060
19085
|
* @param {*} [options] Override http request option.
|
|
19061
19086
|
* @throws {RequiredError}
|
|
19062
19087
|
*/
|
|
19063
|
-
postAddAdminNote(id: number,
|
|
19064
|
-
return localVarFp.postAddAdminNote(id,
|
|
19088
|
+
postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO> {
|
|
19089
|
+
return localVarFp.postAddAdminNote(id, postAddAdminNoteRequest, options).then((request) => request(axios, basePath));
|
|
19065
19090
|
},
|
|
19066
19091
|
/**
|
|
19067
19092
|
*
|
|
@@ -19218,13 +19243,13 @@ export class NumberPortingApi extends BaseAPI {
|
|
|
19218
19243
|
/**
|
|
19219
19244
|
*
|
|
19220
19245
|
* @param {number} id Number Port ID
|
|
19221
|
-
* @param {
|
|
19246
|
+
* @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
|
|
19222
19247
|
* @param {*} [options] Override http request option.
|
|
19223
19248
|
* @throws {RequiredError}
|
|
19224
19249
|
* @memberof NumberPortingApi
|
|
19225
19250
|
*/
|
|
19226
|
-
public postAddAdminNote(id: number,
|
|
19227
|
-
return NumberPortingApiFp(this.configuration).postAddAdminNote(id,
|
|
19251
|
+
public postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig) {
|
|
19252
|
+
return NumberPortingApiFp(this.configuration).postAddAdminNote(id, postAddAdminNoteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
19228
19253
|
}
|
|
19229
19254
|
|
|
19230
19255
|
/**
|
|
@@ -20955,15 +20980,15 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
20955
20980
|
* Change Payment Status (Admin)
|
|
20956
20981
|
* @summary Change Payment Status (Admin)
|
|
20957
20982
|
* @param {number} id Order ID
|
|
20958
|
-
* @param {boolean}
|
|
20983
|
+
* @param {boolean} paid Paid
|
|
20959
20984
|
* @param {*} [options] Override http request option.
|
|
20960
20985
|
* @throws {RequiredError}
|
|
20961
20986
|
*/
|
|
20962
|
-
putUpdatePaymentStatus: async (id: number,
|
|
20987
|
+
putUpdatePaymentStatus: async (id: number, paid: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20963
20988
|
// verify required parameter 'id' is not null or undefined
|
|
20964
20989
|
assertParamExists('putUpdatePaymentStatus', 'id', id)
|
|
20965
|
-
// verify required parameter '
|
|
20966
|
-
assertParamExists('putUpdatePaymentStatus', '
|
|
20990
|
+
// verify required parameter 'paid' is not null or undefined
|
|
20991
|
+
assertParamExists('putUpdatePaymentStatus', 'paid', paid)
|
|
20967
20992
|
const localVarPath = `/admin/orders/{id}/paid`
|
|
20968
20993
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
20969
20994
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -20977,8 +21002,8 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
20977
21002
|
const localVarHeaderParameter = {} as any;
|
|
20978
21003
|
const localVarQueryParameter = {} as any;
|
|
20979
21004
|
|
|
20980
|
-
if (
|
|
20981
|
-
localVarQueryParameter['
|
|
21005
|
+
if (paid !== undefined) {
|
|
21006
|
+
localVarQueryParameter['paid'] = paid;
|
|
20982
21007
|
}
|
|
20983
21008
|
|
|
20984
21009
|
|
|
@@ -21395,12 +21420,12 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
21395
21420
|
* Change Payment Status (Admin)
|
|
21396
21421
|
* @summary Change Payment Status (Admin)
|
|
21397
21422
|
* @param {number} id Order ID
|
|
21398
|
-
* @param {boolean}
|
|
21423
|
+
* @param {boolean} paid Paid
|
|
21399
21424
|
* @param {*} [options] Override http request option.
|
|
21400
21425
|
* @throws {RequiredError}
|
|
21401
21426
|
*/
|
|
21402
|
-
async putUpdatePaymentStatus(id: number,
|
|
21403
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdatePaymentStatus(id,
|
|
21427
|
+
async putUpdatePaymentStatus(id: number, paid: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
|
|
21428
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdatePaymentStatus(id, paid, options);
|
|
21404
21429
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
21405
21430
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdatePaymentStatus']?.[localVarOperationServerIndex]?.url;
|
|
21406
21431
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -21706,12 +21731,12 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
21706
21731
|
* Change Payment Status (Admin)
|
|
21707
21732
|
* @summary Change Payment Status (Admin)
|
|
21708
21733
|
* @param {number} id Order ID
|
|
21709
|
-
* @param {boolean}
|
|
21734
|
+
* @param {boolean} paid Paid
|
|
21710
21735
|
* @param {*} [options] Override http request option.
|
|
21711
21736
|
* @throws {RequiredError}
|
|
21712
21737
|
*/
|
|
21713
|
-
putUpdatePaymentStatus(id: number,
|
|
21714
|
-
return localVarFp.putUpdatePaymentStatus(id,
|
|
21738
|
+
putUpdatePaymentStatus(id: number, paid: boolean, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
|
|
21739
|
+
return localVarFp.putUpdatePaymentStatus(id, paid, options).then((request) => request(axios, basePath));
|
|
21715
21740
|
},
|
|
21716
21741
|
/**
|
|
21717
21742
|
* Update Shipment (Admin)
|
|
@@ -22059,13 +22084,13 @@ export class OrdersApi extends BaseAPI {
|
|
|
22059
22084
|
* Change Payment Status (Admin)
|
|
22060
22085
|
* @summary Change Payment Status (Admin)
|
|
22061
22086
|
* @param {number} id Order ID
|
|
22062
|
-
* @param {boolean}
|
|
22087
|
+
* @param {boolean} paid Paid
|
|
22063
22088
|
* @param {*} [options] Override http request option.
|
|
22064
22089
|
* @throws {RequiredError}
|
|
22065
22090
|
* @memberof OrdersApi
|
|
22066
22091
|
*/
|
|
22067
|
-
public putUpdatePaymentStatus(id: number,
|
|
22068
|
-
return OrdersApiFp(this.configuration).putUpdatePaymentStatus(id,
|
|
22092
|
+
public putUpdatePaymentStatus(id: number, paid: boolean, options?: RawAxiosRequestConfig) {
|
|
22093
|
+
return OrdersApiFp(this.configuration).putUpdatePaymentStatus(id, paid, options).then((request) => request(this.axios, this.basePath));
|
|
22069
22094
|
}
|
|
22070
22095
|
|
|
22071
22096
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -767,6 +767,12 @@ export interface AdminNumberPortDTO {
|
|
|
767
767
|
* @memberof AdminNumberPortDTO
|
|
768
768
|
*/
|
|
769
769
|
'notes'?: Array<NumberPortNoteDTO>;
|
|
770
|
+
/**
|
|
771
|
+
* Attachments
|
|
772
|
+
* @type {Array<AttachmentModel>}
|
|
773
|
+
* @memberof AdminNumberPortDTO
|
|
774
|
+
*/
|
|
775
|
+
'cloas'?: Array<AttachmentModel>;
|
|
770
776
|
}
|
|
771
777
|
/**
|
|
772
778
|
* Admin Order Request
|
|
@@ -4697,6 +4703,12 @@ export interface OrderDetailsDTO {
|
|
|
4697
4703
|
* @memberof OrderDetailsDTO
|
|
4698
4704
|
*/
|
|
4699
4705
|
'customerEmail'?: string;
|
|
4706
|
+
/**
|
|
4707
|
+
*
|
|
4708
|
+
* @type {OrderTotalModel}
|
|
4709
|
+
* @memberof OrderDetailsDTO
|
|
4710
|
+
*/
|
|
4711
|
+
'totals'?: OrderTotalModel;
|
|
4700
4712
|
}
|
|
4701
4713
|
/**
|
|
4702
4714
|
* OrdersEntity
|
|
@@ -5894,6 +5906,19 @@ export interface PortalLoginModel {
|
|
|
5894
5906
|
*/
|
|
5895
5907
|
'redirect_uri'?: string;
|
|
5896
5908
|
}
|
|
5909
|
+
/**
|
|
5910
|
+
*
|
|
5911
|
+
* @export
|
|
5912
|
+
* @interface PostAddAdminNoteRequest
|
|
5913
|
+
*/
|
|
5914
|
+
export interface PostAddAdminNoteRequest {
|
|
5915
|
+
/**
|
|
5916
|
+
* Note
|
|
5917
|
+
* @type {string}
|
|
5918
|
+
* @memberof PostAddAdminNoteRequest
|
|
5919
|
+
*/
|
|
5920
|
+
'note'?: string;
|
|
5921
|
+
}
|
|
5897
5922
|
/**
|
|
5898
5923
|
*
|
|
5899
5924
|
* @export
|
|
@@ -14823,11 +14848,11 @@ export declare const NumberPortingApiAxiosParamCreator: (configuration?: Configu
|
|
|
14823
14848
|
/**
|
|
14824
14849
|
*
|
|
14825
14850
|
* @param {number} id Number Port ID
|
|
14826
|
-
* @param {
|
|
14851
|
+
* @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
|
|
14827
14852
|
* @param {*} [options] Override http request option.
|
|
14828
14853
|
* @throws {RequiredError}
|
|
14829
14854
|
*/
|
|
14830
|
-
postAddAdminNote: (id: number,
|
|
14855
|
+
postAddAdminNote: (id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
14831
14856
|
/**
|
|
14832
14857
|
*
|
|
14833
14858
|
* @param {string | null} [companyName] Company Name
|
|
@@ -14947,11 +14972,11 @@ export declare const NumberPortingApiFp: (configuration?: Configuration) => {
|
|
|
14947
14972
|
/**
|
|
14948
14973
|
*
|
|
14949
14974
|
* @param {number} id Number Port ID
|
|
14950
|
-
* @param {
|
|
14975
|
+
* @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
|
|
14951
14976
|
* @param {*} [options] Override http request option.
|
|
14952
14977
|
* @throws {RequiredError}
|
|
14953
14978
|
*/
|
|
14954
|
-
postAddAdminNote(id: number,
|
|
14979
|
+
postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>>;
|
|
14955
14980
|
/**
|
|
14956
14981
|
*
|
|
14957
14982
|
* @param {string | null} [companyName] Company Name
|
|
@@ -15071,11 +15096,11 @@ export declare const NumberPortingApiFactory: (configuration?: Configuration, ba
|
|
|
15071
15096
|
/**
|
|
15072
15097
|
*
|
|
15073
15098
|
* @param {number} id Number Port ID
|
|
15074
|
-
* @param {
|
|
15099
|
+
* @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
|
|
15075
15100
|
* @param {*} [options] Override http request option.
|
|
15076
15101
|
* @throws {RequiredError}
|
|
15077
15102
|
*/
|
|
15078
|
-
postAddAdminNote(id: number,
|
|
15103
|
+
postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO>;
|
|
15079
15104
|
/**
|
|
15080
15105
|
*
|
|
15081
15106
|
* @param {string | null} [companyName] Company Name
|
|
@@ -15203,12 +15228,12 @@ export declare class NumberPortingApi extends BaseAPI {
|
|
|
15203
15228
|
/**
|
|
15204
15229
|
*
|
|
15205
15230
|
* @param {number} id Number Port ID
|
|
15206
|
-
* @param {
|
|
15231
|
+
* @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
|
|
15207
15232
|
* @param {*} [options] Override http request option.
|
|
15208
15233
|
* @throws {RequiredError}
|
|
15209
15234
|
* @memberof NumberPortingApi
|
|
15210
15235
|
*/
|
|
15211
|
-
postAddAdminNote(id: number,
|
|
15236
|
+
postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminNumberPortDTO, any, {}>>;
|
|
15212
15237
|
/**
|
|
15213
15238
|
*
|
|
15214
15239
|
* @param {string | null} [companyName] Company Name
|
|
@@ -15879,11 +15904,11 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
15879
15904
|
* Change Payment Status (Admin)
|
|
15880
15905
|
* @summary Change Payment Status (Admin)
|
|
15881
15906
|
* @param {number} id Order ID
|
|
15882
|
-
* @param {boolean}
|
|
15907
|
+
* @param {boolean} paid Paid
|
|
15883
15908
|
* @param {*} [options] Override http request option.
|
|
15884
15909
|
* @throws {RequiredError}
|
|
15885
15910
|
*/
|
|
15886
|
-
putUpdatePaymentStatus: (id: number,
|
|
15911
|
+
putUpdatePaymentStatus: (id: number, paid: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15887
15912
|
/**
|
|
15888
15913
|
* Update Shipment (Admin)
|
|
15889
15914
|
* @summary Update Shipment (Admin)
|
|
@@ -16128,11 +16153,11 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
16128
16153
|
* Change Payment Status (Admin)
|
|
16129
16154
|
* @summary Change Payment Status (Admin)
|
|
16130
16155
|
* @param {number} id Order ID
|
|
16131
|
-
* @param {boolean}
|
|
16156
|
+
* @param {boolean} paid Paid
|
|
16132
16157
|
* @param {*} [options] Override http request option.
|
|
16133
16158
|
* @throws {RequiredError}
|
|
16134
16159
|
*/
|
|
16135
|
-
putUpdatePaymentStatus(id: number,
|
|
16160
|
+
putUpdatePaymentStatus(id: number, paid: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>>;
|
|
16136
16161
|
/**
|
|
16137
16162
|
* Update Shipment (Admin)
|
|
16138
16163
|
* @summary Update Shipment (Admin)
|
|
@@ -16377,11 +16402,11 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
16377
16402
|
* Change Payment Status (Admin)
|
|
16378
16403
|
* @summary Change Payment Status (Admin)
|
|
16379
16404
|
* @param {number} id Order ID
|
|
16380
|
-
* @param {boolean}
|
|
16405
|
+
* @param {boolean} paid Paid
|
|
16381
16406
|
* @param {*} [options] Override http request option.
|
|
16382
16407
|
* @throws {RequiredError}
|
|
16383
16408
|
*/
|
|
16384
|
-
putUpdatePaymentStatus(id: number,
|
|
16409
|
+
putUpdatePaymentStatus(id: number, paid: boolean, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO>;
|
|
16385
16410
|
/**
|
|
16386
16411
|
* Update Shipment (Admin)
|
|
16387
16412
|
* @summary Update Shipment (Admin)
|
|
@@ -16652,12 +16677,12 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
16652
16677
|
* Change Payment Status (Admin)
|
|
16653
16678
|
* @summary Change Payment Status (Admin)
|
|
16654
16679
|
* @param {number} id Order ID
|
|
16655
|
-
* @param {boolean}
|
|
16680
|
+
* @param {boolean} paid Paid
|
|
16656
16681
|
* @param {*} [options] Override http request option.
|
|
16657
16682
|
* @throws {RequiredError}
|
|
16658
16683
|
* @memberof OrdersApi
|
|
16659
16684
|
*/
|
|
16660
|
-
putUpdatePaymentStatus(id: number,
|
|
16685
|
+
putUpdatePaymentStatus(id: number, paid: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderDetailsDTO, any, {}>>;
|
|
16661
16686
|
/**
|
|
16662
16687
|
* Update Shipment (Admin)
|
|
16663
16688
|
* @summary Update Shipment (Admin)
|
package/dist/api.js
CHANGED
|
@@ -8177,23 +8177,23 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
8177
8177
|
/**
|
|
8178
8178
|
*
|
|
8179
8179
|
* @param {number} id Number Port ID
|
|
8180
|
-
* @param {
|
|
8180
|
+
* @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
|
|
8181
8181
|
* @param {*} [options] Override http request option.
|
|
8182
8182
|
* @throws {RequiredError}
|
|
8183
8183
|
*/
|
|
8184
|
-
postAddAdminNote: function (id_1,
|
|
8184
|
+
postAddAdminNote: function (id_1, postAddAdminNoteRequest_1) {
|
|
8185
8185
|
var args_1 = [];
|
|
8186
8186
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8187
8187
|
args_1[_i - 2] = arguments[_i];
|
|
8188
8188
|
}
|
|
8189
|
-
return __awaiter(_this, __spreadArray([id_1,
|
|
8189
|
+
return __awaiter(_this, __spreadArray([id_1, postAddAdminNoteRequest_1], args_1, true), void 0, function (id, postAddAdminNoteRequest, options) {
|
|
8190
8190
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8191
8191
|
if (options === void 0) { options = {}; }
|
|
8192
8192
|
return __generator(this, function (_a) {
|
|
8193
8193
|
// verify required parameter 'id' is not null or undefined
|
|
8194
8194
|
(0, common_1.assertParamExists)('postAddAdminNote', 'id', id);
|
|
8195
|
-
// verify required parameter '
|
|
8196
|
-
(0, common_1.assertParamExists)('postAddAdminNote', '
|
|
8195
|
+
// verify required parameter 'postAddAdminNoteRequest' is not null or undefined
|
|
8196
|
+
(0, common_1.assertParamExists)('postAddAdminNote', 'postAddAdminNoteRequest', postAddAdminNoteRequest);
|
|
8197
8197
|
localVarPath = "/admin/sip/numbers/ports/{id}/notes"
|
|
8198
8198
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
8199
8199
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -8207,7 +8207,7 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
|
|
|
8207
8207
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8208
8208
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8209
8209
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8210
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
8210
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postAddAdminNoteRequest, localVarRequestOptions, configuration);
|
|
8211
8211
|
return [2 /*return*/, {
|
|
8212
8212
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8213
8213
|
options: localVarRequestOptions,
|
|
@@ -8662,17 +8662,17 @@ var NumberPortingApiFp = function (configuration) {
|
|
|
8662
8662
|
/**
|
|
8663
8663
|
*
|
|
8664
8664
|
* @param {number} id Number Port ID
|
|
8665
|
-
* @param {
|
|
8665
|
+
* @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
|
|
8666
8666
|
* @param {*} [options] Override http request option.
|
|
8667
8667
|
* @throws {RequiredError}
|
|
8668
8668
|
*/
|
|
8669
|
-
postAddAdminNote: function (id,
|
|
8669
|
+
postAddAdminNote: function (id, postAddAdminNoteRequest, options) {
|
|
8670
8670
|
return __awaiter(this, void 0, void 0, function () {
|
|
8671
8671
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
8672
8672
|
var _a, _b, _c;
|
|
8673
8673
|
return __generator(this, function (_d) {
|
|
8674
8674
|
switch (_d.label) {
|
|
8675
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddAdminNote(id,
|
|
8675
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddAdminNote(id, postAddAdminNoteRequest, options)];
|
|
8676
8676
|
case 1:
|
|
8677
8677
|
localVarAxiosArgs = _d.sent();
|
|
8678
8678
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -8877,12 +8877,12 @@ var NumberPortingApiFactory = function (configuration, basePath, axios) {
|
|
|
8877
8877
|
/**
|
|
8878
8878
|
*
|
|
8879
8879
|
* @param {number} id Number Port ID
|
|
8880
|
-
* @param {
|
|
8880
|
+
* @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
|
|
8881
8881
|
* @param {*} [options] Override http request option.
|
|
8882
8882
|
* @throws {RequiredError}
|
|
8883
8883
|
*/
|
|
8884
|
-
postAddAdminNote: function (id,
|
|
8885
|
-
return localVarFp.postAddAdminNote(id,
|
|
8884
|
+
postAddAdminNote: function (id, postAddAdminNoteRequest, options) {
|
|
8885
|
+
return localVarFp.postAddAdminNote(id, postAddAdminNoteRequest, options).then(function (request) { return request(axios, basePath); });
|
|
8886
8886
|
},
|
|
8887
8887
|
/**
|
|
8888
8888
|
*
|
|
@@ -9043,14 +9043,14 @@ var NumberPortingApi = /** @class */ (function (_super) {
|
|
|
9043
9043
|
/**
|
|
9044
9044
|
*
|
|
9045
9045
|
* @param {number} id Number Port ID
|
|
9046
|
-
* @param {
|
|
9046
|
+
* @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
|
|
9047
9047
|
* @param {*} [options] Override http request option.
|
|
9048
9048
|
* @throws {RequiredError}
|
|
9049
9049
|
* @memberof NumberPortingApi
|
|
9050
9050
|
*/
|
|
9051
|
-
NumberPortingApi.prototype.postAddAdminNote = function (id,
|
|
9051
|
+
NumberPortingApi.prototype.postAddAdminNote = function (id, postAddAdminNoteRequest, options) {
|
|
9052
9052
|
var _this = this;
|
|
9053
|
-
return (0, exports.NumberPortingApiFp)(this.configuration).postAddAdminNote(id,
|
|
9053
|
+
return (0, exports.NumberPortingApiFp)(this.configuration).postAddAdminNote(id, postAddAdminNoteRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9054
9054
|
};
|
|
9055
9055
|
/**
|
|
9056
9056
|
*
|
|
@@ -10886,23 +10886,23 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
10886
10886
|
* Change Payment Status (Admin)
|
|
10887
10887
|
* @summary Change Payment Status (Admin)
|
|
10888
10888
|
* @param {number} id Order ID
|
|
10889
|
-
* @param {boolean}
|
|
10889
|
+
* @param {boolean} paid Paid
|
|
10890
10890
|
* @param {*} [options] Override http request option.
|
|
10891
10891
|
* @throws {RequiredError}
|
|
10892
10892
|
*/
|
|
10893
|
-
putUpdatePaymentStatus: function (id_1,
|
|
10893
|
+
putUpdatePaymentStatus: function (id_1, paid_1) {
|
|
10894
10894
|
var args_1 = [];
|
|
10895
10895
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
10896
10896
|
args_1[_i - 2] = arguments[_i];
|
|
10897
10897
|
}
|
|
10898
|
-
return __awaiter(_this, __spreadArray([id_1,
|
|
10898
|
+
return __awaiter(_this, __spreadArray([id_1, paid_1], args_1, true), void 0, function (id, paid, options) {
|
|
10899
10899
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10900
10900
|
if (options === void 0) { options = {}; }
|
|
10901
10901
|
return __generator(this, function (_a) {
|
|
10902
10902
|
// verify required parameter 'id' is not null or undefined
|
|
10903
10903
|
(0, common_1.assertParamExists)('putUpdatePaymentStatus', 'id', id);
|
|
10904
|
-
// verify required parameter '
|
|
10905
|
-
(0, common_1.assertParamExists)('putUpdatePaymentStatus', '
|
|
10904
|
+
// verify required parameter 'paid' is not null or undefined
|
|
10905
|
+
(0, common_1.assertParamExists)('putUpdatePaymentStatus', 'paid', paid);
|
|
10906
10906
|
localVarPath = "/admin/orders/{id}/paid"
|
|
10907
10907
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
10908
10908
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -10912,8 +10912,8 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
10912
10912
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
10913
10913
|
localVarHeaderParameter = {};
|
|
10914
10914
|
localVarQueryParameter = {};
|
|
10915
|
-
if (
|
|
10916
|
-
localVarQueryParameter['
|
|
10915
|
+
if (paid !== undefined) {
|
|
10916
|
+
localVarQueryParameter['paid'] = paid;
|
|
10917
10917
|
}
|
|
10918
10918
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10919
10919
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -11570,17 +11570,17 @@ var OrdersApiFp = function (configuration) {
|
|
|
11570
11570
|
* Change Payment Status (Admin)
|
|
11571
11571
|
* @summary Change Payment Status (Admin)
|
|
11572
11572
|
* @param {number} id Order ID
|
|
11573
|
-
* @param {boolean}
|
|
11573
|
+
* @param {boolean} paid Paid
|
|
11574
11574
|
* @param {*} [options] Override http request option.
|
|
11575
11575
|
* @throws {RequiredError}
|
|
11576
11576
|
*/
|
|
11577
|
-
putUpdatePaymentStatus: function (id,
|
|
11577
|
+
putUpdatePaymentStatus: function (id, paid, options) {
|
|
11578
11578
|
return __awaiter(this, void 0, void 0, function () {
|
|
11579
11579
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
11580
11580
|
var _a, _b, _c;
|
|
11581
11581
|
return __generator(this, function (_d) {
|
|
11582
11582
|
switch (_d.label) {
|
|
11583
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdatePaymentStatus(id,
|
|
11583
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdatePaymentStatus(id, paid, options)];
|
|
11584
11584
|
case 1:
|
|
11585
11585
|
localVarAxiosArgs = _d.sent();
|
|
11586
11586
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -11901,12 +11901,12 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
11901
11901
|
* Change Payment Status (Admin)
|
|
11902
11902
|
* @summary Change Payment Status (Admin)
|
|
11903
11903
|
* @param {number} id Order ID
|
|
11904
|
-
* @param {boolean}
|
|
11904
|
+
* @param {boolean} paid Paid
|
|
11905
11905
|
* @param {*} [options] Override http request option.
|
|
11906
11906
|
* @throws {RequiredError}
|
|
11907
11907
|
*/
|
|
11908
|
-
putUpdatePaymentStatus: function (id,
|
|
11909
|
-
return localVarFp.putUpdatePaymentStatus(id,
|
|
11908
|
+
putUpdatePaymentStatus: function (id, paid, options) {
|
|
11909
|
+
return localVarFp.putUpdatePaymentStatus(id, paid, options).then(function (request) { return request(axios, basePath); });
|
|
11910
11910
|
},
|
|
11911
11911
|
/**
|
|
11912
11912
|
* Update Shipment (Admin)
|
|
@@ -12258,14 +12258,14 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
12258
12258
|
* Change Payment Status (Admin)
|
|
12259
12259
|
* @summary Change Payment Status (Admin)
|
|
12260
12260
|
* @param {number} id Order ID
|
|
12261
|
-
* @param {boolean}
|
|
12261
|
+
* @param {boolean} paid Paid
|
|
12262
12262
|
* @param {*} [options] Override http request option.
|
|
12263
12263
|
* @throws {RequiredError}
|
|
12264
12264
|
* @memberof OrdersApi
|
|
12265
12265
|
*/
|
|
12266
|
-
OrdersApi.prototype.putUpdatePaymentStatus = function (id,
|
|
12266
|
+
OrdersApi.prototype.putUpdatePaymentStatus = function (id, paid, options) {
|
|
12267
12267
|
var _this = this;
|
|
12268
|
-
return (0, exports.OrdersApiFp)(this.configuration).putUpdatePaymentStatus(id,
|
|
12268
|
+
return (0, exports.OrdersApiFp)(this.configuration).putUpdatePaymentStatus(id, paid, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12269
12269
|
};
|
|
12270
12270
|
/**
|
|
12271
12271
|
* Update Shipment (Admin)
|
|
@@ -25,6 +25,7 @@ Name | Type | Description | Notes
|
|
|
25
25
|
**statusText** | **string** | Status Text | [optional] [default to undefined]
|
|
26
26
|
**ticketId** | **number** | Ticket ID | [optional] [default to undefined]
|
|
27
27
|
**notes** | [**Array<NumberPortNoteDTO>**](NumberPortNoteDTO.md) | Notes | [optional] [default to undefined]
|
|
28
|
+
**cloas** | [**Array<AttachmentModel>**](AttachmentModel.md) | Attachments | [optional] [default to undefined]
|
|
28
29
|
|
|
29
30
|
## Example
|
|
30
31
|
|
|
@@ -51,6 +52,7 @@ const instance: AdminNumberPortDTO = {
|
|
|
51
52
|
statusText,
|
|
52
53
|
ticketId,
|
|
53
54
|
notes,
|
|
55
|
+
cloas,
|
|
54
56
|
};
|
|
55
57
|
```
|
|
56
58
|
|
package/docs/NumberPortingApi.md
CHANGED
|
@@ -347,7 +347,7 @@ No authorization required
|
|
|
347
347
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
348
348
|
|
|
349
349
|
# **postAddAdminNote**
|
|
350
|
-
> AdminNumberPortDTO postAddAdminNote(
|
|
350
|
+
> AdminNumberPortDTO postAddAdminNote(postAddAdminNoteRequest)
|
|
351
351
|
|
|
352
352
|
|
|
353
353
|
### Example
|
|
@@ -355,18 +355,19 @@ No authorization required
|
|
|
355
355
|
```typescript
|
|
356
356
|
import {
|
|
357
357
|
NumberPortingApi,
|
|
358
|
-
Configuration
|
|
358
|
+
Configuration,
|
|
359
|
+
PostAddAdminNoteRequest
|
|
359
360
|
} from 'yellowgrid-api-ts';
|
|
360
361
|
|
|
361
362
|
const configuration = new Configuration();
|
|
362
363
|
const apiInstance = new NumberPortingApi(configuration);
|
|
363
364
|
|
|
364
365
|
let id: number; //Number Port ID (default to undefined)
|
|
365
|
-
let
|
|
366
|
+
let postAddAdminNoteRequest: PostAddAdminNoteRequest; //
|
|
366
367
|
|
|
367
368
|
const { status, data } = await apiInstance.postAddAdminNote(
|
|
368
369
|
id,
|
|
369
|
-
|
|
370
|
+
postAddAdminNoteRequest
|
|
370
371
|
);
|
|
371
372
|
```
|
|
372
373
|
|
|
@@ -374,7 +375,7 @@ const { status, data } = await apiInstance.postAddAdminNote(
|
|
|
374
375
|
|
|
375
376
|
|Name | Type | Description | Notes|
|
|
376
377
|
|------------- | ------------- | ------------- | -------------|
|
|
377
|
-
| **
|
|
378
|
+
| **postAddAdminNoteRequest** | **PostAddAdminNoteRequest**| | |
|
|
378
379
|
| **id** | [**number**] | Number Port ID | defaults to undefined|
|
|
379
380
|
|
|
380
381
|
|
package/docs/OrderDetailsDTO.md
CHANGED
|
@@ -28,6 +28,7 @@ Name | Type | Description | Notes
|
|
|
28
28
|
**paymentLink** | **string** | Card Payment Link | [optional] [default to undefined]
|
|
29
29
|
**credits** | [**Array<CreditNoteModel>**](CreditNoteModel.md) | Credits | [optional] [default to undefined]
|
|
30
30
|
**customerEmail** | **string** | Customer Email | [optional] [default to undefined]
|
|
31
|
+
**totals** | [**OrderTotalModel**](OrderTotalModel.md) | | [optional] [default to undefined]
|
|
31
32
|
|
|
32
33
|
## Example
|
|
33
34
|
|
|
@@ -57,6 +58,7 @@ const instance: OrderDetailsDTO = {
|
|
|
57
58
|
paymentLink,
|
|
58
59
|
credits,
|
|
59
60
|
customerEmail,
|
|
61
|
+
totals,
|
|
60
62
|
};
|
|
61
63
|
```
|
|
62
64
|
|
package/docs/OrdersApi.md
CHANGED
|
@@ -1450,11 +1450,11 @@ const configuration = new Configuration();
|
|
|
1450
1450
|
const apiInstance = new OrdersApi(configuration);
|
|
1451
1451
|
|
|
1452
1452
|
let id: number; //Order ID (default to undefined)
|
|
1453
|
-
let
|
|
1453
|
+
let paid: boolean; //Paid (default to undefined)
|
|
1454
1454
|
|
|
1455
1455
|
const { status, data } = await apiInstance.putUpdatePaymentStatus(
|
|
1456
1456
|
id,
|
|
1457
|
-
|
|
1457
|
+
paid
|
|
1458
1458
|
);
|
|
1459
1459
|
```
|
|
1460
1460
|
|
|
@@ -1463,7 +1463,7 @@ const { status, data } = await apiInstance.putUpdatePaymentStatus(
|
|
|
1463
1463
|
|Name | Type | Description | Notes|
|
|
1464
1464
|
|------------- | ------------- | ------------- | -------------|
|
|
1465
1465
|
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
1466
|
-
| **
|
|
1466
|
+
| **paid** | [**boolean**] | Paid | defaults to undefined|
|
|
1467
1467
|
|
|
1468
1468
|
|
|
1469
1469
|
### Return type
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# PostAddAdminNoteRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**note** | **string** | Note | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { PostAddAdminNoteRequest } from 'yellowgrid-api-ts';
|
|
14
|
+
|
|
15
|
+
const instance: PostAddAdminNoteRequest = {
|
|
16
|
+
note,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|