yellowgrid-api-ts 3.2.169-dev.0 → 3.2.171-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 (44) hide show
  1. package/.openapi-generator/FILES +25 -3
  2. package/README.md +54 -3
  3. package/api.ts +3303 -464
  4. package/dist/api.d.ts +1951 -213
  5. package/dist/api.js +2693 -273
  6. package/docs/AbstractItemDiscountModel.md +21 -0
  7. package/docs/AccountAddressesDTO.md +25 -0
  8. package/docs/AccountFinanceDTO.md +37 -0
  9. package/docs/AccountsApi.md +1427 -53
  10. package/docs/AddressDTO.md +31 -0
  11. package/docs/AdminUserModel.md +2 -0
  12. package/docs/CRMApi.md +120 -0
  13. package/docs/Class3CXApi.md +48 -0
  14. package/docs/Class3CXInstallationsApi.md +55 -0
  15. package/docs/CreateCrmNoteBody.md +20 -0
  16. package/docs/CreditAccountEntity.md +4 -0
  17. package/docs/CrmActivitiesResponseDTO.md +23 -0
  18. package/docs/CrmActivityDTO.md +33 -0
  19. package/docs/CrmDateActivitiesDTO.md +23 -0
  20. package/docs/CrmNoteEntity.md +39 -0
  21. package/docs/CrmNoteModel.md +39 -0
  22. package/docs/CustomerListAccountDTO.md +45 -0
  23. package/docs/NumberPortAdminNoteBody.md +20 -0
  24. package/docs/NumberPortingApi.md +5 -5
  25. package/docs/OAuth20Api.md +48 -0
  26. package/docs/PartnerDTO.md +39 -0
  27. package/docs/PatchUpdateAccountCnameRequest.md +20 -0
  28. package/docs/PatchUpdateAccountCompanyNumberRequest.md +20 -0
  29. package/docs/PatchUpdateAccountPhoneRequest.md +20 -0
  30. package/docs/PatchUpdateAccountVatNumberRequest.md +20 -0
  31. package/docs/PatchUpdateCreditLimitRequest.md +20 -0
  32. package/docs/PatchUpdatePriceListRequest.md +20 -0
  33. package/docs/PatchUpdateSipChannelCostRequest.md +20 -0
  34. package/docs/PatchUpdateTcxHostingPriceListRequest.md +20 -0
  35. package/docs/PatchUpdateTcxPartnerIdRequest.md +20 -0
  36. package/docs/PortalAccountModel.md +4 -2
  37. package/docs/PostSendWelcomeEmailRequest.md +20 -0
  38. package/docs/ProductSearchDTO.md +37 -0
  39. package/docs/ProductSummaryDTO.md +2 -0
  40. package/docs/ProductsApi.md +10 -10
  41. package/docs/ProspectDTO.md +2 -0
  42. package/docs/RecordingBackupAzureModel.md +2 -0
  43. package/docs/TableHistoryEntity.md +35 -0
  44. package/package.json +1 -1
package/api.ts CHANGED
@@ -23,6 +23,19 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
25
 
26
+ /**
27
+ * Item Discount
28
+ * @export
29
+ * @interface AbstractItemDiscountModel
30
+ */
31
+ export interface AbstractItemDiscountModel {
32
+ /**
33
+ * Description
34
+ * @type {string}
35
+ * @memberof AbstractItemDiscountModel
36
+ */
37
+ 'description'?: string;
38
+ }
26
39
  /**
27
40
  * Order Request
28
41
  * @export
@@ -72,6 +85,31 @@ export interface AbstractOrderRequestDTO {
72
85
  */
73
86
  'quote'?: boolean;
74
87
  }
88
+ /**
89
+ * Account Addresses
90
+ * @export
91
+ * @interface AccountAddressesDTO
92
+ */
93
+ export interface AccountAddressesDTO {
94
+ /**
95
+ *
96
+ * @type {AddressDTO}
97
+ * @memberof AccountAddressesDTO
98
+ */
99
+ 'billingAddress'?: AddressDTO;
100
+ /**
101
+ *
102
+ * @type {AddressDTO}
103
+ * @memberof AccountAddressesDTO
104
+ */
105
+ 'shippingAddress'?: AddressDTO;
106
+ /**
107
+ * Addresses
108
+ * @type {Array<AddressDTO>}
109
+ * @memberof AccountAddressesDTO
110
+ */
111
+ 'previousShippingAddreses'?: Array<AddressDTO>;
112
+ }
75
113
  /**
76
114
  * AccountContactsEntity
77
115
  * @export
@@ -370,6 +408,69 @@ export interface AccountDetailedSummaryDTO {
370
408
  */
371
409
  'balance'?: number | null;
372
410
  }
411
+ /**
412
+ * Account Finance DTO
413
+ * @export
414
+ * @interface AccountFinanceDTO
415
+ */
416
+ export interface AccountFinanceDTO {
417
+ /**
418
+ * Account ID
419
+ * @type {number}
420
+ * @memberof AccountFinanceDTO
421
+ */
422
+ 'id'?: number;
423
+ /**
424
+ * Account Xero ID
425
+ * @type {string}
426
+ * @memberof AccountFinanceDTO
427
+ */
428
+ 'xeroId'?: string;
429
+ /**
430
+ * Account Number
431
+ * @type {string}
432
+ * @memberof AccountFinanceDTO
433
+ */
434
+ 'accountNumber'?: string;
435
+ /**
436
+ * Credit Limit
437
+ * @type {number}
438
+ * @memberof AccountFinanceDTO
439
+ */
440
+ 'creditLimit'?: number;
441
+ /**
442
+ * Balance Used
443
+ * @type {number}
444
+ * @memberof AccountFinanceDTO
445
+ */
446
+ 'balance'?: number;
447
+ /**
448
+ * Overdue Amount
449
+ * @type {number}
450
+ * @memberof AccountFinanceDTO
451
+ */
452
+ 'overdue'?: number;
453
+ /**
454
+ *
455
+ * @type {CustomerPriceListEnum}
456
+ * @memberof AccountFinanceDTO
457
+ */
458
+ 'priceList'?: CustomerPriceListEnum;
459
+ /**
460
+ * SIP Trunk Channel Cost
461
+ * @type {number}
462
+ * @memberof AccountFinanceDTO
463
+ */
464
+ 'sipChannelCost'?: number;
465
+ /**
466
+ * Xero Contact URL
467
+ * @type {string}
468
+ * @memberof AccountFinanceDTO
469
+ */
470
+ 'xeroUrl'?: string;
471
+ }
472
+
473
+
373
474
  /**
374
475
  * New Account Request
375
476
  * @export
@@ -535,6 +636,49 @@ export interface AccountsResponseModel {
535
636
  */
536
637
  'totalResults'?: number;
537
638
  }
639
+ /**
640
+ * Address
641
+ * @export
642
+ * @interface AddressDTO
643
+ */
644
+ export interface AddressDTO {
645
+ /**
646
+ * Address Line 1
647
+ * @type {string}
648
+ * @memberof AddressDTO
649
+ */
650
+ 'addressLine1'?: string;
651
+ /**
652
+ * Address Line 2
653
+ * @type {string}
654
+ * @memberof AddressDTO
655
+ */
656
+ 'addressLine2'?: string;
657
+ /**
658
+ * City
659
+ * @type {string}
660
+ * @memberof AddressDTO
661
+ */
662
+ 'city'?: string;
663
+ /**
664
+ * Region
665
+ * @type {string}
666
+ * @memberof AddressDTO
667
+ */
668
+ 'region'?: string;
669
+ /**
670
+ * Postal Code
671
+ * @type {string}
672
+ * @memberof AddressDTO
673
+ */
674
+ 'postalCode'?: string;
675
+ /**
676
+ * Country
677
+ * @type {string}
678
+ * @memberof AddressDTO
679
+ */
680
+ 'iso'?: string;
681
+ }
538
682
  /**
539
683
  * Order Address
540
684
  * @export
@@ -901,6 +1045,12 @@ export type AdminOrderRequestDTOPaymentMethodEnum = typeof AdminOrderRequestDTOP
901
1045
  * @interface AdminUserModel
902
1046
  */
903
1047
  export interface AdminUserModel {
1048
+ /**
1049
+ * ID
1050
+ * @type {number}
1051
+ * @memberof AdminUserModel
1052
+ */
1053
+ 'id'?: number;
904
1054
  /**
905
1055
  * First Name
906
1056
  * @type {string}
@@ -971,7 +1121,8 @@ export const AdminUserModelPermissionsEnum = {
971
1121
  Standard: 'Standard',
972
1122
  Technical: 'Technical',
973
1123
  Privileged: 'Privileged',
974
- Development: 'Development'
1124
+ Development: 'Development',
1125
+ Finance: 'Finance'
975
1126
  } as const;
976
1127
 
977
1128
  export type AdminUserModelPermissionsEnum = typeof AdminUserModelPermissionsEnum[keyof typeof AdminUserModelPermissionsEnum];
@@ -1257,6 +1408,7 @@ export const AuditLogEntityTypeEnum = {
1257
1408
  ApiLog: 'api_log',
1258
1409
  PopsBatches: 'pops_batches',
1259
1410
  PopsCourierPrices: 'pops_courier_prices',
1411
+ PopsCrmNotes: 'pops_crm_notes',
1260
1412
  PopsCreditAccounts: 'pops_credit_accounts',
1261
1413
  PopsCreditNotes: 'pops_credit_notes',
1262
1414
  PopsCreditNotesItems: 'pops_credit_notes_items',
@@ -1309,6 +1461,7 @@ export const AuditLogEntityTypeEnum = {
1309
1461
  PopsStockTransactions: 'pops_stock_transactions',
1310
1462
  PopsSuppliers: 'pops_suppliers',
1311
1463
  PopsSupplierItems: 'pops_supplier_items',
1464
+ PopsTableAttribs: 'pops_table_attribs',
1312
1465
  Pops3cxBackup: 'pops_3cx_backup',
1313
1466
  Pops3cxBilling: 'pops_3cx_billing',
1314
1467
  PopsDeadLicences: 'pops_dead_licences',
@@ -1944,6 +2097,19 @@ export interface CourierPriceEntity {
1944
2097
  */
1945
2098
  'maxKg'?: number;
1946
2099
  }
2100
+ /**
2101
+ *
2102
+ * @export
2103
+ * @interface CreateCrmNoteBody
2104
+ */
2105
+ export interface CreateCrmNoteBody {
2106
+ /**
2107
+ * Note
2108
+ * @type {string}
2109
+ * @memberof CreateCrmNoteBody
2110
+ */
2111
+ 'note'?: string;
2112
+ }
1947
2113
  /**
1948
2114
  * Credit Account
1949
2115
  * @export
@@ -2076,6 +2242,18 @@ export interface CreditAccountEntity {
2076
2242
  * @memberof CreditAccountEntity
2077
2243
  */
2078
2244
  'prizePromo'?: boolean;
2245
+ /**
2246
+ * Portal Access
2247
+ * @type {boolean}
2248
+ * @memberof CreditAccountEntity
2249
+ */
2250
+ 'portalAccess'?: boolean;
2251
+ /**
2252
+ * CNAME
2253
+ * @type {string}
2254
+ * @memberof CreditAccountEntity
2255
+ */
2256
+ 'cname'?: string;
2079
2257
  }
2080
2258
  /**
2081
2259
  * Credit Note
@@ -2269,6 +2447,74 @@ export interface CreditNoteModel {
2269
2447
  */
2270
2448
  'items'?: Array<CreditNoteItemModel>;
2271
2449
  }
2450
+ /**
2451
+ * CRM Activities Response
2452
+ * @export
2453
+ * @interface CrmActivitiesResponseDTO
2454
+ */
2455
+ export interface CrmActivitiesResponseDTO {
2456
+ /**
2457
+ * Dates
2458
+ * @type {Array<CrmDateActivitiesDTO>}
2459
+ * @memberof CrmActivitiesResponseDTO
2460
+ */
2461
+ 'dates'?: Array<CrmDateActivitiesDTO>;
2462
+ /**
2463
+ * Agents
2464
+ * @type {Array<AdminUserModel>}
2465
+ * @memberof CrmActivitiesResponseDTO
2466
+ */
2467
+ 'agents'?: Array<AdminUserModel>;
2468
+ }
2469
+ /**
2470
+ * CRM Activity
2471
+ * @export
2472
+ * @interface CrmActivityDTO
2473
+ */
2474
+ export interface CrmActivityDTO {
2475
+ /**
2476
+ * Activity Type
2477
+ * @type {string}
2478
+ * @memberof CrmActivityDTO
2479
+ */
2480
+ 'type'?: string;
2481
+ /**
2482
+ * Date Time
2483
+ * @type {string}
2484
+ * @memberof CrmActivityDTO
2485
+ */
2486
+ 'timestamp'?: string;
2487
+ /**
2488
+ * Activity Title
2489
+ * @type {string}
2490
+ * @memberof CrmActivityDTO
2491
+ */
2492
+ 'title'?: string;
2493
+ /**
2494
+ * Activity Description
2495
+ * @type {string}
2496
+ * @memberof CrmActivityDTO
2497
+ */
2498
+ 'description'?: string;
2499
+ /**
2500
+ * Activity URL
2501
+ * @type {string}
2502
+ * @memberof CrmActivityDTO
2503
+ */
2504
+ 'url'?: string | null;
2505
+ /**
2506
+ * Activity User Name
2507
+ * @type {string}
2508
+ * @memberof CrmActivityDTO
2509
+ */
2510
+ 'user'?: string | null;
2511
+ /**
2512
+ * Activity Contact Name
2513
+ * @type {string}
2514
+ * @memberof CrmActivityDTO
2515
+ */
2516
+ 'contact'?: string | null;
2517
+ }
2272
2518
  /**
2273
2519
  * CRM Contact
2274
2520
  * @export
@@ -2319,108 +2565,261 @@ export interface CrmContactDTO {
2319
2565
  'url'?: string;
2320
2566
  }
2321
2567
  /**
2322
- * SIP Trunk Customer
2568
+ * CRM Date Activities
2323
2569
  * @export
2324
- * @interface CustomerInformationModel
2570
+ * @interface CrmDateActivitiesDTO
2325
2571
  */
2326
- export interface CustomerInformationModel {
2572
+ export interface CrmDateActivitiesDTO {
2327
2573
  /**
2328
- * End User Address Line 1
2574
+ * Date Time
2329
2575
  * @type {string}
2330
- * @memberof CustomerInformationModel
2576
+ * @memberof CrmDateActivitiesDTO
2331
2577
  */
2332
- 'addressLine1'?: string;
2578
+ 'date'?: string;
2333
2579
  /**
2334
- * End User Address Line 2
2580
+ * Activities
2581
+ * @type {Array<CrmActivityDTO>}
2582
+ * @memberof CrmDateActivitiesDTO
2583
+ */
2584
+ 'activities'?: Array<CrmActivityDTO>;
2585
+ }
2586
+ /**
2587
+ * CrmNotesEntity
2588
+ * @export
2589
+ * @interface CrmNoteEntity
2590
+ */
2591
+ export interface CrmNoteEntity {
2592
+ /**
2593
+ * id
2594
+ * @type {number}
2595
+ * @memberof CrmNoteEntity
2596
+ */
2597
+ 'id'?: number;
2598
+ /**
2599
+ * customerId
2335
2600
  * @type {string}
2336
- * @memberof CustomerInformationModel
2601
+ * @memberof CrmNoteEntity
2337
2602
  */
2338
- 'addressLine2'?: string;
2603
+ 'customerId'?: string;
2339
2604
  /**
2340
- * End User Town/City
2605
+ * userId
2606
+ * @type {number}
2607
+ * @memberof CrmNoteEntity
2608
+ */
2609
+ 'userId'?: number;
2610
+ /**
2611
+ * type
2341
2612
  * @type {string}
2342
- * @memberof CustomerInformationModel
2613
+ * @memberof CrmNoteEntity
2343
2614
  */
2344
- 'addressCity'?: string;
2615
+ 'type'?: string;
2345
2616
  /**
2346
- * End User Postal Code
2617
+ * note
2347
2618
  * @type {string}
2348
- * @memberof CustomerInformationModel
2619
+ * @memberof CrmNoteEntity
2349
2620
  */
2350
- 'addressPostcode'?: string;
2621
+ 'note'?: string;
2351
2622
  /**
2352
- * End User Company Name
2623
+ * timestamp
2353
2624
  * @type {string}
2354
- * @memberof CustomerInformationModel
2625
+ * @memberof CrmNoteEntity
2355
2626
  */
2356
- 'companyName'?: string;
2627
+ 'timestamp'?: string;
2357
2628
  /**
2358
- * End User Contact First Name
2629
+ * journalTime
2359
2630
  * @type {string}
2360
- * @memberof CustomerInformationModel
2631
+ * @memberof CrmNoteEntity
2361
2632
  */
2362
- 'contactFirstName'?: string;
2633
+ 'journalTime'?: string;
2363
2634
  /**
2364
- * End User Contact Surname
2635
+ * duration
2365
2636
  * @type {string}
2366
- * @memberof CustomerInformationModel
2637
+ * @memberof CrmNoteEntity
2367
2638
  */
2368
- 'contactLastName'?: string;
2369
- }
2370
- /**
2371
- * Order Item Request
2372
- * @export
2373
- * @interface CustomerItemRequestDTO
2374
- */
2375
- export interface CustomerItemRequestDTO {
2639
+ 'duration'?: string;
2376
2640
  /**
2377
- * SKU
2641
+ * callType
2378
2642
  * @type {string}
2379
- * @memberof CustomerItemRequestDTO
2643
+ * @memberof CrmNoteEntity
2380
2644
  */
2381
- 'sku'?: string;
2645
+ 'callType'?: string;
2382
2646
  /**
2383
- * Quantity
2647
+ * callId
2384
2648
  * @type {number}
2385
- * @memberof CustomerItemRequestDTO
2649
+ * @memberof CrmNoteEntity
2386
2650
  */
2387
- 'quantity'?: number;
2651
+ 'callId'?: number;
2652
+ }
2653
+ /**
2654
+ * CrmNotesEntity
2655
+ * @export
2656
+ * @interface CrmNoteModel
2657
+ */
2658
+ export interface CrmNoteModel {
2388
2659
  /**
2389
- * ID
2660
+ * id
2390
2661
  * @type {number}
2391
- * @memberof CustomerItemRequestDTO
2662
+ * @memberof CrmNoteModel
2392
2663
  */
2393
- 'id'?: number | null;
2664
+ 'id'?: number;
2394
2665
  /**
2395
- * 3CX Licence Key
2666
+ * customerId
2396
2667
  * @type {string}
2397
- * @memberof CustomerItemRequestDTO
2398
- */
2399
- 'licenceKey'?: string | null;
2400
- /**
2401
- * 3CX Hosting
2402
- * @type {boolean}
2403
- * @memberof CustomerItemRequestDTO
2668
+ * @memberof CrmNoteModel
2404
2669
  */
2405
- 'hosting'?: boolean | null;
2670
+ 'customerId'?: string;
2406
2671
  /**
2407
- * 3CX Renewal Years (Upgrade only)
2672
+ * userId
2408
2673
  * @type {number}
2409
- * @memberof CustomerItemRequestDTO
2674
+ * @memberof CrmNoteModel
2410
2675
  */
2411
- 'renewalYears'?: number | null;
2676
+ 'userId'?: number;
2412
2677
  /**
2413
- * Date Time
2678
+ * type
2414
2679
  * @type {string}
2415
- * @memberof CustomerItemRequestDTO
2680
+ * @memberof CrmNoteModel
2416
2681
  */
2417
- 'processDate'?: string;
2682
+ 'type'?: string;
2418
2683
  /**
2419
- * 3CX Sales Code
2684
+ * note
2420
2685
  * @type {string}
2421
- * @memberof CustomerItemRequestDTO
2686
+ * @memberof CrmNoteModel
2422
2687
  */
2423
- 'tcxSalesCode'?: string | null;
2688
+ 'note'?: string;
2689
+ /**
2690
+ * timestamp
2691
+ * @type {string}
2692
+ * @memberof CrmNoteModel
2693
+ */
2694
+ 'timestamp'?: string;
2695
+ /**
2696
+ * journalTime
2697
+ * @type {string}
2698
+ * @memberof CrmNoteModel
2699
+ */
2700
+ 'journalTime'?: string;
2701
+ /**
2702
+ * duration
2703
+ * @type {string}
2704
+ * @memberof CrmNoteModel
2705
+ */
2706
+ 'duration'?: string;
2707
+ /**
2708
+ * callType
2709
+ * @type {string}
2710
+ * @memberof CrmNoteModel
2711
+ */
2712
+ 'callType'?: string;
2713
+ /**
2714
+ * callId
2715
+ * @type {number}
2716
+ * @memberof CrmNoteModel
2717
+ */
2718
+ 'callId'?: number;
2719
+ }
2720
+ /**
2721
+ * SIP Trunk Customer
2722
+ * @export
2723
+ * @interface CustomerInformationModel
2724
+ */
2725
+ export interface CustomerInformationModel {
2726
+ /**
2727
+ * End User Address Line 1
2728
+ * @type {string}
2729
+ * @memberof CustomerInformationModel
2730
+ */
2731
+ 'addressLine1'?: string;
2732
+ /**
2733
+ * End User Address Line 2
2734
+ * @type {string}
2735
+ * @memberof CustomerInformationModel
2736
+ */
2737
+ 'addressLine2'?: string;
2738
+ /**
2739
+ * End User Town/City
2740
+ * @type {string}
2741
+ * @memberof CustomerInformationModel
2742
+ */
2743
+ 'addressCity'?: string;
2744
+ /**
2745
+ * End User Postal Code
2746
+ * @type {string}
2747
+ * @memberof CustomerInformationModel
2748
+ */
2749
+ 'addressPostcode'?: string;
2750
+ /**
2751
+ * End User Company Name
2752
+ * @type {string}
2753
+ * @memberof CustomerInformationModel
2754
+ */
2755
+ 'companyName'?: string;
2756
+ /**
2757
+ * End User Contact First Name
2758
+ * @type {string}
2759
+ * @memberof CustomerInformationModel
2760
+ */
2761
+ 'contactFirstName'?: string;
2762
+ /**
2763
+ * End User Contact Surname
2764
+ * @type {string}
2765
+ * @memberof CustomerInformationModel
2766
+ */
2767
+ 'contactLastName'?: string;
2768
+ }
2769
+ /**
2770
+ * Order Item Request
2771
+ * @export
2772
+ * @interface CustomerItemRequestDTO
2773
+ */
2774
+ export interface CustomerItemRequestDTO {
2775
+ /**
2776
+ * SKU
2777
+ * @type {string}
2778
+ * @memberof CustomerItemRequestDTO
2779
+ */
2780
+ 'sku'?: string;
2781
+ /**
2782
+ * Quantity
2783
+ * @type {number}
2784
+ * @memberof CustomerItemRequestDTO
2785
+ */
2786
+ 'quantity'?: number;
2787
+ /**
2788
+ * ID
2789
+ * @type {number}
2790
+ * @memberof CustomerItemRequestDTO
2791
+ */
2792
+ 'id'?: number | null;
2793
+ /**
2794
+ * 3CX Licence Key
2795
+ * @type {string}
2796
+ * @memberof CustomerItemRequestDTO
2797
+ */
2798
+ 'licenceKey'?: string | null;
2799
+ /**
2800
+ * 3CX Hosting
2801
+ * @type {boolean}
2802
+ * @memberof CustomerItemRequestDTO
2803
+ */
2804
+ 'hosting'?: boolean | null;
2805
+ /**
2806
+ * 3CX Renewal Years (Upgrade only)
2807
+ * @type {number}
2808
+ * @memberof CustomerItemRequestDTO
2809
+ */
2810
+ 'renewalYears'?: number | null;
2811
+ /**
2812
+ * Date Time
2813
+ * @type {string}
2814
+ * @memberof CustomerItemRequestDTO
2815
+ */
2816
+ 'processDate'?: string;
2817
+ /**
2818
+ * 3CX Sales Code
2819
+ * @type {string}
2820
+ * @memberof CustomerItemRequestDTO
2821
+ */
2822
+ 'tcxSalesCode'?: string | null;
2424
2823
  /**
2425
2824
  * SBCS
2426
2825
  * @type {Array<TcxSbcDTO>}
@@ -2434,6 +2833,91 @@ export interface CustomerItemRequestDTO {
2434
2833
  */
2435
2834
  'readOnly'?: boolean;
2436
2835
  }
2836
+ /**
2837
+ * Customer List Account
2838
+ * @export
2839
+ * @interface CustomerListAccountDTO
2840
+ */
2841
+ export interface CustomerListAccountDTO {
2842
+ /**
2843
+ * ID
2844
+ * @type {number}
2845
+ * @memberof CustomerListAccountDTO
2846
+ */
2847
+ 'id'?: number;
2848
+ /**
2849
+ * Xero ID
2850
+ * @type {string}
2851
+ * @memberof CustomerListAccountDTO
2852
+ */
2853
+ 'xeroId'?: string;
2854
+ /**
2855
+ * Account Number
2856
+ * @type {string}
2857
+ * @memberof CustomerListAccountDTO
2858
+ */
2859
+ 'accountNumber'?: string;
2860
+ /**
2861
+ * Company Name
2862
+ * @type {string}
2863
+ * @memberof CustomerListAccountDTO
2864
+ */
2865
+ 'company'?: string;
2866
+ /**
2867
+ * Associated Email Domains
2868
+ * @type {Array<string>}
2869
+ * @memberof CustomerListAccountDTO
2870
+ */
2871
+ 'domains'?: Array<string>;
2872
+ /**
2873
+ * Telephone
2874
+ * @type {string}
2875
+ * @memberof CustomerListAccountDTO
2876
+ */
2877
+ 'telephone'?: string;
2878
+ /**
2879
+ * VAT Number
2880
+ * @type {string}
2881
+ * @memberof CustomerListAccountDTO
2882
+ */
2883
+ 'vatNumber'?: string;
2884
+ /**
2885
+ * Company Number
2886
+ * @type {string}
2887
+ * @memberof CustomerListAccountDTO
2888
+ */
2889
+ 'companyNumber'?: string;
2890
+ /**
2891
+ * Wizard CNAME
2892
+ * @type {string}
2893
+ * @memberof CustomerListAccountDTO
2894
+ */
2895
+ 'cname'?: string;
2896
+ /**
2897
+ * 3CX Reseller ID
2898
+ * @type {string}
2899
+ * @memberof CustomerListAccountDTO
2900
+ */
2901
+ 'partnerId'?: string;
2902
+ /**
2903
+ * Account Status
2904
+ * @type {boolean}
2905
+ * @memberof CustomerListAccountDTO
2906
+ */
2907
+ 'status'?: boolean;
2908
+ /**
2909
+ * Portal Access
2910
+ * @type {boolean}
2911
+ * @memberof CustomerListAccountDTO
2912
+ */
2913
+ 'portalAccess'?: boolean;
2914
+ /**
2915
+ * Prize Promo
2916
+ * @type {boolean}
2917
+ * @memberof CustomerListAccountDTO
2918
+ */
2919
+ 'prizePromo'?: boolean;
2920
+ }
2437
2921
  /**
2438
2922
  * Order Request
2439
2923
  * @export
@@ -4427,6 +4911,19 @@ export interface NavigationModel {
4427
4911
  */
4428
4912
  'openNewPage'?: boolean;
4429
4913
  }
4914
+ /**
4915
+ *
4916
+ * @export
4917
+ * @interface NumberPortAdminNoteBody
4918
+ */
4919
+ export interface NumberPortAdminNoteBody {
4920
+ /**
4921
+ * Note
4922
+ * @type {string}
4923
+ * @memberof NumberPortAdminNoteBody
4924
+ */
4925
+ 'note'?: string;
4926
+ }
4430
4927
  /**
4431
4928
  * Number Port Response
4432
4929
  * @export
@@ -5906,92 +6403,287 @@ export interface OrderedItemModel {
5906
6403
  'returnedStock'?: number;
5907
6404
  }
5908
6405
  /**
5909
- *
6406
+ * 3CX Partner Details
5910
6407
  * @export
5911
- * @interface PatchSetTcxWizardCnameRequest
6408
+ * @interface PartnerDTO
5912
6409
  */
5913
- export interface PatchSetTcxWizardCnameRequest {
6410
+ export interface PartnerDTO {
5914
6411
  /**
5915
- * CNAME
6412
+ * 3CX Partner ID
5916
6413
  * @type {string}
5917
- * @memberof PatchSetTcxWizardCnameRequest
6414
+ * @memberof PartnerDTO
5918
6415
  */
5919
- 'cname'?: string;
5920
- }
5921
- /**
5922
- *
5923
- * @export
5924
- * @interface PatchUpdateAccountContactPasswordRequest
5925
- */
5926
- export interface PatchUpdateAccountContactPasswordRequest {
6416
+ 'partnerId'?: string | null;
5927
6417
  /**
5928
- * Password
6418
+ * 3CX Partner Company Name
5929
6419
  * @type {string}
5930
- * @memberof PatchUpdateAccountContactPasswordRequest
6420
+ * @memberof PartnerDTO
5931
6421
  */
5932
- 'password'?: string;
5933
- }
5934
- /**
5935
- * Customer Account
5936
- * @export
5937
- * @interface PortalAccountModel
5938
- */
5939
- export interface PortalAccountModel {
6422
+ 'companyName'?: string;
5940
6423
  /**
5941
- * ID
5942
- * @type {number}
5943
- * @memberof PortalAccountModel
6424
+ * 3CX Partner Contact Name
6425
+ * @type {string}
6426
+ * @memberof PartnerDTO
5944
6427
  */
5945
- 'id'?: number;
6428
+ 'contactName'?: string;
5946
6429
  /**
5947
- * Contact Name
6430
+ * 3CX Partner Contact Phone
5948
6431
  * @type {string}
5949
- * @memberof PortalAccountModel
6432
+ * @memberof PartnerDTO
5950
6433
  */
5951
- 'name'?: string;
6434
+ 'contactPhone'?: string;
5952
6435
  /**
5953
- * Email
6436
+ * 3CX Partner Contact Email
5954
6437
  * @type {string}
5955
- * @memberof PortalAccountModel
6438
+ * @memberof PartnerDTO
5956
6439
  */
5957
- 'email'?: string;
6440
+ 'contactEmail'?: string;
5958
6441
  /**
5959
- * Phone Number
6442
+ * 3CX Partner Level
5960
6443
  * @type {string}
5961
- * @memberof PortalAccountModel
6444
+ * @memberof PartnerDTO
5962
6445
  */
5963
- 'phone'?: string;
6446
+ 'partnerLevel'?: string;
5964
6447
  /**
5965
- * Company Name
5966
- * @type {string}
5967
- * @memberof PortalAccountModel
6448
+ * 3CX Partner Licence Discount Percent
6449
+ * @type {number}
6450
+ * @memberof PartnerDTO
5968
6451
  */
5969
- 'company'?: string;
6452
+ 'licenceDiscountPercent'?: number;
5970
6453
  /**
5971
- * Company Registration Number
5972
- * @type {string}
5973
- * @memberof PortalAccountModel
6454
+ * 3CX Partner Hosting Discount Percent
6455
+ * @type {number}
6456
+ * @memberof PartnerDTO
5974
6457
  */
5975
- 'companyNumber'?: string;
6458
+ 'hostingDisountPercent'?: number;
5976
6459
  /**
5977
- * VAT Number
5978
- * @type {string}
5979
- * @memberof PortalAccountModel
6460
+ * 3CX Hosting Price List ID
6461
+ * @type {number}
6462
+ * @memberof PartnerDTO
5980
6463
  */
5981
- 'vatNumber'?: string;
6464
+ 'hostingPriceListId'?: number;
5982
6465
  /**
5983
- * Address Line 1
6466
+ * 3CX Installation URL
5984
6467
  * @type {string}
5985
- * @memberof PortalAccountModel
6468
+ * @memberof PartnerDTO
5986
6469
  */
5987
- 'addressLine1'?: string;
6470
+ 'installationUrl'?: string;
6471
+ }
6472
+ /**
6473
+ *
6474
+ * @export
6475
+ * @interface PatchUpdateAccountCnameRequest
6476
+ */
6477
+ export interface PatchUpdateAccountCnameRequest {
5988
6478
  /**
5989
- * Address Line 2
6479
+ * CNAME
5990
6480
  * @type {string}
5991
- * @memberof PortalAccountModel
6481
+ * @memberof PatchUpdateAccountCnameRequest
5992
6482
  */
5993
- 'addressLine2'?: string;
5994
- /**
6483
+ 'cname'?: string;
6484
+ }
6485
+ /**
6486
+ *
6487
+ * @export
6488
+ * @interface PatchUpdateAccountCompanyNumberRequest
6489
+ */
6490
+ export interface PatchUpdateAccountCompanyNumberRequest {
6491
+ /**
6492
+ * Company Number
6493
+ * @type {string}
6494
+ * @memberof PatchUpdateAccountCompanyNumberRequest
6495
+ */
6496
+ 'companyNumber'?: string;
6497
+ }
6498
+ /**
6499
+ *
6500
+ * @export
6501
+ * @interface PatchUpdateAccountContactPasswordRequest
6502
+ */
6503
+ export interface PatchUpdateAccountContactPasswordRequest {
6504
+ /**
6505
+ * Password
6506
+ * @type {string}
6507
+ * @memberof PatchUpdateAccountContactPasswordRequest
6508
+ */
6509
+ 'password'?: string;
6510
+ }
6511
+ /**
6512
+ *
6513
+ * @export
6514
+ * @interface PatchUpdateAccountPhoneRequest
6515
+ */
6516
+ export interface PatchUpdateAccountPhoneRequest {
6517
+ /**
6518
+ * Phone
6519
+ * @type {string}
6520
+ * @memberof PatchUpdateAccountPhoneRequest
6521
+ */
6522
+ 'phone'?: string;
6523
+ }
6524
+ /**
6525
+ *
6526
+ * @export
6527
+ * @interface PatchUpdateAccountVatNumberRequest
6528
+ */
6529
+ export interface PatchUpdateAccountVatNumberRequest {
6530
+ /**
6531
+ * VAT Number
6532
+ * @type {string}
6533
+ * @memberof PatchUpdateAccountVatNumberRequest
6534
+ */
6535
+ 'vatNumber'?: string;
6536
+ }
6537
+ /**
6538
+ *
6539
+ * @export
6540
+ * @interface PatchUpdateCreditLimitRequest
6541
+ */
6542
+ export interface PatchUpdateCreditLimitRequest {
6543
+ /**
6544
+ * Credit Limit
6545
+ * @type {number}
6546
+ * @memberof PatchUpdateCreditLimitRequest
6547
+ */
6548
+ 'creditLimit'?: number;
6549
+ }
6550
+ /**
6551
+ *
6552
+ * @export
6553
+ * @interface PatchUpdatePriceListRequest
6554
+ */
6555
+ export interface PatchUpdatePriceListRequest {
6556
+ /**
6557
+ * Price List
6558
+ * @type {string}
6559
+ * @memberof PatchUpdatePriceListRequest
6560
+ */
6561
+ 'priceList'?: PatchUpdatePriceListRequestPriceListEnum;
6562
+ }
6563
+
6564
+ export const PatchUpdatePriceListRequestPriceListEnum = {
6565
+ Rrp: 'RRP',
6566
+ Trade: 'Trade',
6567
+ Wholesale: 'Wholesale',
6568
+ Itsp: 'ITSP',
6569
+ SubDisti: 'Sub Disti',
6570
+ Distributor: 'Distributor',
6571
+ HotelDisti: 'Hotel Disti'
6572
+ } as const;
6573
+
6574
+ export type PatchUpdatePriceListRequestPriceListEnum = typeof PatchUpdatePriceListRequestPriceListEnum[keyof typeof PatchUpdatePriceListRequestPriceListEnum];
6575
+
6576
+ /**
6577
+ *
6578
+ * @export
6579
+ * @interface PatchUpdateSipChannelCostRequest
6580
+ */
6581
+ export interface PatchUpdateSipChannelCostRequest {
6582
+ /**
6583
+ * SIP Channel Cost
6584
+ * @type {number}
6585
+ * @memberof PatchUpdateSipChannelCostRequest
6586
+ */
6587
+ 'channelCost'?: number;
6588
+ }
6589
+ /**
6590
+ *
6591
+ * @export
6592
+ * @interface PatchUpdateTcxHostingPriceListRequest
6593
+ */
6594
+ export interface PatchUpdateTcxHostingPriceListRequest {
6595
+ /**
6596
+ * Price List
6597
+ * @type {string}
6598
+ * @memberof PatchUpdateTcxHostingPriceListRequest
6599
+ */
6600
+ 'priceList'?: PatchUpdateTcxHostingPriceListRequestPriceListEnum;
6601
+ }
6602
+
6603
+ export const PatchUpdateTcxHostingPriceListRequestPriceListEnum = {
6604
+ _1: '1',
6605
+ _2: '2',
6606
+ _3: '3',
6607
+ _4: '4',
6608
+ _5: '5'
6609
+ } as const;
6610
+
6611
+ export type PatchUpdateTcxHostingPriceListRequestPriceListEnum = typeof PatchUpdateTcxHostingPriceListRequestPriceListEnum[keyof typeof PatchUpdateTcxHostingPriceListRequestPriceListEnum];
6612
+
6613
+ /**
6614
+ *
6615
+ * @export
6616
+ * @interface PatchUpdateTcxPartnerIdRequest
6617
+ */
6618
+ export interface PatchUpdateTcxPartnerIdRequest {
6619
+ /**
6620
+ * Set Account 3CX Partner ID
6621
+ * @type {string}
6622
+ * @memberof PatchUpdateTcxPartnerIdRequest
6623
+ */
6624
+ 'partnerId'?: string | null;
6625
+ }
6626
+ /**
6627
+ * Customer Account
6628
+ * @export
6629
+ * @interface PortalAccountModel
6630
+ */
6631
+ export interface PortalAccountModel {
6632
+ /**
6633
+ * ID
6634
+ * @type {number}
6635
+ * @memberof PortalAccountModel
6636
+ */
6637
+ 'id'?: number;
6638
+ /**
6639
+ * Contact Name
6640
+ * @type {string}
6641
+ * @memberof PortalAccountModel
6642
+ */
6643
+ 'name'?: string;
6644
+ /**
6645
+ * Email
6646
+ * @type {string}
6647
+ * @memberof PortalAccountModel
6648
+ */
6649
+ 'email'?: string;
6650
+ /**
6651
+ * Phone Number
6652
+ * @type {string}
6653
+ * @memberof PortalAccountModel
6654
+ */
6655
+ 'phone'?: string;
6656
+ /**
6657
+ * Company Name
6658
+ * @type {string}
6659
+ * @memberof PortalAccountModel
6660
+ */
6661
+ 'company'?: string;
6662
+ /**
6663
+ * Company Registration Number
6664
+ * @type {string}
6665
+ * @memberof PortalAccountModel
6666
+ */
6667
+ 'companyNumber'?: string;
6668
+ /**
6669
+ * VAT Number
6670
+ * @type {string}
6671
+ * @memberof PortalAccountModel
6672
+ */
6673
+ 'vatNumber'?: string;
6674
+ /**
6675
+ * Address Line 1
6676
+ * @type {string}
6677
+ * @memberof PortalAccountModel
6678
+ */
6679
+ 'addressLine1'?: string;
6680
+ /**
6681
+ * Address Line 2
6682
+ * @type {string}
6683
+ * @memberof PortalAccountModel
6684
+ */
6685
+ 'addressLine2'?: string;
6686
+ /**
5995
6687
  * City
5996
6688
  * @type {string}
5997
6689
  * @memberof PortalAccountModel
@@ -6063,6 +6755,18 @@ export interface PortalAccountModel {
6063
6755
  * @memberof PortalAccountModel
6064
6756
  */
6065
6757
  'prizePromo'?: boolean;
6758
+ /**
6759
+ * Portal Access
6760
+ * @type {boolean}
6761
+ * @memberof PortalAccountModel
6762
+ */
6763
+ 'portalAccess'?: boolean;
6764
+ /**
6765
+ * Wizard CNAME
6766
+ * @type {string}
6767
+ * @memberof PortalAccountModel
6768
+ */
6769
+ 'cname'?: string;
6066
6770
  /**
6067
6771
  * Active Direct Debit Mandate
6068
6772
  * @type {boolean}
@@ -6075,12 +6779,6 @@ export interface PortalAccountModel {
6075
6779
  * @memberof PortalAccountModel
6076
6780
  */
6077
6781
  'navigation'?: Array<NavigationModel>;
6078
- /**
6079
- * Wizard CNAME
6080
- * @type {string}
6081
- * @memberof PortalAccountModel
6082
- */
6083
- 'cname'?: string;
6084
6782
  }
6085
6783
  /**
6086
6784
  * Portal Login
@@ -6131,19 +6829,6 @@ export interface PortalLoginModel {
6131
6829
  */
6132
6830
  'redirect_uri'?: string;
6133
6831
  }
6134
- /**
6135
- *
6136
- * @export
6137
- * @interface PostAddAdminNoteRequest
6138
- */
6139
- export interface PostAddAdminNoteRequest {
6140
- /**
6141
- * Note
6142
- * @type {string}
6143
- * @memberof PostAddAdminNoteRequest
6144
- */
6145
- 'note'?: string;
6146
- }
6147
6832
  /**
6148
6833
  *
6149
6834
  * @export
@@ -6186,39 +6871,15 @@ export interface PostGetClientCredentialsRequest {
6186
6871
  /**
6187
6872
  *
6188
6873
  * @export
6189
- * @interface PostGetProductForCustomerRequest
6874
+ * @interface PostSendWelcomeEmailRequest
6190
6875
  */
6191
- export interface PostGetProductForCustomerRequest {
6192
- /**
6193
- * Quantity
6194
- * @type {number}
6195
- * @memberof PostGetProductForCustomerRequest
6196
- */
6197
- 'quantity'?: number | null;
6198
- /**
6199
- * 3CX Licence Key
6200
- * @type {string}
6201
- * @memberof PostGetProductForCustomerRequest
6202
- */
6203
- 'licenceKey'?: string | null;
6204
- /**
6205
- * 3CX Hosting
6206
- * @type {boolean}
6207
- * @memberof PostGetProductForCustomerRequest
6208
- */
6209
- 'hosting'?: boolean | null;
6876
+ export interface PostSendWelcomeEmailRequest {
6210
6877
  /**
6211
- * 3CX Sales Code
6878
+ * email
6212
6879
  * @type {string}
6213
- * @memberof PostGetProductForCustomerRequest
6214
- */
6215
- 'tcxSalesCode'?: string | null;
6216
- /**
6217
- * 3CX Renewal Years (Upgrade Only)
6218
- * @type {number}
6219
- * @memberof PostGetProductForCustomerRequest
6880
+ * @memberof PostSendWelcomeEmailRequest
6220
6881
  */
6221
- 'renewalYears'?: number | null;
6882
+ 'email'?: string;
6222
6883
  }
6223
6884
  /**
6224
6885
  *
@@ -6393,6 +7054,67 @@ export interface ProductPriceListItemModel {
6393
7054
  */
6394
7055
  'brand'?: string | null;
6395
7056
  }
7057
+ /**
7058
+ * Product Search
7059
+ * @export
7060
+ * @interface ProductSearchDTO
7061
+ */
7062
+ export interface ProductSearchDTO {
7063
+ /**
7064
+ * SKU
7065
+ * @type {string}
7066
+ * @memberof ProductSearchDTO
7067
+ */
7068
+ 'sku'?: string | null;
7069
+ /**
7070
+ * Quantity
7071
+ * @type {number}
7072
+ * @memberof ProductSearchDTO
7073
+ */
7074
+ 'quantity'?: number | null;
7075
+ /**
7076
+ * Licence Key
7077
+ * @type {string}
7078
+ * @memberof ProductSearchDTO
7079
+ */
7080
+ 'licenceKey'?: string | null;
7081
+ /**
7082
+ * Hosting
7083
+ * @type {boolean}
7084
+ * @memberof ProductSearchDTO
7085
+ */
7086
+ 'hosting'?: boolean | null;
7087
+ /**
7088
+ * 3CX Sales Code
7089
+ * @type {string}
7090
+ * @memberof ProductSearchDTO
7091
+ */
7092
+ 'tcxSalesCode'?: string | null;
7093
+ /**
7094
+ * 3CX Renewal Years
7095
+ * @type {number}
7096
+ * @memberof ProductSearchDTO
7097
+ */
7098
+ 'renewalYears'?: number | null;
7099
+ /**
7100
+ * Order ID
7101
+ * @type {number}
7102
+ * @memberof ProductSearchDTO
7103
+ */
7104
+ 'orderId'?: number | null;
7105
+ /**
7106
+ * Items
7107
+ * @type {Array<CustomerItemRequestDTO>}
7108
+ * @memberof ProductSearchDTO
7109
+ */
7110
+ 'items'?: Array<CustomerItemRequestDTO> | null;
7111
+ /**
7112
+ * Discount
7113
+ * @type {number}
7114
+ * @memberof ProductSearchDTO
7115
+ */
7116
+ 'discount'?: number | null;
7117
+ }
6396
7118
  /**
6397
7119
  * Product Search Results
6398
7120
  * @export
@@ -6503,6 +7225,12 @@ export interface ProductSummaryDTO {
6503
7225
  * @memberof ProductSummaryDTO
6504
7226
  */
6505
7227
  'hosting'?: boolean | null;
7228
+ /**
7229
+ * Applied Discounts
7230
+ * @type {Array<AbstractItemDiscountModel>}
7231
+ * @memberof ProductSummaryDTO
7232
+ */
7233
+ 'discounts'?: Array<AbstractItemDiscountModel>;
6506
7234
  }
6507
7235
  /**
6508
7236
  * PromoCodesEntity
@@ -6686,6 +7414,12 @@ export interface ProspectDTO {
6686
7414
  * @memberof ProspectDTO
6687
7415
  */
6688
7416
  'status'?: ProspectDTOStatusEnum;
7417
+ /**
7418
+ * Order Count
7419
+ * @type {number}
7420
+ * @memberof ProspectDTO
7421
+ */
7422
+ 'orderCount'?: number;
6689
7423
  }
6690
7424
 
6691
7425
  export const ProspectDTOStatusEnum = {
@@ -6693,7 +7427,8 @@ export const ProspectDTOStatusEnum = {
6693
7427
  CallBackDue: 'Call Back Due',
6694
7428
  NoOrdersPlaced: 'No Orders Placed',
6695
7429
  NoOrdersInTheLast4Months: 'No Orders In The Last 4 Months',
6696
- NoActionRequired: 'No Action Required'
7430
+ NoActionRequired: 'No Action Required',
7431
+ DoNotCall: 'Do Not Call'
6697
7432
  } as const;
6698
7433
 
6699
7434
  export type ProspectDTOStatusEnum = typeof ProspectDTOStatusEnum[keyof typeof ProspectDTOStatusEnum];
@@ -6890,7 +7625,13 @@ export interface RecordingBackupAzureModel {
6890
7625
  */
6891
7626
  'connection_string'?: string;
6892
7627
  /**
6893
- * Recordings Path
7628
+ * SAS Url
7629
+ * @type {string}
7630
+ * @memberof RecordingBackupAzureModel
7631
+ */
7632
+ 'sasUrl'?: string;
7633
+ /**
7634
+ * Recordings Path
6894
7635
  * @type {string}
6895
7636
  * @memberof RecordingBackupAzureModel
6896
7637
  */
@@ -9743,6 +10484,61 @@ export interface SupportTicketModel {
9743
10484
  */
9744
10485
  'conversations'?: Array<ConversationModel>;
9745
10486
  }
10487
+ /**
10488
+ * TableAttribsEntity
10489
+ * @export
10490
+ * @interface TableHistoryEntity
10491
+ */
10492
+ export interface TableHistoryEntity {
10493
+ /**
10494
+ * ownerId
10495
+ * @type {string}
10496
+ * @memberof TableHistoryEntity
10497
+ */
10498
+ 'ownerId'?: string;
10499
+ /**
10500
+ * table
10501
+ * @type {string}
10502
+ * @memberof TableHistoryEntity
10503
+ */
10504
+ 'dbTable'?: string;
10505
+ /**
10506
+ * orderingField
10507
+ * @type {string}
10508
+ * @memberof TableHistoryEntity
10509
+ */
10510
+ 'orderingField'?: string;
10511
+ /**
10512
+ * asc
10513
+ * @type {number}
10514
+ * @memberof TableHistoryEntity
10515
+ */
10516
+ 'asc'?: number;
10517
+ /**
10518
+ * perPage
10519
+ * @type {number}
10520
+ * @memberof TableHistoryEntity
10521
+ */
10522
+ 'perPage'?: number;
10523
+ /**
10524
+ * currPage
10525
+ * @type {number}
10526
+ * @memberof TableHistoryEntity
10527
+ */
10528
+ 'currPage'?: number;
10529
+ /**
10530
+ * filter
10531
+ * @type {string}
10532
+ * @memberof TableHistoryEntity
10533
+ */
10534
+ 'filter'?: string;
10535
+ /**
10536
+ * page
10537
+ * @type {number}
10538
+ * @memberof TableHistoryEntity
10539
+ */
10540
+ 'page'?: number;
10541
+ }
9746
10542
  /**
9747
10543
  * 3CX Wizard Restore From Backup
9748
10544
  * @export
@@ -12144,6 +12940,76 @@ export interface XeroLogEntity {
12144
12940
  */
12145
12941
  export const AccountsApiAxiosParamCreator = function (configuration?: Configuration) {
12146
12942
  return {
12943
+ /**
12944
+ * Delete Account Contact
12945
+ * @param {string} id Account Xero ID
12946
+ * @param {number} contactId Contact ID
12947
+ * @param {*} [options] Override http request option.
12948
+ * @throws {RequiredError}
12949
+ */
12950
+ deleteAdminUpdateAccountContact: async (id: string, contactId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12951
+ // verify required parameter 'id' is not null or undefined
12952
+ assertParamExists('deleteAdminUpdateAccountContact', 'id', id)
12953
+ // verify required parameter 'contactId' is not null or undefined
12954
+ assertParamExists('deleteAdminUpdateAccountContact', 'contactId', contactId)
12955
+ const localVarPath = `/admin/accounts/{id}/contacts/{contact_id}`
12956
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
12957
+ .replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId)));
12958
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12959
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12960
+ let baseOptions;
12961
+ if (configuration) {
12962
+ baseOptions = configuration.baseOptions;
12963
+ }
12964
+
12965
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
12966
+ const localVarHeaderParameter = {} as any;
12967
+ const localVarQueryParameter = {} as any;
12968
+
12969
+
12970
+
12971
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12972
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12973
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12974
+
12975
+ return {
12976
+ url: toPathString(localVarUrlObj),
12977
+ options: localVarRequestOptions,
12978
+ };
12979
+ },
12980
+ /**
12981
+ * Delete Account
12982
+ * @param {string} id Account Xero ID
12983
+ * @param {*} [options] Override http request option.
12984
+ * @throws {RequiredError}
12985
+ */
12986
+ deleteArchiveAccount: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12987
+ // verify required parameter 'id' is not null or undefined
12988
+ assertParamExists('deleteArchiveAccount', 'id', id)
12989
+ const localVarPath = `/admin/accounts/{id}/archive`
12990
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
12991
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12992
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12993
+ let baseOptions;
12994
+ if (configuration) {
12995
+ baseOptions = configuration.baseOptions;
12996
+ }
12997
+
12998
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
12999
+ const localVarHeaderParameter = {} as any;
13000
+ const localVarQueryParameter = {} as any;
13001
+
13002
+
13003
+
13004
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13005
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13006
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13007
+
13008
+ return {
13009
+ url: toPathString(localVarUrlObj),
13010
+ options: localVarRequestOptions,
13011
+ };
13012
+ },
12147
13013
  /**
12148
13014
  * Delete client credentials
12149
13015
  * @summary Delete client credentials
@@ -12203,6 +13069,39 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12203
13069
 
12204
13070
 
12205
13071
 
13072
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13073
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13074
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13075
+
13076
+ return {
13077
+ url: toPathString(localVarUrlObj),
13078
+ options: localVarRequestOptions,
13079
+ };
13080
+ },
13081
+ /**
13082
+ * Get Account Contacts
13083
+ * @param {string} id Account Xero ID
13084
+ * @param {*} [options] Override http request option.
13085
+ * @throws {RequiredError}
13086
+ */
13087
+ getAdminCreateAccountContact: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13088
+ // verify required parameter 'id' is not null or undefined
13089
+ assertParamExists('getAdminCreateAccountContact', 'id', id)
13090
+ const localVarPath = `/admin/accounts/{id}/contacts`
13091
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13092
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13093
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13094
+ let baseOptions;
13095
+ if (configuration) {
13096
+ baseOptions = configuration.baseOptions;
13097
+ }
13098
+
13099
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13100
+ const localVarHeaderParameter = {} as any;
13101
+ const localVarQueryParameter = {} as any;
13102
+
13103
+
13104
+
12206
13105
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12207
13106
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12208
13107
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -12233,6 +13132,39 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12233
13132
 
12234
13133
 
12235
13134
 
13135
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13136
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13137
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13138
+
13139
+ return {
13140
+ url: toPathString(localVarUrlObj),
13141
+ options: localVarRequestOptions,
13142
+ };
13143
+ },
13144
+ /**
13145
+ * Get Account Addresses
13146
+ * @param {string} id Xero ID
13147
+ * @param {*} [options] Override http request option.
13148
+ * @throws {RequiredError}
13149
+ */
13150
+ getGetAccountAddresses: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13151
+ // verify required parameter 'id' is not null or undefined
13152
+ assertParamExists('getGetAccountAddresses', 'id', id)
13153
+ const localVarPath = `/admin/accounts/{id}/addresses`
13154
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13155
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13156
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13157
+ let baseOptions;
13158
+ if (configuration) {
13159
+ baseOptions = configuration.baseOptions;
13160
+ }
13161
+
13162
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13163
+ const localVarHeaderParameter = {} as any;
13164
+ const localVarQueryParameter = {} as any;
13165
+
13166
+
13167
+
12236
13168
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12237
13169
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12238
13170
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -12392,13 +13324,12 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12392
13324
  };
12393
13325
  },
12394
13326
  /**
12395
- * Get 3CX Keys
12396
- * @summary Get 3CX Keys
13327
+ * Get Customer Accounts List
12397
13328
  * @param {*} [options] Override http request option.
12398
13329
  * @throws {RequiredError}
12399
13330
  */
12400
- getGetCustomerKeys: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12401
- const localVarPath = `/accounts/me/tcx/keys`;
13331
+ getGetCustomerAccountsList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13332
+ const localVarPath = `/admin/accounts/customers/list`;
12402
13333
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12403
13334
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12404
13335
  let baseOptions;
@@ -12422,16 +13353,13 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12422
13353
  };
12423
13354
  },
12424
13355
  /**
12425
- * Verify account email address
12426
- * @summary Verify account email address
12427
- * @param {string} token Verification Token
13356
+ * Get 3CX Keys
13357
+ * @summary Get 3CX Keys
12428
13358
  * @param {*} [options] Override http request option.
12429
13359
  * @throws {RequiredError}
12430
13360
  */
12431
- getVerifyEmailAddress: async (token: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12432
- // verify required parameter 'token' is not null or undefined
12433
- assertParamExists('getVerifyEmailAddress', 'token', token)
12434
- const localVarPath = `/accounts/contacts/verify`;
13361
+ getGetCustomerKeys: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13362
+ const localVarPath = `/accounts/me/tcx/keys`;
12435
13363
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12436
13364
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12437
13365
  let baseOptions;
@@ -12443,10 +13371,6 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12443
13371
  const localVarHeaderParameter = {} as any;
12444
13372
  const localVarQueryParameter = {} as any;
12445
13373
 
12446
- if (token !== undefined) {
12447
- localVarQueryParameter['token'] = token;
12448
- }
12449
-
12450
13374
 
12451
13375
 
12452
13376
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -12459,13 +13383,16 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12459
13383
  };
12460
13384
  },
12461
13385
  /**
12462
- * Set 3CX Wizard CNAME
12463
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
13386
+ * Get Account Finance
13387
+ * @param {string} id Account Xero ID
12464
13388
  * @param {*} [options] Override http request option.
12465
13389
  * @throws {RequiredError}
12466
13390
  */
12467
- patchSetTcxWizardCname: async (patchSetTcxWizardCnameRequest?: PatchSetTcxWizardCnameRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12468
- const localVarPath = `/accounts/me/cname`;
13391
+ getGetFinanceSettings: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13392
+ // verify required parameter 'id' is not null or undefined
13393
+ assertParamExists('getGetFinanceSettings', 'id', id)
13394
+ const localVarPath = `/admin/accounts/{id}/finance`
13395
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
12469
13396
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12470
13397
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12471
13398
  let baseOptions;
@@ -12473,18 +13400,15 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12473
13400
  baseOptions = configuration.baseOptions;
12474
13401
  }
12475
13402
 
12476
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13403
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12477
13404
  const localVarHeaderParameter = {} as any;
12478
13405
  const localVarQueryParameter = {} as any;
12479
13406
 
12480
13407
 
12481
13408
 
12482
- localVarHeaderParameter['Content-Type'] = 'application/json';
12483
-
12484
13409
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12485
13410
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12486
13411
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12487
- localVarRequestOptions.data = serializeDataIfNeeded(patchSetTcxWizardCnameRequest, localVarRequestOptions, configuration)
12488
13412
 
12489
13413
  return {
12490
13414
  url: toPathString(localVarUrlObj),
@@ -12492,17 +13416,13 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12492
13416
  };
12493
13417
  },
12494
13418
  /**
12495
- * Update Account Password
12496
- * @summary Update Account Password
12497
- * @param {string} token Verification Token
12498
- * @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
13419
+ * Get Last Account
13420
+ * @summary Get Last Account
12499
13421
  * @param {*} [options] Override http request option.
12500
13422
  * @throws {RequiredError}
12501
13423
  */
12502
- patchUpdateAccountContactPassword: async (token: string, patchUpdateAccountContactPasswordRequest?: PatchUpdateAccountContactPasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12503
- // verify required parameter 'token' is not null or undefined
12504
- assertParamExists('patchUpdateAccountContactPassword', 'token', token)
12505
- const localVarPath = `/accounts/contacts/password`;
13424
+ getGetLastAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13425
+ const localVarPath = `/admin/accounts/last`;
12506
13426
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12507
13427
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12508
13428
  let baseOptions;
@@ -12510,22 +13430,15 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12510
13430
  baseOptions = configuration.baseOptions;
12511
13431
  }
12512
13432
 
12513
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13433
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12514
13434
  const localVarHeaderParameter = {} as any;
12515
13435
  const localVarQueryParameter = {} as any;
12516
13436
 
12517
- if (token !== undefined) {
12518
- localVarQueryParameter['token'] = token;
12519
- }
12520
-
12521
13437
 
12522
13438
 
12523
- localVarHeaderParameter['Content-Type'] = 'application/json';
12524
-
12525
13439
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12526
13440
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12527
13441
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12528
- localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountContactPasswordRequest, localVarRequestOptions, configuration)
12529
13442
 
12530
13443
  return {
12531
13444
  url: toPathString(localVarUrlObj),
@@ -12533,14 +13446,16 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12533
13446
  };
12534
13447
  },
12535
13448
  /**
12536
- * Add Account Contacts
12537
- * @summary Add Account Contact
12538
- * @param {AccountContactRequestModel} [accountContactRequestModel] New account request
13449
+ * Get Account 3CX Details
13450
+ * @param {string} id Xero ID
12539
13451
  * @param {*} [options] Override http request option.
12540
13452
  * @throws {RequiredError}
12541
13453
  */
12542
- postGetAccountContacts: async (accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12543
- const localVarPath = `/accounts/me/contacts`;
13454
+ getGetTcxPartnerDetails: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13455
+ // verify required parameter 'id' is not null or undefined
13456
+ assertParamExists('getGetTcxPartnerDetails', 'id', id)
13457
+ const localVarPath = `/admin/accounts/{id}/tcx/partner`
13458
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
12544
13459
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12545
13460
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12546
13461
  let baseOptions;
@@ -12548,18 +13463,15 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12548
13463
  baseOptions = configuration.baseOptions;
12549
13464
  }
12550
13465
 
12551
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13466
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12552
13467
  const localVarHeaderParameter = {} as any;
12553
13468
  const localVarQueryParameter = {} as any;
12554
13469
 
12555
13470
 
12556
13471
 
12557
- localVarHeaderParameter['Content-Type'] = 'application/json';
12558
-
12559
13472
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12560
13473
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12561
13474
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12562
- localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
12563
13475
 
12564
13476
  return {
12565
13477
  url: toPathString(localVarUrlObj),
@@ -12567,14 +13479,16 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12567
13479
  };
12568
13480
  },
12569
13481
  /**
12570
- * Create new customer account
12571
- * @summary Create a new customer account
12572
- * @param {AccountRequestModel} [accountRequestModel] New account request
13482
+ * Verify account email address
13483
+ * @summary Verify account email address
13484
+ * @param {string} token Verification Token
12573
13485
  * @param {*} [options] Override http request option.
12574
13486
  * @throws {RequiredError}
12575
13487
  */
12576
- postGetAccounts: async (accountRequestModel?: AccountRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12577
- const localVarPath = `/accounts`;
13488
+ getVerifyEmailAddress: async (token: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13489
+ // verify required parameter 'token' is not null or undefined
13490
+ assertParamExists('getVerifyEmailAddress', 'token', token)
13491
+ const localVarPath = `/accounts/contacts/verify`;
12578
13492
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12579
13493
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12580
13494
  let baseOptions;
@@ -12582,18 +13496,19 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12582
13496
  baseOptions = configuration.baseOptions;
12583
13497
  }
12584
13498
 
12585
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13499
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12586
13500
  const localVarHeaderParameter = {} as any;
12587
13501
  const localVarQueryParameter = {} as any;
12588
13502
 
13503
+ if (token !== undefined) {
13504
+ localVarQueryParameter['token'] = token;
13505
+ }
13506
+
12589
13507
 
12590
13508
 
12591
- localVarHeaderParameter['Content-Type'] = 'application/json';
12592
-
12593
13509
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12594
13510
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12595
13511
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12596
- localVarRequestOptions.data = serializeDataIfNeeded(accountRequestModel, localVarRequestOptions, configuration)
12597
13512
 
12598
13513
  return {
12599
13514
  url: toPathString(localVarUrlObj),
@@ -12601,13 +13516,20 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12601
13516
  };
12602
13517
  },
12603
13518
  /**
12604
- * Get Admin Account
12605
- * @summary Get Admin Account
13519
+ * Set Account Portal Access
13520
+ * @param {string} id Xero ID
13521
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
12606
13522
  * @param {*} [options] Override http request option.
12607
13523
  * @throws {RequiredError}
12608
13524
  */
12609
- postGetAdminAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12610
- const localVarPath = `/admin/me`;
13525
+ patchSetPortalAccess: async (id: string, state: PatchSetPortalAccessStateEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13526
+ // verify required parameter 'id' is not null or undefined
13527
+ assertParamExists('patchSetPortalAccess', 'id', id)
13528
+ // verify required parameter 'state' is not null or undefined
13529
+ assertParamExists('patchSetPortalAccess', 'state', state)
13530
+ const localVarPath = `/admin/accounts/{id}/portal/access/{state}`
13531
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
13532
+ .replace(`{${"state"}}`, encodeURIComponent(String(state)));
12611
13533
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12612
13534
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12613
13535
  let baseOptions;
@@ -12615,7 +13537,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12615
13537
  baseOptions = configuration.baseOptions;
12616
13538
  }
12617
13539
 
12618
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13540
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
12619
13541
  const localVarHeaderParameter = {} as any;
12620
13542
  const localVarQueryParameter = {} as any;
12621
13543
 
@@ -12631,14 +13553,20 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12631
13553
  };
12632
13554
  },
12633
13555
  /**
12634
- * Create client credentials
12635
- * @summary Create client credentials
12636
- * @param {PostGetClientCredentialsRequest} [postGetClientCredentialsRequest] New client credentials request
13556
+ * Set Account Prize Promo
13557
+ * @param {string} id Xero ID
13558
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
12637
13559
  * @param {*} [options] Override http request option.
12638
13560
  * @throws {RequiredError}
12639
13561
  */
12640
- postGetClientCredentials: async (postGetClientCredentialsRequest?: PostGetClientCredentialsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12641
- const localVarPath = `/accounts/me/contacts/credentials`;
13562
+ patchSetPrizePromo: async (id: string, state: PatchSetPrizePromoStateEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13563
+ // verify required parameter 'id' is not null or undefined
13564
+ assertParamExists('patchSetPrizePromo', 'id', id)
13565
+ // verify required parameter 'state' is not null or undefined
13566
+ assertParamExists('patchSetPrizePromo', 'state', state)
13567
+ const localVarPath = `/admin/accounts/{id}/prizes/{state}`
13568
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
13569
+ .replace(`{${"state"}}`, encodeURIComponent(String(state)));
12642
13570
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12643
13571
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12644
13572
  let baseOptions;
@@ -12646,18 +13574,15 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12646
13574
  baseOptions = configuration.baseOptions;
12647
13575
  }
12648
13576
 
12649
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13577
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
12650
13578
  const localVarHeaderParameter = {} as any;
12651
13579
  const localVarQueryParameter = {} as any;
12652
13580
 
12653
13581
 
12654
13582
 
12655
- localVarHeaderParameter['Content-Type'] = 'application/json';
12656
-
12657
13583
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12658
13584
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12659
13585
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12660
- localVarRequestOptions.data = serializeDataIfNeeded(postGetClientCredentialsRequest, localVarRequestOptions, configuration)
12661
13586
 
12662
13587
  return {
12663
13588
  url: toPathString(localVarUrlObj),
@@ -12665,17 +13590,13 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12665
13590
  };
12666
13591
  },
12667
13592
  /**
12668
- * Send email verification email
12669
- * @summary Send email verification email
12670
- * @param {string} email Email Address
13593
+ * Set 3CX Wizard CNAME
13594
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
12671
13595
  * @param {*} [options] Override http request option.
12672
13596
  * @throws {RequiredError}
12673
13597
  */
12674
- postSendEmailVerificationEmail: async (email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12675
- // verify required parameter 'email' is not null or undefined
12676
- assertParamExists('postSendEmailVerificationEmail', 'email', email)
12677
- const localVarPath = `/accounts/contacts/verify/{email}`
12678
- .replace(`{${"email"}}`, encodeURIComponent(String(email)));
13598
+ patchSetTcxWizardCname: async (patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13599
+ const localVarPath = `/accounts/me/cname`;
12679
13600
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12680
13601
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12681
13602
  let baseOptions;
@@ -12683,15 +13604,18 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12683
13604
  baseOptions = configuration.baseOptions;
12684
13605
  }
12685
13606
 
12686
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13607
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
12687
13608
  const localVarHeaderParameter = {} as any;
12688
13609
  const localVarQueryParameter = {} as any;
12689
13610
 
12690
13611
 
12691
13612
 
13613
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13614
+
12692
13615
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12693
13616
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12694
13617
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13618
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountCnameRequest, localVarRequestOptions, configuration)
12695
13619
 
12696
13620
  return {
12697
13621
  url: toPathString(localVarUrlObj),
@@ -12699,16 +13623,17 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12699
13623
  };
12700
13624
  },
12701
13625
  /**
12702
- * Send password reset email
12703
- * @summary Send password reset email
12704
- * @param {string} email Email Address
13626
+ * Set Account CNAME
13627
+ * @param {string} id Xero ID
13628
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
12705
13629
  * @param {*} [options] Override http request option.
12706
13630
  * @throws {RequiredError}
12707
13631
  */
12708
- postSendPasswordReset: async (email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12709
- // verify required parameter 'email' is not null or undefined
12710
- assertParamExists('postSendPasswordReset', 'email', email)
12711
- const localVarPath = `/accounts/contacts/password/reset`;
13632
+ patchUpdateAccountCname: async (id: string, patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13633
+ // verify required parameter 'id' is not null or undefined
13634
+ assertParamExists('patchUpdateAccountCname', 'id', id)
13635
+ const localVarPath = `/admin/accounts/{id}/cname`
13636
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
12712
13637
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12713
13638
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12714
13639
  let baseOptions;
@@ -12716,19 +13641,55 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12716
13641
  baseOptions = configuration.baseOptions;
12717
13642
  }
12718
13643
 
12719
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13644
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
12720
13645
  const localVarHeaderParameter = {} as any;
12721
13646
  const localVarQueryParameter = {} as any;
12722
13647
 
12723
- if (email !== undefined) {
12724
- localVarQueryParameter['email'] = email;
13648
+
13649
+
13650
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13651
+
13652
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13653
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13654
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13655
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountCnameRequest, localVarRequestOptions, configuration)
13656
+
13657
+ return {
13658
+ url: toPathString(localVarUrlObj),
13659
+ options: localVarRequestOptions,
13660
+ };
13661
+ },
13662
+ /**
13663
+ * Set Account Company Number
13664
+ * @param {string} id Xero ID
13665
+ * @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
13666
+ * @param {*} [options] Override http request option.
13667
+ * @throws {RequiredError}
13668
+ */
13669
+ patchUpdateAccountCompanyNumber: async (id: string, patchUpdateAccountCompanyNumberRequest?: PatchUpdateAccountCompanyNumberRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13670
+ // verify required parameter 'id' is not null or undefined
13671
+ assertParamExists('patchUpdateAccountCompanyNumber', 'id', id)
13672
+ const localVarPath = `/admin/accounts/{id}/companyNumber`
13673
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13674
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13675
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13676
+ let baseOptions;
13677
+ if (configuration) {
13678
+ baseOptions = configuration.baseOptions;
12725
13679
  }
12726
13680
 
13681
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13682
+ const localVarHeaderParameter = {} as any;
13683
+ const localVarQueryParameter = {} as any;
13684
+
12727
13685
 
12728
13686
 
13687
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13688
+
12729
13689
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12730
13690
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12731
13691
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13692
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountCompanyNumberRequest, localVarRequestOptions, configuration)
12732
13693
 
12733
13694
  return {
12734
13695
  url: toPathString(localVarUrlObj),
@@ -12736,16 +13697,17 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12736
13697
  };
12737
13698
  },
12738
13699
  /**
12739
- * Submit reseller application
12740
- * @summary Submit reseller application
12741
- * @param {number} [creditRequired] Credit Required
12742
- * @param {string} [companyNumber] Company Number
12743
- * @param {string} [vatNumber] VAT Number
13700
+ * Update Account Password
13701
+ * @summary Update Account Password
13702
+ * @param {string} token Verification Token
13703
+ * @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
12744
13704
  * @param {*} [options] Override http request option.
12745
13705
  * @throws {RequiredError}
12746
13706
  */
12747
- postSubmitResellerApplication: async (creditRequired?: number, companyNumber?: string, vatNumber?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12748
- const localVarPath = `/accounts/reseller`;
13707
+ patchUpdateAccountContactPassword: async (token: string, patchUpdateAccountContactPasswordRequest?: PatchUpdateAccountContactPasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13708
+ // verify required parameter 'token' is not null or undefined
13709
+ assertParamExists('patchUpdateAccountContactPassword', 'token', token)
13710
+ const localVarPath = `/accounts/contacts/password`;
12749
13711
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12750
13712
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12751
13713
  let baseOptions;
@@ -12753,27 +13715,133 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12753
13715
  baseOptions = configuration.baseOptions;
12754
13716
  }
12755
13717
 
12756
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13718
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
12757
13719
  const localVarHeaderParameter = {} as any;
12758
13720
  const localVarQueryParameter = {} as any;
12759
13721
 
12760
- if (creditRequired !== undefined) {
12761
- localVarQueryParameter['creditRequired'] = creditRequired;
13722
+ if (token !== undefined) {
13723
+ localVarQueryParameter['token'] = token;
12762
13724
  }
12763
13725
 
12764
- if (companyNumber !== undefined) {
12765
- localVarQueryParameter['companyNumber'] = companyNumber;
13726
+
13727
+
13728
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13729
+
13730
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13731
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13732
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13733
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountContactPasswordRequest, localVarRequestOptions, configuration)
13734
+
13735
+ return {
13736
+ url: toPathString(localVarUrlObj),
13737
+ options: localVarRequestOptions,
13738
+ };
13739
+ },
13740
+ /**
13741
+ * Set Account Phone
13742
+ * @param {string} id Xero ID
13743
+ * @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
13744
+ * @param {*} [options] Override http request option.
13745
+ * @throws {RequiredError}
13746
+ */
13747
+ patchUpdateAccountPhone: async (id: string, patchUpdateAccountPhoneRequest?: PatchUpdateAccountPhoneRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13748
+ // verify required parameter 'id' is not null or undefined
13749
+ assertParamExists('patchUpdateAccountPhone', 'id', id)
13750
+ const localVarPath = `/admin/accounts/{id}/phone`
13751
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13752
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13753
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13754
+ let baseOptions;
13755
+ if (configuration) {
13756
+ baseOptions = configuration.baseOptions;
12766
13757
  }
12767
13758
 
12768
- if (vatNumber !== undefined) {
12769
- localVarQueryParameter['vatNumber'] = vatNumber;
13759
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13760
+ const localVarHeaderParameter = {} as any;
13761
+ const localVarQueryParameter = {} as any;
13762
+
13763
+
13764
+
13765
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13766
+
13767
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13768
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13769
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13770
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountPhoneRequest, localVarRequestOptions, configuration)
13771
+
13772
+ return {
13773
+ url: toPathString(localVarUrlObj),
13774
+ options: localVarRequestOptions,
13775
+ };
13776
+ },
13777
+ /**
13778
+ * Set Account VAT Number
13779
+ * @param {string} id Xero ID
13780
+ * @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
13781
+ * @param {*} [options] Override http request option.
13782
+ * @throws {RequiredError}
13783
+ */
13784
+ patchUpdateAccountVatNumber: async (id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13785
+ // verify required parameter 'id' is not null or undefined
13786
+ assertParamExists('patchUpdateAccountVatNumber', 'id', id)
13787
+ const localVarPath = `/admin/accounts/{id}/vatNumber`
13788
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13789
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13790
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13791
+ let baseOptions;
13792
+ if (configuration) {
13793
+ baseOptions = configuration.baseOptions;
13794
+ }
13795
+
13796
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13797
+ const localVarHeaderParameter = {} as any;
13798
+ const localVarQueryParameter = {} as any;
13799
+
13800
+
13801
+
13802
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13803
+
13804
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13805
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13806
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13807
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateAccountVatNumberRequest, localVarRequestOptions, configuration)
13808
+
13809
+ return {
13810
+ url: toPathString(localVarUrlObj),
13811
+ options: localVarRequestOptions,
13812
+ };
13813
+ },
13814
+ /**
13815
+ * Set Account Credit Limit
13816
+ * @param {string} id Xero ID
13817
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
13818
+ * @param {*} [options] Override http request option.
13819
+ * @throws {RequiredError}
13820
+ */
13821
+ patchUpdateCreditLimit: async (id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13822
+ // verify required parameter 'id' is not null or undefined
13823
+ assertParamExists('patchUpdateCreditLimit', 'id', id)
13824
+ const localVarPath = `/admin/accounts/{id}/creditLimit`
13825
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13826
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13827
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13828
+ let baseOptions;
13829
+ if (configuration) {
13830
+ baseOptions = configuration.baseOptions;
12770
13831
  }
12771
13832
 
13833
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13834
+ const localVarHeaderParameter = {} as any;
13835
+ const localVarQueryParameter = {} as any;
13836
+
12772
13837
 
12773
13838
 
13839
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13840
+
12774
13841
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12775
13842
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12776
13843
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13844
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateCreditLimitRequest, localVarRequestOptions, configuration)
12777
13845
 
12778
13846
  return {
12779
13847
  url: toPathString(localVarUrlObj),
@@ -12781,18 +13849,17 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12781
13849
  };
12782
13850
  },
12783
13851
  /**
12784
- * Update Account Contacts
12785
- * @summary Update Account Contact
12786
- * @param {string} email Contact Email Address
12787
- * @param {AccountContactRequestModel} [accountContactRequestModel] Account request
13852
+ * Set Account Price List
13853
+ * @param {string} id Xero ID
13854
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
12788
13855
  * @param {*} [options] Override http request option.
12789
13856
  * @throws {RequiredError}
12790
13857
  */
12791
- putUpdateAccountContact: async (email: string, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12792
- // verify required parameter 'email' is not null or undefined
12793
- assertParamExists('putUpdateAccountContact', 'email', email)
12794
- const localVarPath = `/accounts/me/contacts/{email}`
12795
- .replace(`{${"email"}}`, encodeURIComponent(String(email)));
13858
+ patchUpdatePriceList: async (id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13859
+ // verify required parameter 'id' is not null or undefined
13860
+ assertParamExists('patchUpdatePriceList', 'id', id)
13861
+ const localVarPath = `/admin/accounts/{id}/priceList`
13862
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
12796
13863
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12797
13864
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12798
13865
  let baseOptions;
@@ -12800,7 +13867,7 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12800
13867
  baseOptions = configuration.baseOptions;
12801
13868
  }
12802
13869
 
12803
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
13870
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
12804
13871
  const localVarHeaderParameter = {} as any;
12805
13872
  const localVarQueryParameter = {} as any;
12806
13873
 
@@ -12811,164 +13878,1002 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
12811
13878
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12812
13879
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12813
13880
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12814
- localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
13881
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdatePriceListRequest, localVarRequestOptions, configuration)
12815
13882
 
12816
13883
  return {
12817
13884
  url: toPathString(localVarUrlObj),
12818
13885
  options: localVarRequestOptions,
12819
13886
  };
12820
13887
  },
12821
- }
12822
- };
13888
+ /**
13889
+ * Set Account SIP Channel Cost
13890
+ * @param {string} id Xero ID
13891
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
13892
+ * @param {*} [options] Override http request option.
13893
+ * @throws {RequiredError}
13894
+ */
13895
+ patchUpdateSipChannelCost: async (id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13896
+ // verify required parameter 'id' is not null or undefined
13897
+ assertParamExists('patchUpdateSipChannelCost', 'id', id)
13898
+ const localVarPath = `/admin/accounts/{id}/channelCost`
13899
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13900
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13901
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13902
+ let baseOptions;
13903
+ if (configuration) {
13904
+ baseOptions = configuration.baseOptions;
13905
+ }
12823
13906
 
12824
- /**
12825
- * AccountsApi - functional programming interface
12826
- * @export
12827
- */
12828
- export const AccountsApiFp = function(configuration?: Configuration) {
12829
- const localVarAxiosParamCreator = AccountsApiAxiosParamCreator(configuration)
12830
- return {
13907
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13908
+ const localVarHeaderParameter = {} as any;
13909
+ const localVarQueryParameter = {} as any;
13910
+
13911
+
13912
+
13913
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13914
+
13915
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13916
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13917
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13918
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateSipChannelCostRequest, localVarRequestOptions, configuration)
13919
+
13920
+ return {
13921
+ url: toPathString(localVarUrlObj),
13922
+ options: localVarRequestOptions,
13923
+ };
13924
+ },
13925
+ /**
13926
+ * Set Account 3CX Hosting Price List
13927
+ * @param {string} id Xero ID
13928
+ * @param {PatchUpdateTcxHostingPriceListRequest} [patchUpdateTcxHostingPriceListRequest] 3CX Hosting Price List Request
13929
+ * @param {*} [options] Override http request option.
13930
+ * @throws {RequiredError}
13931
+ */
13932
+ patchUpdateTcxHostingPriceList: async (id: string, patchUpdateTcxHostingPriceListRequest?: PatchUpdateTcxHostingPriceListRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13933
+ // verify required parameter 'id' is not null or undefined
13934
+ assertParamExists('patchUpdateTcxHostingPriceList', 'id', id)
13935
+ const localVarPath = `/admin/accounts/{id}/tcx/hosting/priceList`
13936
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13937
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13938
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13939
+ let baseOptions;
13940
+ if (configuration) {
13941
+ baseOptions = configuration.baseOptions;
13942
+ }
13943
+
13944
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13945
+ const localVarHeaderParameter = {} as any;
13946
+ const localVarQueryParameter = {} as any;
13947
+
13948
+
13949
+
13950
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13951
+
13952
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13953
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13954
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13955
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateTcxHostingPriceListRequest, localVarRequestOptions, configuration)
13956
+
13957
+ return {
13958
+ url: toPathString(localVarUrlObj),
13959
+ options: localVarRequestOptions,
13960
+ };
13961
+ },
13962
+ /**
13963
+ * Set Account 3CX Partner ID
13964
+ * @param {string} id Xero ID
13965
+ * @param {PatchUpdateTcxPartnerIdRequest} [patchUpdateTcxPartnerIdRequest] Set Account 3CX Partner ID
13966
+ * @param {*} [options] Override http request option.
13967
+ * @throws {RequiredError}
13968
+ */
13969
+ patchUpdateTcxPartnerId: async (id: string, patchUpdateTcxPartnerIdRequest?: PatchUpdateTcxPartnerIdRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13970
+ // verify required parameter 'id' is not null or undefined
13971
+ assertParamExists('patchUpdateTcxPartnerId', 'id', id)
13972
+ const localVarPath = `/admin/accounts{id}/tcx/partner/id`
13973
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13974
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13975
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13976
+ let baseOptions;
13977
+ if (configuration) {
13978
+ baseOptions = configuration.baseOptions;
13979
+ }
13980
+
13981
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13982
+ const localVarHeaderParameter = {} as any;
13983
+ const localVarQueryParameter = {} as any;
13984
+
13985
+
13986
+
13987
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13988
+
13989
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13990
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13991
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13992
+ localVarRequestOptions.data = serializeDataIfNeeded(patchUpdateTcxPartnerIdRequest, localVarRequestOptions, configuration)
13993
+
13994
+ return {
13995
+ url: toPathString(localVarUrlObj),
13996
+ options: localVarRequestOptions,
13997
+ };
13998
+ },
13999
+ /**
14000
+ * Create Account Contact
14001
+ * @param {string} id Account Xero ID
14002
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
14003
+ * @param {*} [options] Override http request option.
14004
+ * @throws {RequiredError}
14005
+ */
14006
+ postAdminCreateAccountContact: async (id: string, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14007
+ // verify required parameter 'id' is not null or undefined
14008
+ assertParamExists('postAdminCreateAccountContact', 'id', id)
14009
+ const localVarPath = `/admin/accounts/{id}/contacts`
14010
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
14011
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14012
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14013
+ let baseOptions;
14014
+ if (configuration) {
14015
+ baseOptions = configuration.baseOptions;
14016
+ }
14017
+
14018
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14019
+ const localVarHeaderParameter = {} as any;
14020
+ const localVarQueryParameter = {} as any;
14021
+
14022
+
14023
+
14024
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14025
+
14026
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14027
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14028
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14029
+ localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
14030
+
14031
+ return {
14032
+ url: toPathString(localVarUrlObj),
14033
+ options: localVarRequestOptions,
14034
+ };
14035
+ },
14036
+ /**
14037
+ * Add Account Contacts
14038
+ * @summary Add Account Contact
14039
+ * @param {AccountContactRequestModel} [accountContactRequestModel] New account request
14040
+ * @param {*} [options] Override http request option.
14041
+ * @throws {RequiredError}
14042
+ */
14043
+ postGetAccountContacts: async (accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14044
+ const localVarPath = `/accounts/me/contacts`;
14045
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14046
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14047
+ let baseOptions;
14048
+ if (configuration) {
14049
+ baseOptions = configuration.baseOptions;
14050
+ }
14051
+
14052
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14053
+ const localVarHeaderParameter = {} as any;
14054
+ const localVarQueryParameter = {} as any;
14055
+
14056
+
14057
+
14058
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14059
+
14060
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14061
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14062
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14063
+ localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
14064
+
14065
+ return {
14066
+ url: toPathString(localVarUrlObj),
14067
+ options: localVarRequestOptions,
14068
+ };
14069
+ },
14070
+ /**
14071
+ * Create new customer account
14072
+ * @summary Create a new customer account
14073
+ * @param {AccountRequestModel} [accountRequestModel] New account request
14074
+ * @param {*} [options] Override http request option.
14075
+ * @throws {RequiredError}
14076
+ */
14077
+ postGetAccounts: async (accountRequestModel?: AccountRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14078
+ const localVarPath = `/accounts`;
14079
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14080
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14081
+ let baseOptions;
14082
+ if (configuration) {
14083
+ baseOptions = configuration.baseOptions;
14084
+ }
14085
+
14086
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14087
+ const localVarHeaderParameter = {} as any;
14088
+ const localVarQueryParameter = {} as any;
14089
+
14090
+
14091
+
14092
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14093
+
14094
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14095
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14096
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14097
+ localVarRequestOptions.data = serializeDataIfNeeded(accountRequestModel, localVarRequestOptions, configuration)
14098
+
14099
+ return {
14100
+ url: toPathString(localVarUrlObj),
14101
+ options: localVarRequestOptions,
14102
+ };
14103
+ },
14104
+ /**
14105
+ * Get Admin Account
14106
+ * @summary Get Admin Account
14107
+ * @param {*} [options] Override http request option.
14108
+ * @throws {RequiredError}
14109
+ */
14110
+ postGetAdminAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14111
+ const localVarPath = `/admin/me`;
14112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14113
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14114
+ let baseOptions;
14115
+ if (configuration) {
14116
+ baseOptions = configuration.baseOptions;
14117
+ }
14118
+
14119
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14120
+ const localVarHeaderParameter = {} as any;
14121
+ const localVarQueryParameter = {} as any;
14122
+
14123
+
14124
+
14125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14127
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14128
+
14129
+ return {
14130
+ url: toPathString(localVarUrlObj),
14131
+ options: localVarRequestOptions,
14132
+ };
14133
+ },
14134
+ /**
14135
+ * Create client credentials
14136
+ * @summary Create client credentials
14137
+ * @param {PostGetClientCredentialsRequest} [postGetClientCredentialsRequest] New client credentials request
14138
+ * @param {*} [options] Override http request option.
14139
+ * @throws {RequiredError}
14140
+ */
14141
+ postGetClientCredentials: async (postGetClientCredentialsRequest?: PostGetClientCredentialsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14142
+ const localVarPath = `/accounts/me/contacts/credentials`;
14143
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14144
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14145
+ let baseOptions;
14146
+ if (configuration) {
14147
+ baseOptions = configuration.baseOptions;
14148
+ }
14149
+
14150
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14151
+ const localVarHeaderParameter = {} as any;
14152
+ const localVarQueryParameter = {} as any;
14153
+
14154
+
14155
+
14156
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14157
+
14158
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14159
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14160
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14161
+ localVarRequestOptions.data = serializeDataIfNeeded(postGetClientCredentialsRequest, localVarRequestOptions, configuration)
14162
+
14163
+ return {
14164
+ url: toPathString(localVarUrlObj),
14165
+ options: localVarRequestOptions,
14166
+ };
14167
+ },
14168
+ /**
14169
+ * Send email verification email
14170
+ * @summary Send email verification email
14171
+ * @param {string} email Email Address
14172
+ * @param {*} [options] Override http request option.
14173
+ * @throws {RequiredError}
14174
+ */
14175
+ postSendEmailVerificationEmail: async (email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14176
+ // verify required parameter 'email' is not null or undefined
14177
+ assertParamExists('postSendEmailVerificationEmail', 'email', email)
14178
+ const localVarPath = `/accounts/contacts/verify/{email}`
14179
+ .replace(`{${"email"}}`, encodeURIComponent(String(email)));
14180
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14181
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14182
+ let baseOptions;
14183
+ if (configuration) {
14184
+ baseOptions = configuration.baseOptions;
14185
+ }
14186
+
14187
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14188
+ const localVarHeaderParameter = {} as any;
14189
+ const localVarQueryParameter = {} as any;
14190
+
14191
+
14192
+
14193
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14194
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14195
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14196
+
14197
+ return {
14198
+ url: toPathString(localVarUrlObj),
14199
+ options: localVarRequestOptions,
14200
+ };
14201
+ },
14202
+ /**
14203
+ * Send password reset email
14204
+ * @summary Send password reset email
14205
+ * @param {string} email Email Address
14206
+ * @param {*} [options] Override http request option.
14207
+ * @throws {RequiredError}
14208
+ */
14209
+ postSendPasswordReset: async (email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14210
+ // verify required parameter 'email' is not null or undefined
14211
+ assertParamExists('postSendPasswordReset', 'email', email)
14212
+ const localVarPath = `/accounts/contacts/password/reset`;
14213
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14214
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14215
+ let baseOptions;
14216
+ if (configuration) {
14217
+ baseOptions = configuration.baseOptions;
14218
+ }
14219
+
14220
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14221
+ const localVarHeaderParameter = {} as any;
14222
+ const localVarQueryParameter = {} as any;
14223
+
14224
+ if (email !== undefined) {
14225
+ localVarQueryParameter['email'] = email;
14226
+ }
14227
+
14228
+
14229
+
14230
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14231
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14232
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14233
+
14234
+ return {
14235
+ url: toPathString(localVarUrlObj),
14236
+ options: localVarRequestOptions,
14237
+ };
14238
+ },
14239
+ /**
14240
+ * Send Account Welcome Email
14241
+ * @param {string} id Xero ID
14242
+ * @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
14243
+ * @param {*} [options] Override http request option.
14244
+ * @throws {RequiredError}
14245
+ */
14246
+ postSendWelcomeEmail: async (id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14247
+ // verify required parameter 'id' is not null or undefined
14248
+ assertParamExists('postSendWelcomeEmail', 'id', id)
14249
+ const localVarPath = `/admin/accounts/{id}/email/welcome`
14250
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
14251
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14252
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14253
+ let baseOptions;
14254
+ if (configuration) {
14255
+ baseOptions = configuration.baseOptions;
14256
+ }
14257
+
14258
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14259
+ const localVarHeaderParameter = {} as any;
14260
+ const localVarQueryParameter = {} as any;
14261
+
14262
+
14263
+
14264
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14265
+
14266
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14267
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14268
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14269
+ localVarRequestOptions.data = serializeDataIfNeeded(postSendWelcomeEmailRequest, localVarRequestOptions, configuration)
14270
+
14271
+ return {
14272
+ url: toPathString(localVarUrlObj),
14273
+ options: localVarRequestOptions,
14274
+ };
14275
+ },
14276
+ /**
14277
+ * Submit reseller application
14278
+ * @summary Submit reseller application
14279
+ * @param {number} [creditRequired] Credit Required
14280
+ * @param {string} [companyNumber] Company Number
14281
+ * @param {string} [vatNumber] VAT Number
14282
+ * @param {*} [options] Override http request option.
14283
+ * @throws {RequiredError}
14284
+ */
14285
+ postSubmitResellerApplication: async (creditRequired?: number, companyNumber?: string, vatNumber?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14286
+ const localVarPath = `/accounts/reseller`;
14287
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14288
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14289
+ let baseOptions;
14290
+ if (configuration) {
14291
+ baseOptions = configuration.baseOptions;
14292
+ }
14293
+
14294
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14295
+ const localVarHeaderParameter = {} as any;
14296
+ const localVarQueryParameter = {} as any;
14297
+
14298
+ if (creditRequired !== undefined) {
14299
+ localVarQueryParameter['creditRequired'] = creditRequired;
14300
+ }
14301
+
14302
+ if (companyNumber !== undefined) {
14303
+ localVarQueryParameter['companyNumber'] = companyNumber;
14304
+ }
14305
+
14306
+ if (vatNumber !== undefined) {
14307
+ localVarQueryParameter['vatNumber'] = vatNumber;
14308
+ }
14309
+
14310
+
14311
+
14312
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14313
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14314
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14315
+
14316
+ return {
14317
+ url: toPathString(localVarUrlObj),
14318
+ options: localVarRequestOptions,
14319
+ };
14320
+ },
14321
+ /**
14322
+ * Update Account Contact
14323
+ * @param {string} id Account Xero ID
14324
+ * @param {number} contactId Contact ID
14325
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
14326
+ * @param {*} [options] Override http request option.
14327
+ * @throws {RequiredError}
14328
+ */
14329
+ putAdminUpdateAccountContact: async (id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14330
+ // verify required parameter 'id' is not null or undefined
14331
+ assertParamExists('putAdminUpdateAccountContact', 'id', id)
14332
+ // verify required parameter 'contactId' is not null or undefined
14333
+ assertParamExists('putAdminUpdateAccountContact', 'contactId', contactId)
14334
+ const localVarPath = `/admin/accounts/{id}/contacts/{contact_id}`
14335
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
14336
+ .replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId)));
14337
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14338
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14339
+ let baseOptions;
14340
+ if (configuration) {
14341
+ baseOptions = configuration.baseOptions;
14342
+ }
14343
+
14344
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14345
+ const localVarHeaderParameter = {} as any;
14346
+ const localVarQueryParameter = {} as any;
14347
+
14348
+
14349
+
14350
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14351
+
14352
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14353
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14354
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14355
+ localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
14356
+
14357
+ return {
14358
+ url: toPathString(localVarUrlObj),
14359
+ options: localVarRequestOptions,
14360
+ };
14361
+ },
14362
+ /**
14363
+ * Update Account Contacts
14364
+ * @summary Update Account Contact
14365
+ * @param {string} email Contact Email Address
14366
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Account request
14367
+ * @param {*} [options] Override http request option.
14368
+ * @throws {RequiredError}
14369
+ */
14370
+ putUpdateAccountContact: async (email: string, accountContactRequestModel?: AccountContactRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14371
+ // verify required parameter 'email' is not null or undefined
14372
+ assertParamExists('putUpdateAccountContact', 'email', email)
14373
+ const localVarPath = `/accounts/me/contacts/{email}`
14374
+ .replace(`{${"email"}}`, encodeURIComponent(String(email)));
14375
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14376
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14377
+ let baseOptions;
14378
+ if (configuration) {
14379
+ baseOptions = configuration.baseOptions;
14380
+ }
14381
+
14382
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14383
+ const localVarHeaderParameter = {} as any;
14384
+ const localVarQueryParameter = {} as any;
14385
+
14386
+
14387
+
14388
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14389
+
14390
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14391
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14392
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14393
+ localVarRequestOptions.data = serializeDataIfNeeded(accountContactRequestModel, localVarRequestOptions, configuration)
14394
+
14395
+ return {
14396
+ url: toPathString(localVarUrlObj),
14397
+ options: localVarRequestOptions,
14398
+ };
14399
+ },
14400
+ /**
14401
+ * Update Account Billing Address
14402
+ * @param {string} id Xero ID
14403
+ * @param {AddressDTO} [addressDTO] Updated Billing Address
14404
+ * @param {*} [options] Override http request option.
14405
+ * @throws {RequiredError}
14406
+ */
14407
+ putUpdateBillingAddress: async (id: string, addressDTO?: AddressDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14408
+ // verify required parameter 'id' is not null or undefined
14409
+ assertParamExists('putUpdateBillingAddress', 'id', id)
14410
+ const localVarPath = `/admin/accounts/{id}/billing/address`
14411
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
14412
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14413
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14414
+ let baseOptions;
14415
+ if (configuration) {
14416
+ baseOptions = configuration.baseOptions;
14417
+ }
14418
+
14419
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14420
+ const localVarHeaderParameter = {} as any;
14421
+ const localVarQueryParameter = {} as any;
14422
+
14423
+
14424
+
14425
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14426
+
14427
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14428
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14429
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14430
+ localVarRequestOptions.data = serializeDataIfNeeded(addressDTO, localVarRequestOptions, configuration)
14431
+
14432
+ return {
14433
+ url: toPathString(localVarUrlObj),
14434
+ options: localVarRequestOptions,
14435
+ };
14436
+ },
14437
+ /**
14438
+ * Update Account Shipping Address
14439
+ * @param {string} id Xero ID
14440
+ * @param {AddressDTO} [addressDTO] Updated Shipping Address
14441
+ * @param {*} [options] Override http request option.
14442
+ * @throws {RequiredError}
14443
+ */
14444
+ putUpdateShippingAddress: async (id: string, addressDTO?: AddressDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14445
+ // verify required parameter 'id' is not null or undefined
14446
+ assertParamExists('putUpdateShippingAddress', 'id', id)
14447
+ const localVarPath = `/admin/accounts/{id}/shipping/address`
14448
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
14449
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14450
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14451
+ let baseOptions;
14452
+ if (configuration) {
14453
+ baseOptions = configuration.baseOptions;
14454
+ }
14455
+
14456
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14457
+ const localVarHeaderParameter = {} as any;
14458
+ const localVarQueryParameter = {} as any;
14459
+
14460
+
14461
+
14462
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14463
+
14464
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14465
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14466
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14467
+ localVarRequestOptions.data = serializeDataIfNeeded(addressDTO, localVarRequestOptions, configuration)
14468
+
14469
+ return {
14470
+ url: toPathString(localVarUrlObj),
14471
+ options: localVarRequestOptions,
14472
+ };
14473
+ },
14474
+ }
14475
+ };
14476
+
14477
+ /**
14478
+ * AccountsApi - functional programming interface
14479
+ * @export
14480
+ */
14481
+ export const AccountsApiFp = function(configuration?: Configuration) {
14482
+ const localVarAxiosParamCreator = AccountsApiAxiosParamCreator(configuration)
14483
+ return {
14484
+ /**
14485
+ * Delete Account Contact
14486
+ * @param {string} id Account Xero ID
14487
+ * @param {number} contactId Contact ID
14488
+ * @param {*} [options] Override http request option.
14489
+ * @throws {RequiredError}
14490
+ */
14491
+ async deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
14492
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAdminUpdateAccountContact(id, contactId, options);
14493
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14494
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteAdminUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
14495
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14496
+ },
14497
+ /**
14498
+ * Delete Account
14499
+ * @param {string} id Account Xero ID
14500
+ * @param {*} [options] Override http request option.
14501
+ * @throws {RequiredError}
14502
+ */
14503
+ async deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
14504
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteArchiveAccount(id, options);
14505
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14506
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteArchiveAccount']?.[localVarOperationServerIndex]?.url;
14507
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14508
+ },
14509
+ /**
14510
+ * Delete client credentials
14511
+ * @summary Delete client credentials
14512
+ * @param {string} id OAuth 2.0 Client ID
14513
+ * @param {*} [options] Override http request option.
14514
+ * @throws {RequiredError}
14515
+ */
14516
+ async deleteDeleteClientCredentials(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
14517
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeleteClientCredentials(id, options);
14518
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14519
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteDeleteClientCredentials']?.[localVarOperationServerIndex]?.url;
14520
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14521
+ },
14522
+ /**
14523
+ * Delete Account Contacts
14524
+ * @summary Delete Account Contact
14525
+ * @param {string} email Contact Email Address
14526
+ * @param {*} [options] Override http request option.
14527
+ * @throws {RequiredError}
14528
+ */
14529
+ async deleteUpdateAccountContact(email: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
14530
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateAccountContact(email, options);
14531
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14532
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
14533
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14534
+ },
14535
+ /**
14536
+ * Get Account Contacts
14537
+ * @param {string} id Account Xero ID
14538
+ * @param {*} [options] Override http request option.
14539
+ * @throws {RequiredError}
14540
+ */
14541
+ async getAdminCreateAccountContact(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountContactModel>>> {
14542
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAdminCreateAccountContact(id, options);
14543
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14544
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getAdminCreateAccountContact']?.[localVarOperationServerIndex]?.url;
14545
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14546
+ },
14547
+ /**
14548
+ * Get Account
14549
+ * @summary Get Account
14550
+ * @param {*} [options] Override http request option.
14551
+ * @throws {RequiredError}
14552
+ */
14553
+ async getGetAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PortalAccountModel>> {
14554
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccount(options);
14555
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14556
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccount']?.[localVarOperationServerIndex]?.url;
14557
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14558
+ },
14559
+ /**
14560
+ * Get Account Addresses
14561
+ * @param {string} id Xero ID
14562
+ * @param {*} [options] Override http request option.
14563
+ * @throws {RequiredError}
14564
+ */
14565
+ async getGetAccountAddresses(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountAddressesDTO>> {
14566
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccountAddresses(id, options);
14567
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14568
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountAddresses']?.[localVarOperationServerIndex]?.url;
14569
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14570
+ },
14571
+ /**
14572
+ * Get Account Contacts
14573
+ * @summary Get Account Contacts
14574
+ * @param {string} [email] Contact Email Address
14575
+ * @param {*} [options] Override http request option.
14576
+ * @throws {RequiredError}
14577
+ */
14578
+ async getGetAccountContacts(email?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountContactModel>>> {
14579
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccountContacts(email, options);
14580
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14581
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountContacts']?.[localVarOperationServerIndex]?.url;
14582
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14583
+ },
14584
+ /**
14585
+ * Get Account Detailed Summary
14586
+ * @summary Get Account Detailed Summary
14587
+ * @param {number} id Customer ID
14588
+ * @param {*} [options] Override http request option.
14589
+ * @throws {RequiredError}
14590
+ */
14591
+ async getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountDetailedSummaryDTO>> {
14592
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options);
14593
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14594
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountDetailedSummary']?.[localVarOperationServerIndex]?.url;
14595
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14596
+ },
14597
+ /**
14598
+ * Get Accounts
14599
+ * @summary Get Accounts
14600
+ * @param {number} [pageSize] Number Of Results
14601
+ * @param {number} [page] Page Number
14602
+ * @param {string} [search] Search
14603
+ * @param {boolean} [active] Active
14604
+ * @param {*} [options] Override http request option.
14605
+ * @throws {RequiredError}
14606
+ */
14607
+ async getGetAccounts(pageSize?: number, page?: number, search?: string, active?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountsResponseModel>> {
14608
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccounts(pageSize, page, search, active, options);
14609
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14610
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccounts']?.[localVarOperationServerIndex]?.url;
14611
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14612
+ },
14613
+ /**
14614
+ * Get user\'s client credentials
14615
+ * @summary Get user\'s client credentials
14616
+ * @param {*} [options] Override http request option.
14617
+ * @throws {RequiredError}
14618
+ */
14619
+ async getGetClientCredentials(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ClientModel>>> {
14620
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetClientCredentials(options);
14621
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14622
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetClientCredentials']?.[localVarOperationServerIndex]?.url;
14623
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14624
+ },
14625
+ /**
14626
+ * Get Customer Accounts List
14627
+ * @param {*} [options] Override http request option.
14628
+ * @throws {RequiredError}
14629
+ */
14630
+ async getGetCustomerAccountsList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CustomerListAccountDTO>>> {
14631
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCustomerAccountsList(options);
14632
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14633
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetCustomerAccountsList']?.[localVarOperationServerIndex]?.url;
14634
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14635
+ },
14636
+ /**
14637
+ * Get 3CX Keys
14638
+ * @summary Get 3CX Keys
14639
+ * @param {*} [options] Override http request option.
14640
+ * @throws {RequiredError}
14641
+ */
14642
+ async getGetCustomerKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TcxKeySummaryDTO>>> {
14643
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCustomerKeys(options);
14644
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14645
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetCustomerKeys']?.[localVarOperationServerIndex]?.url;
14646
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14647
+ },
14648
+ /**
14649
+ * Get Account Finance
14650
+ * @param {string} id Account Xero ID
14651
+ * @param {*} [options] Override http request option.
14652
+ * @throws {RequiredError}
14653
+ */
14654
+ async getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
14655
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetFinanceSettings(id, options);
14656
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14657
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetFinanceSettings']?.[localVarOperationServerIndex]?.url;
14658
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14659
+ },
14660
+ /**
14661
+ * Get Last Account
14662
+ * @summary Get Last Account
14663
+ * @param {*} [options] Override http request option.
14664
+ * @throws {RequiredError}
14665
+ */
14666
+ async getGetLastAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountSummaryDTO>> {
14667
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetLastAccount(options);
14668
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14669
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetLastAccount']?.[localVarOperationServerIndex]?.url;
14670
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14671
+ },
14672
+ /**
14673
+ * Get Account 3CX Details
14674
+ * @param {string} id Xero ID
14675
+ * @param {*} [options] Override http request option.
14676
+ * @throws {RequiredError}
14677
+ */
14678
+ async getGetTcxPartnerDetails(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerDTO>> {
14679
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetTcxPartnerDetails(id, options);
14680
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14681
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetTcxPartnerDetails']?.[localVarOperationServerIndex]?.url;
14682
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14683
+ },
14684
+ /**
14685
+ * Verify account email address
14686
+ * @summary Verify account email address
14687
+ * @param {string} token Verification Token
14688
+ * @param {*} [options] Override http request option.
14689
+ * @throws {RequiredError}
14690
+ */
14691
+ async getVerifyEmailAddress(token: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
14692
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVerifyEmailAddress(token, options);
14693
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14694
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getVerifyEmailAddress']?.[localVarOperationServerIndex]?.url;
14695
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14696
+ },
14697
+ /**
14698
+ * Set Account Portal Access
14699
+ * @param {string} id Xero ID
14700
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
14701
+ * @param {*} [options] Override http request option.
14702
+ * @throws {RequiredError}
14703
+ */
14704
+ async patchSetPortalAccess(id: string, state: PatchSetPortalAccessStateEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
14705
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchSetPortalAccess(id, state, options);
14706
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14707
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchSetPortalAccess']?.[localVarOperationServerIndex]?.url;
14708
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14709
+ },
14710
+ /**
14711
+ * Set Account Prize Promo
14712
+ * @param {string} id Xero ID
14713
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
14714
+ * @param {*} [options] Override http request option.
14715
+ * @throws {RequiredError}
14716
+ */
14717
+ async patchSetPrizePromo(id: string, state: PatchSetPrizePromoStateEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
14718
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchSetPrizePromo(id, state, options);
14719
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14720
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchSetPrizePromo']?.[localVarOperationServerIndex]?.url;
14721
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14722
+ },
14723
+ /**
14724
+ * Set 3CX Wizard CNAME
14725
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
14726
+ * @param {*} [options] Override http request option.
14727
+ * @throws {RequiredError}
14728
+ */
14729
+ async patchSetTcxWizardCname(patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
14730
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options);
14731
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14732
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchSetTcxWizardCname']?.[localVarOperationServerIndex]?.url;
14733
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14734
+ },
12831
14735
  /**
12832
- * Delete client credentials
12833
- * @summary Delete client credentials
12834
- * @param {string} id OAuth 2.0 Client ID
14736
+ * Set Account CNAME
14737
+ * @param {string} id Xero ID
14738
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
12835
14739
  * @param {*} [options] Override http request option.
12836
14740
  * @throws {RequiredError}
12837
14741
  */
12838
- async deleteDeleteClientCredentials(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
12839
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeleteClientCredentials(id, options);
14742
+ async patchUpdateAccountCname(id: string, patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
14743
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options);
12840
14744
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12841
- const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteDeleteClientCredentials']?.[localVarOperationServerIndex]?.url;
14745
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountCname']?.[localVarOperationServerIndex]?.url;
12842
14746
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12843
14747
  },
12844
14748
  /**
12845
- * Delete Account Contacts
12846
- * @summary Delete Account Contact
12847
- * @param {string} email Contact Email Address
14749
+ * Set Account Company Number
14750
+ * @param {string} id Xero ID
14751
+ * @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
12848
14752
  * @param {*} [options] Override http request option.
12849
14753
  * @throws {RequiredError}
12850
14754
  */
12851
- async deleteUpdateAccountContact(email: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
12852
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateAccountContact(email, options);
14755
+ async patchUpdateAccountCompanyNumber(id: string, patchUpdateAccountCompanyNumberRequest?: PatchUpdateAccountCompanyNumberRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
14756
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options);
12853
14757
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12854
- const localVarOperationServerBasePath = operationServerMap['AccountsApi.deleteUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
14758
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountCompanyNumber']?.[localVarOperationServerIndex]?.url;
12855
14759
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12856
14760
  },
12857
14761
  /**
12858
- * Get Account
12859
- * @summary Get Account
14762
+ * Update Account Password
14763
+ * @summary Update Account Password
14764
+ * @param {string} token Verification Token
14765
+ * @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
12860
14766
  * @param {*} [options] Override http request option.
12861
14767
  * @throws {RequiredError}
12862
14768
  */
12863
- async getGetAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PortalAccountModel>> {
12864
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccount(options);
14769
+ async patchUpdateAccountContactPassword(token: string, patchUpdateAccountContactPasswordRequest?: PatchUpdateAccountContactPasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
14770
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options);
12865
14771
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12866
- const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccount']?.[localVarOperationServerIndex]?.url;
14772
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountContactPassword']?.[localVarOperationServerIndex]?.url;
12867
14773
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12868
14774
  },
12869
14775
  /**
12870
- * Get Account Contacts
12871
- * @summary Get Account Contacts
12872
- * @param {string} [email] Contact Email Address
14776
+ * Set Account Phone
14777
+ * @param {string} id Xero ID
14778
+ * @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
12873
14779
  * @param {*} [options] Override http request option.
12874
14780
  * @throws {RequiredError}
12875
14781
  */
12876
- async getGetAccountContacts(email?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountContactModel>>> {
12877
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccountContacts(email, options);
14782
+ async patchUpdateAccountPhone(id: string, patchUpdateAccountPhoneRequest?: PatchUpdateAccountPhoneRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
14783
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options);
12878
14784
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12879
- const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountContacts']?.[localVarOperationServerIndex]?.url;
14785
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountPhone']?.[localVarOperationServerIndex]?.url;
12880
14786
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12881
14787
  },
12882
14788
  /**
12883
- * Get Account Detailed Summary
12884
- * @summary Get Account Detailed Summary
12885
- * @param {number} id Customer ID
14789
+ * Set Account VAT Number
14790
+ * @param {string} id Xero ID
14791
+ * @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
12886
14792
  * @param {*} [options] Override http request option.
12887
14793
  * @throws {RequiredError}
12888
14794
  */
12889
- async getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountDetailedSummaryDTO>> {
12890
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options);
14795
+ async patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
14796
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options);
12891
14797
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12892
- const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountDetailedSummary']?.[localVarOperationServerIndex]?.url;
14798
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountVatNumber']?.[localVarOperationServerIndex]?.url;
12893
14799
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12894
14800
  },
12895
14801
  /**
12896
- * Get Accounts
12897
- * @summary Get Accounts
12898
- * @param {number} [pageSize] Number Of Results
12899
- * @param {number} [page] Page Number
12900
- * @param {string} [search] Search
12901
- * @param {boolean} [active] Active
14802
+ * Set Account Credit Limit
14803
+ * @param {string} id Xero ID
14804
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
12902
14805
  * @param {*} [options] Override http request option.
12903
14806
  * @throws {RequiredError}
12904
14807
  */
12905
- async getGetAccounts(pageSize?: number, page?: number, search?: string, active?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountsResponseModel>> {
12906
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccounts(pageSize, page, search, active, options);
14808
+ async patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
14809
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options);
12907
14810
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12908
- const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccounts']?.[localVarOperationServerIndex]?.url;
14811
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateCreditLimit']?.[localVarOperationServerIndex]?.url;
12909
14812
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12910
14813
  },
12911
14814
  /**
12912
- * Get user\'s client credentials
12913
- * @summary Get user\'s client credentials
14815
+ * Set Account Price List
14816
+ * @param {string} id Xero ID
14817
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
12914
14818
  * @param {*} [options] Override http request option.
12915
14819
  * @throws {RequiredError}
12916
14820
  */
12917
- async getGetClientCredentials(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ClientModel>>> {
12918
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetClientCredentials(options);
14821
+ async patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
14822
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdatePriceList(id, patchUpdatePriceListRequest, options);
12919
14823
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12920
- const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetClientCredentials']?.[localVarOperationServerIndex]?.url;
14824
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdatePriceList']?.[localVarOperationServerIndex]?.url;
12921
14825
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12922
14826
  },
12923
14827
  /**
12924
- * Get 3CX Keys
12925
- * @summary Get 3CX Keys
14828
+ * Set Account SIP Channel Cost
14829
+ * @param {string} id Xero ID
14830
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
12926
14831
  * @param {*} [options] Override http request option.
12927
14832
  * @throws {RequiredError}
12928
14833
  */
12929
- async getGetCustomerKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TcxKeySummaryDTO>>> {
12930
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCustomerKeys(options);
14834
+ async patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountFinanceDTO>> {
14835
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options);
12931
14836
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12932
- const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetCustomerKeys']?.[localVarOperationServerIndex]?.url;
14837
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateSipChannelCost']?.[localVarOperationServerIndex]?.url;
12933
14838
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12934
14839
  },
12935
14840
  /**
12936
- * Verify account email address
12937
- * @summary Verify account email address
12938
- * @param {string} token Verification Token
14841
+ * Set Account 3CX Hosting Price List
14842
+ * @param {string} id Xero ID
14843
+ * @param {PatchUpdateTcxHostingPriceListRequest} [patchUpdateTcxHostingPriceListRequest] 3CX Hosting Price List Request
12939
14844
  * @param {*} [options] Override http request option.
12940
14845
  * @throws {RequiredError}
12941
14846
  */
12942
- async getVerifyEmailAddress(token: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
12943
- const localVarAxiosArgs = await localVarAxiosParamCreator.getVerifyEmailAddress(token, options);
14847
+ async patchUpdateTcxHostingPriceList(id: string, patchUpdateTcxHostingPriceListRequest?: PatchUpdateTcxHostingPriceListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerDTO>> {
14848
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateTcxHostingPriceList(id, patchUpdateTcxHostingPriceListRequest, options);
12944
14849
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12945
- const localVarOperationServerBasePath = operationServerMap['AccountsApi.getVerifyEmailAddress']?.[localVarOperationServerIndex]?.url;
14850
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateTcxHostingPriceList']?.[localVarOperationServerIndex]?.url;
12946
14851
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12947
14852
  },
12948
14853
  /**
12949
- * Set 3CX Wizard CNAME
12950
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
14854
+ * Set Account 3CX Partner ID
14855
+ * @param {string} id Xero ID
14856
+ * @param {PatchUpdateTcxPartnerIdRequest} [patchUpdateTcxPartnerIdRequest] Set Account 3CX Partner ID
12951
14857
  * @param {*} [options] Override http request option.
12952
14858
  * @throws {RequiredError}
12953
14859
  */
12954
- async patchSetTcxWizardCname(patchSetTcxWizardCnameRequest?: PatchSetTcxWizardCnameRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
12955
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options);
14860
+ async patchUpdateTcxPartnerId(id: string, patchUpdateTcxPartnerIdRequest?: PatchUpdateTcxPartnerIdRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerDTO>> {
14861
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateTcxPartnerId(id, patchUpdateTcxPartnerIdRequest, options);
12956
14862
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12957
- const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchSetTcxWizardCname']?.[localVarOperationServerIndex]?.url;
14863
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateTcxPartnerId']?.[localVarOperationServerIndex]?.url;
12958
14864
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12959
14865
  },
12960
14866
  /**
12961
- * Update Account Password
12962
- * @summary Update Account Password
12963
- * @param {string} token Verification Token
12964
- * @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
14867
+ * Create Account Contact
14868
+ * @param {string} id Account Xero ID
14869
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
12965
14870
  * @param {*} [options] Override http request option.
12966
14871
  * @throws {RequiredError}
12967
14872
  */
12968
- async patchUpdateAccountContactPassword(token: string, patchUpdateAccountContactPasswordRequest?: PatchUpdateAccountContactPasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
12969
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options);
14873
+ async postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
14874
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postAdminCreateAccountContact(id, accountContactRequestModel, options);
12970
14875
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12971
- const localVarOperationServerBasePath = operationServerMap['AccountsApi.patchUpdateAccountContactPassword']?.[localVarOperationServerIndex]?.url;
14876
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.postAdminCreateAccountContact']?.[localVarOperationServerIndex]?.url;
12972
14877
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12973
14878
  },
12974
14879
  /**
@@ -13048,6 +14953,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
13048
14953
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.postSendPasswordReset']?.[localVarOperationServerIndex]?.url;
13049
14954
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13050
14955
  },
14956
+ /**
14957
+ * Send Account Welcome Email
14958
+ * @param {string} id Xero ID
14959
+ * @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
14960
+ * @param {*} [options] Override http request option.
14961
+ * @throws {RequiredError}
14962
+ */
14963
+ async postSendWelcomeEmail(id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
14964
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options);
14965
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14966
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.postSendWelcomeEmail']?.[localVarOperationServerIndex]?.url;
14967
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14968
+ },
13051
14969
  /**
13052
14970
  * Submit reseller application
13053
14971
  * @summary Submit reseller application
@@ -13063,6 +14981,20 @@ export const AccountsApiFp = function(configuration?: Configuration) {
13063
14981
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.postSubmitResellerApplication']?.[localVarOperationServerIndex]?.url;
13064
14982
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13065
14983
  },
14984
+ /**
14985
+ * Update Account Contact
14986
+ * @param {string} id Account Xero ID
14987
+ * @param {number} contactId Contact ID
14988
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
14989
+ * @param {*} [options] Override http request option.
14990
+ * @throws {RequiredError}
14991
+ */
14992
+ async putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
14993
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options);
14994
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14995
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.putAdminUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
14996
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14997
+ },
13066
14998
  /**
13067
14999
  * Update Account Contacts
13068
15000
  * @summary Update Account Contact
@@ -13077,125 +15009,343 @@ export const AccountsApiFp = function(configuration?: Configuration) {
13077
15009
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.putUpdateAccountContact']?.[localVarOperationServerIndex]?.url;
13078
15010
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13079
15011
  },
13080
- }
13081
- };
13082
-
13083
- /**
13084
- * AccountsApi - factory interface
13085
- * @export
13086
- */
13087
- export const AccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
13088
- const localVarFp = AccountsApiFp(configuration)
13089
- return {
13090
15012
  /**
13091
- * Delete client credentials
13092
- * @summary Delete client credentials
13093
- * @param {string} id OAuth 2.0 Client ID
15013
+ * Update Account Billing Address
15014
+ * @param {string} id Xero ID
15015
+ * @param {AddressDTO} [addressDTO] Updated Billing Address
15016
+ * @param {*} [options] Override http request option.
15017
+ * @throws {RequiredError}
15018
+ */
15019
+ async putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
15020
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateBillingAddress(id, addressDTO, options);
15021
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15022
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.putUpdateBillingAddress']?.[localVarOperationServerIndex]?.url;
15023
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15024
+ },
15025
+ /**
15026
+ * Update Account Shipping Address
15027
+ * @param {string} id Xero ID
15028
+ * @param {AddressDTO} [addressDTO] Updated Shipping Address
15029
+ * @param {*} [options] Override http request option.
15030
+ * @throws {RequiredError}
15031
+ */
15032
+ async putUpdateShippingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
15033
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateShippingAddress(id, addressDTO, options);
15034
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15035
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.putUpdateShippingAddress']?.[localVarOperationServerIndex]?.url;
15036
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15037
+ },
15038
+ }
15039
+ };
15040
+
15041
+ /**
15042
+ * AccountsApi - factory interface
15043
+ * @export
15044
+ */
15045
+ export const AccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
15046
+ const localVarFp = AccountsApiFp(configuration)
15047
+ return {
15048
+ /**
15049
+ * Delete Account Contact
15050
+ * @param {string} id Account Xero ID
15051
+ * @param {number} contactId Contact ID
15052
+ * @param {*} [options] Override http request option.
15053
+ * @throws {RequiredError}
15054
+ */
15055
+ deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15056
+ return localVarFp.deleteAdminUpdateAccountContact(id, contactId, options).then((request) => request(axios, basePath));
15057
+ },
15058
+ /**
15059
+ * Delete Account
15060
+ * @param {string} id Account Xero ID
15061
+ * @param {*} [options] Override http request option.
15062
+ * @throws {RequiredError}
15063
+ */
15064
+ deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15065
+ return localVarFp.deleteArchiveAccount(id, options).then((request) => request(axios, basePath));
15066
+ },
15067
+ /**
15068
+ * Delete client credentials
15069
+ * @summary Delete client credentials
15070
+ * @param {string} id OAuth 2.0 Client ID
15071
+ * @param {*} [options] Override http request option.
15072
+ * @throws {RequiredError}
15073
+ */
15074
+ deleteDeleteClientCredentials(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15075
+ return localVarFp.deleteDeleteClientCredentials(id, options).then((request) => request(axios, basePath));
15076
+ },
15077
+ /**
15078
+ * Delete Account Contacts
15079
+ * @summary Delete Account Contact
15080
+ * @param {string} email Contact Email Address
15081
+ * @param {*} [options] Override http request option.
15082
+ * @throws {RequiredError}
15083
+ */
15084
+ deleteUpdateAccountContact(email: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15085
+ return localVarFp.deleteUpdateAccountContact(email, options).then((request) => request(axios, basePath));
15086
+ },
15087
+ /**
15088
+ * Get Account Contacts
15089
+ * @param {string} id Account Xero ID
15090
+ * @param {*} [options] Override http request option.
15091
+ * @throws {RequiredError}
15092
+ */
15093
+ getAdminCreateAccountContact(id: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>> {
15094
+ return localVarFp.getAdminCreateAccountContact(id, options).then((request) => request(axios, basePath));
15095
+ },
15096
+ /**
15097
+ * Get Account
15098
+ * @summary Get Account
15099
+ * @param {*} [options] Override http request option.
15100
+ * @throws {RequiredError}
15101
+ */
15102
+ getGetAccount(options?: RawAxiosRequestConfig): AxiosPromise<PortalAccountModel> {
15103
+ return localVarFp.getGetAccount(options).then((request) => request(axios, basePath));
15104
+ },
15105
+ /**
15106
+ * Get Account Addresses
15107
+ * @param {string} id Xero ID
15108
+ * @param {*} [options] Override http request option.
15109
+ * @throws {RequiredError}
15110
+ */
15111
+ getGetAccountAddresses(id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccountAddressesDTO> {
15112
+ return localVarFp.getGetAccountAddresses(id, options).then((request) => request(axios, basePath));
15113
+ },
15114
+ /**
15115
+ * Get Account Contacts
15116
+ * @summary Get Account Contacts
15117
+ * @param {string} [email] Contact Email Address
15118
+ * @param {*} [options] Override http request option.
15119
+ * @throws {RequiredError}
15120
+ */
15121
+ getGetAccountContacts(email?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>> {
15122
+ return localVarFp.getGetAccountContacts(email, options).then((request) => request(axios, basePath));
15123
+ },
15124
+ /**
15125
+ * Get Account Detailed Summary
15126
+ * @summary Get Account Detailed Summary
15127
+ * @param {number} id Customer ID
15128
+ * @param {*} [options] Override http request option.
15129
+ * @throws {RequiredError}
15130
+ */
15131
+ getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AccountDetailedSummaryDTO> {
15132
+ return localVarFp.getGetAccountDetailedSummary(id, options).then((request) => request(axios, basePath));
15133
+ },
15134
+ /**
15135
+ * Get Accounts
15136
+ * @summary Get Accounts
15137
+ * @param {number} [pageSize] Number Of Results
15138
+ * @param {number} [page] Page Number
15139
+ * @param {string} [search] Search
15140
+ * @param {boolean} [active] Active
15141
+ * @param {*} [options] Override http request option.
15142
+ * @throws {RequiredError}
15143
+ */
15144
+ getGetAccounts(pageSize?: number, page?: number, search?: string, active?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<AccountsResponseModel> {
15145
+ return localVarFp.getGetAccounts(pageSize, page, search, active, options).then((request) => request(axios, basePath));
15146
+ },
15147
+ /**
15148
+ * Get user\'s client credentials
15149
+ * @summary Get user\'s client credentials
15150
+ * @param {*} [options] Override http request option.
15151
+ * @throws {RequiredError}
15152
+ */
15153
+ getGetClientCredentials(options?: RawAxiosRequestConfig): AxiosPromise<Array<ClientModel>> {
15154
+ return localVarFp.getGetClientCredentials(options).then((request) => request(axios, basePath));
15155
+ },
15156
+ /**
15157
+ * Get Customer Accounts List
15158
+ * @param {*} [options] Override http request option.
15159
+ * @throws {RequiredError}
15160
+ */
15161
+ getGetCustomerAccountsList(options?: RawAxiosRequestConfig): AxiosPromise<Array<CustomerListAccountDTO>> {
15162
+ return localVarFp.getGetCustomerAccountsList(options).then((request) => request(axios, basePath));
15163
+ },
15164
+ /**
15165
+ * Get 3CX Keys
15166
+ * @summary Get 3CX Keys
15167
+ * @param {*} [options] Override http request option.
15168
+ * @throws {RequiredError}
15169
+ */
15170
+ getGetCustomerKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxKeySummaryDTO>> {
15171
+ return localVarFp.getGetCustomerKeys(options).then((request) => request(axios, basePath));
15172
+ },
15173
+ /**
15174
+ * Get Account Finance
15175
+ * @param {string} id Account Xero ID
15176
+ * @param {*} [options] Override http request option.
15177
+ * @throws {RequiredError}
15178
+ */
15179
+ getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
15180
+ return localVarFp.getGetFinanceSettings(id, options).then((request) => request(axios, basePath));
15181
+ },
15182
+ /**
15183
+ * Get Last Account
15184
+ * @summary Get Last Account
15185
+ * @param {*} [options] Override http request option.
15186
+ * @throws {RequiredError}
15187
+ */
15188
+ getGetLastAccount(options?: RawAxiosRequestConfig): AxiosPromise<AccountSummaryDTO> {
15189
+ return localVarFp.getGetLastAccount(options).then((request) => request(axios, basePath));
15190
+ },
15191
+ /**
15192
+ * Get Account 3CX Details
15193
+ * @param {string} id Xero ID
15194
+ * @param {*} [options] Override http request option.
15195
+ * @throws {RequiredError}
15196
+ */
15197
+ getGetTcxPartnerDetails(id: string, options?: RawAxiosRequestConfig): AxiosPromise<PartnerDTO> {
15198
+ return localVarFp.getGetTcxPartnerDetails(id, options).then((request) => request(axios, basePath));
15199
+ },
15200
+ /**
15201
+ * Verify account email address
15202
+ * @summary Verify account email address
15203
+ * @param {string} token Verification Token
15204
+ * @param {*} [options] Override http request option.
15205
+ * @throws {RequiredError}
15206
+ */
15207
+ getVerifyEmailAddress(token: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15208
+ return localVarFp.getVerifyEmailAddress(token, options).then((request) => request(axios, basePath));
15209
+ },
15210
+ /**
15211
+ * Set Account Portal Access
15212
+ * @param {string} id Xero ID
15213
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
15214
+ * @param {*} [options] Override http request option.
15215
+ * @throws {RequiredError}
15216
+ */
15217
+ patchSetPortalAccess(id: string, state: PatchSetPortalAccessStateEnum, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15218
+ return localVarFp.patchSetPortalAccess(id, state, options).then((request) => request(axios, basePath));
15219
+ },
15220
+ /**
15221
+ * Set Account Prize Promo
15222
+ * @param {string} id Xero ID
15223
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
15224
+ * @param {*} [options] Override http request option.
15225
+ * @throws {RequiredError}
15226
+ */
15227
+ patchSetPrizePromo(id: string, state: PatchSetPrizePromoStateEnum, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15228
+ return localVarFp.patchSetPrizePromo(id, state, options).then((request) => request(axios, basePath));
15229
+ },
15230
+ /**
15231
+ * Set 3CX Wizard CNAME
15232
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
15233
+ * @param {*} [options] Override http request option.
15234
+ * @throws {RequiredError}
15235
+ */
15236
+ patchSetTcxWizardCname(patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15237
+ return localVarFp.patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options).then((request) => request(axios, basePath));
15238
+ },
15239
+ /**
15240
+ * Set Account CNAME
15241
+ * @param {string} id Xero ID
15242
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
13094
15243
  * @param {*} [options] Override http request option.
13095
15244
  * @throws {RequiredError}
13096
15245
  */
13097
- deleteDeleteClientCredentials(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
13098
- return localVarFp.deleteDeleteClientCredentials(id, options).then((request) => request(axios, basePath));
15246
+ patchUpdateAccountCname(id: string, patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15247
+ return localVarFp.patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options).then((request) => request(axios, basePath));
13099
15248
  },
13100
15249
  /**
13101
- * Delete Account Contacts
13102
- * @summary Delete Account Contact
13103
- * @param {string} email Contact Email Address
15250
+ * Set Account Company Number
15251
+ * @param {string} id Xero ID
15252
+ * @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
13104
15253
  * @param {*} [options] Override http request option.
13105
15254
  * @throws {RequiredError}
13106
15255
  */
13107
- deleteUpdateAccountContact(email: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
13108
- return localVarFp.deleteUpdateAccountContact(email, options).then((request) => request(axios, basePath));
15256
+ patchUpdateAccountCompanyNumber(id: string, patchUpdateAccountCompanyNumberRequest?: PatchUpdateAccountCompanyNumberRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15257
+ return localVarFp.patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options).then((request) => request(axios, basePath));
13109
15258
  },
13110
15259
  /**
13111
- * Get Account
13112
- * @summary Get Account
15260
+ * Update Account Password
15261
+ * @summary Update Account Password
15262
+ * @param {string} token Verification Token
15263
+ * @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
13113
15264
  * @param {*} [options] Override http request option.
13114
15265
  * @throws {RequiredError}
13115
15266
  */
13116
- getGetAccount(options?: RawAxiosRequestConfig): AxiosPromise<PortalAccountModel> {
13117
- return localVarFp.getGetAccount(options).then((request) => request(axios, basePath));
15267
+ patchUpdateAccountContactPassword(token: string, patchUpdateAccountContactPasswordRequest?: PatchUpdateAccountContactPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15268
+ return localVarFp.patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options).then((request) => request(axios, basePath));
13118
15269
  },
13119
15270
  /**
13120
- * Get Account Contacts
13121
- * @summary Get Account Contacts
13122
- * @param {string} [email] Contact Email Address
15271
+ * Set Account Phone
15272
+ * @param {string} id Xero ID
15273
+ * @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
13123
15274
  * @param {*} [options] Override http request option.
13124
15275
  * @throws {RequiredError}
13125
15276
  */
13126
- getGetAccountContacts(email?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>> {
13127
- return localVarFp.getGetAccountContacts(email, options).then((request) => request(axios, basePath));
15277
+ patchUpdateAccountPhone(id: string, patchUpdateAccountPhoneRequest?: PatchUpdateAccountPhoneRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15278
+ return localVarFp.patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options).then((request) => request(axios, basePath));
13128
15279
  },
13129
15280
  /**
13130
- * Get Account Detailed Summary
13131
- * @summary Get Account Detailed Summary
13132
- * @param {number} id Customer ID
15281
+ * Set Account VAT Number
15282
+ * @param {string} id Xero ID
15283
+ * @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
13133
15284
  * @param {*} [options] Override http request option.
13134
15285
  * @throws {RequiredError}
13135
15286
  */
13136
- getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AccountDetailedSummaryDTO> {
13137
- return localVarFp.getGetAccountDetailedSummary(id, options).then((request) => request(axios, basePath));
15287
+ patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15288
+ return localVarFp.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then((request) => request(axios, basePath));
13138
15289
  },
13139
15290
  /**
13140
- * Get Accounts
13141
- * @summary Get Accounts
13142
- * @param {number} [pageSize] Number Of Results
13143
- * @param {number} [page] Page Number
13144
- * @param {string} [search] Search
13145
- * @param {boolean} [active] Active
15291
+ * Set Account Credit Limit
15292
+ * @param {string} id Xero ID
15293
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
13146
15294
  * @param {*} [options] Override http request option.
13147
15295
  * @throws {RequiredError}
13148
15296
  */
13149
- getGetAccounts(pageSize?: number, page?: number, search?: string, active?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<AccountsResponseModel> {
13150
- return localVarFp.getGetAccounts(pageSize, page, search, active, options).then((request) => request(axios, basePath));
15297
+ patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
15298
+ return localVarFp.patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options).then((request) => request(axios, basePath));
13151
15299
  },
13152
15300
  /**
13153
- * Get user\'s client credentials
13154
- * @summary Get user\'s client credentials
15301
+ * Set Account Price List
15302
+ * @param {string} id Xero ID
15303
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
13155
15304
  * @param {*} [options] Override http request option.
13156
15305
  * @throws {RequiredError}
13157
15306
  */
13158
- getGetClientCredentials(options?: RawAxiosRequestConfig): AxiosPromise<Array<ClientModel>> {
13159
- return localVarFp.getGetClientCredentials(options).then((request) => request(axios, basePath));
15307
+ patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
15308
+ return localVarFp.patchUpdatePriceList(id, patchUpdatePriceListRequest, options).then((request) => request(axios, basePath));
13160
15309
  },
13161
15310
  /**
13162
- * Get 3CX Keys
13163
- * @summary Get 3CX Keys
15311
+ * Set Account SIP Channel Cost
15312
+ * @param {string} id Xero ID
15313
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
13164
15314
  * @param {*} [options] Override http request option.
13165
15315
  * @throws {RequiredError}
13166
15316
  */
13167
- getGetCustomerKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxKeySummaryDTO>> {
13168
- return localVarFp.getGetCustomerKeys(options).then((request) => request(axios, basePath));
15317
+ patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountFinanceDTO> {
15318
+ return localVarFp.patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options).then((request) => request(axios, basePath));
13169
15319
  },
13170
15320
  /**
13171
- * Verify account email address
13172
- * @summary Verify account email address
13173
- * @param {string} token Verification Token
15321
+ * Set Account 3CX Hosting Price List
15322
+ * @param {string} id Xero ID
15323
+ * @param {PatchUpdateTcxHostingPriceListRequest} [patchUpdateTcxHostingPriceListRequest] 3CX Hosting Price List Request
13174
15324
  * @param {*} [options] Override http request option.
13175
15325
  * @throws {RequiredError}
13176
15326
  */
13177
- getVerifyEmailAddress(token: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
13178
- return localVarFp.getVerifyEmailAddress(token, options).then((request) => request(axios, basePath));
15327
+ patchUpdateTcxHostingPriceList(id: string, patchUpdateTcxHostingPriceListRequest?: PatchUpdateTcxHostingPriceListRequest, options?: RawAxiosRequestConfig): AxiosPromise<PartnerDTO> {
15328
+ return localVarFp.patchUpdateTcxHostingPriceList(id, patchUpdateTcxHostingPriceListRequest, options).then((request) => request(axios, basePath));
13179
15329
  },
13180
15330
  /**
13181
- * Set 3CX Wizard CNAME
13182
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
15331
+ * Set Account 3CX Partner ID
15332
+ * @param {string} id Xero ID
15333
+ * @param {PatchUpdateTcxPartnerIdRequest} [patchUpdateTcxPartnerIdRequest] Set Account 3CX Partner ID
13183
15334
  * @param {*} [options] Override http request option.
13184
15335
  * @throws {RequiredError}
13185
15336
  */
13186
- patchSetTcxWizardCname(patchSetTcxWizardCnameRequest?: PatchSetTcxWizardCnameRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
13187
- return localVarFp.patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options).then((request) => request(axios, basePath));
15337
+ patchUpdateTcxPartnerId(id: string, patchUpdateTcxPartnerIdRequest?: PatchUpdateTcxPartnerIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PartnerDTO> {
15338
+ return localVarFp.patchUpdateTcxPartnerId(id, patchUpdateTcxPartnerIdRequest, options).then((request) => request(axios, basePath));
13188
15339
  },
13189
15340
  /**
13190
- * Update Account Password
13191
- * @summary Update Account Password
13192
- * @param {string} token Verification Token
13193
- * @param {PatchUpdateAccountContactPasswordRequest} [patchUpdateAccountContactPasswordRequest] New account request
15341
+ * Create Account Contact
15342
+ * @param {string} id Account Xero ID
15343
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
13194
15344
  * @param {*} [options] Override http request option.
13195
15345
  * @throws {RequiredError}
13196
15346
  */
13197
- patchUpdateAccountContactPassword(token: string, patchUpdateAccountContactPasswordRequest?: PatchUpdateAccountContactPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
13198
- return localVarFp.patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options).then((request) => request(axios, basePath));
15347
+ postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15348
+ return localVarFp.postAdminCreateAccountContact(id, accountContactRequestModel, options).then((request) => request(axios, basePath));
13199
15349
  },
13200
15350
  /**
13201
15351
  * Add Account Contacts
@@ -13256,6 +15406,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
13256
15406
  postSendPasswordReset(email: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
13257
15407
  return localVarFp.postSendPasswordReset(email, options).then((request) => request(axios, basePath));
13258
15408
  },
15409
+ /**
15410
+ * Send Account Welcome Email
15411
+ * @param {string} id Xero ID
15412
+ * @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
15413
+ * @param {*} [options] Override http request option.
15414
+ * @throws {RequiredError}
15415
+ */
15416
+ postSendWelcomeEmail(id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15417
+ return localVarFp.postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then((request) => request(axios, basePath));
15418
+ },
13259
15419
  /**
13260
15420
  * Submit reseller application
13261
15421
  * @summary Submit reseller application
@@ -13268,6 +15428,17 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
13268
15428
  postSubmitResellerApplication(creditRequired?: number, companyNumber?: string, vatNumber?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
13269
15429
  return localVarFp.postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then((request) => request(axios, basePath));
13270
15430
  },
15431
+ /**
15432
+ * Update Account Contact
15433
+ * @param {string} id Account Xero ID
15434
+ * @param {number} contactId Contact ID
15435
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
15436
+ * @param {*} [options] Override http request option.
15437
+ * @throws {RequiredError}
15438
+ */
15439
+ putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15440
+ return localVarFp.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then((request) => request(axios, basePath));
15441
+ },
13271
15442
  /**
13272
15443
  * Update Account Contacts
13273
15444
  * @summary Update Account Contact
@@ -13279,6 +15450,26 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
13279
15450
  putUpdateAccountContact(email: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<void> {
13280
15451
  return localVarFp.putUpdateAccountContact(email, accountContactRequestModel, options).then((request) => request(axios, basePath));
13281
15452
  },
15453
+ /**
15454
+ * Update Account Billing Address
15455
+ * @param {string} id Xero ID
15456
+ * @param {AddressDTO} [addressDTO] Updated Billing Address
15457
+ * @param {*} [options] Override http request option.
15458
+ * @throws {RequiredError}
15459
+ */
15460
+ putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15461
+ return localVarFp.putUpdateBillingAddress(id, addressDTO, options).then((request) => request(axios, basePath));
15462
+ },
15463
+ /**
15464
+ * Update Account Shipping Address
15465
+ * @param {string} id Xero ID
15466
+ * @param {AddressDTO} [addressDTO] Updated Shipping Address
15467
+ * @param {*} [options] Override http request option.
15468
+ * @throws {RequiredError}
15469
+ */
15470
+ putUpdateShippingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15471
+ return localVarFp.putUpdateShippingAddress(id, addressDTO, options).then((request) => request(axios, basePath));
15472
+ },
13282
15473
  };
13283
15474
  };
13284
15475
 
@@ -13289,6 +15480,29 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
13289
15480
  * @extends {BaseAPI}
13290
15481
  */
13291
15482
  export class AccountsApi extends BaseAPI {
15483
+ /**
15484
+ * Delete Account Contact
15485
+ * @param {string} id Account Xero ID
15486
+ * @param {number} contactId Contact ID
15487
+ * @param {*} [options] Override http request option.
15488
+ * @throws {RequiredError}
15489
+ * @memberof AccountsApi
15490
+ */
15491
+ public deleteAdminUpdateAccountContact(id: string, contactId: number, options?: RawAxiosRequestConfig) {
15492
+ return AccountsApiFp(this.configuration).deleteAdminUpdateAccountContact(id, contactId, options).then((request) => request(this.axios, this.basePath));
15493
+ }
15494
+
15495
+ /**
15496
+ * Delete Account
15497
+ * @param {string} id Account Xero ID
15498
+ * @param {*} [options] Override http request option.
15499
+ * @throws {RequiredError}
15500
+ * @memberof AccountsApi
15501
+ */
15502
+ public deleteArchiveAccount(id: string, options?: RawAxiosRequestConfig) {
15503
+ return AccountsApiFp(this.configuration).deleteArchiveAccount(id, options).then((request) => request(this.axios, this.basePath));
15504
+ }
15505
+
13292
15506
  /**
13293
15507
  * Delete client credentials
13294
15508
  * @summary Delete client credentials
@@ -13313,6 +15527,17 @@ export class AccountsApi extends BaseAPI {
13313
15527
  return AccountsApiFp(this.configuration).deleteUpdateAccountContact(email, options).then((request) => request(this.axios, this.basePath));
13314
15528
  }
13315
15529
 
15530
+ /**
15531
+ * Get Account Contacts
15532
+ * @param {string} id Account Xero ID
15533
+ * @param {*} [options] Override http request option.
15534
+ * @throws {RequiredError}
15535
+ * @memberof AccountsApi
15536
+ */
15537
+ public getAdminCreateAccountContact(id: string, options?: RawAxiosRequestConfig) {
15538
+ return AccountsApiFp(this.configuration).getAdminCreateAccountContact(id, options).then((request) => request(this.axios, this.basePath));
15539
+ }
15540
+
13316
15541
  /**
13317
15542
  * Get Account
13318
15543
  * @summary Get Account
@@ -13324,6 +15549,17 @@ export class AccountsApi extends BaseAPI {
13324
15549
  return AccountsApiFp(this.configuration).getGetAccount(options).then((request) => request(this.axios, this.basePath));
13325
15550
  }
13326
15551
 
15552
+ /**
15553
+ * Get Account Addresses
15554
+ * @param {string} id Xero ID
15555
+ * @param {*} [options] Override http request option.
15556
+ * @throws {RequiredError}
15557
+ * @memberof AccountsApi
15558
+ */
15559
+ public getGetAccountAddresses(id: string, options?: RawAxiosRequestConfig) {
15560
+ return AccountsApiFp(this.configuration).getGetAccountAddresses(id, options).then((request) => request(this.axios, this.basePath));
15561
+ }
15562
+
13327
15563
  /**
13328
15564
  * Get Account Contacts
13329
15565
  * @summary Get Account Contacts
@@ -13374,6 +15610,16 @@ export class AccountsApi extends BaseAPI {
13374
15610
  return AccountsApiFp(this.configuration).getGetClientCredentials(options).then((request) => request(this.axios, this.basePath));
13375
15611
  }
13376
15612
 
15613
+ /**
15614
+ * Get Customer Accounts List
15615
+ * @param {*} [options] Override http request option.
15616
+ * @throws {RequiredError}
15617
+ * @memberof AccountsApi
15618
+ */
15619
+ public getGetCustomerAccountsList(options?: RawAxiosRequestConfig) {
15620
+ return AccountsApiFp(this.configuration).getGetCustomerAccountsList(options).then((request) => request(this.axios, this.basePath));
15621
+ }
15622
+
13377
15623
  /**
13378
15624
  * Get 3CX Keys
13379
15625
  * @summary Get 3CX Keys
@@ -13385,6 +15631,39 @@ export class AccountsApi extends BaseAPI {
13385
15631
  return AccountsApiFp(this.configuration).getGetCustomerKeys(options).then((request) => request(this.axios, this.basePath));
13386
15632
  }
13387
15633
 
15634
+ /**
15635
+ * Get Account Finance
15636
+ * @param {string} id Account Xero ID
15637
+ * @param {*} [options] Override http request option.
15638
+ * @throws {RequiredError}
15639
+ * @memberof AccountsApi
15640
+ */
15641
+ public getGetFinanceSettings(id: string, options?: RawAxiosRequestConfig) {
15642
+ return AccountsApiFp(this.configuration).getGetFinanceSettings(id, options).then((request) => request(this.axios, this.basePath));
15643
+ }
15644
+
15645
+ /**
15646
+ * Get Last Account
15647
+ * @summary Get Last Account
15648
+ * @param {*} [options] Override http request option.
15649
+ * @throws {RequiredError}
15650
+ * @memberof AccountsApi
15651
+ */
15652
+ public getGetLastAccount(options?: RawAxiosRequestConfig) {
15653
+ return AccountsApiFp(this.configuration).getGetLastAccount(options).then((request) => request(this.axios, this.basePath));
15654
+ }
15655
+
15656
+ /**
15657
+ * Get Account 3CX Details
15658
+ * @param {string} id Xero ID
15659
+ * @param {*} [options] Override http request option.
15660
+ * @throws {RequiredError}
15661
+ * @memberof AccountsApi
15662
+ */
15663
+ public getGetTcxPartnerDetails(id: string, options?: RawAxiosRequestConfig) {
15664
+ return AccountsApiFp(this.configuration).getGetTcxPartnerDetails(id, options).then((request) => request(this.axios, this.basePath));
15665
+ }
15666
+
13388
15667
  /**
13389
15668
  * Verify account email address
13390
15669
  * @summary Verify account email address
@@ -13397,15 +15676,63 @@ export class AccountsApi extends BaseAPI {
13397
15676
  return AccountsApiFp(this.configuration).getVerifyEmailAddress(token, options).then((request) => request(this.axios, this.basePath));
13398
15677
  }
13399
15678
 
15679
+ /**
15680
+ * Set Account Portal Access
15681
+ * @param {string} id Xero ID
15682
+ * @param {PatchSetPortalAccessStateEnum} state Portal Access State
15683
+ * @param {*} [options] Override http request option.
15684
+ * @throws {RequiredError}
15685
+ * @memberof AccountsApi
15686
+ */
15687
+ public patchSetPortalAccess(id: string, state: PatchSetPortalAccessStateEnum, options?: RawAxiosRequestConfig) {
15688
+ return AccountsApiFp(this.configuration).patchSetPortalAccess(id, state, options).then((request) => request(this.axios, this.basePath));
15689
+ }
15690
+
15691
+ /**
15692
+ * Set Account Prize Promo
15693
+ * @param {string} id Xero ID
15694
+ * @param {PatchSetPrizePromoStateEnum} state Prize Promo State
15695
+ * @param {*} [options] Override http request option.
15696
+ * @throws {RequiredError}
15697
+ * @memberof AccountsApi
15698
+ */
15699
+ public patchSetPrizePromo(id: string, state: PatchSetPrizePromoStateEnum, options?: RawAxiosRequestConfig) {
15700
+ return AccountsApiFp(this.configuration).patchSetPrizePromo(id, state, options).then((request) => request(this.axios, this.basePath));
15701
+ }
15702
+
13400
15703
  /**
13401
15704
  * Set 3CX Wizard CNAME
13402
- * @param {PatchSetTcxWizardCnameRequest} [patchSetTcxWizardCnameRequest] CNAME Request
15705
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
15706
+ * @param {*} [options] Override http request option.
15707
+ * @throws {RequiredError}
15708
+ * @memberof AccountsApi
15709
+ */
15710
+ public patchSetTcxWizardCname(patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig) {
15711
+ return AccountsApiFp(this.configuration).patchSetTcxWizardCname(patchUpdateAccountCnameRequest, options).then((request) => request(this.axios, this.basePath));
15712
+ }
15713
+
15714
+ /**
15715
+ * Set Account CNAME
15716
+ * @param {string} id Xero ID
15717
+ * @param {PatchUpdateAccountCnameRequest} [patchUpdateAccountCnameRequest] CNAME Request
15718
+ * @param {*} [options] Override http request option.
15719
+ * @throws {RequiredError}
15720
+ * @memberof AccountsApi
15721
+ */
15722
+ public patchUpdateAccountCname(id: string, patchUpdateAccountCnameRequest?: PatchUpdateAccountCnameRequest, options?: RawAxiosRequestConfig) {
15723
+ return AccountsApiFp(this.configuration).patchUpdateAccountCname(id, patchUpdateAccountCnameRequest, options).then((request) => request(this.axios, this.basePath));
15724
+ }
15725
+
15726
+ /**
15727
+ * Set Account Company Number
15728
+ * @param {string} id Xero ID
15729
+ * @param {PatchUpdateAccountCompanyNumberRequest} [patchUpdateAccountCompanyNumberRequest] Account Company Number Request
13403
15730
  * @param {*} [options] Override http request option.
13404
15731
  * @throws {RequiredError}
13405
15732
  * @memberof AccountsApi
13406
15733
  */
13407
- public patchSetTcxWizardCname(patchSetTcxWizardCnameRequest?: PatchSetTcxWizardCnameRequest, options?: RawAxiosRequestConfig) {
13408
- return AccountsApiFp(this.configuration).patchSetTcxWizardCname(patchSetTcxWizardCnameRequest, options).then((request) => request(this.axios, this.basePath));
15734
+ public patchUpdateAccountCompanyNumber(id: string, patchUpdateAccountCompanyNumberRequest?: PatchUpdateAccountCompanyNumberRequest, options?: RawAxiosRequestConfig) {
15735
+ return AccountsApiFp(this.configuration).patchUpdateAccountCompanyNumber(id, patchUpdateAccountCompanyNumberRequest, options).then((request) => request(this.axios, this.basePath));
13409
15736
  }
13410
15737
 
13411
15738
  /**
@@ -13421,6 +15748,102 @@ export class AccountsApi extends BaseAPI {
13421
15748
  return AccountsApiFp(this.configuration).patchUpdateAccountContactPassword(token, patchUpdateAccountContactPasswordRequest, options).then((request) => request(this.axios, this.basePath));
13422
15749
  }
13423
15750
 
15751
+ /**
15752
+ * Set Account Phone
15753
+ * @param {string} id Xero ID
15754
+ * @param {PatchUpdateAccountPhoneRequest} [patchUpdateAccountPhoneRequest] Telephone Request
15755
+ * @param {*} [options] Override http request option.
15756
+ * @throws {RequiredError}
15757
+ * @memberof AccountsApi
15758
+ */
15759
+ public patchUpdateAccountPhone(id: string, patchUpdateAccountPhoneRequest?: PatchUpdateAccountPhoneRequest, options?: RawAxiosRequestConfig) {
15760
+ return AccountsApiFp(this.configuration).patchUpdateAccountPhone(id, patchUpdateAccountPhoneRequest, options).then((request) => request(this.axios, this.basePath));
15761
+ }
15762
+
15763
+ /**
15764
+ * Set Account VAT Number
15765
+ * @param {string} id Xero ID
15766
+ * @param {PatchUpdateAccountVatNumberRequest} [patchUpdateAccountVatNumberRequest] VAT Number Request
15767
+ * @param {*} [options] Override http request option.
15768
+ * @throws {RequiredError}
15769
+ * @memberof AccountsApi
15770
+ */
15771
+ public patchUpdateAccountVatNumber(id: string, patchUpdateAccountVatNumberRequest?: PatchUpdateAccountVatNumberRequest, options?: RawAxiosRequestConfig) {
15772
+ return AccountsApiFp(this.configuration).patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then((request) => request(this.axios, this.basePath));
15773
+ }
15774
+
15775
+ /**
15776
+ * Set Account Credit Limit
15777
+ * @param {string} id Xero ID
15778
+ * @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
15779
+ * @param {*} [options] Override http request option.
15780
+ * @throws {RequiredError}
15781
+ * @memberof AccountsApi
15782
+ */
15783
+ public patchUpdateCreditLimit(id: string, patchUpdateCreditLimitRequest?: PatchUpdateCreditLimitRequest, options?: RawAxiosRequestConfig) {
15784
+ return AccountsApiFp(this.configuration).patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options).then((request) => request(this.axios, this.basePath));
15785
+ }
15786
+
15787
+ /**
15788
+ * Set Account Price List
15789
+ * @param {string} id Xero ID
15790
+ * @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
15791
+ * @param {*} [options] Override http request option.
15792
+ * @throws {RequiredError}
15793
+ * @memberof AccountsApi
15794
+ */
15795
+ public patchUpdatePriceList(id: string, patchUpdatePriceListRequest?: PatchUpdatePriceListRequest, options?: RawAxiosRequestConfig) {
15796
+ return AccountsApiFp(this.configuration).patchUpdatePriceList(id, patchUpdatePriceListRequest, options).then((request) => request(this.axios, this.basePath));
15797
+ }
15798
+
15799
+ /**
15800
+ * Set Account SIP Channel Cost
15801
+ * @param {string} id Xero ID
15802
+ * @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
15803
+ * @param {*} [options] Override http request option.
15804
+ * @throws {RequiredError}
15805
+ * @memberof AccountsApi
15806
+ */
15807
+ public patchUpdateSipChannelCost(id: string, patchUpdateSipChannelCostRequest?: PatchUpdateSipChannelCostRequest, options?: RawAxiosRequestConfig) {
15808
+ return AccountsApiFp(this.configuration).patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options).then((request) => request(this.axios, this.basePath));
15809
+ }
15810
+
15811
+ /**
15812
+ * Set Account 3CX Hosting Price List
15813
+ * @param {string} id Xero ID
15814
+ * @param {PatchUpdateTcxHostingPriceListRequest} [patchUpdateTcxHostingPriceListRequest] 3CX Hosting Price List Request
15815
+ * @param {*} [options] Override http request option.
15816
+ * @throws {RequiredError}
15817
+ * @memberof AccountsApi
15818
+ */
15819
+ public patchUpdateTcxHostingPriceList(id: string, patchUpdateTcxHostingPriceListRequest?: PatchUpdateTcxHostingPriceListRequest, options?: RawAxiosRequestConfig) {
15820
+ return AccountsApiFp(this.configuration).patchUpdateTcxHostingPriceList(id, patchUpdateTcxHostingPriceListRequest, options).then((request) => request(this.axios, this.basePath));
15821
+ }
15822
+
15823
+ /**
15824
+ * Set Account 3CX Partner ID
15825
+ * @param {string} id Xero ID
15826
+ * @param {PatchUpdateTcxPartnerIdRequest} [patchUpdateTcxPartnerIdRequest] Set Account 3CX Partner ID
15827
+ * @param {*} [options] Override http request option.
15828
+ * @throws {RequiredError}
15829
+ * @memberof AccountsApi
15830
+ */
15831
+ public patchUpdateTcxPartnerId(id: string, patchUpdateTcxPartnerIdRequest?: PatchUpdateTcxPartnerIdRequest, options?: RawAxiosRequestConfig) {
15832
+ return AccountsApiFp(this.configuration).patchUpdateTcxPartnerId(id, patchUpdateTcxPartnerIdRequest, options).then((request) => request(this.axios, this.basePath));
15833
+ }
15834
+
15835
+ /**
15836
+ * Create Account Contact
15837
+ * @param {string} id Account Xero ID
15838
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Create Account Contact Request
15839
+ * @param {*} [options] Override http request option.
15840
+ * @throws {RequiredError}
15841
+ * @memberof AccountsApi
15842
+ */
15843
+ public postAdminCreateAccountContact(id: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) {
15844
+ return AccountsApiFp(this.configuration).postAdminCreateAccountContact(id, accountContactRequestModel, options).then((request) => request(this.axios, this.basePath));
15845
+ }
15846
+
13424
15847
  /**
13425
15848
  * Add Account Contacts
13426
15849
  * @summary Add Account Contact
@@ -13492,6 +15915,18 @@ export class AccountsApi extends BaseAPI {
13492
15915
  return AccountsApiFp(this.configuration).postSendPasswordReset(email, options).then((request) => request(this.axios, this.basePath));
13493
15916
  }
13494
15917
 
15918
+ /**
15919
+ * Send Account Welcome Email
15920
+ * @param {string} id Xero ID
15921
+ * @param {PostSendWelcomeEmailRequest} [postSendWelcomeEmailRequest] Email Request
15922
+ * @param {*} [options] Override http request option.
15923
+ * @throws {RequiredError}
15924
+ * @memberof AccountsApi
15925
+ */
15926
+ public postSendWelcomeEmail(id: string, postSendWelcomeEmailRequest?: PostSendWelcomeEmailRequest, options?: RawAxiosRequestConfig) {
15927
+ return AccountsApiFp(this.configuration).postSendWelcomeEmail(id, postSendWelcomeEmailRequest, options).then((request) => request(this.axios, this.basePath));
15928
+ }
15929
+
13495
15930
  /**
13496
15931
  * Submit reseller application
13497
15932
  * @summary Submit reseller application
@@ -13506,6 +15941,19 @@ export class AccountsApi extends BaseAPI {
13506
15941
  return AccountsApiFp(this.configuration).postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then((request) => request(this.axios, this.basePath));
13507
15942
  }
13508
15943
 
15944
+ /**
15945
+ * Update Account Contact
15946
+ * @param {string} id Account Xero ID
15947
+ * @param {number} contactId Contact ID
15948
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
15949
+ * @param {*} [options] Override http request option.
15950
+ * @throws {RequiredError}
15951
+ * @memberof AccountsApi
15952
+ */
15953
+ public putAdminUpdateAccountContact(id: string, contactId: number, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) {
15954
+ return AccountsApiFp(this.configuration).putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then((request) => request(this.axios, this.basePath));
15955
+ }
15956
+
13509
15957
  /**
13510
15958
  * Update Account Contacts
13511
15959
  * @summary Update Account Contact
@@ -13518,8 +15966,48 @@ export class AccountsApi extends BaseAPI {
13518
15966
  public putUpdateAccountContact(email: string, accountContactRequestModel?: AccountContactRequestModel, options?: RawAxiosRequestConfig) {
13519
15967
  return AccountsApiFp(this.configuration).putUpdateAccountContact(email, accountContactRequestModel, options).then((request) => request(this.axios, this.basePath));
13520
15968
  }
15969
+
15970
+ /**
15971
+ * Update Account Billing Address
15972
+ * @param {string} id Xero ID
15973
+ * @param {AddressDTO} [addressDTO] Updated Billing Address
15974
+ * @param {*} [options] Override http request option.
15975
+ * @throws {RequiredError}
15976
+ * @memberof AccountsApi
15977
+ */
15978
+ public putUpdateBillingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig) {
15979
+ return AccountsApiFp(this.configuration).putUpdateBillingAddress(id, addressDTO, options).then((request) => request(this.axios, this.basePath));
15980
+ }
15981
+
15982
+ /**
15983
+ * Update Account Shipping Address
15984
+ * @param {string} id Xero ID
15985
+ * @param {AddressDTO} [addressDTO] Updated Shipping Address
15986
+ * @param {*} [options] Override http request option.
15987
+ * @throws {RequiredError}
15988
+ * @memberof AccountsApi
15989
+ */
15990
+ public putUpdateShippingAddress(id: string, addressDTO?: AddressDTO, options?: RawAxiosRequestConfig) {
15991
+ return AccountsApiFp(this.configuration).putUpdateShippingAddress(id, addressDTO, options).then((request) => request(this.axios, this.basePath));
15992
+ }
13521
15993
  }
13522
15994
 
15995
+ /**
15996
+ * @export
15997
+ */
15998
+ export const PatchSetPortalAccessStateEnum = {
15999
+ Enable: 'enable',
16000
+ Disable: 'disable'
16001
+ } as const;
16002
+ export type PatchSetPortalAccessStateEnum = typeof PatchSetPortalAccessStateEnum[keyof typeof PatchSetPortalAccessStateEnum];
16003
+ /**
16004
+ * @export
16005
+ */
16006
+ export const PatchSetPrizePromoStateEnum = {
16007
+ Enable: 'enable',
16008
+ Disable: 'disable'
16009
+ } as const;
16010
+ export type PatchSetPrizePromoStateEnum = typeof PatchSetPrizePromoStateEnum[keyof typeof PatchSetPrizePromoStateEnum];
13523
16011
 
13524
16012
 
13525
16013
  /**
@@ -13629,6 +16117,49 @@ export class BillingApi extends BaseAPI {
13629
16117
  */
13630
16118
  export const CRMApiAxiosParamCreator = function (configuration?: Configuration) {
13631
16119
  return {
16120
+ /**
16121
+ * Get Customer CRM Activities
16122
+ * @param {number} id Account ID
16123
+ * @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
16124
+ * @param {number} [userId] Activity Created By
16125
+ * @param {*} [options] Override http request option.
16126
+ * @throws {RequiredError}
16127
+ */
16128
+ getGetCrmActivities: async (id: number, type?: GetGetCrmActivitiesTypeEnum, userId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16129
+ // verify required parameter 'id' is not null or undefined
16130
+ assertParamExists('getGetCrmActivities', 'id', id)
16131
+ const localVarPath = `/admin/crm/{id}/activities`
16132
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
16133
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16134
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16135
+ let baseOptions;
16136
+ if (configuration) {
16137
+ baseOptions = configuration.baseOptions;
16138
+ }
16139
+
16140
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16141
+ const localVarHeaderParameter = {} as any;
16142
+ const localVarQueryParameter = {} as any;
16143
+
16144
+ if (type !== undefined) {
16145
+ localVarQueryParameter['type'] = type;
16146
+ }
16147
+
16148
+ if (userId !== undefined) {
16149
+ localVarQueryParameter['userId'] = userId;
16150
+ }
16151
+
16152
+
16153
+
16154
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16155
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16156
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16157
+
16158
+ return {
16159
+ url: toPathString(localVarUrlObj),
16160
+ options: localVarRequestOptions,
16161
+ };
16162
+ },
13632
16163
  /**
13633
16164
  * Search for contacts by phone number
13634
16165
  * @param {*} [options] Override http request option.
@@ -13653,6 +16184,43 @@ export const CRMApiAxiosParamCreator = function (configuration?: Configuration)
13653
16184
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13654
16185
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13655
16186
 
16187
+ return {
16188
+ url: toPathString(localVarUrlObj),
16189
+ options: localVarRequestOptions,
16190
+ };
16191
+ },
16192
+ /**
16193
+ * Create CRM Note
16194
+ * @param {number} id Account ID
16195
+ * @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
16196
+ * @param {*} [options] Override http request option.
16197
+ * @throws {RequiredError}
16198
+ */
16199
+ postCreateCrmNote: async (id: number, createCrmNoteBody?: CreateCrmNoteBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16200
+ // verify required parameter 'id' is not null or undefined
16201
+ assertParamExists('postCreateCrmNote', 'id', id)
16202
+ const localVarPath = `/admin/crm/{id}/activities/note`
16203
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
16204
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16205
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16206
+ let baseOptions;
16207
+ if (configuration) {
16208
+ baseOptions = configuration.baseOptions;
16209
+ }
16210
+
16211
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16212
+ const localVarHeaderParameter = {} as any;
16213
+ const localVarQueryParameter = {} as any;
16214
+
16215
+
16216
+
16217
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16218
+
16219
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16220
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16221
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16222
+ localVarRequestOptions.data = serializeDataIfNeeded(createCrmNoteBody, localVarRequestOptions, configuration)
16223
+
13656
16224
  return {
13657
16225
  url: toPathString(localVarUrlObj),
13658
16226
  options: localVarRequestOptions,
@@ -13668,6 +16236,20 @@ export const CRMApiAxiosParamCreator = function (configuration?: Configuration)
13668
16236
  export const CRMApiFp = function(configuration?: Configuration) {
13669
16237
  const localVarAxiosParamCreator = CRMApiAxiosParamCreator(configuration)
13670
16238
  return {
16239
+ /**
16240
+ * Get Customer CRM Activities
16241
+ * @param {number} id Account ID
16242
+ * @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
16243
+ * @param {number} [userId] Activity Created By
16244
+ * @param {*} [options] Override http request option.
16245
+ * @throws {RequiredError}
16246
+ */
16247
+ async getGetCrmActivities(id: number, type?: GetGetCrmActivitiesTypeEnum, userId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmActivitiesResponseDTO>> {
16248
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCrmActivities(id, type, userId, options);
16249
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16250
+ const localVarOperationServerBasePath = operationServerMap['CRMApi.getGetCrmActivities']?.[localVarOperationServerIndex]?.url;
16251
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16252
+ },
13671
16253
  /**
13672
16254
  * Search for contacts by phone number
13673
16255
  * @param {*} [options] Override http request option.
@@ -13679,6 +16261,19 @@ export const CRMApiFp = function(configuration?: Configuration) {
13679
16261
  const localVarOperationServerBasePath = operationServerMap['CRMApi.getSearchByPhone']?.[localVarOperationServerIndex]?.url;
13680
16262
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13681
16263
  },
16264
+ /**
16265
+ * Create CRM Note
16266
+ * @param {number} id Account ID
16267
+ * @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
16268
+ * @param {*} [options] Override http request option.
16269
+ * @throws {RequiredError}
16270
+ */
16271
+ async postCreateCrmNote(id: number, createCrmNoteBody?: CreateCrmNoteBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmActivityDTO>> {
16272
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateCrmNote(id, createCrmNoteBody, options);
16273
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16274
+ const localVarOperationServerBasePath = operationServerMap['CRMApi.postCreateCrmNote']?.[localVarOperationServerIndex]?.url;
16275
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16276
+ },
13682
16277
  }
13683
16278
  };
13684
16279
 
@@ -13689,6 +16284,17 @@ export const CRMApiFp = function(configuration?: Configuration) {
13689
16284
  export const CRMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
13690
16285
  const localVarFp = CRMApiFp(configuration)
13691
16286
  return {
16287
+ /**
16288
+ * Get Customer CRM Activities
16289
+ * @param {number} id Account ID
16290
+ * @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
16291
+ * @param {number} [userId] Activity Created By
16292
+ * @param {*} [options] Override http request option.
16293
+ * @throws {RequiredError}
16294
+ */
16295
+ getGetCrmActivities(id: number, type?: GetGetCrmActivitiesTypeEnum, userId?: number, options?: RawAxiosRequestConfig): AxiosPromise<CrmActivitiesResponseDTO> {
16296
+ return localVarFp.getGetCrmActivities(id, type, userId, options).then((request) => request(axios, basePath));
16297
+ },
13692
16298
  /**
13693
16299
  * Search for contacts by phone number
13694
16300
  * @param {*} [options] Override http request option.
@@ -13697,6 +16303,16 @@ export const CRMApiFactory = function (configuration?: Configuration, basePath?:
13697
16303
  getSearchByPhone(options?: RawAxiosRequestConfig): AxiosPromise<CrmContactDTO> {
13698
16304
  return localVarFp.getSearchByPhone(options).then((request) => request(axios, basePath));
13699
16305
  },
16306
+ /**
16307
+ * Create CRM Note
16308
+ * @param {number} id Account ID
16309
+ * @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
16310
+ * @param {*} [options] Override http request option.
16311
+ * @throws {RequiredError}
16312
+ */
16313
+ postCreateCrmNote(id: number, createCrmNoteBody?: CreateCrmNoteBody, options?: RawAxiosRequestConfig): AxiosPromise<CrmActivityDTO> {
16314
+ return localVarFp.postCreateCrmNote(id, createCrmNoteBody, options).then((request) => request(axios, basePath));
16315
+ },
13700
16316
  };
13701
16317
  };
13702
16318
 
@@ -13707,6 +16323,19 @@ export const CRMApiFactory = function (configuration?: Configuration, basePath?:
13707
16323
  * @extends {BaseAPI}
13708
16324
  */
13709
16325
  export class CRMApi extends BaseAPI {
16326
+ /**
16327
+ * Get Customer CRM Activities
16328
+ * @param {number} id Account ID
16329
+ * @param {GetGetCrmActivitiesTypeEnum} [type] Activity Type
16330
+ * @param {number} [userId] Activity Created By
16331
+ * @param {*} [options] Override http request option.
16332
+ * @throws {RequiredError}
16333
+ * @memberof CRMApi
16334
+ */
16335
+ public getGetCrmActivities(id: number, type?: GetGetCrmActivitiesTypeEnum, userId?: number, options?: RawAxiosRequestConfig) {
16336
+ return CRMApiFp(this.configuration).getGetCrmActivities(id, type, userId, options).then((request) => request(this.axios, this.basePath));
16337
+ }
16338
+
13710
16339
  /**
13711
16340
  * Search for contacts by phone number
13712
16341
  * @param {*} [options] Override http request option.
@@ -13716,8 +16345,33 @@ export class CRMApi extends BaseAPI {
13716
16345
  public getSearchByPhone(options?: RawAxiosRequestConfig) {
13717
16346
  return CRMApiFp(this.configuration).getSearchByPhone(options).then((request) => request(this.axios, this.basePath));
13718
16347
  }
16348
+
16349
+ /**
16350
+ * Create CRM Note
16351
+ * @param {number} id Account ID
16352
+ * @param {CreateCrmNoteBody} [createCrmNoteBody] CRM Note Request
16353
+ * @param {*} [options] Override http request option.
16354
+ * @throws {RequiredError}
16355
+ * @memberof CRMApi
16356
+ */
16357
+ public postCreateCrmNote(id: number, createCrmNoteBody?: CreateCrmNoteBody, options?: RawAxiosRequestConfig) {
16358
+ return CRMApiFp(this.configuration).postCreateCrmNote(id, createCrmNoteBody, options).then((request) => request(this.axios, this.basePath));
16359
+ }
13719
16360
  }
13720
16361
 
16362
+ /**
16363
+ * @export
16364
+ */
16365
+ export const GetGetCrmActivitiesTypeEnum = {
16366
+ Alert: 'alert',
16367
+ Call: 'call',
16368
+ Email: 'email',
16369
+ Note: 'note',
16370
+ Order: 'order',
16371
+ Quote: 'quote',
16372
+ TcxOrder: 'tcx_order'
16373
+ } as const;
16374
+ export type GetGetCrmActivitiesTypeEnum = typeof GetGetCrmActivitiesTypeEnum[keyof typeof GetGetCrmActivitiesTypeEnum];
13721
16375
 
13722
16376
 
13723
16377
  /**
@@ -13754,6 +16408,36 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
13754
16408
 
13755
16409
 
13756
16410
 
16411
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16412
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16413
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16414
+
16415
+ return {
16416
+ url: toPathString(localVarUrlObj),
16417
+ options: localVarRequestOptions,
16418
+ };
16419
+ },
16420
+ /**
16421
+ * Get 3CX Expiring Keys
16422
+ * @summary Get 3CX Expiring Keys
16423
+ * @param {*} [options] Override http request option.
16424
+ * @throws {RequiredError}
16425
+ */
16426
+ getGetTcxExpiringKeys: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16427
+ const localVarPath = `/tcx/admin/keys/expiring/csv`;
16428
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16429
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16430
+ let baseOptions;
16431
+ if (configuration) {
16432
+ baseOptions = configuration.baseOptions;
16433
+ }
16434
+
16435
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16436
+ const localVarHeaderParameter = {} as any;
16437
+ const localVarQueryParameter = {} as any;
16438
+
16439
+
16440
+
13757
16441
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13758
16442
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13759
16443
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -13820,6 +16504,18 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
13820
16504
  const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetLicenceDetails']?.[localVarOperationServerIndex]?.url;
13821
16505
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13822
16506
  },
16507
+ /**
16508
+ * Get 3CX Expiring Keys
16509
+ * @summary Get 3CX Expiring Keys
16510
+ * @param {*} [options] Override http request option.
16511
+ * @throws {RequiredError}
16512
+ */
16513
+ async getGetTcxExpiringKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
16514
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetTcxExpiringKeys(options);
16515
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16516
+ const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetTcxExpiringKeys']?.[localVarOperationServerIndex]?.url;
16517
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16518
+ },
13823
16519
  /**
13824
16520
  * Get Bulk 3CX Licence Details
13825
16521
  * @summary Get bulk 3CX Licence Details
@@ -13853,6 +16549,15 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
13853
16549
  getGetLicenceDetails(key: string, options?: RawAxiosRequestConfig): AxiosPromise<TcxLicenceDetailsModel> {
13854
16550
  return localVarFp.getGetLicenceDetails(key, options).then((request) => request(axios, basePath));
13855
16551
  },
16552
+ /**
16553
+ * Get 3CX Expiring Keys
16554
+ * @summary Get 3CX Expiring Keys
16555
+ * @param {*} [options] Override http request option.
16556
+ * @throws {RequiredError}
16557
+ */
16558
+ getGetTcxExpiringKeys(options?: RawAxiosRequestConfig): AxiosPromise<string> {
16559
+ return localVarFp.getGetTcxExpiringKeys(options).then((request) => request(axios, basePath));
16560
+ },
13856
16561
  /**
13857
16562
  * Get Bulk 3CX Licence Details
13858
16563
  * @summary Get bulk 3CX Licence Details
@@ -13885,6 +16590,17 @@ export class Class3CXApi extends BaseAPI {
13885
16590
  return Class3CXApiFp(this.configuration).getGetLicenceDetails(key, options).then((request) => request(this.axios, this.basePath));
13886
16591
  }
13887
16592
 
16593
+ /**
16594
+ * Get 3CX Expiring Keys
16595
+ * @summary Get 3CX Expiring Keys
16596
+ * @param {*} [options] Override http request option.
16597
+ * @throws {RequiredError}
16598
+ * @memberof Class3CXApi
16599
+ */
16600
+ public getGetTcxExpiringKeys(options?: RawAxiosRequestConfig) {
16601
+ return Class3CXApiFp(this.configuration).getGetTcxExpiringKeys(options).then((request) => request(this.axios, this.basePath));
16602
+ }
16603
+
13888
16604
  /**
13889
16605
  * Get Bulk 3CX Licence Details
13890
16606
  * @summary Get bulk 3CX Licence Details
@@ -16445,6 +19161,40 @@ export const Class3CXInstallationsApiAxiosParamCreator = function (configuration
16445
19161
 
16446
19162
 
16447
19163
 
19164
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19165
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19166
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19167
+
19168
+ return {
19169
+ url: toPathString(localVarUrlObj),
19170
+ options: localVarRequestOptions,
19171
+ };
19172
+ },
19173
+ /**
19174
+ * Get Recording Backup Storage
19175
+ * @summary Get Recording Backup Storage
19176
+ * @param {string} instanceId Instance ID
19177
+ * @param {*} [options] Override http request option.
19178
+ * @throws {RequiredError}
19179
+ */
19180
+ getGetRecordingBackupStorage: async (instanceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19181
+ // verify required parameter 'instanceId' is not null or undefined
19182
+ assertParamExists('getGetRecordingBackupStorage', 'instanceId', instanceId)
19183
+ const localVarPath = `/tcx/installations/{instance_id}/recordings/backup`
19184
+ .replace(`{${"instance_id"}}`, encodeURIComponent(String(instanceId)));
19185
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19186
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19187
+ let baseOptions;
19188
+ if (configuration) {
19189
+ baseOptions = configuration.baseOptions;
19190
+ }
19191
+
19192
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19193
+ const localVarHeaderParameter = {} as any;
19194
+ const localVarQueryParameter = {} as any;
19195
+
19196
+
19197
+
16448
19198
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16449
19199
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16450
19200
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -17166,6 +19916,19 @@ export const Class3CXInstallationsApiFp = function(configuration?: Configuration
17166
19916
  const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.getGetInstallations']?.[localVarOperationServerIndex]?.url;
17167
19917
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17168
19918
  },
19919
+ /**
19920
+ * Get Recording Backup Storage
19921
+ * @summary Get Recording Backup Storage
19922
+ * @param {string} instanceId Instance ID
19923
+ * @param {*} [options] Override http request option.
19924
+ * @throws {RequiredError}
19925
+ */
19926
+ async getGetRecordingBackupStorage(instanceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RecordingBackupAzureModel>> {
19927
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetRecordingBackupStorage(instanceId, options);
19928
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19929
+ const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.getGetRecordingBackupStorage']?.[localVarOperationServerIndex]?.url;
19930
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19931
+ },
17169
19932
  /**
17170
19933
  * Change instance owner
17171
19934
  * @summary Change instance owner
@@ -17438,6 +20201,16 @@ export const Class3CXInstallationsApiFactory = function (configuration?: Configu
17438
20201
  getGetInstallations(pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, installType?: GetGetInstallationsInstallTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<TcxInstallationsModel> {
17439
20202
  return localVarFp.getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then((request) => request(axios, basePath));
17440
20203
  },
20204
+ /**
20205
+ * Get Recording Backup Storage
20206
+ * @summary Get Recording Backup Storage
20207
+ * @param {string} instanceId Instance ID
20208
+ * @param {*} [options] Override http request option.
20209
+ * @throws {RequiredError}
20210
+ */
20211
+ getGetRecordingBackupStorage(instanceId: string, options?: RawAxiosRequestConfig): AxiosPromise<RecordingBackupAzureModel> {
20212
+ return localVarFp.getGetRecordingBackupStorage(instanceId, options).then((request) => request(axios, basePath));
20213
+ },
17441
20214
  /**
17442
20215
  * Change instance owner
17443
20216
  * @summary Change instance owner
@@ -17663,6 +20436,18 @@ export class Class3CXInstallationsApi extends BaseAPI {
17663
20436
  return Class3CXInstallationsApiFp(this.configuration).getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then((request) => request(this.axios, this.basePath));
17664
20437
  }
17665
20438
 
20439
+ /**
20440
+ * Get Recording Backup Storage
20441
+ * @summary Get Recording Backup Storage
20442
+ * @param {string} instanceId Instance ID
20443
+ * @param {*} [options] Override http request option.
20444
+ * @throws {RequiredError}
20445
+ * @memberof Class3CXInstallationsApi
20446
+ */
20447
+ public getGetRecordingBackupStorage(instanceId: string, options?: RawAxiosRequestConfig) {
20448
+ return Class3CXInstallationsApiFp(this.configuration).getGetRecordingBackupStorage(instanceId, options).then((request) => request(this.axios, this.basePath));
20449
+ }
20450
+
17666
20451
  /**
17667
20452
  * Change instance owner
17668
20453
  * @summary Change instance owner
@@ -19434,15 +22219,15 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
19434
22219
  /**
19435
22220
  *
19436
22221
  * @param {number} id Number Port ID
19437
- * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
22222
+ * @param {NumberPortAdminNoteBody} numberPortAdminNoteBody Number Port Note Request
19438
22223
  * @param {*} [options] Override http request option.
19439
22224
  * @throws {RequiredError}
19440
22225
  */
19441
- postAddAdminNote: async (id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22226
+ postAddAdminNote: async (id: number, numberPortAdminNoteBody: NumberPortAdminNoteBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19442
22227
  // verify required parameter 'id' is not null or undefined
19443
22228
  assertParamExists('postAddAdminNote', 'id', id)
19444
- // verify required parameter 'postAddAdminNoteRequest' is not null or undefined
19445
- assertParamExists('postAddAdminNote', 'postAddAdminNoteRequest', postAddAdminNoteRequest)
22229
+ // verify required parameter 'numberPortAdminNoteBody' is not null or undefined
22230
+ assertParamExists('postAddAdminNote', 'numberPortAdminNoteBody', numberPortAdminNoteBody)
19446
22231
  const localVarPath = `/admin/sip/numbers/ports/{id}/notes`
19447
22232
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
19448
22233
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -19463,7 +22248,7 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
19463
22248
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19464
22249
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19465
22250
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19466
- localVarRequestOptions.data = serializeDataIfNeeded(postAddAdminNoteRequest, localVarRequestOptions, configuration)
22251
+ localVarRequestOptions.data = serializeDataIfNeeded(numberPortAdminNoteBody, localVarRequestOptions, configuration)
19467
22252
 
19468
22253
  return {
19469
22254
  url: toPathString(localVarUrlObj),
@@ -19897,12 +22682,12 @@ export const NumberPortingApiFp = function(configuration?: Configuration) {
19897
22682
  /**
19898
22683
  *
19899
22684
  * @param {number} id Number Port ID
19900
- * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
22685
+ * @param {NumberPortAdminNoteBody} numberPortAdminNoteBody Number Port Note Request
19901
22686
  * @param {*} [options] Override http request option.
19902
22687
  * @throws {RequiredError}
19903
22688
  */
19904
- async postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>> {
19905
- const localVarAxiosArgs = await localVarAxiosParamCreator.postAddAdminNote(id, postAddAdminNoteRequest, options);
22689
+ async postAddAdminNote(id: number, numberPortAdminNoteBody: NumberPortAdminNoteBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>> {
22690
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postAddAdminNote(id, numberPortAdminNoteBody, options);
19906
22691
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19907
22692
  const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.postAddAdminNote']?.[localVarOperationServerIndex]?.url;
19908
22693
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -20071,12 +22856,12 @@ export const NumberPortingApiFactory = function (configuration?: Configuration,
20071
22856
  /**
20072
22857
  *
20073
22858
  * @param {number} id Number Port ID
20074
- * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
22859
+ * @param {NumberPortAdminNoteBody} numberPortAdminNoteBody Number Port Note Request
20075
22860
  * @param {*} [options] Override http request option.
20076
22861
  * @throws {RequiredError}
20077
22862
  */
20078
- postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO> {
20079
- return localVarFp.postAddAdminNote(id, postAddAdminNoteRequest, options).then((request) => request(axios, basePath));
22863
+ postAddAdminNote(id: number, numberPortAdminNoteBody: NumberPortAdminNoteBody, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO> {
22864
+ return localVarFp.postAddAdminNote(id, numberPortAdminNoteBody, options).then((request) => request(axios, basePath));
20080
22865
  },
20081
22866
  /**
20082
22867
  *
@@ -20244,13 +23029,13 @@ export class NumberPortingApi extends BaseAPI {
20244
23029
  /**
20245
23030
  *
20246
23031
  * @param {number} id Number Port ID
20247
- * @param {PostAddAdminNoteRequest} postAddAdminNoteRequest
23032
+ * @param {NumberPortAdminNoteBody} numberPortAdminNoteBody Number Port Note Request
20248
23033
  * @param {*} [options] Override http request option.
20249
23034
  * @throws {RequiredError}
20250
23035
  * @memberof NumberPortingApi
20251
23036
  */
20252
- public postAddAdminNote(id: number, postAddAdminNoteRequest: PostAddAdminNoteRequest, options?: RawAxiosRequestConfig) {
20253
- return NumberPortingApiFp(this.configuration).postAddAdminNote(id, postAddAdminNoteRequest, options).then((request) => request(this.axios, this.basePath));
23037
+ public postAddAdminNote(id: number, numberPortAdminNoteBody: NumberPortAdminNoteBody, options?: RawAxiosRequestConfig) {
23038
+ return NumberPortingApiFp(this.configuration).postAddAdminNote(id, numberPortAdminNoteBody, options).then((request) => request(this.axios, this.basePath));
20254
23039
  }
20255
23040
 
20256
23041
  /**
@@ -20588,6 +23373,35 @@ export const OAuth20ApiAxiosParamCreator = function (configuration?: Configurati
20588
23373
 
20589
23374
 
20590
23375
 
23376
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23377
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23378
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
23379
+
23380
+ return {
23381
+ url: toPathString(localVarUrlObj),
23382
+ options: localVarRequestOptions,
23383
+ };
23384
+ },
23385
+ /**
23386
+ * Remove Oauth 2.0 Cookies
23387
+ * @param {*} [options] Override http request option.
23388
+ * @throws {RequiredError}
23389
+ */
23390
+ postLogout: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
23391
+ const localVarPath = `/oauth2/logout`;
23392
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23393
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23394
+ let baseOptions;
23395
+ if (configuration) {
23396
+ baseOptions = configuration.baseOptions;
23397
+ }
23398
+
23399
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
23400
+ const localVarHeaderParameter = {} as any;
23401
+ const localVarQueryParameter = {} as any;
23402
+
23403
+
23404
+
20591
23405
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20592
23406
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20593
23407
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -20720,6 +23534,17 @@ export const OAuth20ApiFp = function(configuration?: Configuration) {
20720
23534
  const localVarOperationServerBasePath = operationServerMap['OAuth20Api.postGetIdentity']?.[localVarOperationServerIndex]?.url;
20721
23535
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20722
23536
  },
23537
+ /**
23538
+ * Remove Oauth 2.0 Cookies
23539
+ * @param {*} [options] Override http request option.
23540
+ * @throws {RequiredError}
23541
+ */
23542
+ async postLogout(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
23543
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postLogout(options);
23544
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
23545
+ const localVarOperationServerBasePath = operationServerMap['OAuth20Api.postLogout']?.[localVarOperationServerIndex]?.url;
23546
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23547
+ },
20723
23548
  /**
20724
23549
  * Portal Login
20725
23550
  * @summary Portal Login
@@ -20807,6 +23632,14 @@ export const OAuth20ApiFactory = function (configuration?: Configuration, basePa
20807
23632
  postGetIdentity(options?: RawAxiosRequestConfig): AxiosPromise<ClientDetailsModel> {
20808
23633
  return localVarFp.postGetIdentity(options).then((request) => request(axios, basePath));
20809
23634
  },
23635
+ /**
23636
+ * Remove Oauth 2.0 Cookies
23637
+ * @param {*} [options] Override http request option.
23638
+ * @throws {RequiredError}
23639
+ */
23640
+ postLogout(options?: RawAxiosRequestConfig): AxiosPromise<void> {
23641
+ return localVarFp.postLogout(options).then((request) => request(axios, basePath));
23642
+ },
20810
23643
  /**
20811
23644
  * Portal Login
20812
23645
  * @summary Portal Login
@@ -20901,6 +23734,16 @@ export class OAuth20Api extends BaseAPI {
20901
23734
  return OAuth20ApiFp(this.configuration).postGetIdentity(options).then((request) => request(this.axios, this.basePath));
20902
23735
  }
20903
23736
 
23737
+ /**
23738
+ * Remove Oauth 2.0 Cookies
23739
+ * @param {*} [options] Override http request option.
23740
+ * @throws {RequiredError}
23741
+ * @memberof OAuth20Api
23742
+ */
23743
+ public postLogout(options?: RawAxiosRequestConfig) {
23744
+ return OAuth20ApiFp(this.configuration).postLogout(options).then((request) => request(this.axios, this.basePath));
23745
+ }
23746
+
20904
23747
  /**
20905
23748
  * Portal Login
20906
23749
  * @summary Portal Login
@@ -24163,15 +27006,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
24163
27006
  * Get Product
24164
27007
  * @summary Get Product
24165
27008
  * @param {string} sku Product SKU
24166
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
27009
+ * @param {ProductSearchDTO} [productSearchDTO] Product Search Info
24167
27010
  * @param {*} [options] Override http request option.
24168
27011
  * @throws {RequiredError}
24169
27012
  */
24170
- postGetProduct: async (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27013
+ postGetProduct: async (sku: string, productSearchDTO?: ProductSearchDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
24171
27014
  // verify required parameter 'sku' is not null or undefined
24172
27015
  assertParamExists('postGetProduct', 'sku', sku)
24173
- // verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
24174
- assertParamExists('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
24175
27016
  const localVarPath = `/products/{sku}`
24176
27017
  .replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
24177
27018
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -24192,7 +27033,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
24192
27033
  setSearchParams(localVarUrlObj, localVarQueryParameter);
24193
27034
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24194
27035
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
24195
- localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
27036
+ localVarRequestOptions.data = serializeDataIfNeeded(productSearchDTO, localVarRequestOptions, configuration)
24196
27037
 
24197
27038
  return {
24198
27039
  url: toPathString(localVarUrlObj),
@@ -24204,17 +27045,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
24204
27045
  * @summary Get Product For Customer
24205
27046
  * @param {number} customerId Customer ID
24206
27047
  * @param {string} sku Product SKU
24207
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
27048
+ * @param {ProductSearchDTO} [productSearchDTO] Product Search Info
24208
27049
  * @param {*} [options] Override http request option.
24209
27050
  * @throws {RequiredError}
24210
27051
  */
24211
- postGetProductForCustomer: async (customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27052
+ postGetProductForCustomer: async (customerId: number, sku: string, productSearchDTO?: ProductSearchDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
24212
27053
  // verify required parameter 'customerId' is not null or undefined
24213
27054
  assertParamExists('postGetProductForCustomer', 'customerId', customerId)
24214
27055
  // verify required parameter 'sku' is not null or undefined
24215
27056
  assertParamExists('postGetProductForCustomer', 'sku', sku)
24216
- // verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
24217
- assertParamExists('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
24218
27057
  const localVarPath = `/admin/products/{sku}`
24219
27058
  .replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
24220
27059
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -24239,7 +27078,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
24239
27078
  setSearchParams(localVarUrlObj, localVarQueryParameter);
24240
27079
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24241
27080
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
24242
- localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
27081
+ localVarRequestOptions.data = serializeDataIfNeeded(productSearchDTO, localVarRequestOptions, configuration)
24243
27082
 
24244
27083
  return {
24245
27084
  url: toPathString(localVarUrlObj),
@@ -24363,12 +27202,12 @@ export const ProductsApiFp = function(configuration?: Configuration) {
24363
27202
  * Get Product
24364
27203
  * @summary Get Product
24365
27204
  * @param {string} sku Product SKU
24366
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
27205
+ * @param {ProductSearchDTO} [productSearchDTO] Product Search Info
24367
27206
  * @param {*} [options] Override http request option.
24368
27207
  * @throws {RequiredError}
24369
27208
  */
24370
- async postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
24371
- const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options);
27209
+ async postGetProduct(sku: string, productSearchDTO?: ProductSearchDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
27210
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku, productSearchDTO, options);
24372
27211
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
24373
27212
  const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProduct']?.[localVarOperationServerIndex]?.url;
24374
27213
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -24378,12 +27217,12 @@ export const ProductsApiFp = function(configuration?: Configuration) {
24378
27217
  * @summary Get Product For Customer
24379
27218
  * @param {number} customerId Customer ID
24380
27219
  * @param {string} sku Product SKU
24381
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
27220
+ * @param {ProductSearchDTO} [productSearchDTO] Product Search Info
24382
27221
  * @param {*} [options] Override http request option.
24383
27222
  * @throws {RequiredError}
24384
27223
  */
24385
- async postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
24386
- const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options);
27224
+ async postGetProductForCustomer(customerId: number, sku: string, productSearchDTO?: ProductSearchDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
27225
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, productSearchDTO, options);
24387
27226
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
24388
27227
  const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProductForCustomer']?.[localVarOperationServerIndex]?.url;
24389
27228
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -24481,24 +27320,24 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
24481
27320
  * Get Product
24482
27321
  * @summary Get Product
24483
27322
  * @param {string} sku Product SKU
24484
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
27323
+ * @param {ProductSearchDTO} [productSearchDTO] Product Search Info
24485
27324
  * @param {*} [options] Override http request option.
24486
27325
  * @throws {RequiredError}
24487
27326
  */
24488
- postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
24489
- return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
27327
+ postGetProduct(sku: string, productSearchDTO?: ProductSearchDTO, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
27328
+ return localVarFp.postGetProduct(sku, productSearchDTO, options).then((request) => request(axios, basePath));
24490
27329
  },
24491
27330
  /**
24492
27331
  * Get Product For Customer
24493
27332
  * @summary Get Product For Customer
24494
27333
  * @param {number} customerId Customer ID
24495
27334
  * @param {string} sku Product SKU
24496
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
27335
+ * @param {ProductSearchDTO} [productSearchDTO] Product Search Info
24497
27336
  * @param {*} [options] Override http request option.
24498
27337
  * @throws {RequiredError}
24499
27338
  */
24500
- postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
24501
- return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
27339
+ postGetProductForCustomer(customerId: number, sku: string, productSearchDTO?: ProductSearchDTO, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
27340
+ return localVarFp.postGetProductForCustomer(customerId, sku, productSearchDTO, options).then((request) => request(axios, basePath));
24502
27341
  },
24503
27342
  };
24504
27343
  };
@@ -24609,13 +27448,13 @@ export class ProductsApi extends BaseAPI {
24609
27448
  * Get Product
24610
27449
  * @summary Get Product
24611
27450
  * @param {string} sku Product SKU
24612
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
27451
+ * @param {ProductSearchDTO} [productSearchDTO] Product Search Info
24613
27452
  * @param {*} [options] Override http request option.
24614
27453
  * @throws {RequiredError}
24615
27454
  * @memberof ProductsApi
24616
27455
  */
24617
- public postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
24618
- return ProductsApiFp(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
27456
+ public postGetProduct(sku: string, productSearchDTO?: ProductSearchDTO, options?: RawAxiosRequestConfig) {
27457
+ return ProductsApiFp(this.configuration).postGetProduct(sku, productSearchDTO, options).then((request) => request(this.axios, this.basePath));
24619
27458
  }
24620
27459
 
24621
27460
  /**
@@ -24623,13 +27462,13 @@ export class ProductsApi extends BaseAPI {
24623
27462
  * @summary Get Product For Customer
24624
27463
  * @param {number} customerId Customer ID
24625
27464
  * @param {string} sku Product SKU
24626
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
27465
+ * @param {ProductSearchDTO} [productSearchDTO] Product Search Info
24627
27466
  * @param {*} [options] Override http request option.
24628
27467
  * @throws {RequiredError}
24629
27468
  * @memberof ProductsApi
24630
27469
  */
24631
- public postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
24632
- return ProductsApiFp(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
27470
+ public postGetProductForCustomer(customerId: number, sku: string, productSearchDTO?: ProductSearchDTO, options?: RawAxiosRequestConfig) {
27471
+ return ProductsApiFp(this.configuration).postGetProductForCustomer(customerId, sku, productSearchDTO, options).then((request) => request(this.axios, this.basePath));
24633
27472
  }
24634
27473
  }
24635
27474