yellowgrid-api-ts 3.2.101-dev.0 → 3.2.103-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 +28 -1
- package/README.md +60 -1
- package/api.ts +3441 -182
- package/dist/api.d.ts +2218 -157
- package/dist/api.js +3028 -235
- package/docs/AccountPageDetailsDTO.md +35 -0
- package/docs/AccountsApi.md +352 -4
- package/docs/AdminNumberPortDTO.md +4 -0
- package/docs/BatchDTO.md +59 -0
- package/docs/CreditNoteDTO.md +21 -0
- package/docs/CreditNoteEntity.md +29 -0
- package/docs/CreditNoteItemDTO.md +25 -0
- package/docs/CreditNoteItemEntity.md +29 -0
- package/docs/CreditNoteItemModel.md +29 -0
- package/docs/CreditNoteModel.md +31 -0
- package/docs/NumberPortingApi.md +60 -5
- package/docs/OAuth20Api.md +3 -3
- package/docs/OrderDetailsDTO.md +65 -0
- package/docs/OrderItemDTO.md +55 -0
- package/docs/OrderedItemModel.md +47 -0
- package/docs/OrdersApi.md +1325 -74
- package/docs/PatchUpdateAccountCnameRequest.md +20 -0
- package/docs/PostAddAdminNoteRequest.md +20 -0
- package/docs/PostAddOrderNoteRequest.md +20 -0
- package/docs/PostSplitOrderRequest.md +20 -0
- package/docs/PrinterEntity.md +29 -0
- package/docs/ProductsApi.md +58 -0
- package/docs/PutAllocateItemsRequest.md +20 -0
- package/docs/PutAllocateItemsRequestItemsInner.md +22 -0
- package/docs/SMSApi.md +56 -0
- package/docs/ShipmentDTO.md +41 -0
- package/docs/ShipmentItemDTO.md +23 -0
- package/docs/ShipmentItemEntity.md +1 -1
- package/docs/ShipmentItemModel.md +29 -0
- package/docs/ShipmentModel.md +43 -0
- package/docs/ShipmentRequestDTO.md +31 -0
- package/docs/ShippingRequestDTO.md +28 -0
- package/docs/SmsAccountDTO.md +31 -0
- package/docs/SmsAccountRequestDTO.md +29 -0
- package/docs/SupplierItemModel.md +35 -0
- package/docs/SupplierModel.md +37 -0
- package/docs/TcxSbcDTO.md +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# AccountPageDetailsDTO
|
|
2
|
+
|
|
3
|
+
Account Page Details
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**xeroId** | **string** | Xero ID | [optional] [default to undefined]
|
|
10
|
+
**companyName** | **string** | Company | [optional] [default to undefined]
|
|
11
|
+
**billingAddress** | [**AddressModel**](AddressModel.md) | | [optional] [default to undefined]
|
|
12
|
+
**defaultShippingAddress** | [**AddressModel**](AddressModel.md) | | [optional] [default to undefined]
|
|
13
|
+
**previousShippingAddreses** | [**Array<AddressModel>**](AddressModel.md) | Addresses | [optional] [default to undefined]
|
|
14
|
+
**portalAccess** | **boolean** | Portal Access | [optional] [default to undefined]
|
|
15
|
+
**cname** | **string** | CNAME | [optional] [default to undefined]
|
|
16
|
+
**prizesEnabled** | **boolean** | Prizes Enabled | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { AccountPageDetailsDTO } from 'yellowgrid-api-ts';
|
|
22
|
+
|
|
23
|
+
const instance: AccountPageDetailsDTO = {
|
|
24
|
+
xeroId,
|
|
25
|
+
companyName,
|
|
26
|
+
billingAddress,
|
|
27
|
+
defaultShippingAddress,
|
|
28
|
+
previousShippingAddreses,
|
|
29
|
+
portalAccess,
|
|
30
|
+
cname,
|
|
31
|
+
prizesEnabled,
|
|
32
|
+
};
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/AccountsApi.md
CHANGED
|
@@ -9,11 +9,15 @@ All URIs are relative to *https://localhost*
|
|
|
9
9
|
|[**getGetAccount**](#getgetaccount) | **GET** /accounts/me | Get Account|
|
|
10
10
|
|[**getGetAccountContacts**](#getgetaccountcontacts) | **GET** /accounts/me/contacts | Get Account Contacts|
|
|
11
11
|
|[**getGetAccountDetailedSummary**](#getgetaccountdetailedsummary) | **GET** /accounts/{id}/summary | Get Account Detailed Summary|
|
|
12
|
+
|[**getGetAccountPageInfo**](#getgetaccountpageinfo) | **GET** /{id} | |
|
|
12
13
|
|[**getGetAccounts**](#getgetaccounts) | **GET** /accounts | Get Accounts|
|
|
13
14
|
|[**getGetClientCredentials**](#getgetclientcredentials) | **GET** /accounts/me/contacts/credentials | Get user\'s client credentials|
|
|
14
15
|
|[**getGetCustomerKeys**](#getgetcustomerkeys) | **GET** /accounts/me/tcx/keys | Get 3CX Keys|
|
|
15
16
|
|[**getVerifyEmailAddress**](#getverifyemailaddress) | **GET** /accounts/contacts/verify | Verify account email address|
|
|
17
|
+
|[**patchSetPortalAccess**](#patchsetportalaccess) | **PATCH** /{id}/portal/access/{state} | |
|
|
18
|
+
|[**patchSetPrizePromo**](#patchsetprizepromo) | **PATCH** /{id}/prizes/{state} | |
|
|
16
19
|
|[**patchSetTcxWizardCname**](#patchsettcxwizardcname) | **PATCH** /accounts/me/cname | |
|
|
20
|
+
|[**patchUpdateAccountCname**](#patchupdateaccountcname) | **PATCH** /{id}/cname | |
|
|
17
21
|
|[**patchUpdateAccountContactPassword**](#patchupdateaccountcontactpassword) | **PATCH** /accounts/contacts/password | Update Account Password|
|
|
18
22
|
|[**postGetAccountContacts**](#postgetaccountcontacts) | **POST** /accounts/me/contacts | Add Account Contact|
|
|
19
23
|
|[**postGetAccounts**](#postgetaccounts) | **POST** /accounts | Create a new customer account|
|
|
@@ -23,6 +27,8 @@ All URIs are relative to *https://localhost*
|
|
|
23
27
|
|[**postSendPasswordReset**](#postsendpasswordreset) | **POST** /accounts/contacts/password/reset | Send password reset email|
|
|
24
28
|
|[**postSubmitResellerApplication**](#postsubmitresellerapplication) | **POST** /accounts/reseller | Submit reseller application|
|
|
25
29
|
|[**putUpdateAccountContact**](#putupdateaccountcontact) | **PUT** /accounts/me/contacts/{email} | Update Account Contact|
|
|
30
|
+
|[**putUpdateBillingAddress**](#putupdatebillingaddress) | **PUT** /{id}/billing/address | |
|
|
31
|
+
|[**putUpdateShippingAddress**](#putupdateshippingaddress) | **PUT** /{id}/shipping/address | |
|
|
26
32
|
|
|
27
33
|
# **deleteDeleteClientCredentials**
|
|
28
34
|
> deleteDeleteClientCredentials()
|
|
@@ -287,6 +293,60 @@ No authorization required
|
|
|
287
293
|
|
|
288
294
|
[[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)
|
|
289
295
|
|
|
296
|
+
# **getGetAccountPageInfo**
|
|
297
|
+
> AccountPageDetailsDTO getGetAccountPageInfo()
|
|
298
|
+
|
|
299
|
+
Get Account Page Details
|
|
300
|
+
|
|
301
|
+
### Example
|
|
302
|
+
|
|
303
|
+
```typescript
|
|
304
|
+
import {
|
|
305
|
+
AccountsApi,
|
|
306
|
+
Configuration
|
|
307
|
+
} from 'yellowgrid-api-ts';
|
|
308
|
+
|
|
309
|
+
const configuration = new Configuration();
|
|
310
|
+
const apiInstance = new AccountsApi(configuration);
|
|
311
|
+
|
|
312
|
+
let id: string; //Xero ID (default to undefined)
|
|
313
|
+
|
|
314
|
+
const { status, data } = await apiInstance.getGetAccountPageInfo(
|
|
315
|
+
id
|
|
316
|
+
);
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
### Parameters
|
|
320
|
+
|
|
321
|
+
|Name | Type | Description | Notes|
|
|
322
|
+
|------------- | ------------- | ------------- | -------------|
|
|
323
|
+
| **id** | [**string**] | Xero ID | defaults to undefined|
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
### Return type
|
|
327
|
+
|
|
328
|
+
**AccountPageDetailsDTO**
|
|
329
|
+
|
|
330
|
+
### Authorization
|
|
331
|
+
|
|
332
|
+
No authorization required
|
|
333
|
+
|
|
334
|
+
### HTTP request headers
|
|
335
|
+
|
|
336
|
+
- **Content-Type**: Not defined
|
|
337
|
+
- **Accept**: application/json
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
### HTTP response details
|
|
341
|
+
| Status code | Description | Response headers |
|
|
342
|
+
|-------------|-------------|------------------|
|
|
343
|
+
|**200** | Accounts Page Details | - |
|
|
344
|
+
|**400** | Bad Request | - |
|
|
345
|
+
|**401** | Unauthorised | - |
|
|
346
|
+
|**403** | Access Denied | - |
|
|
347
|
+
|
|
348
|
+
[[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)
|
|
349
|
+
|
|
290
350
|
# **getGetAccounts**
|
|
291
351
|
> AccountsResponseModel getGetAccounts()
|
|
292
352
|
|
|
@@ -498,6 +558,120 @@ No authorization required
|
|
|
498
558
|
|
|
499
559
|
[[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)
|
|
500
560
|
|
|
561
|
+
# **patchSetPortalAccess**
|
|
562
|
+
> patchSetPortalAccess()
|
|
563
|
+
|
|
564
|
+
Set Account Portal Access
|
|
565
|
+
|
|
566
|
+
### Example
|
|
567
|
+
|
|
568
|
+
```typescript
|
|
569
|
+
import {
|
|
570
|
+
AccountsApi,
|
|
571
|
+
Configuration
|
|
572
|
+
} from 'yellowgrid-api-ts';
|
|
573
|
+
|
|
574
|
+
const configuration = new Configuration();
|
|
575
|
+
const apiInstance = new AccountsApi(configuration);
|
|
576
|
+
|
|
577
|
+
let id: string; //Xero ID (default to undefined)
|
|
578
|
+
let state: 'enable' | 'disable'; //Portal Access State (default to undefined)
|
|
579
|
+
|
|
580
|
+
const { status, data } = await apiInstance.patchSetPortalAccess(
|
|
581
|
+
id,
|
|
582
|
+
state
|
|
583
|
+
);
|
|
584
|
+
```
|
|
585
|
+
|
|
586
|
+
### Parameters
|
|
587
|
+
|
|
588
|
+
|Name | Type | Description | Notes|
|
|
589
|
+
|------------- | ------------- | ------------- | -------------|
|
|
590
|
+
| **id** | [**string**] | Xero ID | defaults to undefined|
|
|
591
|
+
| **state** | [**'enable' | 'disable'**]**Array<'enable' | 'disable'>** | Portal Access State | defaults to undefined|
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
### Return type
|
|
595
|
+
|
|
596
|
+
void (empty response body)
|
|
597
|
+
|
|
598
|
+
### Authorization
|
|
599
|
+
|
|
600
|
+
No authorization required
|
|
601
|
+
|
|
602
|
+
### HTTP request headers
|
|
603
|
+
|
|
604
|
+
- **Content-Type**: Not defined
|
|
605
|
+
- **Accept**: Not defined
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
### HTTP response details
|
|
609
|
+
| Status code | Description | Response headers |
|
|
610
|
+
|-------------|-------------|------------------|
|
|
611
|
+
|**204** | No Response | - |
|
|
612
|
+
|**400** | Bad Request | - |
|
|
613
|
+
|**401** | Unauthorised | - |
|
|
614
|
+
|**403** | Access Denied | - |
|
|
615
|
+
|
|
616
|
+
[[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)
|
|
617
|
+
|
|
618
|
+
# **patchSetPrizePromo**
|
|
619
|
+
> patchSetPrizePromo()
|
|
620
|
+
|
|
621
|
+
Set Account Prize Promo
|
|
622
|
+
|
|
623
|
+
### Example
|
|
624
|
+
|
|
625
|
+
```typescript
|
|
626
|
+
import {
|
|
627
|
+
AccountsApi,
|
|
628
|
+
Configuration
|
|
629
|
+
} from 'yellowgrid-api-ts';
|
|
630
|
+
|
|
631
|
+
const configuration = new Configuration();
|
|
632
|
+
const apiInstance = new AccountsApi(configuration);
|
|
633
|
+
|
|
634
|
+
let id: string; //Xero ID (default to undefined)
|
|
635
|
+
let state: 'enable' | 'disable'; //Prize Promo State (default to undefined)
|
|
636
|
+
|
|
637
|
+
const { status, data } = await apiInstance.patchSetPrizePromo(
|
|
638
|
+
id,
|
|
639
|
+
state
|
|
640
|
+
);
|
|
641
|
+
```
|
|
642
|
+
|
|
643
|
+
### Parameters
|
|
644
|
+
|
|
645
|
+
|Name | Type | Description | Notes|
|
|
646
|
+
|------------- | ------------- | ------------- | -------------|
|
|
647
|
+
| **id** | [**string**] | Xero ID | defaults to undefined|
|
|
648
|
+
| **state** | [**'enable' | 'disable'**]**Array<'enable' | 'disable'>** | Prize Promo State | defaults to undefined|
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
### Return type
|
|
652
|
+
|
|
653
|
+
void (empty response body)
|
|
654
|
+
|
|
655
|
+
### Authorization
|
|
656
|
+
|
|
657
|
+
No authorization required
|
|
658
|
+
|
|
659
|
+
### HTTP request headers
|
|
660
|
+
|
|
661
|
+
- **Content-Type**: Not defined
|
|
662
|
+
- **Accept**: Not defined
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
### HTTP response details
|
|
666
|
+
| Status code | Description | Response headers |
|
|
667
|
+
|-------------|-------------|------------------|
|
|
668
|
+
|**204** | No Response | - |
|
|
669
|
+
|**400** | Bad Request | - |
|
|
670
|
+
|**401** | Unauthorised | - |
|
|
671
|
+
|**403** | Access Denied | - |
|
|
672
|
+
|
|
673
|
+
[[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)
|
|
674
|
+
|
|
501
675
|
# **patchSetTcxWizardCname**
|
|
502
676
|
> patchSetTcxWizardCname()
|
|
503
677
|
|
|
@@ -509,16 +683,16 @@ Set 3CX Wizard CNAME
|
|
|
509
683
|
import {
|
|
510
684
|
AccountsApi,
|
|
511
685
|
Configuration,
|
|
512
|
-
|
|
686
|
+
PatchUpdateAccountCnameRequest
|
|
513
687
|
} from 'yellowgrid-api-ts';
|
|
514
688
|
|
|
515
689
|
const configuration = new Configuration();
|
|
516
690
|
const apiInstance = new AccountsApi(configuration);
|
|
517
691
|
|
|
518
|
-
let
|
|
692
|
+
let patchUpdateAccountCnameRequest: PatchUpdateAccountCnameRequest; //CNAME Request (optional)
|
|
519
693
|
|
|
520
694
|
const { status, data } = await apiInstance.patchSetTcxWizardCname(
|
|
521
|
-
|
|
695
|
+
patchUpdateAccountCnameRequest
|
|
522
696
|
);
|
|
523
697
|
```
|
|
524
698
|
|
|
@@ -526,7 +700,7 @@ const { status, data } = await apiInstance.patchSetTcxWizardCname(
|
|
|
526
700
|
|
|
527
701
|
|Name | Type | Description | Notes|
|
|
528
702
|
|------------- | ------------- | ------------- | -------------|
|
|
529
|
-
| **
|
|
703
|
+
| **patchUpdateAccountCnameRequest** | **PatchUpdateAccountCnameRequest**| CNAME Request | |
|
|
530
704
|
|
|
531
705
|
|
|
532
706
|
### Return type
|
|
@@ -553,6 +727,64 @@ No authorization required
|
|
|
553
727
|
|
|
554
728
|
[[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)
|
|
555
729
|
|
|
730
|
+
# **patchUpdateAccountCname**
|
|
731
|
+
> patchUpdateAccountCname()
|
|
732
|
+
|
|
733
|
+
Set Account Prize Promo
|
|
734
|
+
|
|
735
|
+
### Example
|
|
736
|
+
|
|
737
|
+
```typescript
|
|
738
|
+
import {
|
|
739
|
+
AccountsApi,
|
|
740
|
+
Configuration,
|
|
741
|
+
PatchUpdateAccountCnameRequest
|
|
742
|
+
} from 'yellowgrid-api-ts';
|
|
743
|
+
|
|
744
|
+
const configuration = new Configuration();
|
|
745
|
+
const apiInstance = new AccountsApi(configuration);
|
|
746
|
+
|
|
747
|
+
let id: string; //Xero ID (default to undefined)
|
|
748
|
+
let patchUpdateAccountCnameRequest: PatchUpdateAccountCnameRequest; //CNAME Request (optional)
|
|
749
|
+
|
|
750
|
+
const { status, data } = await apiInstance.patchUpdateAccountCname(
|
|
751
|
+
id,
|
|
752
|
+
patchUpdateAccountCnameRequest
|
|
753
|
+
);
|
|
754
|
+
```
|
|
755
|
+
|
|
756
|
+
### Parameters
|
|
757
|
+
|
|
758
|
+
|Name | Type | Description | Notes|
|
|
759
|
+
|------------- | ------------- | ------------- | -------------|
|
|
760
|
+
| **patchUpdateAccountCnameRequest** | **PatchUpdateAccountCnameRequest**| CNAME Request | |
|
|
761
|
+
| **id** | [**string**] | Xero ID | defaults to undefined|
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
### Return type
|
|
765
|
+
|
|
766
|
+
void (empty response body)
|
|
767
|
+
|
|
768
|
+
### Authorization
|
|
769
|
+
|
|
770
|
+
No authorization required
|
|
771
|
+
|
|
772
|
+
### HTTP request headers
|
|
773
|
+
|
|
774
|
+
- **Content-Type**: application/json
|
|
775
|
+
- **Accept**: Not defined
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
### HTTP response details
|
|
779
|
+
| Status code | Description | Response headers |
|
|
780
|
+
|-------------|-------------|------------------|
|
|
781
|
+
|**204** | No Response | - |
|
|
782
|
+
|**400** | Bad Request | - |
|
|
783
|
+
|**401** | Unauthorised | - |
|
|
784
|
+
|**403** | Access Denied | - |
|
|
785
|
+
|
|
786
|
+
[[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)
|
|
787
|
+
|
|
556
788
|
# **patchUpdateAccountContactPassword**
|
|
557
789
|
> patchUpdateAccountContactPassword()
|
|
558
790
|
|
|
@@ -1049,3 +1281,119 @@ No authorization required
|
|
|
1049
1281
|
|
|
1050
1282
|
[[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)
|
|
1051
1283
|
|
|
1284
|
+
# **putUpdateBillingAddress**
|
|
1285
|
+
> putUpdateBillingAddress()
|
|
1286
|
+
|
|
1287
|
+
Update Account Billing Address
|
|
1288
|
+
|
|
1289
|
+
### Example
|
|
1290
|
+
|
|
1291
|
+
```typescript
|
|
1292
|
+
import {
|
|
1293
|
+
AccountsApi,
|
|
1294
|
+
Configuration,
|
|
1295
|
+
AddressModel
|
|
1296
|
+
} from 'yellowgrid-api-ts';
|
|
1297
|
+
|
|
1298
|
+
const configuration = new Configuration();
|
|
1299
|
+
const apiInstance = new AccountsApi(configuration);
|
|
1300
|
+
|
|
1301
|
+
let id: string; //Xero ID (default to undefined)
|
|
1302
|
+
let addressModel: AddressModel; //Updated Billing Address (optional)
|
|
1303
|
+
|
|
1304
|
+
const { status, data } = await apiInstance.putUpdateBillingAddress(
|
|
1305
|
+
id,
|
|
1306
|
+
addressModel
|
|
1307
|
+
);
|
|
1308
|
+
```
|
|
1309
|
+
|
|
1310
|
+
### Parameters
|
|
1311
|
+
|
|
1312
|
+
|Name | Type | Description | Notes|
|
|
1313
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1314
|
+
| **addressModel** | **AddressModel**| Updated Billing Address | |
|
|
1315
|
+
| **id** | [**string**] | Xero ID | defaults to undefined|
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
### Return type
|
|
1319
|
+
|
|
1320
|
+
void (empty response body)
|
|
1321
|
+
|
|
1322
|
+
### Authorization
|
|
1323
|
+
|
|
1324
|
+
No authorization required
|
|
1325
|
+
|
|
1326
|
+
### HTTP request headers
|
|
1327
|
+
|
|
1328
|
+
- **Content-Type**: application/json
|
|
1329
|
+
- **Accept**: Not defined
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
### HTTP response details
|
|
1333
|
+
| Status code | Description | Response headers |
|
|
1334
|
+
|-------------|-------------|------------------|
|
|
1335
|
+
|**204** | No Response | - |
|
|
1336
|
+
|**400** | Bad Request | - |
|
|
1337
|
+
|**401** | Unauthorised | - |
|
|
1338
|
+
|**403** | Access Denied | - |
|
|
1339
|
+
|
|
1340
|
+
[[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)
|
|
1341
|
+
|
|
1342
|
+
# **putUpdateShippingAddress**
|
|
1343
|
+
> putUpdateShippingAddress()
|
|
1344
|
+
|
|
1345
|
+
Update Account Shipping Address
|
|
1346
|
+
|
|
1347
|
+
### Example
|
|
1348
|
+
|
|
1349
|
+
```typescript
|
|
1350
|
+
import {
|
|
1351
|
+
AccountsApi,
|
|
1352
|
+
Configuration,
|
|
1353
|
+
AddressModel
|
|
1354
|
+
} from 'yellowgrid-api-ts';
|
|
1355
|
+
|
|
1356
|
+
const configuration = new Configuration();
|
|
1357
|
+
const apiInstance = new AccountsApi(configuration);
|
|
1358
|
+
|
|
1359
|
+
let id: string; //Xero ID (default to undefined)
|
|
1360
|
+
let addressModel: AddressModel; //Updated Shipping Address (optional)
|
|
1361
|
+
|
|
1362
|
+
const { status, data } = await apiInstance.putUpdateShippingAddress(
|
|
1363
|
+
id,
|
|
1364
|
+
addressModel
|
|
1365
|
+
);
|
|
1366
|
+
```
|
|
1367
|
+
|
|
1368
|
+
### Parameters
|
|
1369
|
+
|
|
1370
|
+
|Name | Type | Description | Notes|
|
|
1371
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1372
|
+
| **addressModel** | **AddressModel**| Updated Shipping Address | |
|
|
1373
|
+
| **id** | [**string**] | Xero ID | defaults to undefined|
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
### Return type
|
|
1377
|
+
|
|
1378
|
+
void (empty response body)
|
|
1379
|
+
|
|
1380
|
+
### Authorization
|
|
1381
|
+
|
|
1382
|
+
No authorization required
|
|
1383
|
+
|
|
1384
|
+
### HTTP request headers
|
|
1385
|
+
|
|
1386
|
+
- **Content-Type**: application/json
|
|
1387
|
+
- **Accept**: Not defined
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
### HTTP response details
|
|
1391
|
+
| Status code | Description | Response headers |
|
|
1392
|
+
|-------------|-------------|------------------|
|
|
1393
|
+
|**204** | No Response | - |
|
|
1394
|
+
|**400** | Bad Request | - |
|
|
1395
|
+
|**401** | Unauthorised | - |
|
|
1396
|
+
|**403** | Access Denied | - |
|
|
1397
|
+
|
|
1398
|
+
[[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)
|
|
1399
|
+
|
|
@@ -25,6 +25,8 @@ 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]
|
|
29
|
+
**createdAt** | **string** | Created At | [optional] [default to undefined]
|
|
28
30
|
|
|
29
31
|
## Example
|
|
30
32
|
|
|
@@ -51,6 +53,8 @@ const instance: AdminNumberPortDTO = {
|
|
|
51
53
|
statusText,
|
|
52
54
|
ticketId,
|
|
53
55
|
notes,
|
|
56
|
+
cloas,
|
|
57
|
+
createdAt,
|
|
54
58
|
};
|
|
55
59
|
```
|
|
56
60
|
|
package/docs/BatchDTO.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# BatchDTO
|
|
2
|
+
|
|
3
|
+
Batch DTO
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
+
**orderId** | **number** | orderId | [optional] [default to undefined]
|
|
11
|
+
**supplierId** | **number** | supplierId | [optional] [default to undefined]
|
|
12
|
+
**poNumber** | **string** | poNumber | [optional] [default to undefined]
|
|
13
|
+
**carriage** | **number** | carriage | [optional] [default to undefined]
|
|
14
|
+
**courier** | **string** | courier | [optional] [default to undefined]
|
|
15
|
+
**courierService** | **string** | courierService | [optional] [default to undefined]
|
|
16
|
+
**courierReference** | **string** | courierReference | [optional] [default to undefined]
|
|
17
|
+
**courierUnique** | **string** | courierUnique | [optional] [default to undefined]
|
|
18
|
+
**notes** | **string** | notes | [optional] [default to undefined]
|
|
19
|
+
**ordered** | **number** | ordered | [optional] [default to undefined]
|
|
20
|
+
**carriagePaid** | **number** | carriagePaid | [optional] [default to undefined]
|
|
21
|
+
**carriageRefunded** | **number** | carriageRefunded | [optional] [default to undefined]
|
|
22
|
+
**carriageRefundedDue** | **number** | carriageRefundedDue | [optional] [default to undefined]
|
|
23
|
+
**netdespatchLabel** | **string** | netdespatchLabel | [optional] [default to undefined]
|
|
24
|
+
**courierBoxes** | **number** | courierBoxes | [optional] [default to undefined]
|
|
25
|
+
**mac** | **string** | mac | [optional] [default to undefined]
|
|
26
|
+
**shipments** | [**Array<ShipmentDTO>**](ShipmentDTO.md) | Shipments | [optional] [default to undefined]
|
|
27
|
+
**items** | [**Array<OrderedItemModel>**](OrderedItemModel.md) | Items | [optional] [default to undefined]
|
|
28
|
+
**supplier** | [**SupplierModel**](SupplierModel.md) | | [optional] [default to undefined]
|
|
29
|
+
|
|
30
|
+
## Example
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
import { BatchDTO } from 'yellowgrid-api-ts';
|
|
34
|
+
|
|
35
|
+
const instance: BatchDTO = {
|
|
36
|
+
id,
|
|
37
|
+
orderId,
|
|
38
|
+
supplierId,
|
|
39
|
+
poNumber,
|
|
40
|
+
carriage,
|
|
41
|
+
courier,
|
|
42
|
+
courierService,
|
|
43
|
+
courierReference,
|
|
44
|
+
courierUnique,
|
|
45
|
+
notes,
|
|
46
|
+
ordered,
|
|
47
|
+
carriagePaid,
|
|
48
|
+
carriageRefunded,
|
|
49
|
+
carriageRefundedDue,
|
|
50
|
+
netdespatchLabel,
|
|
51
|
+
courierBoxes,
|
|
52
|
+
mac,
|
|
53
|
+
shipments,
|
|
54
|
+
items,
|
|
55
|
+
supplier,
|
|
56
|
+
};
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# CreditNoteDTO
|
|
2
|
+
|
|
3
|
+
Credit Note
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**items** | [**Array<CreditNoteItemDTO>**](CreditNoteItemDTO.md) | Items | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CreditNoteDTO } from 'yellowgrid-api-ts';
|
|
15
|
+
|
|
16
|
+
const instance: CreditNoteDTO = {
|
|
17
|
+
items,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# CreditNoteEntity
|
|
2
|
+
|
|
3
|
+
CreditNotesEntity
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
+
**orderId** | **number** | orderId | [optional] [default to undefined]
|
|
11
|
+
**transactionId** | **string** | transactionId | [optional] [default to undefined]
|
|
12
|
+
**amount** | **number** | amount | [optional] [default to undefined]
|
|
13
|
+
**timestamp** | **string** | timestamp | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { CreditNoteEntity } from 'yellowgrid-api-ts';
|
|
19
|
+
|
|
20
|
+
const instance: CreditNoteEntity = {
|
|
21
|
+
id,
|
|
22
|
+
orderId,
|
|
23
|
+
transactionId,
|
|
24
|
+
amount,
|
|
25
|
+
timestamp,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# CreditNoteItemDTO
|
|
2
|
+
|
|
3
|
+
Credit Note Item
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**itemId** | **number** | Item ID | [optional] [default to undefined]
|
|
10
|
+
**quantity** | **number** | Quantity | [optional] [default to undefined]
|
|
11
|
+
**amount** | **number** | Amount | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { CreditNoteItemDTO } from 'yellowgrid-api-ts';
|
|
17
|
+
|
|
18
|
+
const instance: CreditNoteItemDTO = {
|
|
19
|
+
itemId,
|
|
20
|
+
quantity,
|
|
21
|
+
amount,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# CreditNoteItemEntity
|
|
2
|
+
|
|
3
|
+
CreditNotesItemsEntity
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
+
**creditNoteId** | **number** | creditNoteId | [optional] [default to undefined]
|
|
11
|
+
**orderId** | **number** | orderId | [optional] [default to undefined]
|
|
12
|
+
**itemId** | **number** | itemId | [optional] [default to undefined]
|
|
13
|
+
**amount** | **number** | amount | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { CreditNoteItemEntity } from 'yellowgrid-api-ts';
|
|
19
|
+
|
|
20
|
+
const instance: CreditNoteItemEntity = {
|
|
21
|
+
id,
|
|
22
|
+
creditNoteId,
|
|
23
|
+
orderId,
|
|
24
|
+
itemId,
|
|
25
|
+
amount,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# CreditNoteItemModel
|
|
2
|
+
|
|
3
|
+
Credit Note Item
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
+
**creditNoteId** | **number** | creditNoteId | [optional] [default to undefined]
|
|
11
|
+
**orderId** | **number** | orderId | [optional] [default to undefined]
|
|
12
|
+
**itemId** | **number** | itemId | [optional] [default to undefined]
|
|
13
|
+
**amount** | **number** | amount | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { CreditNoteItemModel } from 'yellowgrid-api-ts';
|
|
19
|
+
|
|
20
|
+
const instance: CreditNoteItemModel = {
|
|
21
|
+
id,
|
|
22
|
+
creditNoteId,
|
|
23
|
+
orderId,
|
|
24
|
+
itemId,
|
|
25
|
+
amount,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# CreditNoteModel
|
|
2
|
+
|
|
3
|
+
Credit Note Model
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
+
**orderId** | **number** | orderId | [optional] [default to undefined]
|
|
11
|
+
**transactionId** | **string** | transactionId | [optional] [default to undefined]
|
|
12
|
+
**amount** | **number** | amount | [optional] [default to undefined]
|
|
13
|
+
**timestamp** | **string** | timestamp | [optional] [default to undefined]
|
|
14
|
+
**items** | [**Array<CreditNoteItemModel>**](CreditNoteItemModel.md) | Credit Note Items | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { CreditNoteModel } from 'yellowgrid-api-ts';
|
|
20
|
+
|
|
21
|
+
const instance: CreditNoteModel = {
|
|
22
|
+
id,
|
|
23
|
+
orderId,
|
|
24
|
+
transactionId,
|
|
25
|
+
amount,
|
|
26
|
+
timestamp,
|
|
27
|
+
items,
|
|
28
|
+
};
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|