@paid-ai/paid-node 1.1.0 → 1.2.1

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 (205) hide show
  1. package/README.md +2 -0
  2. package/dist/cjs/Client.d.ts +12 -0
  3. package/dist/cjs/Client.js +34 -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 +25 -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 +36 -0
  41. package/dist/cjs/api/resources/customers/client/Client.js +142 -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 +8 -0
  48. package/dist/cjs/api/resources/index.js +9 -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/resources/valueReceipts/client/Client.d.ts +75 -0
  52. package/dist/cjs/api/resources/valueReceipts/client/Client.js +347 -0
  53. package/dist/cjs/api/resources/valueReceipts/client/index.d.ts +1 -0
  54. package/dist/cjs/api/resources/valueReceipts/client/index.js +17 -0
  55. package/dist/cjs/api/resources/valueReceipts/client/requests/GetValueReceiptByIdRequest.d.ts +9 -0
  56. package/dist/cjs/api/resources/valueReceipts/client/requests/GetValueReceiptByIdRequest.js +3 -0
  57. package/dist/cjs/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.d.ts +10 -0
  58. package/dist/cjs/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.js +3 -0
  59. package/dist/cjs/api/resources/valueReceipts/client/requests/PublishValueReceiptBody.d.ts +10 -0
  60. package/dist/cjs/api/resources/valueReceipts/client/requests/PublishValueReceiptBody.js +3 -0
  61. package/dist/cjs/api/resources/valueReceipts/client/requests/UnpublishValueReceiptRequest.d.ts +9 -0
  62. package/dist/cjs/api/resources/valueReceipts/client/requests/UnpublishValueReceiptRequest.js +3 -0
  63. package/dist/cjs/api/resources/valueReceipts/client/requests/index.d.ts +4 -0
  64. package/dist/cjs/api/resources/valueReceipts/client/requests/index.js +2 -0
  65. package/dist/cjs/api/resources/valueReceipts/index.d.ts +1 -0
  66. package/dist/cjs/api/resources/valueReceipts/index.js +17 -0
  67. package/dist/cjs/api/types/Checkout.d.ts +19 -0
  68. package/dist/cjs/api/types/Checkout.js +3 -0
  69. package/dist/cjs/api/types/CheckoutListResponse.d.ts +5 -0
  70. package/dist/cjs/api/types/CheckoutListResponse.js +3 -0
  71. package/dist/cjs/api/types/CheckoutProduct.d.ts +3 -0
  72. package/dist/cjs/api/types/CheckoutProduct.js +3 -0
  73. package/dist/cjs/api/types/CheckoutProductInput.d.ts +3 -0
  74. package/dist/cjs/api/types/CheckoutProductInput.js +3 -0
  75. package/dist/cjs/api/types/CheckoutStatus.d.ts +7 -0
  76. package/dist/cjs/api/types/CheckoutStatus.js +10 -0
  77. package/dist/cjs/api/types/CreateOrderLineAttributeRequest.d.ts +116 -1
  78. package/dist/cjs/api/types/CreateOrderLineAttributeRequest.js +70 -0
  79. package/dist/cjs/api/types/CreateOrderLineRequest.d.ts +3 -3
  80. package/dist/cjs/api/types/CreditBalance.d.ts +19 -0
  81. package/dist/cjs/api/types/CreditBalance.js +11 -0
  82. package/dist/cjs/api/types/CreditBalanceListResponse.d.ts +4 -0
  83. package/dist/cjs/api/types/CreditBalanceListResponse.js +3 -0
  84. package/dist/cjs/api/types/CreditCurrency.d.ts +9 -0
  85. package/dist/cjs/api/types/CreditCurrency.js +3 -0
  86. package/dist/cjs/api/types/CreditCurrencyListResponse.d.ts +4 -0
  87. package/dist/cjs/api/types/CreditCurrencyListResponse.js +3 -0
  88. package/dist/cjs/api/types/CustomerPortal.d.ts +10 -0
  89. package/dist/cjs/api/types/CustomerPortal.js +3 -0
  90. package/dist/cjs/api/types/CustomerPortalStatus.d.ts +5 -0
  91. package/dist/cjs/api/types/CustomerPortalStatus.js +8 -0
  92. package/dist/cjs/api/types/Order.d.ts +3 -0
  93. package/dist/cjs/api/types/ValueReceiptDetail.d.ts +19 -0
  94. package/dist/cjs/api/types/ValueReceiptDetail.js +3 -0
  95. package/dist/cjs/api/types/ValueReceiptListResponse.d.ts +5 -0
  96. package/dist/cjs/api/types/ValueReceiptListResponse.js +3 -0
  97. package/dist/cjs/api/types/ValueReceiptSummary.d.ts +16 -0
  98. package/dist/cjs/api/types/ValueReceiptSummary.js +3 -0
  99. package/dist/cjs/api/types/index.d.ts +14 -0
  100. package/dist/cjs/api/types/index.js +14 -0
  101. package/dist/cjs/version.d.ts +1 -1
  102. package/dist/cjs/version.js +1 -1
  103. package/dist/esm/Client.d.mts +12 -0
  104. package/dist/esm/Client.mjs +22 -2
  105. package/dist/esm/api/resources/checkouts/client/Client.d.mts +84 -0
  106. package/dist/esm/api/resources/checkouts/client/Client.mjs +313 -0
  107. package/dist/esm/api/resources/checkouts/client/index.d.mts +1 -0
  108. package/dist/esm/api/resources/checkouts/client/index.mjs +1 -0
  109. package/dist/esm/api/resources/checkouts/client/requests/ArchiveCheckoutRequest.d.mts +9 -0
  110. package/dist/esm/api/resources/checkouts/client/requests/ArchiveCheckoutRequest.mjs +2 -0
  111. package/dist/esm/api/resources/checkouts/client/requests/CreateCheckoutRequest.d.mts +25 -0
  112. package/dist/esm/api/resources/checkouts/client/requests/CreateCheckoutRequest.mjs +2 -0
  113. package/dist/esm/api/resources/checkouts/client/requests/GetCheckoutRequest.d.mts +9 -0
  114. package/dist/esm/api/resources/checkouts/client/requests/GetCheckoutRequest.mjs +2 -0
  115. package/dist/esm/api/resources/checkouts/client/requests/ListCheckoutsRequest.d.mts +10 -0
  116. package/dist/esm/api/resources/checkouts/client/requests/ListCheckoutsRequest.mjs +2 -0
  117. package/dist/esm/api/resources/checkouts/client/requests/index.d.mts +4 -0
  118. package/dist/esm/api/resources/checkouts/client/requests/index.mjs +1 -0
  119. package/dist/esm/api/resources/checkouts/index.d.mts +2 -0
  120. package/dist/esm/api/resources/checkouts/index.mjs +2 -0
  121. package/dist/esm/api/resources/checkouts/types/ListCheckoutsRequestStatus.d.mts +6 -0
  122. package/dist/esm/api/resources/checkouts/types/ListCheckoutsRequestStatus.mjs +6 -0
  123. package/dist/esm/api/resources/checkouts/types/index.d.mts +1 -0
  124. package/dist/esm/api/resources/checkouts/types/index.mjs +1 -0
  125. package/dist/esm/api/resources/credits/client/Client.d.mts +27 -0
  126. package/dist/esm/api/resources/credits/client/Client.mjs +86 -0
  127. package/dist/esm/api/resources/credits/client/index.d.mts +1 -0
  128. package/dist/esm/api/resources/credits/client/index.mjs +1 -0
  129. package/dist/esm/api/resources/credits/index.d.mts +1 -0
  130. package/dist/esm/api/resources/credits/index.mjs +1 -0
  131. package/dist/esm/api/resources/customerPortals/client/Client.d.mts +30 -0
  132. package/dist/esm/api/resources/customerPortals/client/Client.mjs +96 -0
  133. package/dist/esm/api/resources/customerPortals/client/index.d.mts +1 -0
  134. package/dist/esm/api/resources/customerPortals/client/index.mjs +1 -0
  135. package/dist/esm/api/resources/customerPortals/client/requests/CreateCustomerPortalRequest.d.mts +12 -0
  136. package/dist/esm/api/resources/customerPortals/client/requests/CreateCustomerPortalRequest.mjs +2 -0
  137. package/dist/esm/api/resources/customerPortals/client/requests/index.d.mts +1 -0
  138. package/dist/esm/api/resources/customerPortals/client/requests/index.mjs +1 -0
  139. package/dist/esm/api/resources/customerPortals/index.d.mts +1 -0
  140. package/dist/esm/api/resources/customerPortals/index.mjs +1 -0
  141. package/dist/esm/api/resources/customers/client/Client.d.mts +36 -0
  142. package/dist/esm/api/resources/customers/client/Client.mjs +142 -0
  143. package/dist/esm/api/resources/customers/client/requests/GetCustomerCreditBalancesByExternalIdRequest.d.mts +9 -0
  144. package/dist/esm/api/resources/customers/client/requests/GetCustomerCreditBalancesByExternalIdRequest.mjs +2 -0
  145. package/dist/esm/api/resources/customers/client/requests/GetCustomerCreditBalancesRequest.d.mts +9 -0
  146. package/dist/esm/api/resources/customers/client/requests/GetCustomerCreditBalancesRequest.mjs +2 -0
  147. package/dist/esm/api/resources/customers/client/requests/index.d.mts +2 -0
  148. package/dist/esm/api/resources/index.d.mts +8 -0
  149. package/dist/esm/api/resources/index.mjs +8 -0
  150. package/dist/esm/api/resources/orders/client/requests/CreateOrderRequest.d.mts +11 -7
  151. package/dist/esm/api/resources/orders/client/requests/UpdateOrderRequest.d.mts +10 -7
  152. package/dist/esm/api/resources/valueReceipts/client/Client.d.mts +75 -0
  153. package/dist/esm/api/resources/valueReceipts/client/Client.mjs +310 -0
  154. package/dist/esm/api/resources/valueReceipts/client/index.d.mts +1 -0
  155. package/dist/esm/api/resources/valueReceipts/client/index.mjs +1 -0
  156. package/dist/esm/api/resources/valueReceipts/client/requests/GetValueReceiptByIdRequest.d.mts +9 -0
  157. package/dist/esm/api/resources/valueReceipts/client/requests/GetValueReceiptByIdRequest.mjs +2 -0
  158. package/dist/esm/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.d.mts +10 -0
  159. package/dist/esm/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.mjs +2 -0
  160. package/dist/esm/api/resources/valueReceipts/client/requests/PublishValueReceiptBody.d.mts +10 -0
  161. package/dist/esm/api/resources/valueReceipts/client/requests/PublishValueReceiptBody.mjs +2 -0
  162. package/dist/esm/api/resources/valueReceipts/client/requests/UnpublishValueReceiptRequest.d.mts +9 -0
  163. package/dist/esm/api/resources/valueReceipts/client/requests/UnpublishValueReceiptRequest.mjs +2 -0
  164. package/dist/esm/api/resources/valueReceipts/client/requests/index.d.mts +4 -0
  165. package/dist/esm/api/resources/valueReceipts/client/requests/index.mjs +1 -0
  166. package/dist/esm/api/resources/valueReceipts/index.d.mts +1 -0
  167. package/dist/esm/api/resources/valueReceipts/index.mjs +1 -0
  168. package/dist/esm/api/types/Checkout.d.mts +19 -0
  169. package/dist/esm/api/types/Checkout.mjs +2 -0
  170. package/dist/esm/api/types/CheckoutListResponse.d.mts +5 -0
  171. package/dist/esm/api/types/CheckoutListResponse.mjs +2 -0
  172. package/dist/esm/api/types/CheckoutProduct.d.mts +3 -0
  173. package/dist/esm/api/types/CheckoutProduct.mjs +2 -0
  174. package/dist/esm/api/types/CheckoutProductInput.d.mts +3 -0
  175. package/dist/esm/api/types/CheckoutProductInput.mjs +2 -0
  176. package/dist/esm/api/types/CheckoutStatus.d.mts +7 -0
  177. package/dist/esm/api/types/CheckoutStatus.mjs +7 -0
  178. package/dist/esm/api/types/CreateOrderLineAttributeRequest.d.mts +116 -1
  179. package/dist/esm/api/types/CreateOrderLineAttributeRequest.mjs +69 -1
  180. package/dist/esm/api/types/CreateOrderLineRequest.d.mts +3 -3
  181. package/dist/esm/api/types/CreditBalance.d.mts +19 -0
  182. package/dist/esm/api/types/CreditBalance.mjs +8 -0
  183. package/dist/esm/api/types/CreditBalanceListResponse.d.mts +4 -0
  184. package/dist/esm/api/types/CreditBalanceListResponse.mjs +2 -0
  185. package/dist/esm/api/types/CreditCurrency.d.mts +9 -0
  186. package/dist/esm/api/types/CreditCurrency.mjs +2 -0
  187. package/dist/esm/api/types/CreditCurrencyListResponse.d.mts +4 -0
  188. package/dist/esm/api/types/CreditCurrencyListResponse.mjs +2 -0
  189. package/dist/esm/api/types/CustomerPortal.d.mts +10 -0
  190. package/dist/esm/api/types/CustomerPortal.mjs +2 -0
  191. package/dist/esm/api/types/CustomerPortalStatus.d.mts +5 -0
  192. package/dist/esm/api/types/CustomerPortalStatus.mjs +5 -0
  193. package/dist/esm/api/types/Order.d.mts +3 -0
  194. package/dist/esm/api/types/ValueReceiptDetail.d.mts +19 -0
  195. package/dist/esm/api/types/ValueReceiptDetail.mjs +2 -0
  196. package/dist/esm/api/types/ValueReceiptListResponse.d.mts +5 -0
  197. package/dist/esm/api/types/ValueReceiptListResponse.mjs +2 -0
  198. package/dist/esm/api/types/ValueReceiptSummary.d.mts +16 -0
  199. package/dist/esm/api/types/ValueReceiptSummary.mjs +2 -0
  200. package/dist/esm/api/types/index.d.mts +14 -0
  201. package/dist/esm/api/types/index.mjs +14 -0
  202. package/dist/esm/version.d.mts +1 -1
  203. package/dist/esm/version.mjs +1 -1
  204. package/package.json +3 -3
  205. package/reference.md +771 -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,647 @@ 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
+
2663
+ </dd>
2664
+ </dl>
2665
+ </details>
2666
+
2667
+ ## ValueReceipts
2668
+ <details><summary><code>client.valueReceipts.<a href="/src/api/resources/valueReceipts/client/Client.ts">listValueReceipts</a>({ ...params }) -> Paid.ValueReceiptListResponse</code></summary>
2669
+ <dl>
2670
+ <dd>
2671
+
2672
+ #### 📝 Description
2673
+
2674
+ <dl>
2675
+ <dd>
2676
+
2677
+ <dl>
2678
+ <dd>
2679
+
2680
+ List value receipts for the organization
2681
+ </dd>
2682
+ </dl>
2683
+ </dd>
2684
+ </dl>
2685
+
2686
+ #### 🔌 Usage
2687
+
2688
+ <dl>
2689
+ <dd>
2690
+
2691
+ <dl>
2692
+ <dd>
2693
+
2694
+ ```typescript
2695
+ await client.valueReceipts.listValueReceipts();
2696
+
2697
+ ```
2698
+ </dd>
2699
+ </dl>
2700
+ </dd>
2701
+ </dl>
2702
+
2703
+ #### ⚙️ Parameters
2704
+
2705
+ <dl>
2706
+ <dd>
2707
+
2708
+ <dl>
2709
+ <dd>
2710
+
2711
+ **request:** `Paid.ListValueReceiptsRequest`
2712
+
2713
+ </dd>
2714
+ </dl>
2715
+
2716
+ <dl>
2717
+ <dd>
2718
+
2719
+ **requestOptions:** `ValueReceipts.RequestOptions`
2720
+
2721
+ </dd>
2722
+ </dl>
2723
+ </dd>
2724
+ </dl>
2725
+
2726
+
2727
+ </dd>
2728
+ </dl>
2729
+ </details>
2730
+
2731
+ <details><summary><code>client.valueReceipts.<a href="/src/api/resources/valueReceipts/client/Client.ts">getValueReceiptById</a>({ ...params }) -> Paid.ValueReceiptDetail</code></summary>
2732
+ <dl>
2733
+ <dd>
2734
+
2735
+ #### 📝 Description
2736
+
2737
+ <dl>
2738
+ <dd>
2739
+
2740
+ <dl>
2741
+ <dd>
2742
+
2743
+ Get a value receipt by ID, including its publish/share state.
2744
+ </dd>
2745
+ </dl>
2746
+ </dd>
2747
+ </dl>
2748
+
2749
+ #### 🔌 Usage
2750
+
2751
+ <dl>
2752
+ <dd>
2753
+
2754
+ <dl>
2755
+ <dd>
2756
+
2757
+ ```typescript
2758
+ await client.valueReceipts.getValueReceiptById({
2759
+ id: "id"
2760
+ });
2761
+
2762
+ ```
2763
+ </dd>
2764
+ </dl>
2765
+ </dd>
2766
+ </dl>
2767
+
2768
+ #### ⚙️ Parameters
2769
+
2770
+ <dl>
2771
+ <dd>
2772
+
2773
+ <dl>
2774
+ <dd>
2775
+
2776
+ **request:** `Paid.GetValueReceiptByIdRequest`
2777
+
2778
+ </dd>
2779
+ </dl>
2780
+
2781
+ <dl>
2782
+ <dd>
2783
+
2784
+ **requestOptions:** `ValueReceipts.RequestOptions`
2785
+
2786
+ </dd>
2787
+ </dl>
2788
+ </dd>
2789
+ </dl>
2790
+
2791
+
2792
+ </dd>
2793
+ </dl>
2794
+ </details>
2795
+
2796
+ <details><summary><code>client.valueReceipts.<a href="/src/api/resources/valueReceipts/client/Client.ts">publishValueReceipt</a>({ ...params }) -> Paid.ValueReceiptDetail</code></summary>
2797
+ <dl>
2798
+ <dd>
2799
+
2800
+ #### 📝 Description
2801
+
2802
+ <dl>
2803
+ <dd>
2804
+
2805
+ <dl>
2806
+ <dd>
2807
+
2808
+ Make a value receipt publicly accessible via URL.
2809
+ </dd>
2810
+ </dl>
2811
+ </dd>
2812
+ </dl>
2813
+
2814
+ #### 🔌 Usage
2815
+
2816
+ <dl>
2817
+ <dd>
2818
+
2819
+ <dl>
2820
+ <dd>
2821
+
2822
+ ```typescript
2823
+ await client.valueReceipts.publishValueReceipt({
2824
+ id: "id"
2825
+ });
2826
+
2827
+ ```
2828
+ </dd>
2829
+ </dl>
2830
+ </dd>
2831
+ </dl>
2832
+
2833
+ #### ⚙️ Parameters
2834
+
2835
+ <dl>
2836
+ <dd>
2837
+
2838
+ <dl>
2839
+ <dd>
2840
+
2841
+ **request:** `Paid.PublishValueReceiptBody`
2842
+
2843
+ </dd>
2844
+ </dl>
2845
+
2846
+ <dl>
2847
+ <dd>
2848
+
2849
+ **requestOptions:** `ValueReceipts.RequestOptions`
2850
+
2851
+ </dd>
2852
+ </dl>
2853
+ </dd>
2854
+ </dl>
2855
+
2856
+
2857
+ </dd>
2858
+ </dl>
2859
+ </details>
2860
+
2861
+ <details><summary><code>client.valueReceipts.<a href="/src/api/resources/valueReceipts/client/Client.ts">unpublishValueReceipt</a>({ ...params }) -> Paid.ValueReceiptDetail</code></summary>
2862
+ <dl>
2863
+ <dd>
2864
+
2865
+ #### 📝 Description
2866
+
2867
+ <dl>
2868
+ <dd>
2869
+
2870
+ <dl>
2871
+ <dd>
2872
+
2873
+ Revoke public access to a value receipt.
2874
+ </dd>
2875
+ </dl>
2876
+ </dd>
2877
+ </dl>
2878
+
2879
+ #### 🔌 Usage
2880
+
2881
+ <dl>
2882
+ <dd>
2883
+
2884
+ <dl>
2885
+ <dd>
2886
+
2887
+ ```typescript
2888
+ await client.valueReceipts.unpublishValueReceipt({
2889
+ id: "id"
2890
+ });
2891
+
2892
+ ```
2893
+ </dd>
2894
+ </dl>
2895
+ </dd>
2896
+ </dl>
2897
+
2898
+ #### ⚙️ Parameters
2899
+
2900
+ <dl>
2901
+ <dd>
2902
+
2903
+ <dl>
2904
+ <dd>
2905
+
2906
+ **request:** `Paid.UnpublishValueReceiptRequest`
2907
+
2908
+ </dd>
2909
+ </dl>
2910
+
2911
+ <dl>
2912
+ <dd>
2913
+
2914
+ **requestOptions:** `ValueReceipts.RequestOptions`
2915
+
2916
+ </dd>
2917
+ </dl>
2918
+ </dd>
2919
+ </dl>
2920
+
2921
+
2151
2922
  </dd>
2152
2923
  </dl>
2153
2924
  </details>