@paid-ai/paid-node 1.1.0 → 1.2.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 (161) hide show
  1. package/README.md +2 -0
  2. package/dist/cjs/Client.d.ts +9 -0
  3. package/dist/cjs/Client.js +29 -14
  4. package/dist/cjs/api/resources/checkouts/client/Client.d.ts +84 -0
  5. package/dist/cjs/api/resources/checkouts/client/Client.js +350 -0
  6. package/dist/cjs/api/resources/checkouts/client/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/checkouts/client/index.js +17 -0
  8. package/dist/cjs/api/resources/checkouts/client/requests/ArchiveCheckoutRequest.d.ts +9 -0
  9. package/dist/cjs/api/resources/checkouts/client/requests/ArchiveCheckoutRequest.js +3 -0
  10. package/dist/cjs/api/resources/checkouts/client/requests/CreateCheckoutRequest.d.ts +23 -0
  11. package/dist/cjs/api/resources/checkouts/client/requests/CreateCheckoutRequest.js +3 -0
  12. package/dist/cjs/api/resources/checkouts/client/requests/GetCheckoutRequest.d.ts +9 -0
  13. package/dist/cjs/api/resources/checkouts/client/requests/GetCheckoutRequest.js +3 -0
  14. package/dist/cjs/api/resources/checkouts/client/requests/ListCheckoutsRequest.d.ts +10 -0
  15. package/dist/cjs/api/resources/checkouts/client/requests/ListCheckoutsRequest.js +3 -0
  16. package/dist/cjs/api/resources/checkouts/client/requests/index.d.ts +4 -0
  17. package/dist/cjs/api/resources/checkouts/client/requests/index.js +2 -0
  18. package/dist/cjs/api/resources/checkouts/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/checkouts/index.js +18 -0
  20. package/dist/cjs/api/resources/checkouts/types/ListCheckoutsRequestStatus.d.ts +6 -0
  21. package/dist/cjs/api/resources/checkouts/types/ListCheckoutsRequestStatus.js +9 -0
  22. package/dist/cjs/api/resources/checkouts/types/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/checkouts/types/index.js +17 -0
  24. package/dist/cjs/api/resources/credits/client/Client.d.ts +27 -0
  25. package/dist/cjs/api/resources/credits/client/Client.js +123 -0
  26. package/dist/cjs/api/resources/credits/client/index.d.ts +1 -0
  27. package/dist/cjs/api/resources/credits/client/index.js +2 -0
  28. package/dist/cjs/api/resources/credits/index.d.ts +1 -0
  29. package/dist/cjs/api/resources/credits/index.js +17 -0
  30. package/dist/cjs/api/resources/customerPortals/client/Client.d.ts +30 -0
  31. package/dist/cjs/api/resources/customerPortals/client/Client.js +133 -0
  32. package/dist/cjs/api/resources/customerPortals/client/index.d.ts +1 -0
  33. package/dist/cjs/api/resources/customerPortals/client/index.js +17 -0
  34. package/dist/cjs/api/resources/customerPortals/client/requests/CreateCustomerPortalRequest.d.ts +12 -0
  35. package/dist/cjs/api/resources/customerPortals/client/requests/CreateCustomerPortalRequest.js +3 -0
  36. package/dist/cjs/api/resources/customerPortals/client/requests/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/customerPortals/client/requests/index.js +2 -0
  38. package/dist/cjs/api/resources/customerPortals/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/customerPortals/index.js +17 -0
  40. package/dist/cjs/api/resources/customers/client/Client.d.ts +34 -0
  41. package/dist/cjs/api/resources/customers/client/Client.js +136 -0
  42. package/dist/cjs/api/resources/customers/client/requests/GetCustomerCreditBalancesByExternalIdRequest.d.ts +9 -0
  43. package/dist/cjs/api/resources/customers/client/requests/GetCustomerCreditBalancesByExternalIdRequest.js +3 -0
  44. package/dist/cjs/api/resources/customers/client/requests/GetCustomerCreditBalancesRequest.d.ts +9 -0
  45. package/dist/cjs/api/resources/customers/client/requests/GetCustomerCreditBalancesRequest.js +3 -0
  46. package/dist/cjs/api/resources/customers/client/requests/index.d.ts +2 -0
  47. package/dist/cjs/api/resources/index.d.ts +6 -0
  48. package/dist/cjs/api/resources/index.js +7 -1
  49. package/dist/cjs/api/resources/orders/client/requests/CreateOrderRequest.d.ts +11 -7
  50. package/dist/cjs/api/resources/orders/client/requests/UpdateOrderRequest.d.ts +10 -7
  51. package/dist/cjs/api/types/Checkout.d.ts +18 -0
  52. package/dist/cjs/api/types/Checkout.js +3 -0
  53. package/dist/cjs/api/types/CheckoutListResponse.d.ts +5 -0
  54. package/dist/cjs/api/types/CheckoutListResponse.js +3 -0
  55. package/dist/cjs/api/types/CheckoutProduct.d.ts +3 -0
  56. package/dist/cjs/api/types/CheckoutProduct.js +3 -0
  57. package/dist/cjs/api/types/CheckoutProductInput.d.ts +3 -0
  58. package/dist/cjs/api/types/CheckoutProductInput.js +3 -0
  59. package/dist/cjs/api/types/CheckoutStatus.d.ts +7 -0
  60. package/dist/cjs/api/types/CheckoutStatus.js +10 -0
  61. package/dist/cjs/api/types/CreateOrderLineAttributeRequest.d.ts +116 -1
  62. package/dist/cjs/api/types/CreateOrderLineAttributeRequest.js +70 -0
  63. package/dist/cjs/api/types/CreateOrderLineRequest.d.ts +3 -3
  64. package/dist/cjs/api/types/CreditBalance.d.ts +19 -0
  65. package/dist/cjs/api/types/CreditBalance.js +11 -0
  66. package/dist/cjs/api/types/CreditBalanceListResponse.d.ts +4 -0
  67. package/dist/cjs/api/types/CreditBalanceListResponse.js +3 -0
  68. package/dist/cjs/api/types/CreditCurrency.d.ts +9 -0
  69. package/dist/cjs/api/types/CreditCurrency.js +3 -0
  70. package/dist/cjs/api/types/CreditCurrencyListResponse.d.ts +4 -0
  71. package/dist/cjs/api/types/CreditCurrencyListResponse.js +3 -0
  72. package/dist/cjs/api/types/CustomerPortal.d.ts +10 -0
  73. package/dist/cjs/api/types/CustomerPortal.js +3 -0
  74. package/dist/cjs/api/types/CustomerPortalStatus.d.ts +5 -0
  75. package/dist/cjs/api/types/CustomerPortalStatus.js +8 -0
  76. package/dist/cjs/api/types/Order.d.ts +3 -0
  77. package/dist/cjs/api/types/index.d.ts +11 -0
  78. package/dist/cjs/api/types/index.js +11 -0
  79. package/dist/cjs/version.d.ts +1 -1
  80. package/dist/cjs/version.js +1 -1
  81. package/dist/esm/Client.d.mts +9 -0
  82. package/dist/esm/Client.mjs +17 -2
  83. package/dist/esm/api/resources/checkouts/client/Client.d.mts +84 -0
  84. package/dist/esm/api/resources/checkouts/client/Client.mjs +313 -0
  85. package/dist/esm/api/resources/checkouts/client/index.d.mts +1 -0
  86. package/dist/esm/api/resources/checkouts/client/index.mjs +1 -0
  87. package/dist/esm/api/resources/checkouts/client/requests/ArchiveCheckoutRequest.d.mts +9 -0
  88. package/dist/esm/api/resources/checkouts/client/requests/ArchiveCheckoutRequest.mjs +2 -0
  89. package/dist/esm/api/resources/checkouts/client/requests/CreateCheckoutRequest.d.mts +23 -0
  90. package/dist/esm/api/resources/checkouts/client/requests/CreateCheckoutRequest.mjs +2 -0
  91. package/dist/esm/api/resources/checkouts/client/requests/GetCheckoutRequest.d.mts +9 -0
  92. package/dist/esm/api/resources/checkouts/client/requests/GetCheckoutRequest.mjs +2 -0
  93. package/dist/esm/api/resources/checkouts/client/requests/ListCheckoutsRequest.d.mts +10 -0
  94. package/dist/esm/api/resources/checkouts/client/requests/ListCheckoutsRequest.mjs +2 -0
  95. package/dist/esm/api/resources/checkouts/client/requests/index.d.mts +4 -0
  96. package/dist/esm/api/resources/checkouts/client/requests/index.mjs +1 -0
  97. package/dist/esm/api/resources/checkouts/index.d.mts +2 -0
  98. package/dist/esm/api/resources/checkouts/index.mjs +2 -0
  99. package/dist/esm/api/resources/checkouts/types/ListCheckoutsRequestStatus.d.mts +6 -0
  100. package/dist/esm/api/resources/checkouts/types/ListCheckoutsRequestStatus.mjs +6 -0
  101. package/dist/esm/api/resources/checkouts/types/index.d.mts +1 -0
  102. package/dist/esm/api/resources/checkouts/types/index.mjs +1 -0
  103. package/dist/esm/api/resources/credits/client/Client.d.mts +27 -0
  104. package/dist/esm/api/resources/credits/client/Client.mjs +86 -0
  105. package/dist/esm/api/resources/credits/client/index.d.mts +1 -0
  106. package/dist/esm/api/resources/credits/client/index.mjs +1 -0
  107. package/dist/esm/api/resources/credits/index.d.mts +1 -0
  108. package/dist/esm/api/resources/credits/index.mjs +1 -0
  109. package/dist/esm/api/resources/customerPortals/client/Client.d.mts +30 -0
  110. package/dist/esm/api/resources/customerPortals/client/Client.mjs +96 -0
  111. package/dist/esm/api/resources/customerPortals/client/index.d.mts +1 -0
  112. package/dist/esm/api/resources/customerPortals/client/index.mjs +1 -0
  113. package/dist/esm/api/resources/customerPortals/client/requests/CreateCustomerPortalRequest.d.mts +12 -0
  114. package/dist/esm/api/resources/customerPortals/client/requests/CreateCustomerPortalRequest.mjs +2 -0
  115. package/dist/esm/api/resources/customerPortals/client/requests/index.d.mts +1 -0
  116. package/dist/esm/api/resources/customerPortals/client/requests/index.mjs +1 -0
  117. package/dist/esm/api/resources/customerPortals/index.d.mts +1 -0
  118. package/dist/esm/api/resources/customerPortals/index.mjs +1 -0
  119. package/dist/esm/api/resources/customers/client/Client.d.mts +34 -0
  120. package/dist/esm/api/resources/customers/client/Client.mjs +136 -0
  121. package/dist/esm/api/resources/customers/client/requests/GetCustomerCreditBalancesByExternalIdRequest.d.mts +9 -0
  122. package/dist/esm/api/resources/customers/client/requests/GetCustomerCreditBalancesByExternalIdRequest.mjs +2 -0
  123. package/dist/esm/api/resources/customers/client/requests/GetCustomerCreditBalancesRequest.d.mts +9 -0
  124. package/dist/esm/api/resources/customers/client/requests/GetCustomerCreditBalancesRequest.mjs +2 -0
  125. package/dist/esm/api/resources/customers/client/requests/index.d.mts +2 -0
  126. package/dist/esm/api/resources/index.d.mts +6 -0
  127. package/dist/esm/api/resources/index.mjs +6 -0
  128. package/dist/esm/api/resources/orders/client/requests/CreateOrderRequest.d.mts +11 -7
  129. package/dist/esm/api/resources/orders/client/requests/UpdateOrderRequest.d.mts +10 -7
  130. package/dist/esm/api/types/Checkout.d.mts +18 -0
  131. package/dist/esm/api/types/Checkout.mjs +2 -0
  132. package/dist/esm/api/types/CheckoutListResponse.d.mts +5 -0
  133. package/dist/esm/api/types/CheckoutListResponse.mjs +2 -0
  134. package/dist/esm/api/types/CheckoutProduct.d.mts +3 -0
  135. package/dist/esm/api/types/CheckoutProduct.mjs +2 -0
  136. package/dist/esm/api/types/CheckoutProductInput.d.mts +3 -0
  137. package/dist/esm/api/types/CheckoutProductInput.mjs +2 -0
  138. package/dist/esm/api/types/CheckoutStatus.d.mts +7 -0
  139. package/dist/esm/api/types/CheckoutStatus.mjs +7 -0
  140. package/dist/esm/api/types/CreateOrderLineAttributeRequest.d.mts +116 -1
  141. package/dist/esm/api/types/CreateOrderLineAttributeRequest.mjs +69 -1
  142. package/dist/esm/api/types/CreateOrderLineRequest.d.mts +3 -3
  143. package/dist/esm/api/types/CreditBalance.d.mts +19 -0
  144. package/dist/esm/api/types/CreditBalance.mjs +8 -0
  145. package/dist/esm/api/types/CreditBalanceListResponse.d.mts +4 -0
  146. package/dist/esm/api/types/CreditBalanceListResponse.mjs +2 -0
  147. package/dist/esm/api/types/CreditCurrency.d.mts +9 -0
  148. package/dist/esm/api/types/CreditCurrency.mjs +2 -0
  149. package/dist/esm/api/types/CreditCurrencyListResponse.d.mts +4 -0
  150. package/dist/esm/api/types/CreditCurrencyListResponse.mjs +2 -0
  151. package/dist/esm/api/types/CustomerPortal.d.mts +10 -0
  152. package/dist/esm/api/types/CustomerPortal.mjs +2 -0
  153. package/dist/esm/api/types/CustomerPortalStatus.d.mts +5 -0
  154. package/dist/esm/api/types/CustomerPortalStatus.mjs +5 -0
  155. package/dist/esm/api/types/Order.d.mts +3 -0
  156. package/dist/esm/api/types/index.d.mts +11 -0
  157. package/dist/esm/api/types/index.mjs +11 -0
  158. package/dist/esm/version.d.mts +1 -1
  159. package/dist/esm/version.mjs +1 -1
  160. package/package.json +3 -3
  161. package/reference.md +512 -0
package/reference.md CHANGED
@@ -907,6 +907,136 @@ await client.customers.deleteCustomerByExternalId({
907
907
  </dl>
908
908
 
909
909
 
910
+ </dd>
911
+ </dl>
912
+ </details>
913
+
914
+ <details><summary><code>client.customers.<a href="/src/api/resources/customers/client/Client.ts">getCustomerCreditBalances</a>({ ...params }) -> Paid.CreditBalanceListResponse</code></summary>
915
+ <dl>
916
+ <dd>
917
+
918
+ #### 📝 Description
919
+
920
+ <dl>
921
+ <dd>
922
+
923
+ <dl>
924
+ <dd>
925
+
926
+ Get current customer credit balances grouped by currency
927
+ </dd>
928
+ </dl>
929
+ </dd>
930
+ </dl>
931
+
932
+ #### 🔌 Usage
933
+
934
+ <dl>
935
+ <dd>
936
+
937
+ <dl>
938
+ <dd>
939
+
940
+ ```typescript
941
+ await client.customers.getCustomerCreditBalances({
942
+ id: "id"
943
+ });
944
+
945
+ ```
946
+ </dd>
947
+ </dl>
948
+ </dd>
949
+ </dl>
950
+
951
+ #### ⚙️ Parameters
952
+
953
+ <dl>
954
+ <dd>
955
+
956
+ <dl>
957
+ <dd>
958
+
959
+ **request:** `Paid.GetCustomerCreditBalancesRequest`
960
+
961
+ </dd>
962
+ </dl>
963
+
964
+ <dl>
965
+ <dd>
966
+
967
+ **requestOptions:** `Customers.RequestOptions`
968
+
969
+ </dd>
970
+ </dl>
971
+ </dd>
972
+ </dl>
973
+
974
+
975
+ </dd>
976
+ </dl>
977
+ </details>
978
+
979
+ <details><summary><code>client.customers.<a href="/src/api/resources/customers/client/Client.ts">getCustomerCreditBalancesByExternalId</a>({ ...params }) -> Paid.CreditBalanceListResponse</code></summary>
980
+ <dl>
981
+ <dd>
982
+
983
+ #### 📝 Description
984
+
985
+ <dl>
986
+ <dd>
987
+
988
+ <dl>
989
+ <dd>
990
+
991
+ Get current customer credit balances grouped by currency, looked up by external ID
992
+ </dd>
993
+ </dl>
994
+ </dd>
995
+ </dl>
996
+
997
+ #### 🔌 Usage
998
+
999
+ <dl>
1000
+ <dd>
1001
+
1002
+ <dl>
1003
+ <dd>
1004
+
1005
+ ```typescript
1006
+ await client.customers.getCustomerCreditBalancesByExternalId({
1007
+ externalId: "externalId"
1008
+ });
1009
+
1010
+ ```
1011
+ </dd>
1012
+ </dl>
1013
+ </dd>
1014
+ </dl>
1015
+
1016
+ #### ⚙️ Parameters
1017
+
1018
+ <dl>
1019
+ <dd>
1020
+
1021
+ <dl>
1022
+ <dd>
1023
+
1024
+ **request:** `Paid.GetCustomerCreditBalancesByExternalIdRequest`
1025
+
1026
+ </dd>
1027
+ </dl>
1028
+
1029
+ <dl>
1030
+ <dd>
1031
+
1032
+ **requestOptions:** `Customers.RequestOptions`
1033
+
1034
+ </dd>
1035
+ </dl>
1036
+ </dd>
1037
+ </dl>
1038
+
1039
+
910
1040
  </dd>
911
1041
  </dl>
912
1042
  </details>
@@ -2148,6 +2278,388 @@ await client.signals.createSignals({
2148
2278
  </dl>
2149
2279
 
2150
2280
 
2281
+ </dd>
2282
+ </dl>
2283
+ </details>
2284
+
2285
+ ## Credits
2286
+ <details><summary><code>client.credits.<a href="/src/api/resources/credits/client/Client.ts">listCreditCurrencies</a>() -> Paid.CreditCurrencyListResponse</code></summary>
2287
+ <dl>
2288
+ <dd>
2289
+
2290
+ #### 📝 Description
2291
+
2292
+ <dl>
2293
+ <dd>
2294
+
2295
+ <dl>
2296
+ <dd>
2297
+
2298
+ List credit currencies for the organization
2299
+ </dd>
2300
+ </dl>
2301
+ </dd>
2302
+ </dl>
2303
+
2304
+ #### 🔌 Usage
2305
+
2306
+ <dl>
2307
+ <dd>
2308
+
2309
+ <dl>
2310
+ <dd>
2311
+
2312
+ ```typescript
2313
+ await client.credits.listCreditCurrencies();
2314
+
2315
+ ```
2316
+ </dd>
2317
+ </dl>
2318
+ </dd>
2319
+ </dl>
2320
+
2321
+ #### ⚙️ Parameters
2322
+
2323
+ <dl>
2324
+ <dd>
2325
+
2326
+ <dl>
2327
+ <dd>
2328
+
2329
+ **requestOptions:** `Credits.RequestOptions`
2330
+
2331
+ </dd>
2332
+ </dl>
2333
+ </dd>
2334
+ </dl>
2335
+
2336
+
2337
+ </dd>
2338
+ </dl>
2339
+ </details>
2340
+
2341
+ ## Checkouts
2342
+ <details><summary><code>client.checkouts.<a href="/src/api/resources/checkouts/client/Client.ts">listCheckouts</a>({ ...params }) -> Paid.CheckoutListResponse</code></summary>
2343
+ <dl>
2344
+ <dd>
2345
+
2346
+ #### 📝 Description
2347
+
2348
+ <dl>
2349
+ <dd>
2350
+
2351
+ <dl>
2352
+ <dd>
2353
+
2354
+ Get a list of checkouts for the organization
2355
+ </dd>
2356
+ </dl>
2357
+ </dd>
2358
+ </dl>
2359
+
2360
+ #### 🔌 Usage
2361
+
2362
+ <dl>
2363
+ <dd>
2364
+
2365
+ <dl>
2366
+ <dd>
2367
+
2368
+ ```typescript
2369
+ await client.checkouts.listCheckouts();
2370
+
2371
+ ```
2372
+ </dd>
2373
+ </dl>
2374
+ </dd>
2375
+ </dl>
2376
+
2377
+ #### ⚙️ Parameters
2378
+
2379
+ <dl>
2380
+ <dd>
2381
+
2382
+ <dl>
2383
+ <dd>
2384
+
2385
+ **request:** `Paid.ListCheckoutsRequest`
2386
+
2387
+ </dd>
2388
+ </dl>
2389
+
2390
+ <dl>
2391
+ <dd>
2392
+
2393
+ **requestOptions:** `Checkouts.RequestOptions`
2394
+
2395
+ </dd>
2396
+ </dl>
2397
+ </dd>
2398
+ </dl>
2399
+
2400
+
2401
+ </dd>
2402
+ </dl>
2403
+ </details>
2404
+
2405
+ <details><summary><code>client.checkouts.<a href="/src/api/resources/checkouts/client/Client.ts">createCheckout</a>({ ...params }) -> Paid.Checkout</code></summary>
2406
+ <dl>
2407
+ <dd>
2408
+
2409
+ #### 📝 Description
2410
+
2411
+ <dl>
2412
+ <dd>
2413
+
2414
+ <dl>
2415
+ <dd>
2416
+
2417
+ Creates a checkout link that generates a URL for a customer to complete a purchase
2418
+ </dd>
2419
+ </dl>
2420
+ </dd>
2421
+ </dl>
2422
+
2423
+ #### 🔌 Usage
2424
+
2425
+ <dl>
2426
+ <dd>
2427
+
2428
+ <dl>
2429
+ <dd>
2430
+
2431
+ ```typescript
2432
+ await client.checkouts.createCheckout({
2433
+ products: [{
2434
+ id: "id"
2435
+ }],
2436
+ successUrl: "successUrl"
2437
+ });
2438
+
2439
+ ```
2440
+ </dd>
2441
+ </dl>
2442
+ </dd>
2443
+ </dl>
2444
+
2445
+ #### ⚙️ Parameters
2446
+
2447
+ <dl>
2448
+ <dd>
2449
+
2450
+ <dl>
2451
+ <dd>
2452
+
2453
+ **request:** `Paid.CreateCheckoutRequest`
2454
+
2455
+ </dd>
2456
+ </dl>
2457
+
2458
+ <dl>
2459
+ <dd>
2460
+
2461
+ **requestOptions:** `Checkouts.RequestOptions`
2462
+
2463
+ </dd>
2464
+ </dl>
2465
+ </dd>
2466
+ </dl>
2467
+
2468
+
2469
+ </dd>
2470
+ </dl>
2471
+ </details>
2472
+
2473
+ <details><summary><code>client.checkouts.<a href="/src/api/resources/checkouts/client/Client.ts">getCheckout</a>({ ...params }) -> Paid.Checkout</code></summary>
2474
+ <dl>
2475
+ <dd>
2476
+
2477
+ #### 📝 Description
2478
+
2479
+ <dl>
2480
+ <dd>
2481
+
2482
+ <dl>
2483
+ <dd>
2484
+
2485
+ Get a checkout by ID
2486
+ </dd>
2487
+ </dl>
2488
+ </dd>
2489
+ </dl>
2490
+
2491
+ #### 🔌 Usage
2492
+
2493
+ <dl>
2494
+ <dd>
2495
+
2496
+ <dl>
2497
+ <dd>
2498
+
2499
+ ```typescript
2500
+ await client.checkouts.getCheckout({
2501
+ id: "id"
2502
+ });
2503
+
2504
+ ```
2505
+ </dd>
2506
+ </dl>
2507
+ </dd>
2508
+ </dl>
2509
+
2510
+ #### ⚙️ Parameters
2511
+
2512
+ <dl>
2513
+ <dd>
2514
+
2515
+ <dl>
2516
+ <dd>
2517
+
2518
+ **request:** `Paid.GetCheckoutRequest`
2519
+
2520
+ </dd>
2521
+ </dl>
2522
+
2523
+ <dl>
2524
+ <dd>
2525
+
2526
+ **requestOptions:** `Checkouts.RequestOptions`
2527
+
2528
+ </dd>
2529
+ </dl>
2530
+ </dd>
2531
+ </dl>
2532
+
2533
+
2534
+ </dd>
2535
+ </dl>
2536
+ </details>
2537
+
2538
+ <details><summary><code>client.checkouts.<a href="/src/api/resources/checkouts/client/Client.ts">archiveCheckout</a>({ ...params }) -> Paid.EmptyResponse</code></summary>
2539
+ <dl>
2540
+ <dd>
2541
+
2542
+ #### 📝 Description
2543
+
2544
+ <dl>
2545
+ <dd>
2546
+
2547
+ <dl>
2548
+ <dd>
2549
+
2550
+ Archive a checkout by ID
2551
+ </dd>
2552
+ </dl>
2553
+ </dd>
2554
+ </dl>
2555
+
2556
+ #### 🔌 Usage
2557
+
2558
+ <dl>
2559
+ <dd>
2560
+
2561
+ <dl>
2562
+ <dd>
2563
+
2564
+ ```typescript
2565
+ await client.checkouts.archiveCheckout({
2566
+ id: "id"
2567
+ });
2568
+
2569
+ ```
2570
+ </dd>
2571
+ </dl>
2572
+ </dd>
2573
+ </dl>
2574
+
2575
+ #### ⚙️ Parameters
2576
+
2577
+ <dl>
2578
+ <dd>
2579
+
2580
+ <dl>
2581
+ <dd>
2582
+
2583
+ **request:** `Paid.ArchiveCheckoutRequest`
2584
+
2585
+ </dd>
2586
+ </dl>
2587
+
2588
+ <dl>
2589
+ <dd>
2590
+
2591
+ **requestOptions:** `Checkouts.RequestOptions`
2592
+
2593
+ </dd>
2594
+ </dl>
2595
+ </dd>
2596
+ </dl>
2597
+
2598
+
2599
+ </dd>
2600
+ </dl>
2601
+ </details>
2602
+
2603
+ ## CustomerPortals
2604
+ <details><summary><code>client.customerPortals.<a href="/src/api/resources/customerPortals/client/Client.ts">createCustomerPortal</a>({ ...params }) -> Paid.CustomerPortal</code></summary>
2605
+ <dl>
2606
+ <dd>
2607
+
2608
+ #### 📝 Description
2609
+
2610
+ <dl>
2611
+ <dd>
2612
+
2613
+ <dl>
2614
+ <dd>
2615
+
2616
+ Creates a portal session for the customer. Returns a short-lived URL to the customer portal.
2617
+ </dd>
2618
+ </dl>
2619
+ </dd>
2620
+ </dl>
2621
+
2622
+ #### 🔌 Usage
2623
+
2624
+ <dl>
2625
+ <dd>
2626
+
2627
+ <dl>
2628
+ <dd>
2629
+
2630
+ ```typescript
2631
+ await client.customerPortals.createCustomerPortal();
2632
+
2633
+ ```
2634
+ </dd>
2635
+ </dl>
2636
+ </dd>
2637
+ </dl>
2638
+
2639
+ #### ⚙️ Parameters
2640
+
2641
+ <dl>
2642
+ <dd>
2643
+
2644
+ <dl>
2645
+ <dd>
2646
+
2647
+ **request:** `Paid.CreateCustomerPortalRequest`
2648
+
2649
+ </dd>
2650
+ </dl>
2651
+
2652
+ <dl>
2653
+ <dd>
2654
+
2655
+ **requestOptions:** `CustomerPortals.RequestOptions`
2656
+
2657
+ </dd>
2658
+ </dl>
2659
+ </dd>
2660
+ </dl>
2661
+
2662
+
2151
2663
  </dd>
2152
2664
  </dl>
2153
2665
  </details>