yellowgrid-api-ts 3.2.101-dev.0 → 3.2.102-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.
Files changed (43) hide show
  1. package/.openapi-generator/FILES +28 -1
  2. package/README.md +60 -1
  3. package/api.ts +3441 -182
  4. package/dist/api.d.ts +2218 -157
  5. package/dist/api.js +3028 -235
  6. package/docs/AccountPageDetailsDTO.md +35 -0
  7. package/docs/AccountsApi.md +352 -4
  8. package/docs/AdminNumberPortDTO.md +4 -0
  9. package/docs/BatchDTO.md +59 -0
  10. package/docs/CreditNoteDTO.md +21 -0
  11. package/docs/CreditNoteEntity.md +29 -0
  12. package/docs/CreditNoteItemDTO.md +25 -0
  13. package/docs/CreditNoteItemEntity.md +29 -0
  14. package/docs/CreditNoteItemModel.md +29 -0
  15. package/docs/CreditNoteModel.md +31 -0
  16. package/docs/NumberPortingApi.md +60 -5
  17. package/docs/OAuth20Api.md +3 -3
  18. package/docs/OrderDetailsDTO.md +65 -0
  19. package/docs/OrderItemDTO.md +55 -0
  20. package/docs/OrderedItemModel.md +47 -0
  21. package/docs/OrdersApi.md +1325 -74
  22. package/docs/PatchUpdateAccountCnameRequest.md +20 -0
  23. package/docs/PostAddAdminNoteRequest.md +20 -0
  24. package/docs/PostAddOrderNoteRequest.md +20 -0
  25. package/docs/PostSplitOrderRequest.md +20 -0
  26. package/docs/PrinterEntity.md +29 -0
  27. package/docs/ProductsApi.md +58 -0
  28. package/docs/PutAllocateItemsRequest.md +20 -0
  29. package/docs/PutAllocateItemsRequestItemsInner.md +22 -0
  30. package/docs/SMSApi.md +56 -0
  31. package/docs/ShipmentDTO.md +41 -0
  32. package/docs/ShipmentItemDTO.md +23 -0
  33. package/docs/ShipmentItemEntity.md +1 -1
  34. package/docs/ShipmentItemModel.md +29 -0
  35. package/docs/ShipmentModel.md +43 -0
  36. package/docs/ShipmentRequestDTO.md +31 -0
  37. package/docs/ShippingRequestDTO.md +28 -0
  38. package/docs/SmsAccountDTO.md +31 -0
  39. package/docs/SmsAccountRequestDTO.md +29 -0
  40. package/docs/SupplierItemModel.md +35 -0
  41. package/docs/SupplierModel.md +37 -0
  42. package/docs/TcxSbcDTO.md +2 -0
  43. package/package.json +1 -1
package/api.ts CHANGED
@@ -247,6 +247,37 @@ export interface AccountDetailedSummaryDTO {
247
247
  */
248
248
  'balance'?: number | null;
249
249
  }
250
+ /**
251
+ * Account Page Details
252
+ */
253
+ export interface AccountPageDetailsDTO {
254
+ /**
255
+ * Xero ID
256
+ */
257
+ 'xeroId'?: string;
258
+ /**
259
+ * Company
260
+ */
261
+ 'companyName'?: string;
262
+ 'billingAddress'?: AddressModel;
263
+ 'defaultShippingAddress'?: AddressModel;
264
+ /**
265
+ * Addresses
266
+ */
267
+ 'previousShippingAddreses'?: Array<AddressModel>;
268
+ /**
269
+ * Portal Access
270
+ */
271
+ 'portalAccess'?: boolean;
272
+ /**
273
+ * CNAME
274
+ */
275
+ 'cname'?: string;
276
+ /**
277
+ * Prizes Enabled
278
+ */
279
+ 'prizesEnabled'?: boolean;
280
+ }
250
281
  /**
251
282
  * New Account Request
252
283
  */
@@ -520,6 +551,14 @@ export interface AdminNumberPortDTO {
520
551
  * Notes
521
552
  */
522
553
  'notes'?: Array<NumberPortNoteDTO>;
554
+ /**
555
+ * Attachments
556
+ */
557
+ 'cloas'?: Array<AttachmentModel>;
558
+ /**
559
+ * Created At
560
+ */
561
+ 'createdAt'?: string;
523
562
  }
524
563
  /**
525
564
  * Admin Order Request
@@ -769,11 +808,11 @@ export interface AuditLogEntity {
769
808
  /**
770
809
  * action
771
810
  */
772
- 'action'?: string;
811
+ 'action'?: AuditLogEntityActionEnum;
773
812
  /**
774
813
  * type
775
814
  */
776
- 'type'?: string;
815
+ 'type'?: AuditLogEntityTypeEnum;
777
816
  /**
778
817
  * identifier
779
818
  */
@@ -799,6 +838,96 @@ export interface AuditLogEntity {
799
838
  */
800
839
  'description'?: string;
801
840
  }
841
+
842
+ export const AuditLogEntityActionEnum = {
843
+ Create: 'CREATE',
844
+ Read: 'READ',
845
+ Update: 'UPDATE',
846
+ Delete: 'DELETE'
847
+ } as const;
848
+
849
+ export type AuditLogEntityActionEnum = typeof AuditLogEntityActionEnum[keyof typeof AuditLogEntityActionEnum];
850
+ export const AuditLogEntityTypeEnum = {
851
+ AuditLog: 'audit_log',
852
+ PopsOrders: 'pops_orders',
853
+ PopsAccountContacts: 'pops_account_contacts',
854
+ ApiLog: 'api_log',
855
+ PopsBatches: 'pops_batches',
856
+ PopsCourierPrices: 'pops_courier_prices',
857
+ PopsCreditAccounts: 'pops_credit_accounts',
858
+ PopsCreditNotes: 'pops_credit_notes',
859
+ PopsCreditNotesItems: 'pops_credit_notes_items',
860
+ EdtechproClients: 'edtechpro_clients',
861
+ EdtechproSchools: 'edtechpro_schools',
862
+ FreshdeskTickets: 'freshdesk_tickets',
863
+ PopsFtpAccounts: 'pops_ftp_accounts',
864
+ ServiceEvents: 'service_events',
865
+ ServiceEventUpdates: 'service_event_updates',
866
+ ServiceEventSubscriptions: 'service_event_subscriptions',
867
+ PopsInstanceFailoverIps: 'pops_instance_failover_ips',
868
+ PopsOvhDeleteSchedule: 'pops_ovh_delete_schedule',
869
+ PopsOvhInstances: 'pops_ovh_instances',
870
+ PopsInstanceFailover: 'pops_instance_failover',
871
+ PopsInstanceMonitoring: 'pops_instance_monitoring',
872
+ PopsInstanceMonitoringLog: 'pops_instance_monitoring_log',
873
+ PopsInstanceScheduledTasks: 'pops_instance_scheduled_tasks',
874
+ PopsInstance3cxDetails: 'pops_instance_3cx_details',
875
+ PopsInstanceUserCredentials: 'pops_instance_user_credentials',
876
+ IpBlacklist: 'ip_blacklist',
877
+ PopsItemDiscounts: 'pops_item_discounts',
878
+ PopsItems: 'pops_items',
879
+ PopsLinkedOrders: 'pops_linked_orders',
880
+ NumberPorts: 'number_ports',
881
+ NumberPortRanges: 'number_port_ranges',
882
+ NumberPortNotes: 'number_port_notes',
883
+ PopsOfflineInstances: 'pops_offline_instances',
884
+ PopsOrderedItems: 'pops_ordered_items',
885
+ PopsPrizes: 'pops_prizes',
886
+ PopsPrinters: 'pops_printers',
887
+ PopsPromoCodes: 'pops_promo_codes',
888
+ PopsPromoItems: 'pops_promo_items',
889
+ PopsProvisioning: 'pops_provisioning',
890
+ S3Buckets: 's3_buckets',
891
+ PopsShipmentAddress: 'pops_shipment_address',
892
+ PopsShipments: 'pops_shipments',
893
+ PopsShipmentItems: 'pops_shipment_items',
894
+ PopsSipTrunkChangeQueue: 'pops_sip_trunk_change_queue',
895
+ PopsSipTrunks: 'pops_sip_trunks',
896
+ PopsSms: 'pops_sms',
897
+ PopsSmsNumbers: 'pops_sms_numbers',
898
+ PopsSmsWhitelist: 'pops_sms_whitelist',
899
+ PopsDistCourier: 'pops_dist_courier',
900
+ PopsDistDeductions: 'pops_dist_deductions',
901
+ PopsDistOrder: 'pops_dist_order',
902
+ PopsDistItems: 'pops_dist_items',
903
+ PopsDistPrices: 'pops_dist_prices',
904
+ PopsDistManufacturer: 'pops_dist_manufacturer',
905
+ PopsStockTransactions: 'pops_stock_transactions',
906
+ PopsSuppliers: 'pops_suppliers',
907
+ PopsSupplierItems: 'pops_supplier_items',
908
+ Pops3cxBackup: 'pops_3cx_backup',
909
+ Pops3cxBilling: 'pops_3cx_billing',
910
+ PopsDeadLicences: 'pops_dead_licences',
911
+ Pops3cxExts: 'pops_3cx_exts',
912
+ PopsHostingPricing: 'pops_hosting_pricing',
913
+ Pops3cxKeys: 'pops_3cx_keys',
914
+ Pops3cxMacs: 'pops_3cx_macs',
915
+ Pops3cxNumbers: 'pops_3cx_numbers',
916
+ Pops3cxOfficeHours: 'pops_3cx_office_hours',
917
+ Pops3cxPhones: 'pops_3cx_phones',
918
+ Pops3cxSbc: 'pops_3cx_sbc',
919
+ Pops3cxSetup: 'pops_3cx_setup',
920
+ Pops3cxSipTrunks: 'pops_3cx_sip_trunks',
921
+ Pops3cxUsers: 'pops_3cx_users',
922
+ PopsUsers: 'pops_users',
923
+ Webhook: 'webhook',
924
+ PopsXeroLog: 'pops_xero_log',
925
+ Oauth2Clients: 'oauth2_clients',
926
+ Oauth2Tokens: 'oauth2_tokens'
927
+ } as const;
928
+
929
+ export type AuditLogEntityTypeEnum = typeof AuditLogEntityTypeEnum[keyof typeof AuditLogEntityTypeEnum];
930
+
802
931
  /**
803
932
  * OAuth Auth Code Response
804
933
  */
@@ -842,6 +971,88 @@ export interface BasicProductDTO {
842
971
  */
843
972
  'title'?: string;
844
973
  }
974
+ /**
975
+ * Batch DTO
976
+ */
977
+ export interface BatchDTO {
978
+ /**
979
+ * id
980
+ */
981
+ 'id'?: number;
982
+ /**
983
+ * orderId
984
+ */
985
+ 'orderId'?: number;
986
+ /**
987
+ * supplierId
988
+ */
989
+ 'supplierId'?: number;
990
+ /**
991
+ * poNumber
992
+ */
993
+ 'poNumber'?: string;
994
+ /**
995
+ * carriage
996
+ */
997
+ 'carriage'?: number;
998
+ /**
999
+ * courier
1000
+ */
1001
+ 'courier'?: string;
1002
+ /**
1003
+ * courierService
1004
+ */
1005
+ 'courierService'?: string;
1006
+ /**
1007
+ * courierReference
1008
+ */
1009
+ 'courierReference'?: string;
1010
+ /**
1011
+ * courierUnique
1012
+ */
1013
+ 'courierUnique'?: string;
1014
+ /**
1015
+ * notes
1016
+ */
1017
+ 'notes'?: string;
1018
+ /**
1019
+ * ordered
1020
+ */
1021
+ 'ordered'?: number;
1022
+ /**
1023
+ * carriagePaid
1024
+ */
1025
+ 'carriagePaid'?: number;
1026
+ /**
1027
+ * carriageRefunded
1028
+ */
1029
+ 'carriageRefunded'?: number;
1030
+ /**
1031
+ * carriageRefundedDue
1032
+ */
1033
+ 'carriageRefundedDue'?: number;
1034
+ /**
1035
+ * netdespatchLabel
1036
+ */
1037
+ 'netdespatchLabel'?: string;
1038
+ /**
1039
+ * courierBoxes
1040
+ */
1041
+ 'courierBoxes'?: number;
1042
+ /**
1043
+ * mac
1044
+ */
1045
+ 'mac'?: string;
1046
+ /**
1047
+ * Shipments
1048
+ */
1049
+ 'shipments'?: Array<ShipmentDTO>;
1050
+ /**
1051
+ * Items
1052
+ */
1053
+ 'items'?: Array<OrderedItemModel>;
1054
+ 'supplier'?: SupplierModel;
1055
+ }
845
1056
  /**
846
1057
  * BatchesEntity
847
1058
  */
@@ -1215,6 +1426,136 @@ export interface CreditAccountEntity {
1215
1426
  */
1216
1427
  'prizePromo'?: boolean;
1217
1428
  }
1429
+ /**
1430
+ * Credit Note
1431
+ */
1432
+ export interface CreditNoteDTO {
1433
+ /**
1434
+ * Items
1435
+ */
1436
+ 'items'?: Array<CreditNoteItemDTO>;
1437
+ }
1438
+ /**
1439
+ * CreditNotesEntity
1440
+ */
1441
+ export interface CreditNoteEntity {
1442
+ /**
1443
+ * id
1444
+ */
1445
+ 'id'?: number;
1446
+ /**
1447
+ * orderId
1448
+ */
1449
+ 'orderId'?: number;
1450
+ /**
1451
+ * transactionId
1452
+ */
1453
+ 'transactionId'?: string;
1454
+ /**
1455
+ * amount
1456
+ */
1457
+ 'amount'?: number;
1458
+ /**
1459
+ * timestamp
1460
+ */
1461
+ 'timestamp'?: string;
1462
+ }
1463
+ /**
1464
+ * Credit Note Item
1465
+ */
1466
+ export interface CreditNoteItemDTO {
1467
+ /**
1468
+ * Item ID
1469
+ */
1470
+ 'itemId'?: number;
1471
+ /**
1472
+ * Quantity
1473
+ */
1474
+ 'quantity'?: number | null;
1475
+ /**
1476
+ * Amount
1477
+ */
1478
+ 'amount'?: number | null;
1479
+ }
1480
+ /**
1481
+ * CreditNotesItemsEntity
1482
+ */
1483
+ export interface CreditNoteItemEntity {
1484
+ /**
1485
+ * id
1486
+ */
1487
+ 'id'?: number;
1488
+ /**
1489
+ * creditNoteId
1490
+ */
1491
+ 'creditNoteId'?: number;
1492
+ /**
1493
+ * orderId
1494
+ */
1495
+ 'orderId'?: number;
1496
+ /**
1497
+ * itemId
1498
+ */
1499
+ 'itemId'?: number;
1500
+ /**
1501
+ * amount
1502
+ */
1503
+ 'amount'?: number;
1504
+ }
1505
+ /**
1506
+ * Credit Note Item
1507
+ */
1508
+ export interface CreditNoteItemModel {
1509
+ /**
1510
+ * id
1511
+ */
1512
+ 'id'?: number;
1513
+ /**
1514
+ * creditNoteId
1515
+ */
1516
+ 'creditNoteId'?: number;
1517
+ /**
1518
+ * orderId
1519
+ */
1520
+ 'orderId'?: number;
1521
+ /**
1522
+ * itemId
1523
+ */
1524
+ 'itemId'?: number;
1525
+ /**
1526
+ * amount
1527
+ */
1528
+ 'amount'?: number;
1529
+ }
1530
+ /**
1531
+ * Credit Note Model
1532
+ */
1533
+ export interface CreditNoteModel {
1534
+ /**
1535
+ * id
1536
+ */
1537
+ 'id'?: number;
1538
+ /**
1539
+ * orderId
1540
+ */
1541
+ 'orderId'?: number;
1542
+ /**
1543
+ * transactionId
1544
+ */
1545
+ 'transactionId'?: string;
1546
+ /**
1547
+ * amount
1548
+ */
1549
+ 'amount'?: number;
1550
+ /**
1551
+ * timestamp
1552
+ */
1553
+ 'timestamp'?: string;
1554
+ /**
1555
+ * Credit Note Items
1556
+ */
1557
+ 'items'?: Array<CreditNoteItemModel>;
1558
+ }
1218
1559
  /**
1219
1560
  * CRM Contact
1220
1561
  */
@@ -2363,7 +2704,7 @@ export interface ItemDTO {
2363
2704
  /**
2364
2705
  * SBCs
2365
2706
  */
2366
- 'sbcs'?: Array<TcxSbcDTO> | null;
2707
+ 'sbcs'?: Array<TcxSbcDTO>;
2367
2708
  /**
2368
2709
  * Readonly
2369
2710
  */
@@ -2812,49 +3153,134 @@ export interface OfflineInstancesEntity {
2812
3153
  'alerted'?: number;
2813
3154
  }
2814
3155
  /**
2815
- * OrdersEntity
3156
+ * Order Details
2816
3157
  */
2817
- export interface OrderEntity {
3158
+ export interface OrderDetailsDTO {
2818
3159
  /**
2819
- * id
3160
+ * ID
2820
3161
  */
2821
3162
  'id'?: number;
2822
3163
  /**
2823
- * externalId
2824
- */
2825
- 'reference'?: string;
2826
- /**
2827
- * sourceId
3164
+ * Reference
2828
3165
  */
2829
- 'sourceId'?: number;
3166
+ 'reference'?: string | null;
2830
3167
  /**
2831
- * sageInv
3168
+ * Invoice Number
2832
3169
  */
2833
3170
  'invoiceNumber'?: string;
2834
3171
  /**
2835
- * invoiceId
3172
+ * Invoice ID
2836
3173
  */
2837
3174
  'invoiceId'?: string | null;
2838
3175
  /**
2839
- * creditAccountId
2840
- */
2841
- 'customerId'?: number;
2842
- /**
2843
- * orderDate
3176
+ * Date Time
2844
3177
  */
2845
3178
  'orderDate'?: string;
2846
3179
  /**
2847
- * orderPostedDate
3180
+ * Paid
2848
3181
  */
2849
- 'orderPostedDate'?: string;
3182
+ 'paid'?: boolean;
2850
3183
  /**
2851
- * buyerEmail
3184
+ * Complete
2852
3185
  */
2853
- 'buyerEmail'?: string;
3186
+ 'complete'?: boolean;
2854
3187
  /**
2855
- * buyerPhone
3188
+ * Quote
2856
3189
  */
2857
- 'buyerPhone'?: string;
3190
+ 'quote'?: boolean;
3191
+ 'customer'?: AccountSummaryDTO;
3192
+ 'shippingAddress'?: AddressModel | null;
3193
+ /**
3194
+ * Items
3195
+ */
3196
+ 'items'?: Array<ItemDTO>;
3197
+ /**
3198
+ * Carriage Charge
3199
+ */
3200
+ 'carriageCharge'?: number;
3201
+ /**
3202
+ * Fulfillable
3203
+ */
3204
+ 'fulfillable'?: boolean | null;
3205
+ /**
3206
+ * Provisioning URL
3207
+ */
3208
+ 'provisioningUrl'?: string | null;
3209
+ 'shippingService'?: ShippingServiceDTO | null;
3210
+ /**
3211
+ * Readonly
3212
+ */
3213
+ 'readonly'?: boolean;
3214
+ /**
3215
+ * Detailed Items
3216
+ */
3217
+ 'detailedItems'?: Array<OrderItemDTO>;
3218
+ /**
3219
+ * Batches
3220
+ */
3221
+ 'batches'?: Array<BatchDTO>;
3222
+ /**
3223
+ * Audit Log
3224
+ */
3225
+ 'logEntries'?: Array<AuditLogEntity>;
3226
+ /**
3227
+ * Card Payment Link
3228
+ */
3229
+ 'paymentLink'?: string | null;
3230
+ /**
3231
+ * Credits
3232
+ */
3233
+ 'credits'?: Array<CreditNoteModel>;
3234
+ /**
3235
+ * Customer Email
3236
+ */
3237
+ 'customerEmail'?: string;
3238
+ 'totals'?: OrderTotalModel;
3239
+ }
3240
+ /**
3241
+ * OrdersEntity
3242
+ */
3243
+ export interface OrderEntity {
3244
+ /**
3245
+ * id
3246
+ */
3247
+ 'id'?: number;
3248
+ /**
3249
+ * externalId
3250
+ */
3251
+ 'reference'?: string;
3252
+ /**
3253
+ * sourceId
3254
+ */
3255
+ 'sourceId'?: number;
3256
+ /**
3257
+ * sageInv
3258
+ */
3259
+ 'invoiceNumber'?: string;
3260
+ /**
3261
+ * invoiceId
3262
+ */
3263
+ 'invoiceId'?: string | null;
3264
+ /**
3265
+ * creditAccountId
3266
+ */
3267
+ 'customerId'?: number;
3268
+ /**
3269
+ * orderDate
3270
+ */
3271
+ 'orderDate'?: string;
3272
+ /**
3273
+ * orderPostedDate
3274
+ */
3275
+ 'orderPostedDate'?: string;
3276
+ /**
3277
+ * buyerEmail
3278
+ */
3279
+ 'buyerEmail'?: string;
3280
+ /**
3281
+ * buyerPhone
3282
+ */
3283
+ 'buyerPhone'?: string;
2858
3284
  /**
2859
3285
  * buyerName
2860
3286
  */
@@ -3048,6 +3474,83 @@ export interface OrderEntity {
3048
3474
  */
3049
3475
  'fulfillable'?: boolean | null;
3050
3476
  }
3477
+ /**
3478
+ * Order Item Details
3479
+ */
3480
+ export interface OrderItemDTO {
3481
+ /**
3482
+ * SKU
3483
+ */
3484
+ 'sku'?: string;
3485
+ /**
3486
+ * Quantity
3487
+ */
3488
+ 'quantity'?: number;
3489
+ /**
3490
+ * ID
3491
+ */
3492
+ 'id'?: number | null;
3493
+ /**
3494
+ * Order ID
3495
+ */
3496
+ 'orderId'?: number | null;
3497
+ /**
3498
+ * Title
3499
+ */
3500
+ 'title'?: string;
3501
+ /**
3502
+ * Price
3503
+ */
3504
+ 'price'?: number;
3505
+ /**
3506
+ * 3CX Licence Key
3507
+ */
3508
+ 'licenceKey'?: string | null;
3509
+ /**
3510
+ * Date Time
3511
+ */
3512
+ 'licenceExpiry'?: string | null;
3513
+ /**
3514
+ * Date Time
3515
+ */
3516
+ 'processDate'?: string | null;
3517
+ /**
3518
+ * 3CX Hosting
3519
+ */
3520
+ 'hosting'?: boolean | null;
3521
+ /**
3522
+ * Promo Item
3523
+ */
3524
+ 'promoItem'?: boolean;
3525
+ /**
3526
+ * Refunded
3527
+ */
3528
+ 'refunded'?: number | null;
3529
+ /**
3530
+ * SBCs
3531
+ */
3532
+ 'sbcs'?: Array<TcxSbcDTO>;
3533
+ /**
3534
+ * Readonly
3535
+ */
3536
+ 'readonly'?: boolean;
3537
+ /**
3538
+ * 3CX Sales Code
3539
+ */
3540
+ 'tcxSalesCode'?: string | null;
3541
+ /**
3542
+ * Suppliers
3543
+ */
3544
+ 'suppliers'?: Array<SupplierModel>;
3545
+ /**
3546
+ * Supplier Items
3547
+ */
3548
+ 'supplierItems'?: Array<SupplierItemModel>;
3549
+ /**
3550
+ * Allocated
3551
+ */
3552
+ 'allocated'?: number | null;
3553
+ }
3051
3554
  /**
3052
3555
  * EdTechPro Order Request
3053
3556
  */
@@ -3335,7 +3838,68 @@ export interface OrderedItemEntity {
3335
3838
  */
3336
3839
  'returnedStock'?: number;
3337
3840
  }
3338
- export interface PatchSetTcxWizardCnameRequest {
3841
+ /**
3842
+ * Ordered Item Model
3843
+ */
3844
+ export interface OrderedItemModel {
3845
+ /**
3846
+ * id
3847
+ */
3848
+ 'id'?: number;
3849
+ /**
3850
+ * itemId
3851
+ */
3852
+ 'itemId'?: number;
3853
+ /**
3854
+ * orderedQuantity
3855
+ */
3856
+ 'orderedQuantity'?: number;
3857
+ /**
3858
+ * itemStatus
3859
+ */
3860
+ 'itemStatus'?: number;
3861
+ /**
3862
+ * supplierId
3863
+ */
3864
+ 'supplierId'?: number;
3865
+ /**
3866
+ * supplierItemId
3867
+ */
3868
+ 'supplierItemId'?: number;
3869
+ /**
3870
+ * supplierPrice
3871
+ */
3872
+ 'supplierPrice'?: number;
3873
+ /**
3874
+ * statusDate
3875
+ */
3876
+ 'statusDate'?: string;
3877
+ /**
3878
+ * statusAuthor
3879
+ */
3880
+ 'statusAuthor'?: number;
3881
+ /**
3882
+ * supplierPaid
3883
+ */
3884
+ 'supplierPaid'?: number;
3885
+ /**
3886
+ * supplierCreditDue
3887
+ */
3888
+ 'supplierCreditDue'?: number;
3889
+ /**
3890
+ * supplierCreditReceived
3891
+ */
3892
+ 'supplierCreditReceived'?: number;
3893
+ /**
3894
+ * supplierSku
3895
+ */
3896
+ 'supplierSku'?: string;
3897
+ /**
3898
+ * returnedStock
3899
+ */
3900
+ 'returnedStock'?: number;
3901
+ }
3902
+ export interface PatchUpdateAccountCnameRequest {
3339
3903
  /**
3340
3904
  * CNAME
3341
3905
  */
@@ -3481,6 +4045,18 @@ export interface PortalLoginModel {
3481
4045
  */
3482
4046
  'redirect_uri'?: string;
3483
4047
  }
4048
+ export interface PostAddAdminNoteRequest {
4049
+ /**
4050
+ * Note
4051
+ */
4052
+ 'note'?: string;
4053
+ }
4054
+ export interface PostAddOrderNoteRequest {
4055
+ /**
4056
+ * Order Note
4057
+ */
4058
+ 'note'?: string;
4059
+ }
3484
4060
  export interface PostAddWebhook200Response {
3485
4061
  'url'?: string;
3486
4062
  }
@@ -3522,6 +4098,12 @@ export interface PostGetProductRequest {
3522
4098
  */
3523
4099
  'hosting'?: boolean | null;
3524
4100
  }
4101
+ export interface PostSplitOrderRequest {
4102
+ /**
4103
+ * Item Ids
4104
+ */
4105
+ 'itemIds'?: Array<number>;
4106
+ }
3525
4107
  /**
3526
4108
  * Price & Stock List
3527
4109
  */
@@ -3547,6 +4129,31 @@ export interface PriceListItemModel {
3547
4129
  */
3548
4130
  'stock'?: number | null;
3549
4131
  }
4132
+ /**
4133
+ * PrintersEntity
4134
+ */
4135
+ export interface PrinterEntity {
4136
+ /**
4137
+ * id
4138
+ */
4139
+ 'id'?: number;
4140
+ /**
4141
+ * brand
4142
+ */
4143
+ 'brand'?: string;
4144
+ /**
4145
+ * model
4146
+ */
4147
+ 'model'?: string;
4148
+ /**
4149
+ * sn
4150
+ */
4151
+ 'sn'?: string;
4152
+ /**
4153
+ * location
4154
+ */
4155
+ 'location'?: string;
4156
+ }
3550
4157
  /**
3551
4158
  * PrizesEntity
3552
4159
  */
@@ -3805,6 +4412,22 @@ export interface ProvisioningRequestEntity {
3805
4412
  */
3806
4413
  'auth'?: string;
3807
4414
  }
4415
+ export interface PutAllocateItemsRequest {
4416
+ /**
4417
+ * Items
4418
+ */
4419
+ 'items'?: Array<PutAllocateItemsRequestItemsInner>;
4420
+ }
4421
+ export interface PutAllocateItemsRequestItemsInner {
4422
+ /**
4423
+ * Item ID
4424
+ */
4425
+ 'itemId'?: number;
4426
+ /**
4427
+ * Quantity To Allocate
4428
+ */
4429
+ 'quantity'?: number;
4430
+ }
3808
4431
  /**
3809
4432
  * Azure Recordings Backup
3810
4433
  */
@@ -4022,19 +4645,74 @@ export interface ShipmentAddressEntity {
4022
4645
  'shipPhoneNumber'?: string;
4023
4646
  }
4024
4647
  /**
4025
- * ShipmentsEntity
4648
+ * Shipment
4026
4649
  */
4027
- export interface ShipmentEntity {
4650
+ export interface ShipmentDTO {
4028
4651
  /**
4029
- * id
4652
+ * ID
4030
4653
  */
4031
- 'id'?: number;
4654
+ 'id'?: number | null;
4032
4655
  /**
4033
- * batchId
4656
+ * Batch ID
4034
4657
  */
4035
- 'batchId'?: number;
4658
+ 'batchId'?: number | null;
4036
4659
  /**
4037
- * courier
4660
+ * Courier
4661
+ */
4662
+ 'courier'?: ShipmentDTOCourierEnum | null;
4663
+ /**
4664
+ * Courier Reference
4665
+ */
4666
+ 'reference'?: string | null;
4667
+ /**
4668
+ * Courier Tracking
4669
+ */
4670
+ 'tracking'?: string | null;
4671
+ /**
4672
+ * Courier Tracking URL
4673
+ */
4674
+ 'trackingUrl'?: string | null;
4675
+ /**
4676
+ * Date Time
4677
+ */
4678
+ 'requestedDate'?: string;
4679
+ /**
4680
+ * Scanned Items
4681
+ */
4682
+ 'scannedItems'?: Array<ScannedItemModel>;
4683
+ /**
4684
+ * Items
4685
+ */
4686
+ 'items'?: Array<ShipmentItemModel>;
4687
+ 'address'?: AddressModel;
4688
+ /**
4689
+ * Boxes Shipped
4690
+ */
4691
+ 'boxes'?: number | null;
4692
+ }
4693
+
4694
+ export const ShipmentDTOCourierEnum = {
4695
+ Dpd: 'DPD',
4696
+ ChorltonPallet: 'Chorlton Pallet',
4697
+ Pops: 'POPS'
4698
+ } as const;
4699
+
4700
+ export type ShipmentDTOCourierEnum = typeof ShipmentDTOCourierEnum[keyof typeof ShipmentDTOCourierEnum];
4701
+
4702
+ /**
4703
+ * ShipmentsEntity
4704
+ */
4705
+ export interface ShipmentEntity {
4706
+ /**
4707
+ * id
4708
+ */
4709
+ 'id'?: number;
4710
+ /**
4711
+ * batchId
4712
+ */
4713
+ 'batchId'?: number;
4714
+ /**
4715
+ * courier
4038
4716
  */
4039
4717
  'courier'?: string;
4040
4718
  /**
@@ -4074,6 +4752,19 @@ export interface ShipmentEntity {
4074
4752
  */
4075
4753
  'provId'?: number;
4076
4754
  }
4755
+ /**
4756
+ * Shipment Item
4757
+ */
4758
+ export interface ShipmentItemDTO {
4759
+ /**
4760
+ * Item ID
4761
+ */
4762
+ 'itemId'?: number;
4763
+ /**
4764
+ * Quantity
4765
+ */
4766
+ 'quantity'?: number;
4767
+ }
4077
4768
  /**
4078
4769
  * ShipmentItemsEntity
4079
4770
  */
@@ -4097,8 +4788,121 @@ export interface ShipmentItemEntity {
4097
4788
  /**
4098
4789
  * item
4099
4790
  */
4100
- 'itemId'?: string;
4791
+ 'itemId'?: number;
4792
+ }
4793
+ /**
4794
+ * Shipment Item
4795
+ */
4796
+ export interface ShipmentItemModel {
4797
+ /**
4798
+ * id
4799
+ */
4800
+ 'id'?: number;
4801
+ /**
4802
+ * shipmentId
4803
+ */
4804
+ 'shipmentId'?: number;
4805
+ /**
4806
+ * batchId
4807
+ */
4808
+ 'batchId'?: number;
4809
+ /**
4810
+ * quantity
4811
+ */
4812
+ 'quantity'?: number;
4813
+ /**
4814
+ * item
4815
+ */
4816
+ 'itemId'?: number;
4817
+ }
4818
+ /**
4819
+ * Shipment
4820
+ */
4821
+ export interface ShipmentModel {
4822
+ /**
4823
+ * id
4824
+ */
4825
+ 'id'?: number;
4826
+ /**
4827
+ * batchId
4828
+ */
4829
+ 'batchId'?: number;
4830
+ /**
4831
+ * courier
4832
+ */
4833
+ 'courier'?: string;
4834
+ /**
4835
+ * courierService
4836
+ */
4837
+ 'courierService'?: string;
4838
+ /**
4839
+ * courierServiceDesc
4840
+ */
4841
+ 'courierServiceDesc'?: string;
4842
+ /**
4843
+ * courierReference
4844
+ */
4845
+ 'courierReference'?: string;
4846
+ /**
4847
+ * courierTracking
4848
+ */
4849
+ 'courierTracking'?: string;
4850
+ /**
4851
+ * courierBoxes
4852
+ */
4853
+ 'courierBoxes'?: number;
4854
+ /**
4855
+ * mac
4856
+ */
4857
+ 'scannedData'?: string;
4858
+ /**
4859
+ * date
4860
+ */
4861
+ 'dateShipped'?: string;
4862
+ /**
4863
+ * requestDate
4864
+ */
4865
+ 'requestDate'?: string;
4866
+ /**
4867
+ * provId
4868
+ */
4869
+ 'provId'?: number;
4870
+ }
4871
+ /**
4872
+ * Shipment Request
4873
+ */
4874
+ export interface ShipmentRequestDTO {
4875
+ /**
4876
+ * Courier
4877
+ */
4878
+ 'courier'?: ShipmentRequestDTOCourierEnum;
4879
+ 'address'?: AddressModel | null;
4880
+ /**
4881
+ * Scanned Lines
4882
+ */
4883
+ 'scannedLines'?: Array<string>;
4884
+ /**
4885
+ * Service
4886
+ */
4887
+ 'service'?: string;
4888
+ /**
4889
+ * Date Time
4890
+ */
4891
+ 'shipDate'?: string | null;
4892
+ /**
4893
+ * Items
4894
+ */
4895
+ 'items'?: Array<ShipmentItemDTO>;
4101
4896
  }
4897
+
4898
+ export const ShipmentRequestDTOCourierEnum = {
4899
+ Dpd: 'DPD',
4900
+ ChorltonPallet: 'Chorlton Pallet',
4901
+ Pops: 'POPS'
4902
+ } as const;
4903
+
4904
+ export type ShipmentRequestDTOCourierEnum = typeof ShipmentRequestDTOCourierEnum[keyof typeof ShipmentRequestDTOCourierEnum];
4905
+
4102
4906
  export interface ShippingConsignmentModel {
4103
4907
  'service'?: ShippingServiceModel;
4104
4908
  /**
@@ -4131,6 +4935,41 @@ export interface ShippingInformationDTO {
4131
4935
  */
4132
4936
  'iso'?: string;
4133
4937
  }
4938
+ export interface ShippingRequestDTO {
4939
+ /**
4940
+ * Courier
4941
+ */
4942
+ 'courier'?: ShippingRequestDTOCourierEnum;
4943
+ /**
4944
+ * Courier Service
4945
+ */
4946
+ 'service'?: string;
4947
+ /**
4948
+ * Boxes
4949
+ */
4950
+ 'boxes'?: number;
4951
+ /**
4952
+ * Printer
4953
+ */
4954
+ 'printer'?: ShippingRequestDTOPrinterEnum | null;
4955
+ 'shipment'?: ShipmentRequestDTO | null;
4956
+ }
4957
+
4958
+ export const ShippingRequestDTOCourierEnum = {
4959
+ Dpd: 'DPD',
4960
+ ChorltonPallet: 'Chorlton Pallet',
4961
+ Pops: 'POPS'
4962
+ } as const;
4963
+
4964
+ export type ShippingRequestDTOCourierEnum = typeof ShippingRequestDTOCourierEnum[keyof typeof ShippingRequestDTOCourierEnum];
4965
+ export const ShippingRequestDTOPrinterEnum = {
4966
+ NUMBER_1: 1,
4967
+ NUMBER_2: 2,
4968
+ NUMBER_3: 3
4969
+ } as const;
4970
+
4971
+ export type ShippingRequestDTOPrinterEnum = typeof ShippingRequestDTOPrinterEnum[keyof typeof ShippingRequestDTOPrinterEnum];
4972
+
4134
4973
  /**
4135
4974
  * Shipping Service
4136
4975
  */
@@ -4330,6 +5169,35 @@ export interface SipTrunksResponseModel {
4330
5169
  */
4331
5170
  'totalResults'?: number;
4332
5171
  }
5172
+ /**
5173
+ * SMS Account
5174
+ */
5175
+ export interface SmsAccountDTO {
5176
+ /**
5177
+ * Send URL
5178
+ */
5179
+ 'sendUrl'?: string;
5180
+ /**
5181
+ * Webhook URL
5182
+ */
5183
+ 'webhookUrl'?: string;
5184
+ /**
5185
+ * API Key
5186
+ */
5187
+ 'apiKey'?: string;
5188
+ /**
5189
+ * Numbers
5190
+ */
5191
+ 'numbers'?: Array<SmsNumbersEntity>;
5192
+ /**
5193
+ * Name
5194
+ */
5195
+ 'name'?: string;
5196
+ /**
5197
+ * Sender Whitelist
5198
+ */
5199
+ 'whitelist'?: Array<SmsWhitelistEntity>;
5200
+ }
4333
5201
  /**
4334
5202
  * SmsEntity
4335
5203
  */
@@ -4363,6 +5231,47 @@ export interface SmsAccountEntity {
4363
5231
  */
4364
5232
  'name'?: string;
4365
5233
  }
5234
+ /**
5235
+ * SMS Account Request
5236
+ */
5237
+ export interface SmsAccountRequestDTO {
5238
+ /**
5239
+ * SMS Provider
5240
+ */
5241
+ 'provider'?: SmsAccountRequestDTOProviderEnum;
5242
+ /**
5243
+ * Customer Name
5244
+ */
5245
+ 'name'?: string;
5246
+ /**
5247
+ * SMS Webhook
5248
+ */
5249
+ 'webhookUrl'?: string;
5250
+ /**
5251
+ * Number Country
5252
+ */
5253
+ 'iso'?: string;
5254
+ /**
5255
+ * Number Type
5256
+ */
5257
+ 'type'?: SmsAccountRequestDTOTypeEnum;
5258
+ }
5259
+
5260
+ export const SmsAccountRequestDTOProviderEnum = {
5261
+ NUMBER_1: 1
5262
+ } as const;
5263
+
5264
+ export type SmsAccountRequestDTOProviderEnum = typeof SmsAccountRequestDTOProviderEnum[keyof typeof SmsAccountRequestDTOProviderEnum];
5265
+ export const SmsAccountRequestDTOTypeEnum = {
5266
+ Local: 'local',
5267
+ TollFree: 'toll_free',
5268
+ Mobile: 'mobile',
5269
+ National: 'national',
5270
+ SharedCost: 'shared_cost'
5271
+ } as const;
5272
+
5273
+ export type SmsAccountRequestDTOTypeEnum = typeof SmsAccountRequestDTOTypeEnum[keyof typeof SmsAccountRequestDTOTypeEnum];
5274
+
4366
5275
  /**
4367
5276
  * SMS Data Model
4368
5277
  */
@@ -5198,49 +6107,127 @@ export interface SupplierItemEntity {
5198
6107
  'supplierSku'?: string;
5199
6108
  }
5200
6109
  /**
5201
- * Telephony Support Ticket
6110
+ * Supplier Item
5202
6111
  */
5203
- export interface SupportTicketModel {
6112
+ export interface SupplierItemModel {
5204
6113
  /**
5205
- * Ticket ID
6114
+ * id
5206
6115
  */
5207
6116
  'id'?: number;
5208
6117
  /**
5209
- * Ticket status
6118
+ * supplierId
5210
6119
  */
5211
- 'status'?: string;
6120
+ 'supplierId'?: number;
5212
6121
  /**
5213
- * Ticket status ID
6122
+ * sku
5214
6123
  */
5215
- 'statusId'?: number;
6124
+ 'sku'?: string;
5216
6125
  /**
5217
- * Ticket subject
6126
+ * title
5218
6127
  */
5219
- 'subject'?: string;
6128
+ 'title'?: string;
5220
6129
  /**
5221
- * Support email address
6130
+ * itemOptions
5222
6131
  */
5223
- 'supportEmail'?: string | null;
6132
+ 'itemOptions'?: string;
5224
6133
  /**
5225
- * Recipient emails
6134
+ * itemPrice
5226
6135
  */
5227
- 'toEmails'?: Array<string>;
6136
+ 'itemPrice'?: number;
5228
6137
  /**
5229
- * Ticket description (HTML)
6138
+ * itemType
5230
6139
  */
5231
- 'description'?: string;
6140
+ 'itemType'?: number;
5232
6141
  /**
5233
- * Ticket description (plain text)
6142
+ * supplierSku
5234
6143
  */
5235
- 'descriptionText'?: string;
6144
+ 'supplierSku'?: string;
6145
+ }
6146
+ /**
6147
+ * Supplier
6148
+ */
6149
+ export interface SupplierModel {
5236
6150
  /**
5237
- * Creation timestamp
6151
+ * id
5238
6152
  */
5239
- 'createdAt'?: string;
6153
+ 'id'?: number;
5240
6154
  /**
5241
- * Attachments
6155
+ * name
5242
6156
  */
5243
- 'attachments'?: Array<AttachmentModel>;
6157
+ 'name'?: string;
6158
+ /**
6159
+ * nameShort
6160
+ */
6161
+ 'shortName'?: string;
6162
+ /**
6163
+ * email
6164
+ */
6165
+ 'email'?: string;
6166
+ /**
6167
+ * phone
6168
+ */
6169
+ 'phone'?: string;
6170
+ /**
6171
+ * defaultCourier
6172
+ */
6173
+ 'defaultCourier'?: string;
6174
+ /**
6175
+ * defaultCarriage
6176
+ */
6177
+ 'defaultCarriage'?: number;
6178
+ /**
6179
+ * account
6180
+ */
6181
+ 'accountNumber'?: string;
6182
+ /**
6183
+ * internalAccount
6184
+ */
6185
+ 'xeroAccountNumber'?: string;
6186
+ }
6187
+ /**
6188
+ * Telephony Support Ticket
6189
+ */
6190
+ export interface SupportTicketModel {
6191
+ /**
6192
+ * Ticket ID
6193
+ */
6194
+ 'id'?: number;
6195
+ /**
6196
+ * Ticket status
6197
+ */
6198
+ 'status'?: string;
6199
+ /**
6200
+ * Ticket status ID
6201
+ */
6202
+ 'statusId'?: number;
6203
+ /**
6204
+ * Ticket subject
6205
+ */
6206
+ 'subject'?: string;
6207
+ /**
6208
+ * Support email address
6209
+ */
6210
+ 'supportEmail'?: string | null;
6211
+ /**
6212
+ * Recipient emails
6213
+ */
6214
+ 'toEmails'?: Array<string>;
6215
+ /**
6216
+ * Ticket description (HTML)
6217
+ */
6218
+ 'description'?: string;
6219
+ /**
6220
+ * Ticket description (plain text)
6221
+ */
6222
+ 'descriptionText'?: string;
6223
+ /**
6224
+ * Creation timestamp
6225
+ */
6226
+ 'createdAt'?: string;
6227
+ /**
6228
+ * Attachments
6229
+ */
6230
+ 'attachments'?: Array<AttachmentModel>;
5244
6231
  /**
5245
6232
  * Conversations
5246
6233
  */
@@ -6123,6 +7110,10 @@ export interface TcxRemoteStorageModel {
6123
7110
  * SBC Data
6124
7111
  */
6125
7112
  export interface TcxSbcDTO {
7113
+ /**
7114
+ * ID
7115
+ */
7116
+ 'id'?: number | null;
6126
7117
  /**
6127
7118
  * LAN IP Address
6128
7119
  */
@@ -7039,6 +8030,39 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
7039
8030
  options: localVarRequestOptions,
7040
8031
  };
7041
8032
  },
8033
+ /**
8034
+ * Get Account Page Details
8035
+ * @param {string} id Xero ID
8036
+ * @param {*} [options] Override http request option.
8037
+ * @throws {RequiredError}
8038
+ */
8039
+ getGetAccountPageInfo: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8040
+ // verify required parameter 'id' is not null or undefined
8041
+ assertParamExists('getGetAccountPageInfo', 'id', id)
8042
+ const localVarPath = `/{id}`
8043
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8044
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8045
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8046
+ let baseOptions;
8047
+ if (configuration) {
8048
+ baseOptions = configuration.baseOptions;
8049
+ }
8050
+
8051
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8052
+ const localVarHeaderParameter = {} as any;
8053
+ const localVarQueryParameter = {} as any;
8054
+
8055
+ localVarHeaderParameter['Accept'] = 'application/json';
8056
+
8057
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8058
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8059
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8060
+
8061
+ return {
8062
+ url: toPathString(localVarUrlObj),
8063
+ options: localVarRequestOptions,
8064
+ };
8065
+ },
7042
8066
  /**
7043
8067
  * Get Accounts
7044
8068
  * @summary Get Accounts
@@ -7176,6 +8200,78 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
7176
8200
  }
7177
8201
 
7178
8202
 
8203
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8204
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8205
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8206
+
8207
+ return {
8208
+ url: toPathString(localVarUrlObj),
8209
+ options: localVarRequestOptions,
8210
+ };
8211
+ },
8212
+ /**
8213
+ * Set Account Portal Access
8214
+ * @param {string} id Xero ID
8215
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
8216
+ * @param {*} [options] Override http request option.
8217
+ * @throws {RequiredError}
8218
+ */
8219
+ patchSetPortalAccess: async (id: string, state: PatchSetPortalAccessStateEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8220
+ // verify required parameter 'id' is not null or undefined
8221
+ assertParamExists('patchSetPortalAccess', 'id', id)
8222
+ // verify required parameter 'state' is not null or undefined
8223
+ assertParamExists('patchSetPortalAccess', 'state', state)
8224
+ const localVarPath = `/{id}/portal/access/{state}`
8225
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
8226
+ .replace(`{${"state"}}`, encodeURIComponent(String(state)));
8227
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8228
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8229
+ let baseOptions;
8230
+ if (configuration) {
8231
+ baseOptions = configuration.baseOptions;
8232
+ }
8233
+
8234
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8235
+ const localVarHeaderParameter = {} as any;
8236
+ const localVarQueryParameter = {} as any;
8237
+
8238
+
8239
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8240
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8241
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8242
+
8243
+ return {
8244
+ url: toPathString(localVarUrlObj),
8245
+ options: localVarRequestOptions,
8246
+ };
8247
+ },
8248
+ /**
8249
+ * Set Account Prize Promo
8250
+ * @param {string} id Xero ID
8251
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
8252
+ * @param {*} [options] Override http request option.
8253
+ * @throws {RequiredError}
8254
+ */
8255
+ patchSetPrizePromo: async (id: string, state: PatchSetPrizePromoStateEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8256
+ // verify required parameter 'id' is not null or undefined
8257
+ assertParamExists('patchSetPrizePromo', 'id', id)
8258
+ // verify required parameter 'state' is not null or undefined
8259
+ assertParamExists('patchSetPrizePromo', 'state', state)
8260
+ const localVarPath = `/{id}/prizes/{state}`
8261
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
8262
+ .replace(`{${"state"}}`, encodeURIComponent(String(state)));
8263
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8264
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8265
+ let baseOptions;
8266
+ if (configuration) {
8267
+ baseOptions = configuration.baseOptions;
8268
+ }
8269
+
8270
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8271
+ const localVarHeaderParameter = {} as any;
8272
+ const localVarQueryParameter = {} as any;
8273
+
8274
+
7179
8275
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7180
8276
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7181
8277
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -7187,11 +8283,11 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
7187
8283
  },
7188
8284
  /**
7189
8285
  * Set 3CX Wizard CNAME
7190
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
8286
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
7191
8287
  * @param {*} [options] Override http request option.
7192
8288
  * @throws {RequiredError}
7193
8289
  */
7194
- patchSetTcxWizardCname: async (patchSetTcxWizardCnameRequest?: PatchSetTcxWizardCnameRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8290
+ patchSetTcxWizardCname: async (patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7195
8291
  const localVarPath = `/accounts/me/cname`;
7196
8292
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7197
8293
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7209,7 +8305,42 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
7209
8305
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7210
8306
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7211
8307
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7212
- localVarRequestOptions.data = serializeDataIfNeeded(patchSetTcxWizardCnameRequest, localVarRequestOptions, configuration)
8308
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountCnameRequest, localVarRequestOptions, configuration)
8309
+
8310
+ return {
8311
+ url: toPathString(localVarUrlObj),
8312
+ options: localVarRequestOptions,
8313
+ };
8314
+ },
8315
+ /**
8316
+ * Set Account Prize Promo
8317
+ * @param {string} id Xero ID
8318
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
8319
+ * @param {*} [options] Override http request option.
8320
+ * @throws {RequiredError}
8321
+ */
8322
+ patchUpdateAccountCname: async (id: string, patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8323
+ // verify required parameter 'id' is not null or undefined
8324
+ assertParamExists('patchUpdateAccountCname', 'id', id)
8325
+ const localVarPath = `/{id}/cname`
8326
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8327
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8328
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8329
+ let baseOptions;
8330
+ if (configuration) {
8331
+ baseOptions = configuration.baseOptions;
8332
+ }
8333
+
8334
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
8335
+ const localVarHeaderParameter = {} as any;
8336
+ const localVarQueryParameter = {} as any;
8337
+
8338
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8339
+
8340
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8341
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8342
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8343
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountCnameRequest, localVarRequestOptions, configuration)
7213
8344
 
7214
8345
  return {
7215
8346
  url: toPathString(localVarUrlObj),
@@ -7527,6 +8658,76 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
7527
8658
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7528
8659
  localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
7529
8660
 
8661
+ return {
8662
+ url: toPathString(localVarUrlObj),
8663
+ options: localVarRequestOptions,
8664
+ };
8665
+ },
8666
+ /**
8667
+ * Update Account Billing Address
8668
+ * @param {string} id Xero ID
8669
+ * @param {AddressModel} [addressModel] Updated Billing Address
8670
+ * @param {*} [options] Override http request option.
8671
+ * @throws {RequiredError}
8672
+ */
8673
+ putUpdateBillingAddress: async (id: string, addressModel?: AddressModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8674
+ // verify required parameter 'id' is not null or undefined
8675
+ assertParamExists('putUpdateBillingAddress', 'id', id)
8676
+ const localVarPath = `/{id}/billing/address`
8677
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8678
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8679
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8680
+ let baseOptions;
8681
+ if (configuration) {
8682
+ baseOptions = configuration.baseOptions;
8683
+ }
8684
+
8685
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
8686
+ const localVarHeaderParameter = {} as any;
8687
+ const localVarQueryParameter = {} as any;
8688
+
8689
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8690
+
8691
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8692
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8693
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8694
+ localVarRequestOptions.data = serializeDataIfNeeded(addressModel, localVarRequestOptions, configuration)
8695
+
8696
+ return {
8697
+ url: toPathString(localVarUrlObj),
8698
+ options: localVarRequestOptions,
8699
+ };
8700
+ },
8701
+ /**
8702
+ * Update Account Shipping Address
8703
+ * @param {string} id Xero ID
8704
+ * @param {AddressModel} [addressModel] Updated Shipping Address
8705
+ * @param {*} [options] Override http request option.
8706
+ * @throws {RequiredError}
8707
+ */
8708
+ putUpdateShippingAddress: async (id: string, addressModel?: AddressModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8709
+ // verify required parameter 'id' is not null or undefined
8710
+ assertParamExists('putUpdateShippingAddress', 'id', id)
8711
+ const localVarPath = `/{id}/shipping/address`
8712
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8713
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8714
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8715
+ let baseOptions;
8716
+ if (configuration) {
8717
+ baseOptions = configuration.baseOptions;
8718
+ }
8719
+
8720
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
8721
+ const localVarHeaderParameter = {} as any;
8722
+ const localVarQueryParameter = {} as any;
8723
+
8724
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8725
+
8726
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8727
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8728
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8729
+ localVarRequestOptions.data = serializeDataIfNeeded(addressModel, localVarRequestOptions, configuration)
8730
+
7530
8731
  return {
7531
8732
  url: toPathString(localVarUrlObj),
7532
8733
  options: localVarRequestOptions,
@@ -7605,6 +8806,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
7605
8806
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountDetailedSummary']?.[localVarOperationServerIndex]?.url;
7606
8807
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7607
8808
  },
8809
+ /**
8810
+ * Get Account Page Details
8811
+ * @param {string} id Xero ID
8812
+ * @param {*} [options] Override http request option.
8813
+ * @throws {RequiredError}
8814
+ */
8815
+ async getGetAccountPageInfo(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountPageDetailsDTO>> {
8816
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccountPageInfo(id, options);
8817
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8818
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountPageInfo']?.[localVarOperationServerIndex]?.url;
8819
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8820
+ },
7608
8821
  /**
7609
8822
  * Get Accounts
7610
8823
  * @summary Get Accounts
@@ -7659,22 +8872,61 @@ export const AccountsApiFp = function(configuration?: Configuration) {
7659
8872
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7660
8873
  },
7661
8874
  /**
7662
- * Set 3CX Wizard CNAME
7663
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
8875
+ * Set Account Portal Access
8876
+ * @param {string} id Xero ID
8877
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
7664
8878
  * @param {*} [options] Override http request option.
7665
8879
  * @throws {RequiredError}
7666
8880
  */
7667
- async patchSetTcxWizardCname(patchSetTcxWizardCnameRequest?: PatchSetTcxWizardCnameRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
7668
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options);
8881
+ async patchSetPortalAccess(id: string, state: PatchSetPortalAccessStateEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
8882
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchSetPortalAccess(id, state, options);
7669
8883
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7670
- const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchSetTcxWizardCname']?.[localVarOperationServerIndex]?.url;
8884
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchSetPortalAccess']?.[localVarOperationServerIndex]?.url;
7671
8885
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7672
8886
  },
7673
8887
  /**
7674
- * Update Account Password
7675
- * @summary Update Account Password
7676
- * @param {string} token Verification Token
7677
- * @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
8888
+ * Set Account Prize Promo
8889
+ * @param {string} id Xero ID
8890
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
8891
+ * @param {*} [options] Override http request option.
8892
+ * @throws {RequiredError}
8893
+ */
8894
+ async patchSetPrizePromo(id: string, state: PatchSetPrizePromoStateEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
8895
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchSetPrizePromo(id, state, options);
8896
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8897
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchSetPrizePromo']?.[localVarOperationServerIndex]?.url;
8898
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8899
+ },
8900
+ /**
8901
+ * Set 3CX Wizard CNAME
8902
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
8903
+ * @param {*} [options] Override http request option.
8904
+ * @throws {RequiredError}
8905
+ */
8906
+ async patchSetTcxWizardCname(patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
8907
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options);
8908
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8909
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchSetTcxWizardCname']?.[localVarOperationServerIndex]?.url;
8910
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8911
+ },
8912
+ /**
8913
+ * Set Account Prize Promo
8914
+ * @param {string} id Xero ID
8915
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
8916
+ * @param {*} [options] Override http request option.
8917
+ * @throws {RequiredError}
8918
+ */
8919
+ async patchUpdateAccountCname(id: string, patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
8920
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options);
8921
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8922
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountCname']?.[localVarOperationServerIndex]?.url;
8923
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8924
+ },
8925
+ /**
8926
+ * Update Account Password
8927
+ * @summary Update Account Password
8928
+ * @param {string} token Verification Token
8929
+ * @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
7678
8930
  * @param {*} [options] Override http request option.
7679
8931
  * @throws {RequiredError}
7680
8932
  */
@@ -7790,6 +9042,32 @@ export const AccountsApiFp = function(configuration?: Configuration) {
7790
9042
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.putUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
7791
9043
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7792
9044
  },
9045
+ /**
9046
+ * Update Account Billing Address
9047
+ * @param {string} id Xero ID
9048
+ * @param {AddressModel} [addressModel] Updated Billing Address
9049
+ * @param {*} [options] Override http request option.
9050
+ * @throws {RequiredError}
9051
+ */
9052
+ async putUpdateBillingAddress(id: string, addressModel?: AddressModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
9053
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateBillingAddress(id, addressModel, options);
9054
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9055
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.putUpdateBillingAddress']?.[localVarOperationServerIndex]?.url;
9056
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9057
+ },
9058
+ /**
9059
+ * Update Account Shipping Address
9060
+ * @param {string} id Xero ID
9061
+ * @param {AddressModel} [addressModel] Updated Shipping Address
9062
+ * @param {*} [options] Override http request option.
9063
+ * @throws {RequiredError}
9064
+ */
9065
+ async putUpdateShippingAddress(id: string, addressModel?: AddressModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
9066
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateShippingAddress(id, addressModel, options);
9067
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9068
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.putUpdateShippingAddress']?.[localVarOperationServerIndex]?.url;
9069
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9070
+ },
7793
9071
  }
7794
9072
  };
7795
9073
 
@@ -7848,6 +9126,15 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
7848
9126
  getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AccountDetailedSummaryDTO> {
7849
9127
  return localVarFp.getGetAccountDetailedSummary(id, options).then((request) => request(axios, basePath));
7850
9128
  },
9129
+ /**
9130
+ * Get Account Page Details
9131
+ * @param {string} id Xero ID
9132
+ * @param {*} [options] Override http request option.
9133
+ * @throws {RequiredError}
9134
+ */
9135
+ getGetAccountPageInfo(id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccountPageDetailsDTO> {
9136
+ return localVarFp.getGetAccountPageInfo(id, options).then((request) => request(axios, basePath));
9137
+ },
7851
9138
  /**
7852
9139
  * Get Accounts
7853
9140
  * @summary Get Accounts
@@ -7889,14 +9176,44 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
7889
9176
  getVerifyEmailAddress(token: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
7890
9177
  return localVarFp.getVerifyEmailAddress(token, options).then((request) => request(axios, basePath));
7891
9178
  },
9179
+ /**
9180
+ * Set Account Portal Access
9181
+ * @param {string} id Xero ID
9182
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
9183
+ * @param {*} [options] Override http request option.
9184
+ * @throws {RequiredError}
9185
+ */
9186
+ patchSetPortalAccess(id: string, state: PatchSetPortalAccessStateEnum, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9187
+ return localVarFp.patchSetPortalAccess(id, state, options).then((request) => request(axios, basePath));
9188
+ },
9189
+ /**
9190
+ * Set Account Prize Promo
9191
+ * @param {string} id Xero ID
9192
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
9193
+ * @param {*} [options] Override http request option.
9194
+ * @throws {RequiredError}
9195
+ */
9196
+ patchSetPrizePromo(id: string, state: PatchSetPrizePromoStateEnum, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9197
+ return localVarFp.patchSetPrizePromo(id, state, options).then((request) => request(axios, basePath));
9198
+ },
7892
9199
  /**
7893
9200
  * Set 3CX Wizard CNAME
7894
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
9201
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
7895
9202
  * @param {*} [options] Override http request option.
7896
9203
  * @throws {RequiredError}
7897
9204
  */
7898
- patchSetTcxWizardCname(patchSetTcxWizardCnameRequest?: PatchSetTcxWizardCnameRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
7899
- return localVarFp.patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options).then((request) => request(axios, basePath));
9205
+ patchSetTcxWizardCname(patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9206
+ return localVarFp.patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options).then((request) => request(axios, basePath));
9207
+ },
9208
+ /**
9209
+ * Set Account Prize Promo
9210
+ * @param {string} id Xero ID
9211
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
9212
+ * @param {*} [options] Override http request option.
9213
+ * @throws {RequiredError}
9214
+ */
9215
+ patchUpdateAccountCname(id: string, patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9216
+ return localVarFp.patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options).then((request) => request(axios, basePath));
7900
9217
  },
7901
9218
  /**
7902
9219
  * Update Account Password
@@ -7991,6 +9308,26 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
7991
9308
  putUpdateAccountContact(email: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
7992
9309
  return localVarFp.putUpdateAccountContact(email, accountContactRequestModel, options).then((request) => request(axios, basePath));
7993
9310
  },
9311
+ /**
9312
+ * Update Account Billing Address
9313
+ * @param {string} id Xero ID
9314
+ * @param {AddressModel} [addressModel] Updated Billing Address
9315
+ * @param {*} [options] Override http request option.
9316
+ * @throws {RequiredError}
9317
+ */
9318
+ putUpdateBillingAddress(id: string, addressModel?: AddressModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9319
+ return localVarFp.putUpdateBillingAddress(id, addressModel, options).then((request) => request(axios, basePath));
9320
+ },
9321
+ /**
9322
+ * Update Account Shipping Address
9323
+ * @param {string} id Xero ID
9324
+ * @param {AddressModel} [addressModel] Updated Shipping Address
9325
+ * @param {*} [options] Override http request option.
9326
+ * @throws {RequiredError}
9327
+ */
9328
+ putUpdateShippingAddress(id: string, addressModel?: AddressModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
9329
+ return localVarFp.putUpdateShippingAddress(id, addressModel, options).then((request) => request(axios, basePath));
9330
+ },
7994
9331
  };
7995
9332
  };
7996
9333
 
@@ -8052,6 +9389,16 @@ export class AccountsApi extends BaseAPI {
8052
9389
  return AccountsApiFp(this.configuration).getGetAccountDetailedSummary(id, options).then((request) => request(this.axios, this.basePath));
8053
9390
  }
8054
9391
 
9392
+ /**
9393
+ * Get Account Page Details
9394
+ * @param {string} id Xero ID
9395
+ * @param {*} [options] Override http request option.
9396
+ * @throws {RequiredError}
9397
+ */
9398
+ public getGetAccountPageInfo(id: string, options?: RawAxiosRequestConfig) {
9399
+ return AccountsApiFp(this.configuration).getGetAccountPageInfo(id, options).then((request) => request(this.axios, this.basePath));
9400
+ }
9401
+
8055
9402
  /**
8056
9403
  * Get Accounts
8057
9404
  * @summary Get Accounts
@@ -8097,14 +9444,47 @@ export class AccountsApi extends BaseAPI {
8097
9444
  return AccountsApiFp(this.configuration).getVerifyEmailAddress(token, options).then((request) => request(this.axios, this.basePath));
8098
9445
  }
8099
9446
 
9447
+ /**
9448
+ * Set Account Portal Access
9449
+ * @param {string} id Xero ID
9450
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
9451
+ * @param {*} [options] Override http request option.
9452
+ * @throws {RequiredError}
9453
+ */
9454
+ public patchSetPortalAccess(id: string, state: PatchSetPortalAccessStateEnum, options?: RawAxiosRequestConfig) {
9455
+ return AccountsApiFp(this.configuration).patchSetPortalAccess(id, state, options).then((request) => request(this.axios, this.basePath));
9456
+ }
9457
+
9458
+ /**
9459
+ * Set Account Prize Promo
9460
+ * @param {string} id Xero ID
9461
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
9462
+ * @param {*} [options] Override http request option.
9463
+ * @throws {RequiredError}
9464
+ */
9465
+ public patchSetPrizePromo(id: string, state: PatchSetPrizePromoStateEnum, options?: RawAxiosRequestConfig) {
9466
+ return AccountsApiFp(this.configuration).patchSetPrizePromo(id, state, options).then((request) => request(this.axios, this.basePath));
9467
+ }
9468
+
8100
9469
  /**
8101
9470
  * Set 3CX Wizard CNAME
8102
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
9471
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
9472
+ * @param {*} [options] Override http request option.
9473
+ * @throws {RequiredError}
9474
+ */
9475
+ public patchSetTcxWizardCname(patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig) {
9476
+ return AccountsApiFp(this.configuration).patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options).then((request) => request(this.axios, this.basePath));
9477
+ }
9478
+
9479
+ /**
9480
+ * Set Account Prize Promo
9481
+ * @param {string} id Xero ID
9482
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
8103
9483
  * @param {*} [options] Override http request option.
8104
9484
  * @throws {RequiredError}
8105
9485
  */
8106
- public patchSetTcxWizardCname(patchSetTcxWizardCnameRequest?: PatchSetTcxWizardCnameRequest, options?: RawAxiosRequestConfig) {
8107
- return AccountsApiFp(this.configuration).patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options).then((request) => request(this.axios, this.basePath));
9486
+ public patchUpdateAccountCname(id: string, patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig) {
9487
+ return AccountsApiFp(this.configuration).patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options).then((request) => request(this.axios, this.basePath));
8108
9488
  }
8109
9489
 
8110
9490
  /**
@@ -8208,8 +9588,40 @@ export class AccountsApi extends BaseAPI {
8208
9588
  public putUpdateAccountContact(email: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) {
8209
9589
  return AccountsApiFp(this.configuration).putUpdateAccountContact(email, accountContactRequestModel, options).then((request) => request(this.axios, this.basePath));
8210
9590
  }
9591
+
9592
+ /**
9593
+ * Update Account Billing Address
9594
+ * @param {string} id Xero ID
9595
+ * @param {AddressModel} [addressModel] Updated Billing Address
9596
+ * @param {*} [options] Override http request option.
9597
+ * @throws {RequiredError}
9598
+ */
9599
+ public putUpdateBillingAddress(id: string, addressModel?: AddressModel, options?: RawAxiosRequestConfig) {
9600
+ return AccountsApiFp(this.configuration).putUpdateBillingAddress(id, addressModel, options).then((request) => request(this.axios, this.basePath));
9601
+ }
9602
+
9603
+ /**
9604
+ * Update Account Shipping Address
9605
+ * @param {string} id Xero ID
9606
+ * @param {AddressModel} [addressModel] Updated Shipping Address
9607
+ * @param {*} [options] Override http request option.
9608
+ * @throws {RequiredError}
9609
+ */
9610
+ public putUpdateShippingAddress(id: string, addressModel?: AddressModel, options?: RawAxiosRequestConfig) {
9611
+ return AccountsApiFp(this.configuration).putUpdateShippingAddress(id, addressModel, options).then((request) => request(this.axios, this.basePath));
9612
+ }
8211
9613
  }
8212
9614
 
9615
+ export const PatchSetPortalAccessStateEnum = {
9616
+ Enable: 'enable',
9617
+ Disable: 'disable'
9618
+ } as const;
9619
+ export type PatchSetPortalAccessStateEnum = typeof PatchSetPortalAccessStateEnum[keyof typeof PatchSetPortalAccessStateEnum];
9620
+ export const PatchSetPrizePromoStateEnum = {
9621
+ Enable: 'enable',
9622
+ Disable: 'disable'
9623
+ } as const;
9624
+ export type PatchSetPrizePromoStateEnum = typeof PatchSetPrizePromoStateEnum[keyof typeof PatchSetPrizePromoStateEnum];
8213
9625
 
8214
9626
 
8215
9627
  /**
@@ -13335,6 +14747,39 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
13335
14747
  options: localVarRequestOptions,
13336
14748
  };
13337
14749
  },
14750
+ /**
14751
+ *
14752
+ * @param {number} id Number Port ID
14753
+ * @param {*} [options] Override http request option.
14754
+ * @throws {RequiredError}
14755
+ */
14756
+ patchCancelAdminNumberPort: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14757
+ // verify required parameter 'id' is not null or undefined
14758
+ assertParamExists('patchCancelAdminNumberPort', 'id', id)
14759
+ const localVarPath = `/admin/sip/numbers/ports/{id}/cancel`
14760
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
14761
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14762
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14763
+ let baseOptions;
14764
+ if (configuration) {
14765
+ baseOptions = configuration.baseOptions;
14766
+ }
14767
+
14768
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
14769
+ const localVarHeaderParameter = {} as any;
14770
+ const localVarQueryParameter = {} as any;
14771
+
14772
+ localVarHeaderParameter['Accept'] = 'application/json';
14773
+
14774
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14775
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14776
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14777
+
14778
+ return {
14779
+ url: toPathString(localVarUrlObj),
14780
+ options: localVarRequestOptions,
14781
+ };
14782
+ },
13338
14783
  /**
13339
14784
  *
13340
14785
  * @param {number} id Number Port ID
@@ -13371,15 +14816,15 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
13371
14816
  /**
13372
14817
  *
13373
14818
  * @param {number} id Number Port ID
13374
- * @param {string} body
14819
+ * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
13375
14820
  * @param {*} [options] Override http request option.
13376
14821
  * @throws {RequiredError}
13377
14822
  */
13378
- postAddAdminNote: async (id: number, body: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14823
+ postAddAdminNote: async (id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13379
14824
  // verify required parameter 'id' is not null or undefined
13380
14825
  assertParamExists('postAddAdminNote', 'id', id)
13381
- // verify required parameter 'body' is not null or undefined
13382
- assertParamExists('postAddAdminNote', 'body', body)
14826
+ // verify required parameter 'postAddAdminNoteRequest' is not null or undefined
14827
+ assertParamExists('postAddAdminNote', 'postAddAdminNoteRequest', postAddAdminNoteRequest)
13383
14828
  const localVarPath = `/admin/sip/numbers/ports/{id}/notes`
13384
14829
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13385
14830
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -13399,7 +14844,7 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
13399
14844
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13400
14845
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13401
14846
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13402
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
14847
+ localVarRequestOptions.data = serializeDataIfNeeded(postAddAdminNoteRequest, localVarRequestOptions, configuration)
13403
14848
 
13404
14849
  return {
13405
14850
  url: toPathString(localVarUrlObj),
@@ -13801,6 +15246,18 @@ export const NumberPortingApiFp = function(configuration?: Configuration) {
13801
15246
  const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.getUpdateNumberPort']?.[localVarOperationServerIndex]?.url;
13802
15247
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13803
15248
  },
15249
+ /**
15250
+ *
15251
+ * @param {number} id Number Port ID
15252
+ * @param {*} [options] Override http request option.
15253
+ * @throws {RequiredError}
15254
+ */
15255
+ async patchCancelAdminNumberPort(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>> {
15256
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchCancelAdminNumberPort(id, options);
15257
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15258
+ const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.patchCancelAdminNumberPort']?.[localVarOperationServerIndex]?.url;
15259
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15260
+ },
13804
15261
  /**
13805
15262
  *
13806
15263
  * @param {number} id Number Port ID
@@ -13816,12 +15273,12 @@ export const NumberPortingApiFp = function(configuration?: Configuration) {
13816
15273
  /**
13817
15274
  *
13818
15275
  * @param {number} id Number Port ID
13819
- * @param {string} body
15276
+ * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
13820
15277
  * @param {*} [options] Override http request option.
13821
15278
  * @throws {RequiredError}
13822
15279
  */
13823
- async postAddAdminNote(id: number, body: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>> {
13824
- const localVarAxiosArgs = await localVarAxiosParamCreator.postAddAdminNote(id, body, options);
15280
+ async postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>> {
15281
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postAddAdminNote(id, postAddAdminNoteRequest, options);
13825
15282
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13826
15283
  const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.postAddAdminNote']?.[localVarOperationServerIndex]?.url;
13827
15284
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -13968,6 +15425,15 @@ export const NumberPortingApiFactory = function (configuration?: Configuration,
13968
15425
  getUpdateNumberPort(id: number, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortDTO> {
13969
15426
  return localVarFp.getUpdateNumberPort(id, options).then((request) => request(axios, basePath));
13970
15427
  },
15428
+ /**
15429
+ *
15430
+ * @param {number} id Number Port ID
15431
+ * @param {*} [options] Override http request option.
15432
+ * @throws {RequiredError}
15433
+ */
15434
+ patchCancelAdminNumberPort(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO> {
15435
+ return localVarFp.patchCancelAdminNumberPort(id, options).then((request) => request(axios, basePath));
15436
+ },
13971
15437
  /**
13972
15438
  *
13973
15439
  * @param {number} id Number Port ID
@@ -13980,12 +15446,12 @@ export const NumberPortingApiFactory = function (configuration?: Configuration,
13980
15446
  /**
13981
15447
  *
13982
15448
  * @param {number} id Number Port ID
13983
- * @param {string} body
15449
+ * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
13984
15450
  * @param {*} [options] Override http request option.
13985
15451
  * @throws {RequiredError}
13986
15452
  */
13987
- postAddAdminNote(id: number, body: string, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO> {
13988
- return localVarFp.postAddAdminNote(id, body, options).then((request) => request(axios, basePath));
15453
+ postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO> {
15454
+ return localVarFp.postAddAdminNote(id, postAddAdminNoteRequest, options).then((request) => request(axios, basePath));
13989
15455
  },
13990
15456
  /**
13991
15457
  *
@@ -14120,6 +15586,16 @@ export class NumberPortingApi extends BaseAPI {
14120
15586
  return NumberPortingApiFp(this.configuration).getUpdateNumberPort(id, options).then((request) => request(this.axios, this.basePath));
14121
15587
  }
14122
15588
 
15589
+ /**
15590
+ *
15591
+ * @param {number} id Number Port ID
15592
+ * @param {*} [options] Override http request option.
15593
+ * @throws {RequiredError}
15594
+ */
15595
+ public patchCancelAdminNumberPort(id: number, options?: RawAxiosRequestConfig) {
15596
+ return NumberPortingApiFp(this.configuration).patchCancelAdminNumberPort(id, options).then((request) => request(this.axios, this.basePath));
15597
+ }
15598
+
14123
15599
  /**
14124
15600
  *
14125
15601
  * @param {number} id Number Port ID
@@ -14133,12 +15609,12 @@ export class NumberPortingApi extends BaseAPI {
14133
15609
  /**
14134
15610
  *
14135
15611
  * @param {number} id Number Port ID
14136
- * @param {string} body
15612
+ * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
14137
15613
  * @param {*} [options] Override http request option.
14138
15614
  * @throws {RequiredError}
14139
15615
  */
14140
- public postAddAdminNote(id: number, body: string, options?: RawAxiosRequestConfig) {
14141
- return NumberPortingApiFp(this.configuration).postAddAdminNote(id, body, options).then((request) => request(this.axios, this.basePath));
15616
+ public postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig) {
15617
+ return NumberPortingApiFp(this.configuration).postAddAdminNote(id, postAddAdminNoteRequest, options).then((request) => request(this.axios, this.basePath));
14142
15618
  }
14143
15619
 
14144
15620
  /**
@@ -14809,6 +16285,8 @@ export const PostAccessTokenScopeEnum = {
14809
16285
  ProductsRead: 'products.read',
14810
16286
  ProvisioningRead: 'provisioning.read',
14811
16287
  ProvisioningWrite: 'provisioning.write',
16288
+ SmsRead: 'sms.read',
16289
+ SmsWrite: 'sms.write',
14812
16290
  TrunksRead: 'trunks.read',
14813
16291
  TrunksWrite: 'trunks.write',
14814
16292
  TcxIntegrationsRead: 'tcx_integrations.read',
@@ -14843,6 +16321,8 @@ export const PostAuthoriseScopeEnum = {
14843
16321
  ProductsRead: 'products.read',
14844
16322
  ProvisioningRead: 'provisioning.read',
14845
16323
  ProvisioningWrite: 'provisioning.write',
16324
+ SmsRead: 'sms.read',
16325
+ SmsWrite: 'sms.write',
14846
16326
  TrunksRead: 'trunks.read',
14847
16327
  TrunksWrite: 'trunks.write',
14848
16328
  TcxIntegrationsRead: 'tcx_integrations.read',
@@ -14864,17 +16344,20 @@ export type PostAuthoriseScopeEnum = typeof PostAuthoriseScopeEnum[keyof typeof
14864
16344
  export const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
14865
16345
  return {
14866
16346
  /**
14867
- * Delete Orders (Beta)
14868
- * @summary Delete Orders (Beta)
16347
+ * Delete Batch (Admin)
14869
16348
  * @param {number} id Order ID
16349
+ * @param {number} batchId Batch ID
14870
16350
  * @param {*} [options] Override http request option.
14871
16351
  * @throws {RequiredError}
14872
16352
  */
14873
- deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16353
+ deleteDeleteBatch: async (id: number, batchId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14874
16354
  // verify required parameter 'id' is not null or undefined
14875
- assertParamExists('deleteUpdateOrder', 'id', id)
14876
- const localVarPath = `/orders/{id}`
14877
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
16355
+ assertParamExists('deleteDeleteBatch', 'id', id)
16356
+ // verify required parameter 'batchId' is not null or undefined
16357
+ assertParamExists('deleteDeleteBatch', 'batchId', batchId)
16358
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}`
16359
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
16360
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)));
14878
16361
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14879
16362
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14880
16363
  let baseOptions;
@@ -14897,16 +16380,16 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
14897
16380
  };
14898
16381
  },
14899
16382
  /**
14900
- * Get Editable Order (Admin)
14901
- * @summary Get Editable Order (Admin)
16383
+ * Delete Orders (Beta)
16384
+ * @summary Delete Orders (Beta)
14902
16385
  * @param {number} id Order ID
14903
16386
  * @param {*} [options] Override http request option.
14904
16387
  * @throws {RequiredError}
14905
16388
  */
14906
- getGetAdminEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16389
+ deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14907
16390
  // verify required parameter 'id' is not null or undefined
14908
- assertParamExists('getGetAdminEditableOrder', 'id', id)
14909
- const localVarPath = `/admin/orders/{id}/views/editable`
16391
+ assertParamExists('deleteUpdateOrder', 'id', id)
16392
+ const localVarPath = `/orders/{id}`
14910
16393
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
14911
16394
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14912
16395
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -14915,11 +16398,10 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
14915
16398
  baseOptions = configuration.baseOptions;
14916
16399
  }
14917
16400
 
14918
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16401
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
14919
16402
  const localVarHeaderParameter = {} as any;
14920
16403
  const localVarQueryParameter = {} as any;
14921
16404
 
14922
- localVarHeaderParameter['Accept'] = 'application/json';
14923
16405
 
14924
16406
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14925
16407
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -14931,17 +16413,25 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
14931
16413
  };
14932
16414
  },
14933
16415
  /**
14934
- * Get Editable Order (Beta)
14935
- * @summary Get Editable Order (Beta)
16416
+ * Delete Shipment (Admin)
16417
+ * @summary Delete Shipment (Admin)
14936
16418
  * @param {number} id Order ID
16419
+ * @param {number} batchId Batch ID
16420
+ * @param {number} shipmentId Shipment ID
14937
16421
  * @param {*} [options] Override http request option.
14938
16422
  * @throws {RequiredError}
14939
16423
  */
14940
- getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16424
+ deleteUpdateShipment: async (id: number, batchId: number, shipmentId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14941
16425
  // verify required parameter 'id' is not null or undefined
14942
- assertParamExists('getGetEditableOrder', 'id', id)
14943
- const localVarPath = `/orders/{id}/views/editable`
14944
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
16426
+ assertParamExists('deleteUpdateShipment', 'id', id)
16427
+ // verify required parameter 'batchId' is not null or undefined
16428
+ assertParamExists('deleteUpdateShipment', 'batchId', batchId)
16429
+ // verify required parameter 'shipmentId' is not null or undefined
16430
+ assertParamExists('deleteUpdateShipment', 'shipmentId', shipmentId)
16431
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}`
16432
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
16433
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
16434
+ .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
14945
16435
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14946
16436
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14947
16437
  let baseOptions;
@@ -14949,11 +16439,10 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
14949
16439
  baseOptions = configuration.baseOptions;
14950
16440
  }
14951
16441
 
14952
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16442
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
14953
16443
  const localVarHeaderParameter = {} as any;
14954
16444
  const localVarQueryParameter = {} as any;
14955
16445
 
14956
- localVarHeaderParameter['Accept'] = 'application/json';
14957
16446
 
14958
16447
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14959
16448
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -14965,20 +16454,17 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
14965
16454
  };
14966
16455
  },
14967
16456
  /**
14968
- * Get Orders (Beta)
14969
- * @summary Get Orders (Beta)
14970
- * @param {number} [pageSize] Number Of Results
14971
- * @param {number} [page] Page Number
14972
- * @param {string} [search] Search
14973
- * @param {boolean | null} [fulfillable] Fulfillable
14974
- * @param {GetGetOrdersStatusEnum} [status] Status
14975
- * @param {GetGetOrdersFilterEnum} [filter] Filter
14976
- * @param {number | null} [customerId] Customer ID
16457
+ * Get Editable Order (Admin)
16458
+ * @summary Get Editable Order (Admin)
16459
+ * @param {number} id Order ID
14977
16460
  * @param {*} [options] Override http request option.
14978
16461
  * @throws {RequiredError}
14979
16462
  */
14980
- getGetOrders: async (pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14981
- const localVarPath = `/orders`;
16463
+ getGetAdminEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16464
+ // verify required parameter 'id' is not null or undefined
16465
+ assertParamExists('getGetAdminEditableOrder', 'id', id)
16466
+ const localVarPath = `/admin/orders/{id}/views/editable`
16467
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
14982
16468
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14983
16469
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14984
16470
  let baseOptions;
@@ -14990,34 +16476,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
14990
16476
  const localVarHeaderParameter = {} as any;
14991
16477
  const localVarQueryParameter = {} as any;
14992
16478
 
14993
- if (pageSize !== undefined) {
14994
- localVarQueryParameter['pageSize'] = pageSize;
14995
- }
14996
-
14997
- if (page !== undefined) {
14998
- localVarQueryParameter['page'] = page;
14999
- }
15000
-
15001
- if (search !== undefined) {
15002
- localVarQueryParameter['search'] = search;
15003
- }
15004
-
15005
- if (fulfillable !== undefined) {
15006
- localVarQueryParameter['fulfillable'] = fulfillable;
15007
- }
15008
-
15009
- if (status !== undefined) {
15010
- localVarQueryParameter['status'] = status;
15011
- }
15012
-
15013
- if (filter !== undefined) {
15014
- localVarQueryParameter['filter'] = filter;
15015
- }
15016
-
15017
- if (customerId !== undefined) {
15018
- localVarQueryParameter['customerId'] = customerId;
15019
- }
15020
-
15021
16479
  localVarHeaderParameter['Accept'] = 'application/json';
15022
16480
 
15023
16481
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -15030,15 +16488,17 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
15030
16488
  };
15031
16489
  },
15032
16490
  /**
15033
- * Create An Order (Admin)
15034
- * @summary Create An Order (Admin)
15035
- * @param {boolean} [readonly] Readonly Order
15036
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
16491
+ * Get Order Details (Admin)
16492
+ * @summary Get Order Details (Admin)
16493
+ * @param {number} id Order ID
15037
16494
  * @param {*} [options] Override http request option.
15038
16495
  * @throws {RequiredError}
15039
16496
  */
15040
- postCreateAdminOrder: async (readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15041
- const localVarPath = `/admin/orders`;
16497
+ getGetAdminOrderDetails: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16498
+ // verify required parameter 'id' is not null or undefined
16499
+ assertParamExists('getGetAdminOrderDetails', 'id', id)
16500
+ const localVarPath = `/admin/orders/{id}/details`
16501
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
15042
16502
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15043
16503
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15044
16504
  let baseOptions;
@@ -15046,15 +16506,365 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
15046
16506
  baseOptions = configuration.baseOptions;
15047
16507
  }
15048
16508
 
15049
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16509
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15050
16510
  const localVarHeaderParameter = {} as any;
15051
16511
  const localVarQueryParameter = {} as any;
15052
16512
 
15053
- if (readonly !== undefined) {
15054
- localVarQueryParameter['readonly'] = readonly;
15055
- }
15056
-
15057
- localVarHeaderParameter['Content-Type'] = 'application/json';
16513
+ localVarHeaderParameter['Accept'] = 'application/json';
16514
+
16515
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16516
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16517
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16518
+
16519
+ return {
16520
+ url: toPathString(localVarUrlObj),
16521
+ options: localVarRequestOptions,
16522
+ };
16523
+ },
16524
+ /**
16525
+ * Get Commercial Invoice PDF
16526
+ * @summary Get Commercial Invoice PDF
16527
+ * @param {number} id Order ID
16528
+ * @param {number} batchId Batch ID
16529
+ * @param {number} shipmentId Shipment ID
16530
+ * @param {*} [options] Override http request option.
16531
+ * @throws {RequiredError}
16532
+ */
16533
+ getGetCommercialInvoice: async (id: number, batchId: number, shipmentId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16534
+ // verify required parameter 'id' is not null or undefined
16535
+ assertParamExists('getGetCommercialInvoice', 'id', id)
16536
+ // verify required parameter 'batchId' is not null or undefined
16537
+ assertParamExists('getGetCommercialInvoice', 'batchId', batchId)
16538
+ // verify required parameter 'shipmentId' is not null or undefined
16539
+ assertParamExists('getGetCommercialInvoice', 'shipmentId', shipmentId)
16540
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}/pdf`
16541
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
16542
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
16543
+ .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
16544
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16545
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16546
+ let baseOptions;
16547
+ if (configuration) {
16548
+ baseOptions = configuration.baseOptions;
16549
+ }
16550
+
16551
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16552
+ const localVarHeaderParameter = {} as any;
16553
+ const localVarQueryParameter = {} as any;
16554
+
16555
+ localVarHeaderParameter['Accept'] = 'application/pdf';
16556
+
16557
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16558
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16559
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16560
+
16561
+ return {
16562
+ url: toPathString(localVarUrlObj),
16563
+ options: localVarRequestOptions,
16564
+ };
16565
+ },
16566
+ /**
16567
+ * Get Editable Order (Beta)
16568
+ * @summary Get Editable Order (Beta)
16569
+ * @param {number} id Order ID
16570
+ * @param {*} [options] Override http request option.
16571
+ * @throws {RequiredError}
16572
+ */
16573
+ getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16574
+ // verify required parameter 'id' is not null or undefined
16575
+ assertParamExists('getGetEditableOrder', 'id', id)
16576
+ const localVarPath = `/orders/{id}/views/editable`
16577
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
16578
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16579
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16580
+ let baseOptions;
16581
+ if (configuration) {
16582
+ baseOptions = configuration.baseOptions;
16583
+ }
16584
+
16585
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16586
+ const localVarHeaderParameter = {} as any;
16587
+ const localVarQueryParameter = {} as any;
16588
+
16589
+ localVarHeaderParameter['Accept'] = 'application/json';
16590
+
16591
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16592
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16593
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16594
+
16595
+ return {
16596
+ url: toPathString(localVarUrlObj),
16597
+ options: localVarRequestOptions,
16598
+ };
16599
+ },
16600
+ /**
16601
+ * Get Item Serial Info (Admin)
16602
+ * @summary Get Item Serial Info (Admin)
16603
+ * @param {number} id Order ID
16604
+ * @param {number} itemId Shipment Item ID
16605
+ * @param {*} [options] Override http request option.
16606
+ * @throws {RequiredError}
16607
+ */
16608
+ getGetItemSerialInfo: async (id: number, itemId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16609
+ // verify required parameter 'id' is not null or undefined
16610
+ assertParamExists('getGetItemSerialInfo', 'id', id)
16611
+ // verify required parameter 'itemId' is not null or undefined
16612
+ assertParamExists('getGetItemSerialInfo', 'itemId', itemId)
16613
+ const localVarPath = `/admin/orders/{id}/items/{item_id}/info`
16614
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
16615
+ .replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
16616
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16617
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16618
+ let baseOptions;
16619
+ if (configuration) {
16620
+ baseOptions = configuration.baseOptions;
16621
+ }
16622
+
16623
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16624
+ const localVarHeaderParameter = {} as any;
16625
+ const localVarQueryParameter = {} as any;
16626
+
16627
+ localVarHeaderParameter['Accept'] = 'application/json';
16628
+
16629
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16630
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16631
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16632
+
16633
+ return {
16634
+ url: toPathString(localVarUrlObj),
16635
+ options: localVarRequestOptions,
16636
+ };
16637
+ },
16638
+ /**
16639
+ * Download Order PDF
16640
+ * @summary Download Order PDF
16641
+ * @param {number} id Order ID
16642
+ * @param {*} [options] Override http request option.
16643
+ * @throws {RequiredError}
16644
+ */
16645
+ getGetOrderPdf: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16646
+ // verify required parameter 'id' is not null or undefined
16647
+ assertParamExists('getGetOrderPdf', 'id', id)
16648
+ const localVarPath = `/orders/{id}/pdf`
16649
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
16650
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16651
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16652
+ let baseOptions;
16653
+ if (configuration) {
16654
+ baseOptions = configuration.baseOptions;
16655
+ }
16656
+
16657
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16658
+ const localVarHeaderParameter = {} as any;
16659
+ const localVarQueryParameter = {} as any;
16660
+
16661
+ localVarHeaderParameter['Accept'] = 'application/pdf';
16662
+
16663
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16664
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16665
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16666
+
16667
+ return {
16668
+ url: toPathString(localVarUrlObj),
16669
+ options: localVarRequestOptions,
16670
+ };
16671
+ },
16672
+ /**
16673
+ * Get Order Summary (Admin)
16674
+ * @summary Get Order Summary (Admin)
16675
+ * @param {number} id Order ID
16676
+ * @param {*} [options] Override http request option.
16677
+ * @throws {RequiredError}
16678
+ */
16679
+ getGetOrderSummary: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16680
+ // verify required parameter 'id' is not null or undefined
16681
+ assertParamExists('getGetOrderSummary', 'id', id)
16682
+ const localVarPath = `/admin/orders/{id}/summary`
16683
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
16684
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16685
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16686
+ let baseOptions;
16687
+ if (configuration) {
16688
+ baseOptions = configuration.baseOptions;
16689
+ }
16690
+
16691
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16692
+ const localVarHeaderParameter = {} as any;
16693
+ const localVarQueryParameter = {} as any;
16694
+
16695
+ localVarHeaderParameter['Accept'] = 'application/json';
16696
+
16697
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16698
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16699
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16700
+
16701
+ return {
16702
+ url: toPathString(localVarUrlObj),
16703
+ options: localVarRequestOptions,
16704
+ };
16705
+ },
16706
+ /**
16707
+ * Get Orders (Beta)
16708
+ * @summary Get Orders (Beta)
16709
+ * @param {number} [pageSize] Number Of Results
16710
+ * @param {number} [page] Page Number
16711
+ * @param {string} [search] Search
16712
+ * @param {boolean | null} [fulfillable] Fulfillable
16713
+ * @param {GetGetOrdersStatusEnum} [status] Status
16714
+ * @param {GetGetOrdersFilterEnum} [filter] Filter
16715
+ * @param {number | null} [customerId] Customer ID
16716
+ * @param {*} [options] Override http request option.
16717
+ * @throws {RequiredError}
16718
+ */
16719
+ getGetOrders: async (pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16720
+ const localVarPath = `/orders`;
16721
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16722
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16723
+ let baseOptions;
16724
+ if (configuration) {
16725
+ baseOptions = configuration.baseOptions;
16726
+ }
16727
+
16728
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16729
+ const localVarHeaderParameter = {} as any;
16730
+ const localVarQueryParameter = {} as any;
16731
+
16732
+ if (pageSize !== undefined) {
16733
+ localVarQueryParameter['pageSize'] = pageSize;
16734
+ }
16735
+
16736
+ if (page !== undefined) {
16737
+ localVarQueryParameter['page'] = page;
16738
+ }
16739
+
16740
+ if (search !== undefined) {
16741
+ localVarQueryParameter['search'] = search;
16742
+ }
16743
+
16744
+ if (fulfillable !== undefined) {
16745
+ localVarQueryParameter['fulfillable'] = fulfillable;
16746
+ }
16747
+
16748
+ if (status !== undefined) {
16749
+ localVarQueryParameter['status'] = status;
16750
+ }
16751
+
16752
+ if (filter !== undefined) {
16753
+ localVarQueryParameter['filter'] = filter;
16754
+ }
16755
+
16756
+ if (customerId !== undefined) {
16757
+ localVarQueryParameter['customerId'] = customerId;
16758
+ }
16759
+
16760
+ localVarHeaderParameter['Accept'] = 'application/json';
16761
+
16762
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16763
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16764
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16765
+
16766
+ return {
16767
+ url: toPathString(localVarUrlObj),
16768
+ options: localVarRequestOptions,
16769
+ };
16770
+ },
16771
+ /**
16772
+ * Mark Order As Complete (Admin)
16773
+ * @summary Mark Order As Complete (Admin)
16774
+ * @param {number} id Order ID
16775
+ * @param {*} [options] Override http request option.
16776
+ * @throws {RequiredError}
16777
+ */
16778
+ patchCompleteOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16779
+ // verify required parameter 'id' is not null or undefined
16780
+ assertParamExists('patchCompleteOrder', 'id', id)
16781
+ const localVarPath = `/admin/orders/{id}/complete`
16782
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
16783
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16784
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16785
+ let baseOptions;
16786
+ if (configuration) {
16787
+ baseOptions = configuration.baseOptions;
16788
+ }
16789
+
16790
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
16791
+ const localVarHeaderParameter = {} as any;
16792
+ const localVarQueryParameter = {} as any;
16793
+
16794
+ localVarHeaderParameter['Accept'] = 'application/json';
16795
+
16796
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16797
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16798
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16799
+
16800
+ return {
16801
+ url: toPathString(localVarUrlObj),
16802
+ options: localVarRequestOptions,
16803
+ };
16804
+ },
16805
+ /**
16806
+ * Add Order Note
16807
+ * @summary Add Order Note
16808
+ * @param {number} id Order ID
16809
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
16810
+ * @param {*} [options] Override http request option.
16811
+ * @throws {RequiredError}
16812
+ */
16813
+ postAddOrderNote: async (id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16814
+ // verify required parameter 'id' is not null or undefined
16815
+ assertParamExists('postAddOrderNote', 'id', id)
16816
+ const localVarPath = `/admin/orders/{id}/notes`
16817
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
16818
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16819
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16820
+ let baseOptions;
16821
+ if (configuration) {
16822
+ baseOptions = configuration.baseOptions;
16823
+ }
16824
+
16825
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16826
+ const localVarHeaderParameter = {} as any;
16827
+ const localVarQueryParameter = {} as any;
16828
+
16829
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16830
+ localVarHeaderParameter['Accept'] = 'application/json';
16831
+
16832
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16833
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16834
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16835
+ localVarRequestOptions.data = serializeDataIfNeeded(postAddOrderNoteRequest, localVarRequestOptions, configuration)
16836
+
16837
+ return {
16838
+ url: toPathString(localVarUrlObj),
16839
+ options: localVarRequestOptions,
16840
+ };
16841
+ },
16842
+ /**
16843
+ * Create An Order (Admin)
16844
+ * @summary Create An Order (Admin)
16845
+ * @param {boolean} [readonly] Readonly Order
16846
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
16847
+ * @param {*} [options] Override http request option.
16848
+ * @throws {RequiredError}
16849
+ */
16850
+ postCreateAdminOrder: async (readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16851
+ const localVarPath = `/admin/orders`;
16852
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16853
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16854
+ let baseOptions;
16855
+ if (configuration) {
16856
+ baseOptions = configuration.baseOptions;
16857
+ }
16858
+
16859
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16860
+ const localVarHeaderParameter = {} as any;
16861
+ const localVarQueryParameter = {} as any;
16862
+
16863
+ if (readonly !== undefined) {
16864
+ localVarQueryParameter['readonly'] = readonly;
16865
+ }
16866
+
16867
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15058
16868
  localVarHeaderParameter['Accept'] = 'application/json';
15059
16869
 
15060
16870
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -15068,15 +16878,311 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
15068
16878
  };
15069
16879
  },
15070
16880
  /**
15071
- * Create An Order (Beta)
15072
- * @summary Create An Order (Beta)
15073
- * @param {boolean} [readonly] Readonly Order
15074
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
16881
+ * Create Shipping Consignment
16882
+ * @summary Create Shipping Consignment
16883
+ * @param {number} id Order ID
16884
+ * @param {number} shipmentId Shipment ID
16885
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
16886
+ * @param {*} [options] Override http request option.
16887
+ * @throws {RequiredError}
16888
+ */
16889
+ postCreateConsignment: async (id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16890
+ // verify required parameter 'id' is not null or undefined
16891
+ assertParamExists('postCreateConsignment', 'id', id)
16892
+ // verify required parameter 'shipmentId' is not null or undefined
16893
+ assertParamExists('postCreateConsignment', 'shipmentId', shipmentId)
16894
+ const localVarPath = `/admin/orders/{id}/shipments/{shipment_id}/consignment`
16895
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
16896
+ .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
16897
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16898
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16899
+ let baseOptions;
16900
+ if (configuration) {
16901
+ baseOptions = configuration.baseOptions;
16902
+ }
16903
+
16904
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16905
+ const localVarHeaderParameter = {} as any;
16906
+ const localVarQueryParameter = {} as any;
16907
+
16908
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16909
+ localVarHeaderParameter['Accept'] = 'application/json';
16910
+
16911
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16912
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16913
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16914
+ localVarRequestOptions.data = serializeDataIfNeeded(shippingRequestDTO, localVarRequestOptions, configuration)
16915
+
16916
+ return {
16917
+ url: toPathString(localVarUrlObj),
16918
+ options: localVarRequestOptions,
16919
+ };
16920
+ },
16921
+ /**
16922
+ * Create Shipment (Admin)
16923
+ * @summary Create Shipment (Admin)
16924
+ * @param {number} id Order ID
16925
+ * @param {number} batchId Batch ID
16926
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
16927
+ * @param {*} [options] Override http request option.
16928
+ * @throws {RequiredError}
16929
+ */
16930
+ postCreateShipment: async (id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16931
+ // verify required parameter 'id' is not null or undefined
16932
+ assertParamExists('postCreateShipment', 'id', id)
16933
+ // verify required parameter 'batchId' is not null or undefined
16934
+ assertParamExists('postCreateShipment', 'batchId', batchId)
16935
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments`
16936
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
16937
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)));
16938
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16939
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16940
+ let baseOptions;
16941
+ if (configuration) {
16942
+ baseOptions = configuration.baseOptions;
16943
+ }
16944
+
16945
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16946
+ const localVarHeaderParameter = {} as any;
16947
+ const localVarQueryParameter = {} as any;
16948
+
16949
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16950
+ localVarHeaderParameter['Accept'] = 'application/json';
16951
+
16952
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16953
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16954
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16955
+ localVarRequestOptions.data = serializeDataIfNeeded(shipmentRequestDTO, localVarRequestOptions, configuration)
16956
+
16957
+ return {
16958
+ url: toPathString(localVarUrlObj),
16959
+ options: localVarRequestOptions,
16960
+ };
16961
+ },
16962
+ /**
16963
+ * Create An Order (Beta)
16964
+ * @summary Create An Order (Beta)
16965
+ * @param {boolean} [readonly] Readonly Order
16966
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
16967
+ * @param {*} [options] Override http request option.
16968
+ * @throws {RequiredError}
16969
+ */
16970
+ postGetOrders: async (readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16971
+ const localVarPath = `/orders`;
16972
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16973
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16974
+ let baseOptions;
16975
+ if (configuration) {
16976
+ baseOptions = configuration.baseOptions;
16977
+ }
16978
+
16979
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16980
+ const localVarHeaderParameter = {} as any;
16981
+ const localVarQueryParameter = {} as any;
16982
+
16983
+ if (readonly !== undefined) {
16984
+ localVarQueryParameter['readonly'] = readonly;
16985
+ }
16986
+
16987
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16988
+ localVarHeaderParameter['Accept'] = 'application/json';
16989
+
16990
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16991
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16992
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16993
+ localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
16994
+
16995
+ return {
16996
+ url: toPathString(localVarUrlObj),
16997
+ options: localVarRequestOptions,
16998
+ };
16999
+ },
17000
+ /**
17001
+ * Issue Credit (Admin)
17002
+ * @summary Issue Credit (Admin)
17003
+ * @param {number} id Order ID
17004
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
17005
+ * @param {*} [options] Override http request option.
17006
+ * @throws {RequiredError}
17007
+ */
17008
+ postIssueCredit: async (id: number, creditNoteDTO?: CreditNoteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17009
+ // verify required parameter 'id' is not null or undefined
17010
+ assertParamExists('postIssueCredit', 'id', id)
17011
+ const localVarPath = `/admin/orders/{id}/credit`
17012
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17013
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17014
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17015
+ let baseOptions;
17016
+ if (configuration) {
17017
+ baseOptions = configuration.baseOptions;
17018
+ }
17019
+
17020
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17021
+ const localVarHeaderParameter = {} as any;
17022
+ const localVarQueryParameter = {} as any;
17023
+
17024
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17025
+ localVarHeaderParameter['Accept'] = 'application/json';
17026
+
17027
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17028
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17029
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17030
+ localVarRequestOptions.data = serializeDataIfNeeded(creditNoteDTO, localVarRequestOptions, configuration)
17031
+
17032
+ return {
17033
+ url: toPathString(localVarUrlObj),
17034
+ options: localVarRequestOptions,
17035
+ };
17036
+ },
17037
+ /**
17038
+ * Print Shipment Label
17039
+ * @summary Print Shipment Label
17040
+ * @param {number} id Order ID
17041
+ * @param {number} shipmentId Shipment ID
17042
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
17043
+ * @param {*} [options] Override http request option.
17044
+ * @throws {RequiredError}
17045
+ */
17046
+ postPrintShippingLabel: async (id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17047
+ // verify required parameter 'id' is not null or undefined
17048
+ assertParamExists('postPrintShippingLabel', 'id', id)
17049
+ // verify required parameter 'shipmentId' is not null or undefined
17050
+ assertParamExists('postPrintShippingLabel', 'shipmentId', shipmentId)
17051
+ // verify required parameter 'printer' is not null or undefined
17052
+ assertParamExists('postPrintShippingLabel', 'printer', printer)
17053
+ const localVarPath = `/admin/orders/{id}/shipments/{shipment_id}/label/print`
17054
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
17055
+ .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
17056
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17057
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17058
+ let baseOptions;
17059
+ if (configuration) {
17060
+ baseOptions = configuration.baseOptions;
17061
+ }
17062
+
17063
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17064
+ const localVarHeaderParameter = {} as any;
17065
+ const localVarQueryParameter = {} as any;
17066
+
17067
+ if (printer !== undefined) {
17068
+ localVarQueryParameter['printer'] = printer;
17069
+ }
17070
+
17071
+ localVarHeaderParameter['Accept'] = 'text/html';
17072
+
17073
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17074
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17075
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17076
+
17077
+ return {
17078
+ url: toPathString(localVarUrlObj),
17079
+ options: localVarRequestOptions,
17080
+ };
17081
+ },
17082
+ /**
17083
+ * Send Order Email
17084
+ * @summary Send Order Email
17085
+ * @param {number} id Order ID
17086
+ * @param {string} email Email Address
17087
+ * @param {*} [options] Override http request option.
17088
+ * @throws {RequiredError}
17089
+ */
17090
+ postSendOrderEmail: async (id: number, email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17091
+ // verify required parameter 'id' is not null or undefined
17092
+ assertParamExists('postSendOrderEmail', 'id', id)
17093
+ // verify required parameter 'email' is not null or undefined
17094
+ assertParamExists('postSendOrderEmail', 'email', email)
17095
+ const localVarPath = `/admin/orders/{id}/email/send`
17096
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17097
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17098
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17099
+ let baseOptions;
17100
+ if (configuration) {
17101
+ baseOptions = configuration.baseOptions;
17102
+ }
17103
+
17104
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17105
+ const localVarHeaderParameter = {} as any;
17106
+ const localVarQueryParameter = {} as any;
17107
+
17108
+ if (email !== undefined) {
17109
+ localVarQueryParameter['email'] = email;
17110
+ }
17111
+
17112
+
17113
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17114
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17115
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17116
+
17117
+ return {
17118
+ url: toPathString(localVarUrlObj),
17119
+ options: localVarRequestOptions,
17120
+ };
17121
+ },
17122
+ /**
17123
+ * Send Shipment Email (Admin)
17124
+ * @summary Send Shipment Email (Admin)
17125
+ * @param {number} id Order ID
17126
+ * @param {number} batchId Batch ID
17127
+ * @param {number} shipmentId Shipment ID
17128
+ * @param {string} email Email Address
17129
+ * @param {*} [options] Override http request option.
17130
+ * @throws {RequiredError}
17131
+ */
17132
+ postSendShipmentEmail: async (id: number, batchId: number, shipmentId: number, email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17133
+ // verify required parameter 'id' is not null or undefined
17134
+ assertParamExists('postSendShipmentEmail', 'id', id)
17135
+ // verify required parameter 'batchId' is not null or undefined
17136
+ assertParamExists('postSendShipmentEmail', 'batchId', batchId)
17137
+ // verify required parameter 'shipmentId' is not null or undefined
17138
+ assertParamExists('postSendShipmentEmail', 'shipmentId', shipmentId)
17139
+ // verify required parameter 'email' is not null or undefined
17140
+ assertParamExists('postSendShipmentEmail', 'email', email)
17141
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}/send/email`
17142
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
17143
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
17144
+ .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
17145
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17146
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17147
+ let baseOptions;
17148
+ if (configuration) {
17149
+ baseOptions = configuration.baseOptions;
17150
+ }
17151
+
17152
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17153
+ const localVarHeaderParameter = {} as any;
17154
+ const localVarQueryParameter = {} as any;
17155
+
17156
+ if (email !== undefined) {
17157
+ localVarQueryParameter['email'] = email;
17158
+ }
17159
+
17160
+
17161
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17162
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17163
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17164
+
17165
+ return {
17166
+ url: toPathString(localVarUrlObj),
17167
+ options: localVarRequestOptions,
17168
+ };
17169
+ },
17170
+ /**
17171
+ * Send Supplier Email
17172
+ * @summary Send Supplier Email
17173
+ * @param {number} id Order ID
17174
+ * @param {number} batchId Batch ID
15075
17175
  * @param {*} [options] Override http request option.
15076
17176
  * @throws {RequiredError}
15077
17177
  */
15078
- postGetOrders: async (readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15079
- const localVarPath = `/orders`;
17178
+ postSendSupplierEmail: async (id: number, batchId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17179
+ // verify required parameter 'id' is not null or undefined
17180
+ assertParamExists('postSendSupplierEmail', 'id', id)
17181
+ // verify required parameter 'batchId' is not null or undefined
17182
+ assertParamExists('postSendSupplierEmail', 'batchId', batchId)
17183
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/email/send`
17184
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
17185
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)));
15080
17186
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15081
17187
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15082
17188
  let baseOptions;
@@ -15088,8 +17194,82 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
15088
17194
  const localVarHeaderParameter = {} as any;
15089
17195
  const localVarQueryParameter = {} as any;
15090
17196
 
15091
- if (readonly !== undefined) {
15092
- localVarQueryParameter['readonly'] = readonly;
17197
+
17198
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17199
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17200
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17201
+
17202
+ return {
17203
+ url: toPathString(localVarUrlObj),
17204
+ options: localVarRequestOptions,
17205
+ };
17206
+ },
17207
+ /**
17208
+ * Split Order
17209
+ * @summary Split Order
17210
+ * @param {number} id Order ID
17211
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
17212
+ * @param {*} [options] Override http request option.
17213
+ * @throws {RequiredError}
17214
+ */
17215
+ postSplitOrder: async (id: number, postSplitOrderRequest?: PostSplitOrderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17216
+ // verify required parameter 'id' is not null or undefined
17217
+ assertParamExists('postSplitOrder', 'id', id)
17218
+ const localVarPath = `/admin/orders/{id}/split`
17219
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17220
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17221
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17222
+ let baseOptions;
17223
+ if (configuration) {
17224
+ baseOptions = configuration.baseOptions;
17225
+ }
17226
+
17227
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17228
+ const localVarHeaderParameter = {} as any;
17229
+ const localVarQueryParameter = {} as any;
17230
+
17231
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17232
+ localVarHeaderParameter['Accept'] = 'application/json';
17233
+
17234
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17235
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17236
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17237
+ localVarRequestOptions.data = serializeDataIfNeeded(postSplitOrderRequest, localVarRequestOptions, configuration)
17238
+
17239
+ return {
17240
+ url: toPathString(localVarUrlObj),
17241
+ options: localVarRequestOptions,
17242
+ };
17243
+ },
17244
+ /**
17245
+ * Allocate Items To Supplier
17246
+ * @summary Allocate Items To Supplier
17247
+ * @param {number} id Order ID
17248
+ * @param {number} supplierId Supplier ID
17249
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
17250
+ * @param {*} [options] Override http request option.
17251
+ * @throws {RequiredError}
17252
+ */
17253
+ putAllocateItems: async (id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17254
+ // verify required parameter 'id' is not null or undefined
17255
+ assertParamExists('putAllocateItems', 'id', id)
17256
+ // verify required parameter 'supplierId' is not null or undefined
17257
+ assertParamExists('putAllocateItems', 'supplierId', supplierId)
17258
+ const localVarPath = `/admin/orders/{id}/items/allocate`
17259
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17260
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17261
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17262
+ let baseOptions;
17263
+ if (configuration) {
17264
+ baseOptions = configuration.baseOptions;
17265
+ }
17266
+
17267
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
17268
+ const localVarHeaderParameter = {} as any;
17269
+ const localVarQueryParameter = {} as any;
17270
+
17271
+ if (supplierId !== undefined) {
17272
+ localVarQueryParameter['supplierId'] = supplierId;
15093
17273
  }
15094
17274
 
15095
17275
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -15098,7 +17278,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
15098
17278
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15099
17279
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15100
17280
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15101
- localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
17281
+ localVarRequestOptions.data = serializeDataIfNeeded(putAllocateItemsRequest, localVarRequestOptions, configuration)
15102
17282
 
15103
17283
  return {
15104
17284
  url: toPathString(localVarUrlObj),
@@ -15147,6 +17327,51 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
15147
17327
  options: localVarRequestOptions,
15148
17328
  };
15149
17329
  },
17330
+ /**
17331
+ * Update Batch Item (Admin)
17332
+ * @summary Update Batch Item (Admin)
17333
+ * @param {number} id Order ID
17334
+ * @param {number} batchId Batch ID
17335
+ * @param {number} itemId Ordered Item ID
17336
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
17337
+ * @param {*} [options] Override http request option.
17338
+ * @throws {RequiredError}
17339
+ */
17340
+ putUpdateBatchItem: async (id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17341
+ // verify required parameter 'id' is not null or undefined
17342
+ assertParamExists('putUpdateBatchItem', 'id', id)
17343
+ // verify required parameter 'batchId' is not null or undefined
17344
+ assertParamExists('putUpdateBatchItem', 'batchId', batchId)
17345
+ // verify required parameter 'itemId' is not null or undefined
17346
+ assertParamExists('putUpdateBatchItem', 'itemId', itemId)
17347
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/items/{item_id}`
17348
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
17349
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
17350
+ .replace(`{${"item_id"}}`, encodeURIComponent(String(itemId)));
17351
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17352
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17353
+ let baseOptions;
17354
+ if (configuration) {
17355
+ baseOptions = configuration.baseOptions;
17356
+ }
17357
+
17358
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
17359
+ const localVarHeaderParameter = {} as any;
17360
+ const localVarQueryParameter = {} as any;
17361
+
17362
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17363
+ localVarHeaderParameter['Accept'] = 'application/json';
17364
+
17365
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17366
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17367
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17368
+ localVarRequestOptions.data = serializeDataIfNeeded(orderedItemModel, localVarRequestOptions, configuration)
17369
+
17370
+ return {
17371
+ url: toPathString(localVarUrlObj),
17372
+ options: localVarRequestOptions,
17373
+ };
17374
+ },
15150
17375
  /**
15151
17376
  * Update An Order (Beta)
15152
17377
  * @summary Update An Order (Beta)
@@ -15184,6 +17409,92 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
15184
17409
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15185
17410
  localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
15186
17411
 
17412
+ return {
17413
+ url: toPathString(localVarUrlObj),
17414
+ options: localVarRequestOptions,
17415
+ };
17416
+ },
17417
+ /**
17418
+ * Change Payment Status (Admin)
17419
+ * @summary Change Payment Status (Admin)
17420
+ * @param {number} id Order ID
17421
+ * @param {boolean} paid Paid
17422
+ * @param {*} [options] Override http request option.
17423
+ * @throws {RequiredError}
17424
+ */
17425
+ putUpdatePaymentStatus: async (id: number, paid: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17426
+ // verify required parameter 'id' is not null or undefined
17427
+ assertParamExists('putUpdatePaymentStatus', 'id', id)
17428
+ // verify required parameter 'paid' is not null or undefined
17429
+ assertParamExists('putUpdatePaymentStatus', 'paid', paid)
17430
+ const localVarPath = `/admin/orders/{id}/paid`
17431
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17432
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17433
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17434
+ let baseOptions;
17435
+ if (configuration) {
17436
+ baseOptions = configuration.baseOptions;
17437
+ }
17438
+
17439
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
17440
+ const localVarHeaderParameter = {} as any;
17441
+ const localVarQueryParameter = {} as any;
17442
+
17443
+ if (paid !== undefined) {
17444
+ localVarQueryParameter['paid'] = paid;
17445
+ }
17446
+
17447
+ localVarHeaderParameter['Accept'] = 'application/json';
17448
+
17449
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17450
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17451
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17452
+
17453
+ return {
17454
+ url: toPathString(localVarUrlObj),
17455
+ options: localVarRequestOptions,
17456
+ };
17457
+ },
17458
+ /**
17459
+ * Update Shipment (Admin)
17460
+ * @summary Update Shipment (Admin)
17461
+ * @param {number} id Order ID
17462
+ * @param {number} batchId Batch ID
17463
+ * @param {number} shipmentId Shipment ID
17464
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
17465
+ * @param {*} [options] Override http request option.
17466
+ * @throws {RequiredError}
17467
+ */
17468
+ putUpdateShipment: async (id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17469
+ // verify required parameter 'id' is not null or undefined
17470
+ assertParamExists('putUpdateShipment', 'id', id)
17471
+ // verify required parameter 'batchId' is not null or undefined
17472
+ assertParamExists('putUpdateShipment', 'batchId', batchId)
17473
+ // verify required parameter 'shipmentId' is not null or undefined
17474
+ assertParamExists('putUpdateShipment', 'shipmentId', shipmentId)
17475
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}`
17476
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
17477
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
17478
+ .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
17479
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17480
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17481
+ let baseOptions;
17482
+ if (configuration) {
17483
+ baseOptions = configuration.baseOptions;
17484
+ }
17485
+
17486
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
17487
+ const localVarHeaderParameter = {} as any;
17488
+ const localVarQueryParameter = {} as any;
17489
+
17490
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17491
+ localVarHeaderParameter['Accept'] = 'application/json';
17492
+
17493
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17494
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17495
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17496
+ localVarRequestOptions.data = serializeDataIfNeeded(shipmentRequestDTO, localVarRequestOptions, configuration)
17497
+
15187
17498
  return {
15188
17499
  url: toPathString(localVarUrlObj),
15189
17500
  options: localVarRequestOptions,
@@ -15198,6 +17509,19 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
15198
17509
  export const OrdersApiFp = function(configuration?: Configuration) {
15199
17510
  const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)
15200
17511
  return {
17512
+ /**
17513
+ * Delete Batch (Admin)
17514
+ * @param {number} id Order ID
17515
+ * @param {number} batchId Batch ID
17516
+ * @param {*} [options] Override http request option.
17517
+ * @throws {RequiredError}
17518
+ */
17519
+ async deleteDeleteBatch(id: number, batchId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
17520
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeleteBatch(id, batchId, options);
17521
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17522
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteDeleteBatch']?.[localVarOperationServerIndex]?.url;
17523
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17524
+ },
15201
17525
  /**
15202
17526
  * Delete Orders (Beta)
15203
17527
  * @summary Delete Orders (Beta)
@@ -15211,6 +17535,21 @@ export const OrdersApiFp = function(configuration?: Configuration) {
15211
17535
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
15212
17536
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15213
17537
  },
17538
+ /**
17539
+ * Delete Shipment (Admin)
17540
+ * @summary Delete Shipment (Admin)
17541
+ * @param {number} id Order ID
17542
+ * @param {number} batchId Batch ID
17543
+ * @param {number} shipmentId Shipment ID
17544
+ * @param {*} [options] Override http request option.
17545
+ * @throws {RequiredError}
17546
+ */
17547
+ async deleteUpdateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
17548
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateShipment(id, batchId, shipmentId, options);
17549
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17550
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateShipment']?.[localVarOperationServerIndex]?.url;
17551
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17552
+ },
15214
17553
  /**
15215
17554
  * Get Editable Order (Admin)
15216
17555
  * @summary Get Editable Order (Admin)
@@ -15218,23 +17557,91 @@ export const OrdersApiFp = function(configuration?: Configuration) {
15218
17557
  * @param {*} [options] Override http request option.
15219
17558
  * @throws {RequiredError}
15220
17559
  */
15221
- async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
15222
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
17560
+ async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
17561
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
17562
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17563
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
17564
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17565
+ },
17566
+ /**
17567
+ * Get Order Details (Admin)
17568
+ * @summary Get Order Details (Admin)
17569
+ * @param {number} id Order ID
17570
+ * @param {*} [options] Override http request option.
17571
+ * @throws {RequiredError}
17572
+ */
17573
+ async getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
17574
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminOrderDetails(id, options);
17575
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17576
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminOrderDetails']?.[localVarOperationServerIndex]?.url;
17577
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17578
+ },
17579
+ /**
17580
+ * Get Commercial Invoice PDF
17581
+ * @summary Get Commercial Invoice PDF
17582
+ * @param {number} id Order ID
17583
+ * @param {number} batchId Batch ID
17584
+ * @param {number} shipmentId Shipment ID
17585
+ * @param {*} [options] Override http request option.
17586
+ * @throws {RequiredError}
17587
+ */
17588
+ async getGetCommercialInvoice(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
17589
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCommercialInvoice(id, batchId, shipmentId, options);
17590
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17591
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetCommercialInvoice']?.[localVarOperationServerIndex]?.url;
17592
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17593
+ },
17594
+ /**
17595
+ * Get Editable Order (Beta)
17596
+ * @summary Get Editable Order (Beta)
17597
+ * @param {number} id Order ID
17598
+ * @param {*} [options] Override http request option.
17599
+ * @throws {RequiredError}
17600
+ */
17601
+ async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetailedOrderRequestDTO>> {
17602
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
17603
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17604
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
17605
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17606
+ },
17607
+ /**
17608
+ * Get Item Serial Info (Admin)
17609
+ * @summary Get Item Serial Info (Admin)
17610
+ * @param {number} id Order ID
17611
+ * @param {number} itemId Shipment Item ID
17612
+ * @param {*} [options] Override http request option.
17613
+ * @throws {RequiredError}
17614
+ */
17615
+ async getGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSerialInfoModel>> {
17616
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetItemSerialInfo(id, itemId, options);
17617
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17618
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetItemSerialInfo']?.[localVarOperationServerIndex]?.url;
17619
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17620
+ },
17621
+ /**
17622
+ * Download Order PDF
17623
+ * @summary Download Order PDF
17624
+ * @param {number} id Order ID
17625
+ * @param {*} [options] Override http request option.
17626
+ * @throws {RequiredError}
17627
+ */
17628
+ async getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
17629
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrderPdf(id, options);
15223
17630
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15224
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
17631
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrderPdf']?.[localVarOperationServerIndex]?.url;
15225
17632
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15226
17633
  },
15227
17634
  /**
15228
- * Get Editable Order (Beta)
15229
- * @summary Get Editable Order (Beta)
17635
+ * Get Order Summary (Admin)
17636
+ * @summary Get Order Summary (Admin)
15230
17637
  * @param {number} id Order ID
15231
17638
  * @param {*} [options] Override http request option.
15232
17639
  * @throws {RequiredError}
15233
17640
  */
15234
- async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetailedOrderRequestDTO>> {
15235
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
17641
+ async getGetOrderSummary(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummaryDTO>> {
17642
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrderSummary(id, options);
15236
17643
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15237
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
17644
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrderSummary']?.[localVarOperationServerIndex]?.url;
15238
17645
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15239
17646
  },
15240
17647
  /**
@@ -15256,6 +17663,33 @@ export const OrdersApiFp = function(configuration?: Configuration) {
15256
17663
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
15257
17664
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15258
17665
  },
17666
+ /**
17667
+ * Mark Order As Complete (Admin)
17668
+ * @summary Mark Order As Complete (Admin)
17669
+ * @param {number} id Order ID
17670
+ * @param {*} [options] Override http request option.
17671
+ * @throws {RequiredError}
17672
+ */
17673
+ async patchCompleteOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
17674
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchCompleteOrder(id, options);
17675
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17676
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.patchCompleteOrder']?.[localVarOperationServerIndex]?.url;
17677
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17678
+ },
17679
+ /**
17680
+ * Add Order Note
17681
+ * @summary Add Order Note
17682
+ * @param {number} id Order ID
17683
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
17684
+ * @param {*} [options] Override http request option.
17685
+ * @throws {RequiredError}
17686
+ */
17687
+ async postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditLogEntity>> {
17688
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postAddOrderNote(id, postAddOrderNoteRequest, options);
17689
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17690
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postAddOrderNote']?.[localVarOperationServerIndex]?.url;
17691
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17692
+ },
15259
17693
  /**
15260
17694
  * Create An Order (Admin)
15261
17695
  * @summary Create An Order (Admin)
@@ -15270,6 +17704,36 @@ export const OrdersApiFp = function(configuration?: Configuration) {
15270
17704
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
15271
17705
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15272
17706
  },
17707
+ /**
17708
+ * Create Shipping Consignment
17709
+ * @summary Create Shipping Consignment
17710
+ * @param {number} id Order ID
17711
+ * @param {number} shipmentId Shipment ID
17712
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
17713
+ * @param {*} [options] Override http request option.
17714
+ * @throws {RequiredError}
17715
+ */
17716
+ async postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentDTO>> {
17717
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateConsignment(id, shipmentId, shippingRequestDTO, options);
17718
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17719
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateConsignment']?.[localVarOperationServerIndex]?.url;
17720
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17721
+ },
17722
+ /**
17723
+ * Create Shipment (Admin)
17724
+ * @summary Create Shipment (Admin)
17725
+ * @param {number} id Order ID
17726
+ * @param {number} batchId Batch ID
17727
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
17728
+ * @param {*} [options] Override http request option.
17729
+ * @throws {RequiredError}
17730
+ */
17731
+ async postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentDTO>> {
17732
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateShipment(id, batchId, shipmentRequestDTO, options);
17733
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17734
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateShipment']?.[localVarOperationServerIndex]?.url;
17735
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17736
+ },
15273
17737
  /**
15274
17738
  * Create An Order (Beta)
15275
17739
  * @summary Create An Order (Beta)
@@ -15284,6 +17748,108 @@ export const OrdersApiFp = function(configuration?: Configuration) {
15284
17748
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
15285
17749
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15286
17750
  },
17751
+ /**
17752
+ * Issue Credit (Admin)
17753
+ * @summary Issue Credit (Admin)
17754
+ * @param {number} id Order ID
17755
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
17756
+ * @param {*} [options] Override http request option.
17757
+ * @throws {RequiredError}
17758
+ */
17759
+ async postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreditNoteModel>> {
17760
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postIssueCredit(id, creditNoteDTO, options);
17761
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17762
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postIssueCredit']?.[localVarOperationServerIndex]?.url;
17763
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17764
+ },
17765
+ /**
17766
+ * Print Shipment Label
17767
+ * @summary Print Shipment Label
17768
+ * @param {number} id Order ID
17769
+ * @param {number} shipmentId Shipment ID
17770
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
17771
+ * @param {*} [options] Override http request option.
17772
+ * @throws {RequiredError}
17773
+ */
17774
+ async postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
17775
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postPrintShippingLabel(id, shipmentId, printer, options);
17776
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17777
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postPrintShippingLabel']?.[localVarOperationServerIndex]?.url;
17778
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17779
+ },
17780
+ /**
17781
+ * Send Order Email
17782
+ * @summary Send Order Email
17783
+ * @param {number} id Order ID
17784
+ * @param {string} email Email Address
17785
+ * @param {*} [options] Override http request option.
17786
+ * @throws {RequiredError}
17787
+ */
17788
+ async postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
17789
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSendOrderEmail(id, email, options);
17790
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17791
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSendOrderEmail']?.[localVarOperationServerIndex]?.url;
17792
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17793
+ },
17794
+ /**
17795
+ * Send Shipment Email (Admin)
17796
+ * @summary Send Shipment Email (Admin)
17797
+ * @param {number} id Order ID
17798
+ * @param {number} batchId Batch ID
17799
+ * @param {number} shipmentId Shipment ID
17800
+ * @param {string} email Email Address
17801
+ * @param {*} [options] Override http request option.
17802
+ * @throws {RequiredError}
17803
+ */
17804
+ async postSendShipmentEmail(id: number, batchId: number, shipmentId: number, email: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
17805
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSendShipmentEmail(id, batchId, shipmentId, email, options);
17806
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17807
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSendShipmentEmail']?.[localVarOperationServerIndex]?.url;
17808
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17809
+ },
17810
+ /**
17811
+ * Send Supplier Email
17812
+ * @summary Send Supplier Email
17813
+ * @param {number} id Order ID
17814
+ * @param {number} batchId Batch ID
17815
+ * @param {*} [options] Override http request option.
17816
+ * @throws {RequiredError}
17817
+ */
17818
+ async postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
17819
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSendSupplierEmail(id, batchId, options);
17820
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17821
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSendSupplierEmail']?.[localVarOperationServerIndex]?.url;
17822
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17823
+ },
17824
+ /**
17825
+ * Split Order
17826
+ * @summary Split Order
17827
+ * @param {number} id Order ID
17828
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
17829
+ * @param {*} [options] Override http request option.
17830
+ * @throws {RequiredError}
17831
+ */
17832
+ async postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
17833
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSplitOrder(id, postSplitOrderRequest, options);
17834
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17835
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSplitOrder']?.[localVarOperationServerIndex]?.url;
17836
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17837
+ },
17838
+ /**
17839
+ * Allocate Items To Supplier
17840
+ * @summary Allocate Items To Supplier
17841
+ * @param {number} id Order ID
17842
+ * @param {number} supplierId Supplier ID
17843
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
17844
+ * @param {*} [options] Override http request option.
17845
+ * @throws {RequiredError}
17846
+ */
17847
+ async putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BatchDTO>>> {
17848
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putAllocateItems(id, supplierId, putAllocateItemsRequest, options);
17849
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17850
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.putAllocateItems']?.[localVarOperationServerIndex]?.url;
17851
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17852
+ },
15287
17853
  /**
15288
17854
  * Update An Order (Admin)
15289
17855
  * @summary Update An Order (Admin)
@@ -15299,6 +17865,22 @@ export const OrdersApiFp = function(configuration?: Configuration) {
15299
17865
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateAdminOrder']?.[localVarOperationServerIndex]?.url;
15300
17866
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15301
17867
  },
17868
+ /**
17869
+ * Update Batch Item (Admin)
17870
+ * @summary Update Batch Item (Admin)
17871
+ * @param {number} id Order ID
17872
+ * @param {number} batchId Batch ID
17873
+ * @param {number} itemId Ordered Item ID
17874
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
17875
+ * @param {*} [options] Override http request option.
17876
+ * @throws {RequiredError}
17877
+ */
17878
+ async putUpdateBatchItem(id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderedItemModel>> {
17879
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateBatchItem(id, batchId, itemId, orderedItemModel, options);
17880
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17881
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateBatchItem']?.[localVarOperationServerIndex]?.url;
17882
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17883
+ },
15302
17884
  /**
15303
17885
  * Update An Order (Beta)
15304
17886
  * @summary Update An Order (Beta)
@@ -15314,6 +17896,36 @@ export const OrdersApiFp = function(configuration?: Configuration) {
15314
17896
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateOrder']?.[localVarOperationServerIndex]?.url;
15315
17897
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15316
17898
  },
17899
+ /**
17900
+ * Change Payment Status (Admin)
17901
+ * @summary Change Payment Status (Admin)
17902
+ * @param {number} id Order ID
17903
+ * @param {boolean} paid Paid
17904
+ * @param {*} [options] Override http request option.
17905
+ * @throws {RequiredError}
17906
+ */
17907
+ async putUpdatePaymentStatus(id: number, paid: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
17908
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdatePaymentStatus(id, paid, options);
17909
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17910
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdatePaymentStatus']?.[localVarOperationServerIndex]?.url;
17911
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17912
+ },
17913
+ /**
17914
+ * Update Shipment (Admin)
17915
+ * @summary Update Shipment (Admin)
17916
+ * @param {number} id Order ID
17917
+ * @param {number} batchId Batch ID
17918
+ * @param {number} shipmentId Shipment ID
17919
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
17920
+ * @param {*} [options] Override http request option.
17921
+ * @throws {RequiredError}
17922
+ */
17923
+ async putUpdateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentDTO>> {
17924
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateShipment(id, batchId, shipmentId, shipmentRequestDTO, options);
17925
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17926
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateShipment']?.[localVarOperationServerIndex]?.url;
17927
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17928
+ },
15317
17929
  }
15318
17930
  };
15319
17931
 
@@ -15323,6 +17935,16 @@ export const OrdersApiFp = function(configuration?: Configuration) {
15323
17935
  export const OrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
15324
17936
  const localVarFp = OrdersApiFp(configuration)
15325
17937
  return {
17938
+ /**
17939
+ * Delete Batch (Admin)
17940
+ * @param {number} id Order ID
17941
+ * @param {number} batchId Batch ID
17942
+ * @param {*} [options] Override http request option.
17943
+ * @throws {RequiredError}
17944
+ */
17945
+ deleteDeleteBatch(id: number, batchId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
17946
+ return localVarFp.deleteDeleteBatch(id, batchId, options).then((request) => request(axios, basePath));
17947
+ },
15326
17948
  /**
15327
17949
  * Delete Orders (Beta)
15328
17950
  * @summary Delete Orders (Beta)
@@ -15333,6 +17955,18 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
15333
17955
  deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15334
17956
  return localVarFp.deleteUpdateOrder(id, options).then((request) => request(axios, basePath));
15335
17957
  },
17958
+ /**
17959
+ * Delete Shipment (Admin)
17960
+ * @summary Delete Shipment (Admin)
17961
+ * @param {number} id Order ID
17962
+ * @param {number} batchId Batch ID
17963
+ * @param {number} shipmentId Shipment ID
17964
+ * @param {*} [options] Override http request option.
17965
+ * @throws {RequiredError}
17966
+ */
17967
+ deleteUpdateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
17968
+ return localVarFp.deleteUpdateShipment(id, batchId, shipmentId, options).then((request) => request(axios, basePath));
17969
+ },
15336
17970
  /**
15337
17971
  * Get Editable Order (Admin)
15338
17972
  * @summary Get Editable Order (Admin)
@@ -15343,6 +17977,28 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
15343
17977
  getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminOrderRequestDTO> {
15344
17978
  return localVarFp.getGetAdminEditableOrder(id, options).then((request) => request(axios, basePath));
15345
17979
  },
17980
+ /**
17981
+ * Get Order Details (Admin)
17982
+ * @summary Get Order Details (Admin)
17983
+ * @param {number} id Order ID
17984
+ * @param {*} [options] Override http request option.
17985
+ * @throws {RequiredError}
17986
+ */
17987
+ getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
17988
+ return localVarFp.getGetAdminOrderDetails(id, options).then((request) => request(axios, basePath));
17989
+ },
17990
+ /**
17991
+ * Get Commercial Invoice PDF
17992
+ * @summary Get Commercial Invoice PDF
17993
+ * @param {number} id Order ID
17994
+ * @param {number} batchId Batch ID
17995
+ * @param {number} shipmentId Shipment ID
17996
+ * @param {*} [options] Override http request option.
17997
+ * @throws {RequiredError}
17998
+ */
17999
+ getGetCommercialInvoice(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): AxiosPromise<File> {
18000
+ return localVarFp.getGetCommercialInvoice(id, batchId, shipmentId, options).then((request) => request(axios, basePath));
18001
+ },
15346
18002
  /**
15347
18003
  * Get Editable Order (Beta)
15348
18004
  * @summary Get Editable Order (Beta)
@@ -15353,6 +18009,37 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
15353
18009
  getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DetailedOrderRequestDTO> {
15354
18010
  return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
15355
18011
  },
18012
+ /**
18013
+ * Get Item Serial Info (Admin)
18014
+ * @summary Get Item Serial Info (Admin)
18015
+ * @param {number} id Order ID
18016
+ * @param {number} itemId Shipment Item ID
18017
+ * @param {*} [options] Override http request option.
18018
+ * @throws {RequiredError}
18019
+ */
18020
+ getGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig): AxiosPromise<ProductSerialInfoModel> {
18021
+ return localVarFp.getGetItemSerialInfo(id, itemId, options).then((request) => request(axios, basePath));
18022
+ },
18023
+ /**
18024
+ * Download Order PDF
18025
+ * @summary Download Order PDF
18026
+ * @param {number} id Order ID
18027
+ * @param {*} [options] Override http request option.
18028
+ * @throws {RequiredError}
18029
+ */
18030
+ getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): AxiosPromise<File> {
18031
+ return localVarFp.getGetOrderPdf(id, options).then((request) => request(axios, basePath));
18032
+ },
18033
+ /**
18034
+ * Get Order Summary (Admin)
18035
+ * @summary Get Order Summary (Admin)
18036
+ * @param {number} id Order ID
18037
+ * @param {*} [options] Override http request option.
18038
+ * @throws {RequiredError}
18039
+ */
18040
+ getGetOrderSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummaryDTO> {
18041
+ return localVarFp.getGetOrderSummary(id, options).then((request) => request(axios, basePath));
18042
+ },
15356
18043
  /**
15357
18044
  * Get Orders (Beta)
15358
18045
  * @summary Get Orders (Beta)
@@ -15369,6 +18056,27 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
15369
18056
  getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
15370
18057
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
15371
18058
  },
18059
+ /**
18060
+ * Mark Order As Complete (Admin)
18061
+ * @summary Mark Order As Complete (Admin)
18062
+ * @param {number} id Order ID
18063
+ * @param {*} [options] Override http request option.
18064
+ * @throws {RequiredError}
18065
+ */
18066
+ patchCompleteOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
18067
+ return localVarFp.patchCompleteOrder(id, options).then((request) => request(axios, basePath));
18068
+ },
18069
+ /**
18070
+ * Add Order Note
18071
+ * @summary Add Order Note
18072
+ * @param {number} id Order ID
18073
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
18074
+ * @param {*} [options] Override http request option.
18075
+ * @throws {RequiredError}
18076
+ */
18077
+ postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuditLogEntity> {
18078
+ return localVarFp.postAddOrderNote(id, postAddOrderNoteRequest, options).then((request) => request(axios, basePath));
18079
+ },
15372
18080
  /**
15373
18081
  * Create An Order (Admin)
15374
18082
  * @summary Create An Order (Admin)
@@ -15380,6 +18088,30 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
15380
18088
  postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
15381
18089
  return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
15382
18090
  },
18091
+ /**
18092
+ * Create Shipping Consignment
18093
+ * @summary Create Shipping Consignment
18094
+ * @param {number} id Order ID
18095
+ * @param {number} shipmentId Shipment ID
18096
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
18097
+ * @param {*} [options] Override http request option.
18098
+ * @throws {RequiredError}
18099
+ */
18100
+ postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentDTO> {
18101
+ return localVarFp.postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then((request) => request(axios, basePath));
18102
+ },
18103
+ /**
18104
+ * Create Shipment (Admin)
18105
+ * @summary Create Shipment (Admin)
18106
+ * @param {number} id Order ID
18107
+ * @param {number} batchId Batch ID
18108
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
18109
+ * @param {*} [options] Override http request option.
18110
+ * @throws {RequiredError}
18111
+ */
18112
+ postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentDTO> {
18113
+ return localVarFp.postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
18114
+ },
15383
18115
  /**
15384
18116
  * Create An Order (Beta)
15385
18117
  * @summary Create An Order (Beta)
@@ -15391,6 +18123,87 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
15391
18123
  postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
15392
18124
  return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
15393
18125
  },
18126
+ /**
18127
+ * Issue Credit (Admin)
18128
+ * @summary Issue Credit (Admin)
18129
+ * @param {number} id Order ID
18130
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
18131
+ * @param {*} [options] Override http request option.
18132
+ * @throws {RequiredError}
18133
+ */
18134
+ postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig): AxiosPromise<CreditNoteModel> {
18135
+ return localVarFp.postIssueCredit(id, creditNoteDTO, options).then((request) => request(axios, basePath));
18136
+ },
18137
+ /**
18138
+ * Print Shipment Label
18139
+ * @summary Print Shipment Label
18140
+ * @param {number} id Order ID
18141
+ * @param {number} shipmentId Shipment ID
18142
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
18143
+ * @param {*} [options] Override http request option.
18144
+ * @throws {RequiredError}
18145
+ */
18146
+ postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig): AxiosPromise<File> {
18147
+ return localVarFp.postPrintShippingLabel(id, shipmentId, printer, options).then((request) => request(axios, basePath));
18148
+ },
18149
+ /**
18150
+ * Send Order Email
18151
+ * @summary Send Order Email
18152
+ * @param {number} id Order ID
18153
+ * @param {string} email Email Address
18154
+ * @param {*} [options] Override http request option.
18155
+ * @throws {RequiredError}
18156
+ */
18157
+ postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
18158
+ return localVarFp.postSendOrderEmail(id, email, options).then((request) => request(axios, basePath));
18159
+ },
18160
+ /**
18161
+ * Send Shipment Email (Admin)
18162
+ * @summary Send Shipment Email (Admin)
18163
+ * @param {number} id Order ID
18164
+ * @param {number} batchId Batch ID
18165
+ * @param {number} shipmentId Shipment ID
18166
+ * @param {string} email Email Address
18167
+ * @param {*} [options] Override http request option.
18168
+ * @throws {RequiredError}
18169
+ */
18170
+ postSendShipmentEmail(id: number, batchId: number, shipmentId: number, email: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
18171
+ return localVarFp.postSendShipmentEmail(id, batchId, shipmentId, email, options).then((request) => request(axios, basePath));
18172
+ },
18173
+ /**
18174
+ * Send Supplier Email
18175
+ * @summary Send Supplier Email
18176
+ * @param {number} id Order ID
18177
+ * @param {number} batchId Batch ID
18178
+ * @param {*} [options] Override http request option.
18179
+ * @throws {RequiredError}
18180
+ */
18181
+ postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
18182
+ return localVarFp.postSendSupplierEmail(id, batchId, options).then((request) => request(axios, basePath));
18183
+ },
18184
+ /**
18185
+ * Split Order
18186
+ * @summary Split Order
18187
+ * @param {number} id Order ID
18188
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
18189
+ * @param {*} [options] Override http request option.
18190
+ * @throws {RequiredError}
18191
+ */
18192
+ postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
18193
+ return localVarFp.postSplitOrder(id, postSplitOrderRequest, options).then((request) => request(axios, basePath));
18194
+ },
18195
+ /**
18196
+ * Allocate Items To Supplier
18197
+ * @summary Allocate Items To Supplier
18198
+ * @param {number} id Order ID
18199
+ * @param {number} supplierId Supplier ID
18200
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
18201
+ * @param {*} [options] Override http request option.
18202
+ * @throws {RequiredError}
18203
+ */
18204
+ putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<BatchDTO>> {
18205
+ return localVarFp.putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then((request) => request(axios, basePath));
18206
+ },
15394
18207
  /**
15395
18208
  * Update An Order (Admin)
15396
18209
  * @summary Update An Order (Admin)
@@ -15404,16 +18217,53 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
15404
18217
  return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
15405
18218
  },
15406
18219
  /**
15407
- * Update An Order (Beta)
15408
- * @summary Update An Order (Beta)
18220
+ * Update Batch Item (Admin)
18221
+ * @summary Update Batch Item (Admin)
18222
+ * @param {number} id Order ID
18223
+ * @param {number} batchId Batch ID
18224
+ * @param {number} itemId Ordered Item ID
18225
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
18226
+ * @param {*} [options] Override http request option.
18227
+ * @throws {RequiredError}
18228
+ */
18229
+ putUpdateBatchItem(id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options?: RawAxiosRequestConfig): AxiosPromise<OrderedItemModel> {
18230
+ return localVarFp.putUpdateBatchItem(id, batchId, itemId, orderedItemModel, options).then((request) => request(axios, basePath));
18231
+ },
18232
+ /**
18233
+ * Update An Order (Beta)
18234
+ * @summary Update An Order (Beta)
18235
+ * @param {number} id Order ID
18236
+ * @param {boolean} [readonly] Readonly Order
18237
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
18238
+ * @param {*} [options] Override http request option.
18239
+ * @throws {RequiredError}
18240
+ */
18241
+ putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
18242
+ return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
18243
+ },
18244
+ /**
18245
+ * Change Payment Status (Admin)
18246
+ * @summary Change Payment Status (Admin)
18247
+ * @param {number} id Order ID
18248
+ * @param {boolean} paid Paid
18249
+ * @param {*} [options] Override http request option.
18250
+ * @throws {RequiredError}
18251
+ */
18252
+ putUpdatePaymentStatus(id: number, paid: boolean, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
18253
+ return localVarFp.putUpdatePaymentStatus(id, paid, options).then((request) => request(axios, basePath));
18254
+ },
18255
+ /**
18256
+ * Update Shipment (Admin)
18257
+ * @summary Update Shipment (Admin)
15409
18258
  * @param {number} id Order ID
15410
- * @param {boolean} [readonly] Readonly Order
15411
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
18259
+ * @param {number} batchId Batch ID
18260
+ * @param {number} shipmentId Shipment ID
18261
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
15412
18262
  * @param {*} [options] Override http request option.
15413
18263
  * @throws {RequiredError}
15414
18264
  */
15415
- putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
15416
- return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
18265
+ putUpdateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentDTO> {
18266
+ return localVarFp.putUpdateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
15417
18267
  },
15418
18268
  };
15419
18269
  };
@@ -15422,6 +18272,17 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
15422
18272
  * OrdersApi - object-oriented interface
15423
18273
  */
15424
18274
  export class OrdersApi extends BaseAPI {
18275
+ /**
18276
+ * Delete Batch (Admin)
18277
+ * @param {number} id Order ID
18278
+ * @param {number} batchId Batch ID
18279
+ * @param {*} [options] Override http request option.
18280
+ * @throws {RequiredError}
18281
+ */
18282
+ public deleteDeleteBatch(id: number, batchId: number, options?: RawAxiosRequestConfig) {
18283
+ return OrdersApiFp(this.configuration).deleteDeleteBatch(id, batchId, options).then((request) => request(this.axios, this.basePath));
18284
+ }
18285
+
15425
18286
  /**
15426
18287
  * Delete Orders (Beta)
15427
18288
  * @summary Delete Orders (Beta)
@@ -15433,6 +18294,19 @@ export class OrdersApi extends BaseAPI {
15433
18294
  return OrdersApiFp(this.configuration).deleteUpdateOrder(id, options).then((request) => request(this.axios, this.basePath));
15434
18295
  }
15435
18296
 
18297
+ /**
18298
+ * Delete Shipment (Admin)
18299
+ * @summary Delete Shipment (Admin)
18300
+ * @param {number} id Order ID
18301
+ * @param {number} batchId Batch ID
18302
+ * @param {number} shipmentId Shipment ID
18303
+ * @param {*} [options] Override http request option.
18304
+ * @throws {RequiredError}
18305
+ */
18306
+ public deleteUpdateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig) {
18307
+ return OrdersApiFp(this.configuration).deleteUpdateShipment(id, batchId, shipmentId, options).then((request) => request(this.axios, this.basePath));
18308
+ }
18309
+
15436
18310
  /**
15437
18311
  * Get Editable Order (Admin)
15438
18312
  * @summary Get Editable Order (Admin)
@@ -15444,6 +18318,30 @@ export class OrdersApi extends BaseAPI {
15444
18318
  return OrdersApiFp(this.configuration).getGetAdminEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
15445
18319
  }
15446
18320
 
18321
+ /**
18322
+ * Get Order Details (Admin)
18323
+ * @summary Get Order Details (Admin)
18324
+ * @param {number} id Order ID
18325
+ * @param {*} [options] Override http request option.
18326
+ * @throws {RequiredError}
18327
+ */
18328
+ public getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig) {
18329
+ return OrdersApiFp(this.configuration).getGetAdminOrderDetails(id, options).then((request) => request(this.axios, this.basePath));
18330
+ }
18331
+
18332
+ /**
18333
+ * Get Commercial Invoice PDF
18334
+ * @summary Get Commercial Invoice PDF
18335
+ * @param {number} id Order ID
18336
+ * @param {number} batchId Batch ID
18337
+ * @param {number} shipmentId Shipment ID
18338
+ * @param {*} [options] Override http request option.
18339
+ * @throws {RequiredError}
18340
+ */
18341
+ public getGetCommercialInvoice(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig) {
18342
+ return OrdersApiFp(this.configuration).getGetCommercialInvoice(id, batchId, shipmentId, options).then((request) => request(this.axios, this.basePath));
18343
+ }
18344
+
15447
18345
  /**
15448
18346
  * Get Editable Order (Beta)
15449
18347
  * @summary Get Editable Order (Beta)
@@ -15455,6 +18353,40 @@ export class OrdersApi extends BaseAPI {
15455
18353
  return OrdersApiFp(this.configuration).getGetEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
15456
18354
  }
15457
18355
 
18356
+ /**
18357
+ * Get Item Serial Info (Admin)
18358
+ * @summary Get Item Serial Info (Admin)
18359
+ * @param {number} id Order ID
18360
+ * @param {number} itemId Shipment Item ID
18361
+ * @param {*} [options] Override http request option.
18362
+ * @throws {RequiredError}
18363
+ */
18364
+ public getGetItemSerialInfo(id: number, itemId: number, options?: RawAxiosRequestConfig) {
18365
+ return OrdersApiFp(this.configuration).getGetItemSerialInfo(id, itemId, options).then((request) => request(this.axios, this.basePath));
18366
+ }
18367
+
18368
+ /**
18369
+ * Download Order PDF
18370
+ * @summary Download Order PDF
18371
+ * @param {number} id Order ID
18372
+ * @param {*} [options] Override http request option.
18373
+ * @throws {RequiredError}
18374
+ */
18375
+ public getGetOrderPdf(id: number, options?: RawAxiosRequestConfig) {
18376
+ return OrdersApiFp(this.configuration).getGetOrderPdf(id, options).then((request) => request(this.axios, this.basePath));
18377
+ }
18378
+
18379
+ /**
18380
+ * Get Order Summary (Admin)
18381
+ * @summary Get Order Summary (Admin)
18382
+ * @param {number} id Order ID
18383
+ * @param {*} [options] Override http request option.
18384
+ * @throws {RequiredError}
18385
+ */
18386
+ public getGetOrderSummary(id: number, options?: RawAxiosRequestConfig) {
18387
+ return OrdersApiFp(this.configuration).getGetOrderSummary(id, options).then((request) => request(this.axios, this.basePath));
18388
+ }
18389
+
15458
18390
  /**
15459
18391
  * Get Orders (Beta)
15460
18392
  * @summary Get Orders (Beta)
@@ -15472,6 +18404,29 @@ export class OrdersApi extends BaseAPI {
15472
18404
  return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
15473
18405
  }
15474
18406
 
18407
+ /**
18408
+ * Mark Order As Complete (Admin)
18409
+ * @summary Mark Order As Complete (Admin)
18410
+ * @param {number} id Order ID
18411
+ * @param {*} [options] Override http request option.
18412
+ * @throws {RequiredError}
18413
+ */
18414
+ public patchCompleteOrder(id: number, options?: RawAxiosRequestConfig) {
18415
+ return OrdersApiFp(this.configuration).patchCompleteOrder(id, options).then((request) => request(this.axios, this.basePath));
18416
+ }
18417
+
18418
+ /**
18419
+ * Add Order Note
18420
+ * @summary Add Order Note
18421
+ * @param {number} id Order ID
18422
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
18423
+ * @param {*} [options] Override http request option.
18424
+ * @throws {RequiredError}
18425
+ */
18426
+ public postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig) {
18427
+ return OrdersApiFp(this.configuration).postAddOrderNote(id, postAddOrderNoteRequest, options).then((request) => request(this.axios, this.basePath));
18428
+ }
18429
+
15475
18430
  /**
15476
18431
  * Create An Order (Admin)
15477
18432
  * @summary Create An Order (Admin)
@@ -15484,6 +18439,32 @@ export class OrdersApi extends BaseAPI {
15484
18439
  return OrdersApiFp(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
15485
18440
  }
15486
18441
 
18442
+ /**
18443
+ * Create Shipping Consignment
18444
+ * @summary Create Shipping Consignment
18445
+ * @param {number} id Order ID
18446
+ * @param {number} shipmentId Shipment ID
18447
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
18448
+ * @param {*} [options] Override http request option.
18449
+ * @throws {RequiredError}
18450
+ */
18451
+ public postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig) {
18452
+ return OrdersApiFp(this.configuration).postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then((request) => request(this.axios, this.basePath));
18453
+ }
18454
+
18455
+ /**
18456
+ * Create Shipment (Admin)
18457
+ * @summary Create Shipment (Admin)
18458
+ * @param {number} id Order ID
18459
+ * @param {number} batchId Batch ID
18460
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
18461
+ * @param {*} [options] Override http request option.
18462
+ * @throws {RequiredError}
18463
+ */
18464
+ public postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) {
18465
+ return OrdersApiFp(this.configuration).postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
18466
+ }
18467
+
15487
18468
  /**
15488
18469
  * Create An Order (Beta)
15489
18470
  * @summary Create An Order (Beta)
@@ -15496,6 +18477,94 @@ export class OrdersApi extends BaseAPI {
15496
18477
  return OrdersApiFp(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
15497
18478
  }
15498
18479
 
18480
+ /**
18481
+ * Issue Credit (Admin)
18482
+ * @summary Issue Credit (Admin)
18483
+ * @param {number} id Order ID
18484
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
18485
+ * @param {*} [options] Override http request option.
18486
+ * @throws {RequiredError}
18487
+ */
18488
+ public postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig) {
18489
+ return OrdersApiFp(this.configuration).postIssueCredit(id, creditNoteDTO, options).then((request) => request(this.axios, this.basePath));
18490
+ }
18491
+
18492
+ /**
18493
+ * Print Shipment Label
18494
+ * @summary Print Shipment Label
18495
+ * @param {number} id Order ID
18496
+ * @param {number} shipmentId Shipment ID
18497
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
18498
+ * @param {*} [options] Override http request option.
18499
+ * @throws {RequiredError}
18500
+ */
18501
+ public postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig) {
18502
+ return OrdersApiFp(this.configuration).postPrintShippingLabel(id, shipmentId, printer, options).then((request) => request(this.axios, this.basePath));
18503
+ }
18504
+
18505
+ /**
18506
+ * Send Order Email
18507
+ * @summary Send Order Email
18508
+ * @param {number} id Order ID
18509
+ * @param {string} email Email Address
18510
+ * @param {*} [options] Override http request option.
18511
+ * @throws {RequiredError}
18512
+ */
18513
+ public postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig) {
18514
+ return OrdersApiFp(this.configuration).postSendOrderEmail(id, email, options).then((request) => request(this.axios, this.basePath));
18515
+ }
18516
+
18517
+ /**
18518
+ * Send Shipment Email (Admin)
18519
+ * @summary Send Shipment Email (Admin)
18520
+ * @param {number} id Order ID
18521
+ * @param {number} batchId Batch ID
18522
+ * @param {number} shipmentId Shipment ID
18523
+ * @param {string} email Email Address
18524
+ * @param {*} [options] Override http request option.
18525
+ * @throws {RequiredError}
18526
+ */
18527
+ public postSendShipmentEmail(id: number, batchId: number, shipmentId: number, email: string, options?: RawAxiosRequestConfig) {
18528
+ return OrdersApiFp(this.configuration).postSendShipmentEmail(id, batchId, shipmentId, email, options).then((request) => request(this.axios, this.basePath));
18529
+ }
18530
+
18531
+ /**
18532
+ * Send Supplier Email
18533
+ * @summary Send Supplier Email
18534
+ * @param {number} id Order ID
18535
+ * @param {number} batchId Batch ID
18536
+ * @param {*} [options] Override http request option.
18537
+ * @throws {RequiredError}
18538
+ */
18539
+ public postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig) {
18540
+ return OrdersApiFp(this.configuration).postSendSupplierEmail(id, batchId, options).then((request) => request(this.axios, this.basePath));
18541
+ }
18542
+
18543
+ /**
18544
+ * Split Order
18545
+ * @summary Split Order
18546
+ * @param {number} id Order ID
18547
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
18548
+ * @param {*} [options] Override http request option.
18549
+ * @throws {RequiredError}
18550
+ */
18551
+ public postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig) {
18552
+ return OrdersApiFp(this.configuration).postSplitOrder(id, postSplitOrderRequest, options).then((request) => request(this.axios, this.basePath));
18553
+ }
18554
+
18555
+ /**
18556
+ * Allocate Items To Supplier
18557
+ * @summary Allocate Items To Supplier
18558
+ * @param {number} id Order ID
18559
+ * @param {number} supplierId Supplier ID
18560
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
18561
+ * @param {*} [options] Override http request option.
18562
+ * @throws {RequiredError}
18563
+ */
18564
+ public putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig) {
18565
+ return OrdersApiFp(this.configuration).putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then((request) => request(this.axios, this.basePath));
18566
+ }
18567
+
15499
18568
  /**
15500
18569
  * Update An Order (Admin)
15501
18570
  * @summary Update An Order (Admin)
@@ -15509,6 +18578,20 @@ export class OrdersApi extends BaseAPI {
15509
18578
  return OrdersApiFp(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
15510
18579
  }
15511
18580
 
18581
+ /**
18582
+ * Update Batch Item (Admin)
18583
+ * @summary Update Batch Item (Admin)
18584
+ * @param {number} id Order ID
18585
+ * @param {number} batchId Batch ID
18586
+ * @param {number} itemId Ordered Item ID
18587
+ * @param {OrderedItemModel} [orderedItemModel] Batch Item
18588
+ * @param {*} [options] Override http request option.
18589
+ * @throws {RequiredError}
18590
+ */
18591
+ public putUpdateBatchItem(id: number, batchId: number, itemId: number, orderedItemModel?: OrderedItemModel, options?: RawAxiosRequestConfig) {
18592
+ return OrdersApiFp(this.configuration).putUpdateBatchItem(id, batchId, itemId, orderedItemModel, options).then((request) => request(this.axios, this.basePath));
18593
+ }
18594
+
15512
18595
  /**
15513
18596
  * Update An Order (Beta)
15514
18597
  * @summary Update An Order (Beta)
@@ -15521,6 +18604,32 @@ export class OrdersApi extends BaseAPI {
15521
18604
  public putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
15522
18605
  return OrdersApiFp(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
15523
18606
  }
18607
+
18608
+ /**
18609
+ * Change Payment Status (Admin)
18610
+ * @summary Change Payment Status (Admin)
18611
+ * @param {number} id Order ID
18612
+ * @param {boolean} paid Paid
18613
+ * @param {*} [options] Override http request option.
18614
+ * @throws {RequiredError}
18615
+ */
18616
+ public putUpdatePaymentStatus(id: number, paid: boolean, options?: RawAxiosRequestConfig) {
18617
+ return OrdersApiFp(this.configuration).putUpdatePaymentStatus(id, paid, options).then((request) => request(this.axios, this.basePath));
18618
+ }
18619
+
18620
+ /**
18621
+ * Update Shipment (Admin)
18622
+ * @summary Update Shipment (Admin)
18623
+ * @param {number} id Order ID
18624
+ * @param {number} batchId Batch ID
18625
+ * @param {number} shipmentId Shipment ID
18626
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
18627
+ * @param {*} [options] Override http request option.
18628
+ * @throws {RequiredError}
18629
+ */
18630
+ public putUpdateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) {
18631
+ return OrdersApiFp(this.configuration).putUpdateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
18632
+ }
15524
18633
  }
15525
18634
 
15526
18635
  export const GetGetOrdersStatusEnum = {
@@ -15537,6 +18646,12 @@ export const GetGetOrdersFilterEnum = {
15537
18646
  BackOrders: 'BACK_ORDERS'
15538
18647
  } as const;
15539
18648
  export type GetGetOrdersFilterEnum = typeof GetGetOrdersFilterEnum[keyof typeof GetGetOrdersFilterEnum];
18649
+ export const PostPrintShippingLabelPrinterEnum = {
18650
+ NUMBER_1: 1,
18651
+ NUMBER_2: 2,
18652
+ NUMBER_3: 3
18653
+ } as const;
18654
+ export type PostPrintShippingLabelPrinterEnum = typeof PostPrintShippingLabelPrinterEnum[keyof typeof PostPrintShippingLabelPrinterEnum];
15540
18655
 
15541
18656
 
15542
18657
  /**
@@ -16092,6 +19207,46 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
16092
19207
 
16093
19208
  localVarHeaderParameter['Accept'] = 'application/json';
16094
19209
 
19210
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19211
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19212
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19213
+
19214
+ return {
19215
+ url: toPathString(localVarUrlObj),
19216
+ options: localVarRequestOptions,
19217
+ };
19218
+ },
19219
+ /**
19220
+ * Add Item Quantity To Stock
19221
+ * @summary Add Item Quantity To Stock
19222
+ * @param {string} sku Product SKU
19223
+ * @param {number} quantity Quantity
19224
+ * @param {*} [options] Override http request option.
19225
+ * @throws {RequiredError}
19226
+ */
19227
+ patchAddQuantityToStock: async (sku: string, quantity: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19228
+ // verify required parameter 'sku' is not null or undefined
19229
+ assertParamExists('patchAddQuantityToStock', 'sku', sku)
19230
+ // verify required parameter 'quantity' is not null or undefined
19231
+ assertParamExists('patchAddQuantityToStock', 'quantity', quantity)
19232
+ const localVarPath = `/products/{sku}/stock/add`
19233
+ .replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
19234
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19235
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19236
+ let baseOptions;
19237
+ if (configuration) {
19238
+ baseOptions = configuration.baseOptions;
19239
+ }
19240
+
19241
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
19242
+ const localVarHeaderParameter = {} as any;
19243
+ const localVarQueryParameter = {} as any;
19244
+
19245
+ if (quantity !== undefined) {
19246
+ localVarQueryParameter['quantity'] = quantity;
19247
+ }
19248
+
19249
+
16095
19250
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16096
19251
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16097
19252
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -16284,6 +19439,20 @@ export const ProductsApiFp = function(configuration?: Configuration) {
16284
19439
  const localVarOperationServerBasePath = operationServerMap['ProductsApi.getSearchProducts']?.[localVarOperationServerIndex]?.url;
16285
19440
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16286
19441
  },
19442
+ /**
19443
+ * Add Item Quantity To Stock
19444
+ * @summary Add Item Quantity To Stock
19445
+ * @param {string} sku Product SKU
19446
+ * @param {number} quantity Quantity
19447
+ * @param {*} [options] Override http request option.
19448
+ * @throws {RequiredError}
19449
+ */
19450
+ async patchAddQuantityToStock(sku: string, quantity: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19451
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchAddQuantityToStock(sku, quantity, options);
19452
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19453
+ const localVarOperationServerBasePath = operationServerMap['ProductsApi.patchAddQuantityToStock']?.[localVarOperationServerIndex]?.url;
19454
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19455
+ },
16287
19456
  /**
16288
19457
  * Get Product
16289
19458
  * @summary Get Product
@@ -16390,6 +19559,17 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
16390
19559
  getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProductSearchResultsModel> {
16391
19560
  return localVarFp.getSearchProducts(pageSize, page, search, options).then((request) => request(axios, basePath));
16392
19561
  },
19562
+ /**
19563
+ * Add Item Quantity To Stock
19564
+ * @summary Add Item Quantity To Stock
19565
+ * @param {string} sku Product SKU
19566
+ * @param {number} quantity Quantity
19567
+ * @param {*} [options] Override http request option.
19568
+ * @throws {RequiredError}
19569
+ */
19570
+ patchAddQuantityToStock(sku: string, quantity: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19571
+ return localVarFp.patchAddQuantityToStock(sku, quantity, options).then((request) => request(axios, basePath));
19572
+ },
16393
19573
  /**
16394
19574
  * Get Product
16395
19575
  * @summary Get Product
@@ -16495,6 +19675,18 @@ export class ProductsApi extends BaseAPI {
16495
19675
  return ProductsApiFp(this.configuration).getSearchProducts(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
16496
19676
  }
16497
19677
 
19678
+ /**
19679
+ * Add Item Quantity To Stock
19680
+ * @summary Add Item Quantity To Stock
19681
+ * @param {string} sku Product SKU
19682
+ * @param {number} quantity Quantity
19683
+ * @param {*} [options] Override http request option.
19684
+ * @throws {RequiredError}
19685
+ */
19686
+ public patchAddQuantityToStock(sku: string, quantity: number, options?: RawAxiosRequestConfig) {
19687
+ return ProductsApiFp(this.configuration).patchAddQuantityToStock(sku, quantity, options).then((request) => request(this.axios, this.basePath));
19688
+ }
19689
+
16498
19690
  /**
16499
19691
  * Get Product
16500
19692
  * @summary Get Product
@@ -18763,6 +21955,39 @@ export class SIPTrunksApi extends BaseAPI {
18763
21955
  */
18764
21956
  export const SMSApiAxiosParamCreator = function (configuration?: Configuration) {
18765
21957
  return {
21958
+ /**
21959
+ * Create SMS Account
21960
+ * @summary Create SMS Account
21961
+ * @param {SmsAccountRequestDTO} [smsAccountRequestDTO] SMS Account Request
21962
+ * @param {*} [options] Override http request option.
21963
+ * @throws {RequiredError}
21964
+ */
21965
+ postCreateSmsAccount: async (smsAccountRequestDTO?: SmsAccountRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21966
+ const localVarPath = `/messaging/sms/account`;
21967
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21968
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21969
+ let baseOptions;
21970
+ if (configuration) {
21971
+ baseOptions = configuration.baseOptions;
21972
+ }
21973
+
21974
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
21975
+ const localVarHeaderParameter = {} as any;
21976
+ const localVarQueryParameter = {} as any;
21977
+
21978
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21979
+ localVarHeaderParameter['Accept'] = 'application/json';
21980
+
21981
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21982
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21983
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21984
+ localVarRequestOptions.data = serializeDataIfNeeded(smsAccountRequestDTO, localVarRequestOptions, configuration)
21985
+
21986
+ return {
21987
+ url: toPathString(localVarUrlObj),
21988
+ options: localVarRequestOptions,
21989
+ };
21990
+ },
18766
21991
  /**
18767
21992
  * Send SMS
18768
21993
  * @param {string} authorization Bearer Token
@@ -18810,6 +22035,19 @@ export const SMSApiAxiosParamCreator = function (configuration?: Configuration)
18810
22035
  export const SMSApiFp = function(configuration?: Configuration) {
18811
22036
  const localVarAxiosParamCreator = SMSApiAxiosParamCreator(configuration)
18812
22037
  return {
22038
+ /**
22039
+ * Create SMS Account
22040
+ * @summary Create SMS Account
22041
+ * @param {SmsAccountRequestDTO} [smsAccountRequestDTO] SMS Account Request
22042
+ * @param {*} [options] Override http request option.
22043
+ * @throws {RequiredError}
22044
+ */
22045
+ async postCreateSmsAccount(smsAccountRequestDTO?: SmsAccountRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SmsAccountDTO>> {
22046
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateSmsAccount(smsAccountRequestDTO, options);
22047
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22048
+ const localVarOperationServerBasePath = operationServerMap['SMSApi.postCreateSmsAccount']?.[localVarOperationServerIndex]?.url;
22049
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22050
+ },
18813
22051
  /**
18814
22052
  * Send SMS
18815
22053
  * @param {string} authorization Bearer Token
@@ -18832,6 +22070,16 @@ export const SMSApiFp = function(configuration?: Configuration) {
18832
22070
  export const SMSApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
18833
22071
  const localVarFp = SMSApiFp(configuration)
18834
22072
  return {
22073
+ /**
22074
+ * Create SMS Account
22075
+ * @summary Create SMS Account
22076
+ * @param {SmsAccountRequestDTO} [smsAccountRequestDTO] SMS Account Request
22077
+ * @param {*} [options] Override http request option.
22078
+ * @throws {RequiredError}
22079
+ */
22080
+ postCreateSmsAccount(smsAccountRequestDTO?: SmsAccountRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<SmsAccountDTO> {
22081
+ return localVarFp.postCreateSmsAccount(smsAccountRequestDTO, options).then((request) => request(axios, basePath));
22082
+ },
18835
22083
  /**
18836
22084
  * Send SMS
18837
22085
  * @param {string} authorization Bearer Token
@@ -18849,6 +22097,17 @@ export const SMSApiFactory = function (configuration?: Configuration, basePath?:
18849
22097
  * SMSApi - object-oriented interface
18850
22098
  */
18851
22099
  export class SMSApi extends BaseAPI {
22100
+ /**
22101
+ * Create SMS Account
22102
+ * @summary Create SMS Account
22103
+ * @param {SmsAccountRequestDTO} [smsAccountRequestDTO] SMS Account Request
22104
+ * @param {*} [options] Override http request option.
22105
+ * @throws {RequiredError}
22106
+ */
22107
+ public postCreateSmsAccount(smsAccountRequestDTO?: SmsAccountRequestDTO, options?: RawAxiosRequestConfig) {
22108
+ return SMSApiFp(this.configuration).postCreateSmsAccount(smsAccountRequestDTO, options).then((request) => request(this.axios, this.basePath));
22109
+ }
22110
+
18852
22111
  /**
18853
22112
  * Send SMS
18854
22113
  * @param {string} authorization Bearer Token