@onflay/node 0.2.1 → 1.0.0-staging-20261206080029

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 (218) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/README.md +211 -48
  3. package/dist/chunk-4RUPPDC2.mjs +121 -0
  4. package/dist/chunk-4RUPPDC2.mjs.map +1 -0
  5. package/dist/chunk-63KSRMJG.mjs +47 -0
  6. package/dist/chunk-63KSRMJG.mjs.map +1 -0
  7. package/dist/chunk-7LYAEZCT.mjs +197 -0
  8. package/dist/chunk-7LYAEZCT.mjs.map +1 -0
  9. package/dist/chunk-A3TRCKHK.mjs +60 -0
  10. package/dist/chunk-A3TRCKHK.mjs.map +1 -0
  11. package/dist/chunk-AFAU2FH2.js +47 -0
  12. package/dist/chunk-AFAU2FH2.js.map +1 -0
  13. package/dist/chunk-DBE2YZWE.mjs +38 -0
  14. package/dist/chunk-DBE2YZWE.mjs.map +1 -0
  15. package/dist/chunk-EOHFYWFQ.mjs +154 -0
  16. package/dist/chunk-EOHFYWFQ.mjs.map +1 -0
  17. package/dist/chunk-I2IVHBFA.js +197 -0
  18. package/dist/chunk-I2IVHBFA.js.map +1 -0
  19. package/dist/chunk-J4MYKTPN.mjs +37 -0
  20. package/dist/chunk-J4MYKTPN.mjs.map +1 -0
  21. package/dist/chunk-JQPANXLV.mjs +37 -0
  22. package/dist/chunk-JQPANXLV.mjs.map +1 -0
  23. package/dist/chunk-JXP6V2P2.mjs +1057 -0
  24. package/dist/chunk-JXP6V2P2.mjs.map +1 -0
  25. package/dist/chunk-M52GW7GQ.js +1057 -0
  26. package/dist/chunk-M52GW7GQ.js.map +1 -0
  27. package/dist/chunk-MMMUKAI6.js +37 -0
  28. package/dist/chunk-MMMUKAI6.js.map +1 -0
  29. package/dist/chunk-NSR4UQLV.js +87 -0
  30. package/dist/chunk-NSR4UQLV.js.map +1 -0
  31. package/dist/chunk-SUONZUVK.js +154 -0
  32. package/dist/chunk-SUONZUVK.js.map +1 -0
  33. package/dist/chunk-T26CPULH.js +121 -0
  34. package/dist/chunk-T26CPULH.js.map +1 -0
  35. package/dist/chunk-V2XJ4GZU.js +38 -0
  36. package/dist/chunk-V2XJ4GZU.js.map +1 -0
  37. package/dist/chunk-W6AEPYUG.js +37 -0
  38. package/dist/chunk-W6AEPYUG.js.map +1 -0
  39. package/dist/chunk-YHQ7XIC6.js +60 -0
  40. package/dist/chunk-YHQ7XIC6.js.map +1 -0
  41. package/dist/chunk-YSXUZYUY.mjs +87 -0
  42. package/dist/chunk-YSXUZYUY.mjs.map +1 -0
  43. package/dist/index-C1KFW_9r.d.mts +3989 -0
  44. package/dist/index-C1KFW_9r.d.ts +3989 -0
  45. package/dist/index.d.mts +918 -0
  46. package/dist/index.d.ts +918 -26
  47. package/dist/index.js +2990 -40
  48. package/dist/index.js.map +1 -1
  49. package/dist/index.mjs +2991 -0
  50. package/dist/index.mjs.map +1 -0
  51. package/dist/lib/config.d.mts +59 -0
  52. package/dist/lib/config.d.ts +59 -0
  53. package/dist/lib/config.js +15 -0
  54. package/dist/lib/config.js.map +1 -0
  55. package/dist/lib/config.mjs +15 -0
  56. package/dist/lib/config.mjs.map +1 -0
  57. package/dist/lib/http.d.mts +51 -0
  58. package/dist/lib/http.d.ts +51 -0
  59. package/dist/lib/http.js +13 -0
  60. package/dist/lib/http.js.map +1 -0
  61. package/dist/lib/http.mjs +13 -0
  62. package/dist/lib/http.mjs.map +1 -0
  63. package/dist/lib/retries.d.mts +41 -0
  64. package/dist/lib/retries.d.ts +41 -0
  65. package/dist/lib/retries.js +16 -0
  66. package/dist/lib/retries.js.map +1 -0
  67. package/dist/lib/retries.mjs +16 -0
  68. package/dist/lib/retries.mjs.map +1 -0
  69. package/dist/lib/sdks.d.mts +61 -0
  70. package/dist/lib/sdks.d.ts +61 -0
  71. package/dist/lib/sdks.js +12 -0
  72. package/dist/lib/sdks.js.map +1 -0
  73. package/dist/lib/sdks.mjs +12 -0
  74. package/dist/lib/sdks.mjs.map +1 -0
  75. package/dist/models/components/index.d.mts +1 -0
  76. package/dist/models/components/index.d.ts +1 -0
  77. package/dist/models/components/index.js +1 -0
  78. package/dist/models/components/index.js.map +1 -0
  79. package/dist/models/components/index.mjs +1 -0
  80. package/dist/models/components/index.mjs.map +1 -0
  81. package/dist/models/errors/index.d.mts +161 -0
  82. package/dist/models/errors/index.d.ts +161 -0
  83. package/dist/models/errors/index.js +29 -0
  84. package/dist/models/errors/index.js.map +1 -0
  85. package/dist/models/errors/index.mjs +29 -0
  86. package/dist/models/errors/index.mjs.map +1 -0
  87. package/dist/models/operations/index.d.mts +769 -0
  88. package/dist/models/operations/index.d.ts +769 -0
  89. package/dist/models/operations/index.js +1 -0
  90. package/dist/models/operations/index.js.map +1 -0
  91. package/dist/models/operations/index.mjs +1 -0
  92. package/dist/models/operations/index.mjs.map +1 -0
  93. package/dist/types/index.d.mts +26 -0
  94. package/dist/types/index.d.ts +26 -0
  95. package/dist/types/index.js +1 -0
  96. package/dist/types/index.js.map +1 -0
  97. package/dist/types/index.mjs +1 -0
  98. package/dist/types/index.mjs.map +1 -0
  99. package/dist/verify-tF2BsJK6.d.mts +325 -0
  100. package/dist/verify-tF2BsJK6.d.ts +325 -0
  101. package/dist/webhooks/express.d.mts +39 -0
  102. package/dist/webhooks/express.d.ts +39 -0
  103. package/dist/webhooks/express.js +10 -0
  104. package/dist/webhooks/express.js.map +1 -0
  105. package/dist/webhooks/express.mjs +10 -0
  106. package/dist/webhooks/express.mjs.map +1 -0
  107. package/dist/webhooks/hono.d.mts +33 -0
  108. package/dist/webhooks/hono.d.ts +33 -0
  109. package/dist/webhooks/hono.js +10 -0
  110. package/dist/webhooks/hono.js.map +1 -0
  111. package/dist/webhooks/hono.mjs +10 -0
  112. package/dist/webhooks/hono.mjs.map +1 -0
  113. package/dist/webhooks/index.d.mts +34 -0
  114. package/dist/webhooks/index.d.ts +34 -0
  115. package/dist/webhooks/index.js +75 -0
  116. package/dist/webhooks/index.js.map +1 -0
  117. package/dist/webhooks/index.mjs +75 -0
  118. package/dist/webhooks/index.mjs.map +1 -0
  119. package/dist/webhooks/next.d.mts +38 -0
  120. package/dist/webhooks/next.d.ts +38 -0
  121. package/dist/webhooks/next.js +10 -0
  122. package/dist/webhooks/next.js.map +1 -0
  123. package/dist/webhooks/next.mjs +10 -0
  124. package/dist/webhooks/next.mjs.map +1 -0
  125. package/package.json +273 -14
  126. package/dist/client.d.ts +0 -65
  127. package/dist/client.d.ts.map +0 -1
  128. package/dist/client.js +0 -216
  129. package/dist/client.js.map +0 -1
  130. package/dist/errors.d.ts +0 -61
  131. package/dist/errors.d.ts.map +0 -1
  132. package/dist/errors.js +0 -134
  133. package/dist/errors.js.map +0 -1
  134. package/dist/index.d.ts.map +0 -1
  135. package/dist/onflay.d.ts +0 -42
  136. package/dist/onflay.d.ts.map +0 -1
  137. package/dist/onflay.js +0 -60
  138. package/dist/onflay.js.map +0 -1
  139. package/dist/pagination.d.ts +0 -19
  140. package/dist/pagination.d.ts.map +0 -1
  141. package/dist/pagination.js +0 -61
  142. package/dist/pagination.js.map +0 -1
  143. package/dist/resources/checkout-sessions.d.ts +0 -11
  144. package/dist/resources/checkout-sessions.d.ts.map +0 -1
  145. package/dist/resources/checkout-sessions.js +0 -20
  146. package/dist/resources/checkout-sessions.js.map +0 -1
  147. package/dist/resources/customers.d.ts +0 -17
  148. package/dist/resources/customers.d.ts.map +0 -1
  149. package/dist/resources/customers.js +0 -39
  150. package/dist/resources/customers.js.map +0 -1
  151. package/dist/resources/payments.d.ts +0 -11
  152. package/dist/resources/payments.d.ts.map +0 -1
  153. package/dist/resources/payments.js +0 -27
  154. package/dist/resources/payments.js.map +0 -1
  155. package/dist/resources/prices.d.ts +0 -24
  156. package/dist/resources/prices.d.ts.map +0 -1
  157. package/dist/resources/prices.js +0 -46
  158. package/dist/resources/prices.js.map +0 -1
  159. package/dist/resources/products.d.ts +0 -18
  160. package/dist/resources/products.d.ts.map +0 -1
  161. package/dist/resources/products.js +0 -40
  162. package/dist/resources/products.js.map +0 -1
  163. package/dist/resources/subscriptions.d.ts +0 -39
  164. package/dist/resources/subscriptions.d.ts.map +0 -1
  165. package/dist/resources/subscriptions.js +0 -62
  166. package/dist/resources/subscriptions.js.map +0 -1
  167. package/dist/resources/usage.d.ts +0 -26
  168. package/dist/resources/usage.d.ts.map +0 -1
  169. package/dist/resources/usage.js +0 -43
  170. package/dist/resources/usage.js.map +0 -1
  171. package/dist/resources/webhook-endpoints.d.ts +0 -20
  172. package/dist/resources/webhook-endpoints.d.ts.map +0 -1
  173. package/dist/resources/webhook-endpoints.js +0 -47
  174. package/dist/resources/webhook-endpoints.js.map +0 -1
  175. package/dist/types/checkout-sessions.d.ts +0 -67
  176. package/dist/types/checkout-sessions.d.ts.map +0 -1
  177. package/dist/types/checkout-sessions.js +0 -3
  178. package/dist/types/checkout-sessions.js.map +0 -1
  179. package/dist/types/customers.d.ts +0 -28
  180. package/dist/types/customers.d.ts.map +0 -1
  181. package/dist/types/customers.js +0 -3
  182. package/dist/types/customers.js.map +0 -1
  183. package/dist/types/events.d.ts +0 -95
  184. package/dist/types/events.d.ts.map +0 -1
  185. package/dist/types/events.js +0 -24
  186. package/dist/types/events.js.map +0 -1
  187. package/dist/types/payments.d.ts +0 -25
  188. package/dist/types/payments.d.ts.map +0 -1
  189. package/dist/types/payments.js +0 -3
  190. package/dist/types/payments.js.map +0 -1
  191. package/dist/types/prices.d.ts +0 -57
  192. package/dist/types/prices.d.ts.map +0 -1
  193. package/dist/types/prices.js +0 -3
  194. package/dist/types/prices.js.map +0 -1
  195. package/dist/types/products.d.ts +0 -29
  196. package/dist/types/products.d.ts.map +0 -1
  197. package/dist/types/products.js +0 -3
  198. package/dist/types/products.js.map +0 -1
  199. package/dist/types/shared.d.ts +0 -34
  200. package/dist/types/shared.d.ts.map +0 -1
  201. package/dist/types/shared.js +0 -4
  202. package/dist/types/shared.js.map +0 -1
  203. package/dist/types/subscriptions.d.ts +0 -85
  204. package/dist/types/subscriptions.d.ts.map +0 -1
  205. package/dist/types/subscriptions.js +0 -3
  206. package/dist/types/subscriptions.js.map +0 -1
  207. package/dist/types/usage.d.ts +0 -35
  208. package/dist/types/usage.d.ts.map +0 -1
  209. package/dist/types/usage.js +0 -3
  210. package/dist/types/usage.js.map +0 -1
  211. package/dist/types/webhook-endpoints.d.ts +0 -48
  212. package/dist/types/webhook-endpoints.d.ts.map +0 -1
  213. package/dist/types/webhook-endpoints.js +0 -3
  214. package/dist/types/webhook-endpoints.js.map +0 -1
  215. package/dist/version.d.ts +0 -4
  216. package/dist/version.d.ts.map +0 -1
  217. package/dist/version.js +0 -7
  218. package/dist/version.js.map +0 -1
@@ -0,0 +1,769 @@
1
+ import { N as CatalogListingsRetrieveIntegrationGuideData, O as CatalogListingsRetrieveRecipeData, Q as CatalogProductsRetrieveData, T as CatalogProductsUpsertData, X as UpsertCatalogProduct, Y as CatalogPlansUpsertData, Z as UpsertCatalogPlan, _ as CatalogListData, $ as CatalogProductList, a0 as CheckoutSessionsCreateData, a1 as CreateCheckout, a2 as CheckoutSessionsRetrieveData, a3 as CheckoutSessionsRetrieveReceiptData, a4 as CreditsAdjustData, a5 as AdjustCredits, a6 as CreditsConsumeData, a7 as ConsumeCredits, a8 as CreditsRetrieveData, a9 as CreditsListLedgerData, aa as CreditLedgerEntryList, ab as CustomerAccessRetrieveData, ac as CustomerPortalSessionsCreateData, ad as CreateCustomerPortalSession, ae as CustomersListData, af as CustomerList, ag as CustomersCreateData, ah as CreateCustomer, ai as CustomersRetrieveData, aj as CustomersUpdateData, ak as UpdateCustomer, al as CustomersListPaymentMethodsData, am as CustomersCreateSetupIntentData, an as CreateSetupIntentParams, ao as DiscountsListData, ap as DiscountList, aq as DiscountsCreateData, ar as CreateDiscount, as as DiscountsRetrieveData, at as DiscountsUpdateData, au as UpdateDiscount, av as DiscountsDeactivateData, aw as IntegrationVerificationsListForListingData, ax as IntegrationVerificationList, ay as InvoicesListData, az as InvoiceList, aA as InvoicesCreateData, aB as CreateBillingInvoice, aC as InvoicesRetrieveData, aD as LicenseKeysListData, aE as LicenseKeyList, aF as LicenseKeysRetrieveData, aG as LicenseKeysRevokeData, aH as MetersCreateData, aI as CreateMeter, aJ as PaymentConfirmationsRetrieveData, aK as PaymentsRefundsListData, aL as RefundList, aM as PaymentsRefundsCreateData, aN as CreateRefund, aO as PaymentsRefundsRetrieveData, aP as PaymentsListData, aQ as PaymentList, aR as PaymentsCreateData, aS as CreatePayment, aT as PaymentsRetrieveData, aU as PricesListData, aV as PriceList, aW as PricesCreateData, aX as CreatePrice, aY as PricesRetrieveData, aZ as PricesUpdateData, a_ as UpdatePrice, a$ as ProductsListData, b0 as ProductList, b1 as ProductsCreateData, b2 as CreateProduct, b3 as ProductsRetrieveData, b4 as ProductsUpdateData, b5 as UpdateProduct, b6 as SetupSessionsRetrieveData, b7 as SubscriptionsListData, b8 as SubscriptionList, b9 as SubscriptionsCancelByExternalCustomerData, ba as CancelByExternalCustomer, bb as SubscriptionsUncancelByExternalCustomerData, bc as UncancelByExternalCustomer, bd as SubscriptionsRetrieveData, be as SubscriptionsUpdateData, bf as UpdateSubscription, bg as SubscriptionsCancelData, bh as CancelSubscription, bi as SubscriptionsPreviewUpdateData, bj as PreviewSubscriptionUpdate, bk as UsageBillingPlansCreateData, bl as CreateBillingPlan, bm as UsageBillingPlansRetrieveData, bn as WebhookDeliveriesListData, bo as WebhookDeliveryList, bp as WebhookDeliveriesRetrieveData, bq as WebhookDeliveriesResendData, br as WebhookEndpointsCreateData, bs as CreateWebhookEndpoint, bt as WebhookEndpointsRetrieveData, bu as WebhookEndpointsDeleteData, bv as WebhookEndpointsUpdateData, bw as UpdateWebhookEndpoint } from '../../index-C1KFW_9r.mjs';
2
+
3
+ /** Request of `onflay.catalog.list()`. */
4
+ type CatalogListRequest = {
5
+ /**
6
+ * Page size, 1–100. Default 20.
7
+ */
8
+ limit?: NonNullable<CatalogListData['query']>['limit'] | undefined;
9
+ /**
10
+ * `nextCursor` from the previous page.
11
+ */
12
+ cursor?: NonNullable<CatalogListData['query']>['cursor'] | undefined;
13
+ };
14
+ /** One page of `onflay.catalog.list()`. */
15
+ type CatalogListResponse = {
16
+ result: CatalogProductList;
17
+ };
18
+ /** Request of `onflay.catalog.listings.retrieveIntegrationGuide()`. */
19
+ type CatalogListingsRetrieveIntegrationGuideRequest = {
20
+ /**
21
+ * The listing's catalog key.
22
+ */
23
+ catalogKey: NonNullable<CatalogListingsRetrieveIntegrationGuideData['path']>['catalogKey'];
24
+ /**
25
+ * App builder to generate the guide for. Only `lovable` is supported; anything else returns 404.
26
+ */
27
+ target?: NonNullable<CatalogListingsRetrieveIntegrationGuideData['query']>['target'] | undefined;
28
+ };
29
+ /** Request of `onflay.catalog.listings.retrieveRecipe()`. */
30
+ type CatalogListingsRetrieveRecipeRequest = {
31
+ /**
32
+ * The listing's catalog key.
33
+ */
34
+ catalogKey: NonNullable<CatalogListingsRetrieveRecipeData['path']>['catalogKey'];
35
+ /**
36
+ * `ETag` from a previous response. When it still matches, the API returns 304 with no body.
37
+ */
38
+ ifNoneMatch?: NonNullable<CatalogListingsRetrieveRecipeData['headers']>['if-none-match'] | undefined;
39
+ };
40
+ /** Request of `onflay.catalog.products.retrieve()`. */
41
+ type CatalogProductsRetrieveRequest = {
42
+ /**
43
+ * The product's key, e.g. `acme-saas`.
44
+ */
45
+ key: NonNullable<CatalogProductsRetrieveData['path']>['key'];
46
+ /**
47
+ * `ETag` from a previous response. When it still matches, the API returns 304 with no body.
48
+ */
49
+ ifNoneMatch?: NonNullable<CatalogProductsRetrieveData['headers']>['if-none-match'] | undefined;
50
+ };
51
+ /** Request of `onflay.catalog.products.upsert()`. */
52
+ type CatalogProductsUpsertRequest = {
53
+ /**
54
+ * Product key you choose, e.g. `acme-saas`: lowercase letters, digits, `-` and `_`.
55
+ */
56
+ key: NonNullable<CatalogProductsUpsertData['path']>['key'];
57
+ upsertCatalogProduct: UpsertCatalogProduct;
58
+ };
59
+ /** Request of `onflay.catalog.plans.upsert()`. */
60
+ type CatalogPlansUpsertRequest = {
61
+ /**
62
+ * Product key you choose, e.g. `acme-saas`: lowercase letters, digits, `-` and `_`.
63
+ */
64
+ key: NonNullable<CatalogPlansUpsertData['path']>['key'];
65
+ /**
66
+ * Plan key you choose, e.g. `pro`: lowercase letters, digits, `-` and `_`.
67
+ */
68
+ planKey: NonNullable<CatalogPlansUpsertData['path']>['planKey'];
69
+ upsertCatalogPlan: UpsertCatalogPlan;
70
+ };
71
+ /** Request of `onflay.checkoutSessions.create()`. */
72
+ type CheckoutSessionsCreateRequest = {
73
+ /**
74
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
75
+ */
76
+ idempotencyKey?: NonNullable<CheckoutSessionsCreateData['headers']>['Idempotency-Key'] | undefined;
77
+ createCheckout: CreateCheckout;
78
+ };
79
+ /** Request of `onflay.checkoutSessions.retrieve()`. */
80
+ type CheckoutSessionsRetrieveRequest = {
81
+ /**
82
+ * Checkout session id.
83
+ */
84
+ id: NonNullable<CheckoutSessionsRetrieveData['path']>['id'];
85
+ };
86
+ /** Request of `onflay.checkoutSessions.retrieveReceipt()`. */
87
+ type CheckoutSessionsRetrieveReceiptRequest = {
88
+ /**
89
+ * Checkout session id.
90
+ */
91
+ id: NonNullable<CheckoutSessionsRetrieveReceiptData['path']>['id'];
92
+ /**
93
+ * `true` or `1` skips the return-token check (secret-key-only poll). Any other value requires the header.
94
+ */
95
+ headless?: NonNullable<CheckoutSessionsRetrieveReceiptData['query']>['headless'] | undefined;
96
+ /**
97
+ * Session-bound return token from success redirect. Omit with ?headless=true for secret-key-only poll.
98
+ */
99
+ xOnflayReturnToken?: NonNullable<CheckoutSessionsRetrieveReceiptData['headers']>['X-Onflay-Return-Token'] | undefined;
100
+ };
101
+ /** Request of `onflay.credits.adjust()`. */
102
+ type CreditsAdjustRequest = {
103
+ /**
104
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
105
+ */
106
+ idempotencyKey?: NonNullable<CreditsAdjustData['headers']>['Idempotency-Key'] | undefined;
107
+ adjustCredits: AdjustCredits;
108
+ };
109
+ /** Request of `onflay.credits.consume()`. */
110
+ type CreditsConsumeRequest = {
111
+ /**
112
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
113
+ */
114
+ idempotencyKey?: NonNullable<CreditsConsumeData['headers']>['Idempotency-Key'] | undefined;
115
+ consumeCredits: ConsumeCredits;
116
+ };
117
+ /** Request of `onflay.credits.retrieve()`. */
118
+ type CreditsRetrieveRequest = {
119
+ /**
120
+ * Your app's id for the customer (the `externalCustomerId` sent to checkout).
121
+ */
122
+ externalCustomerId: NonNullable<CreditsRetrieveData['path']>['externalCustomerId'];
123
+ };
124
+ /** Request of `onflay.credits.listLedger()`. */
125
+ type CreditsListLedgerRequest = {
126
+ /**
127
+ * Your app's id for the customer (the `externalCustomerId` sent to checkout).
128
+ */
129
+ externalCustomerId: NonNullable<CreditsListLedgerData['path']>['externalCustomerId'];
130
+ /**
131
+ * Page size.
132
+ */
133
+ limit?: NonNullable<CreditsListLedgerData['query']>['limit'] | undefined;
134
+ /**
135
+ * Opaque `nextCursor` from the previous page. Omit for the first page. A malformed cursor answers 400 `invalid_cursor`.
136
+ */
137
+ cursor?: NonNullable<CreditsListLedgerData['query']>['cursor'] | undefined;
138
+ /**
139
+ * Only entries of this credit key.
140
+ */
141
+ key?: NonNullable<CreditsListLedgerData['query']>['key'] | undefined;
142
+ };
143
+ /** One page of `onflay.credits.listLedger()`. */
144
+ type CreditsListLedgerResponse = {
145
+ result: CreditLedgerEntryList;
146
+ };
147
+ /** Request of `onflay.customerAccess.retrieve()`. */
148
+ type CustomerAccessRetrieveRequest = {
149
+ /**
150
+ * Your app's id for the customer (the `externalCustomerId` sent to checkout).
151
+ */
152
+ externalCustomerId: NonNullable<CustomerAccessRetrieveData['path']>['externalCustomerId'];
153
+ /**
154
+ * When `true` (or `1`), the response includes `accessToken`, a 5-minute RS256 JWT.
155
+ */
156
+ includeToken?: NonNullable<CustomerAccessRetrieveData['query']>['includeToken'] | undefined;
157
+ /**
158
+ * `ETag` from a previous response. When it still matches, the API returns 304 with no body.
159
+ */
160
+ ifNoneMatch?: NonNullable<CustomerAccessRetrieveData['headers']>['if-none-match'] | undefined;
161
+ };
162
+ /** Request of `onflay.customerPortal.sessions.create()`. */
163
+ type CustomerPortalSessionsCreateRequest = {
164
+ /**
165
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
166
+ */
167
+ idempotencyKey?: NonNullable<CustomerPortalSessionsCreateData['headers']>['Idempotency-Key'] | undefined;
168
+ createCustomerPortalSession: CreateCustomerPortalSession;
169
+ };
170
+ /** Request of `onflay.customers.list()`. */
171
+ type CustomersListRequest = {
172
+ /**
173
+ * Page size.
174
+ */
175
+ limit?: NonNullable<CustomersListData['query']>['limit'] | undefined;
176
+ /**
177
+ * Opaque `nextCursor` from the previous page. Omit for the first page. A malformed cursor answers 400 `invalid_cursor`.
178
+ */
179
+ cursor?: NonNullable<CustomersListData['query']>['cursor'] | undefined;
180
+ /**
181
+ * Case-insensitive substring of the customer email or name.
182
+ */
183
+ search?: NonNullable<CustomersListData['query']>['search'] | undefined;
184
+ /**
185
+ * Only the customer with this app-side id (the checkout `externalCustomerId`).
186
+ */
187
+ externalCustomerId?: NonNullable<CustomersListData['query']>['externalCustomerId'] | undefined;
188
+ };
189
+ /** One page of `onflay.customers.list()`. */
190
+ type CustomersListResponse = {
191
+ result: CustomerList;
192
+ };
193
+ /** Request of `onflay.customers.create()`. */
194
+ type CustomersCreateRequest = {
195
+ /**
196
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
197
+ */
198
+ idempotencyKey?: NonNullable<CustomersCreateData['headers']>['Idempotency-Key'] | undefined;
199
+ createCustomer: CreateCustomer;
200
+ };
201
+ /** Request of `onflay.customers.retrieve()`. */
202
+ type CustomersRetrieveRequest = {
203
+ /**
204
+ * Customer id.
205
+ */
206
+ id: NonNullable<CustomersRetrieveData['path']>['id'];
207
+ };
208
+ /** Request of `onflay.customers.update()`. */
209
+ type CustomersUpdateRequest = {
210
+ /**
211
+ * Customer id.
212
+ */
213
+ id: NonNullable<CustomersUpdateData['path']>['id'];
214
+ updateCustomer: UpdateCustomer;
215
+ };
216
+ /** Request of `onflay.customers.listPaymentMethods()`. */
217
+ type CustomersListPaymentMethodsRequest = {
218
+ /**
219
+ * Customer id.
220
+ */
221
+ id: NonNullable<CustomersListPaymentMethodsData['path']>['id'];
222
+ };
223
+ /** Request of `onflay.customers.createSetupIntent()`. */
224
+ type CustomersCreateSetupIntentRequest = {
225
+ /**
226
+ * Customer id.
227
+ */
228
+ id: NonNullable<CustomersCreateSetupIntentData['path']>['id'];
229
+ /**
230
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
231
+ */
232
+ idempotencyKey?: NonNullable<CustomersCreateSetupIntentData['headers']>['Idempotency-Key'] | undefined;
233
+ createSetupIntentParams?: CreateSetupIntentParams | undefined;
234
+ };
235
+ /** Request of `onflay.discounts.list()`. */
236
+ type DiscountsListRequest = {
237
+ /**
238
+ * Page size.
239
+ */
240
+ limit?: NonNullable<DiscountsListData['query']>['limit'] | undefined;
241
+ /**
242
+ * Opaque `nextCursor` from the previous page. Omit for the first page. A malformed cursor answers 400 `invalid_cursor`.
243
+ */
244
+ cursor?: NonNullable<DiscountsListData['query']>['cursor'] | undefined;
245
+ /**
246
+ * true returns active discounts, false inactive ones. Omit for all.
247
+ */
248
+ active?: NonNullable<DiscountsListData['query']>['active'] | undefined;
249
+ /**
250
+ * Only discounts of this type.
251
+ */
252
+ type?: NonNullable<DiscountsListData['query']>['type'] | undefined;
253
+ /**
254
+ * Only the discount with this code (any case).
255
+ */
256
+ code?: NonNullable<DiscountsListData['query']>['code'] | undefined;
257
+ };
258
+ /** One page of `onflay.discounts.list()`. */
259
+ type DiscountsListResponse = {
260
+ result: DiscountList;
261
+ };
262
+ /** Request of `onflay.discounts.create()`. */
263
+ type DiscountsCreateRequest = {
264
+ /**
265
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
266
+ */
267
+ idempotencyKey?: NonNullable<DiscountsCreateData['headers']>['Idempotency-Key'] | undefined;
268
+ createDiscount: CreateDiscount;
269
+ };
270
+ /** Request of `onflay.discounts.retrieve()`. */
271
+ type DiscountsRetrieveRequest = {
272
+ /**
273
+ * Discount id (from `POST /v1/discounts` or `GET /v1/discounts`).
274
+ */
275
+ id: NonNullable<DiscountsRetrieveData['path']>['id'];
276
+ };
277
+ /** Request of `onflay.discounts.update()`. */
278
+ type DiscountsUpdateRequest = {
279
+ /**
280
+ * Discount id (from `POST /v1/discounts` or `GET /v1/discounts`).
281
+ */
282
+ id: NonNullable<DiscountsUpdateData['path']>['id'];
283
+ /**
284
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
285
+ */
286
+ idempotencyKey?: NonNullable<DiscountsUpdateData['headers']>['Idempotency-Key'] | undefined;
287
+ updateDiscount: UpdateDiscount;
288
+ };
289
+ /** Request of `onflay.discounts.deactivate()`. */
290
+ type DiscountsDeactivateRequest = {
291
+ /**
292
+ * Discount id (from `POST /v1/discounts` or `GET /v1/discounts`).
293
+ */
294
+ id: NonNullable<DiscountsDeactivateData['path']>['id'];
295
+ /**
296
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
297
+ */
298
+ idempotencyKey?: NonNullable<DiscountsDeactivateData['headers']>['Idempotency-Key'] | undefined;
299
+ };
300
+ /** Request of `onflay.integrationVerifications.listForListing()`. */
301
+ type IntegrationVerificationsListForListingRequest = {
302
+ /**
303
+ * Listing (product) id.
304
+ */
305
+ listingId: NonNullable<IntegrationVerificationsListForListingData['path']>['listingId'];
306
+ /**
307
+ * Page size.
308
+ */
309
+ limit?: NonNullable<IntegrationVerificationsListForListingData['query']>['limit'] | undefined;
310
+ /**
311
+ * Opaque `nextCursor` from the previous page. Omit for the first page. A malformed cursor answers 400 `invalid_cursor`.
312
+ */
313
+ cursor?: NonNullable<IntegrationVerificationsListForListingData['query']>['cursor'] | undefined;
314
+ };
315
+ /** One page of `onflay.integrationVerifications.listForListing()`. */
316
+ type IntegrationVerificationsListForListingResponse = {
317
+ result: IntegrationVerificationList;
318
+ };
319
+ /** Request of `onflay.invoices.list()`. */
320
+ type InvoicesListRequest = {
321
+ /**
322
+ * Page size.
323
+ */
324
+ limit?: NonNullable<InvoicesListData['query']>['limit'] | undefined;
325
+ /**
326
+ * Opaque `nextCursor` from the previous page. Omit for the first page. A malformed cursor answers 400 `invalid_cursor`.
327
+ */
328
+ cursor?: NonNullable<InvoicesListData['query']>['cursor'] | undefined;
329
+ /**
330
+ * Only invoices for this Onflay customer id.
331
+ */
332
+ customerId?: NonNullable<InvoicesListData['query']>['customerId'] | undefined;
333
+ };
334
+ /** One page of `onflay.invoices.list()`. */
335
+ type InvoicesListResponse = {
336
+ result: InvoiceList;
337
+ };
338
+ /** Request of `onflay.invoices.create()`. */
339
+ type InvoicesCreateRequest = {
340
+ /**
341
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
342
+ */
343
+ idempotencyKey?: NonNullable<InvoicesCreateData['headers']>['Idempotency-Key'] | undefined;
344
+ createBillingInvoice: CreateBillingInvoice;
345
+ };
346
+ /** Request of `onflay.invoices.retrieve()`. */
347
+ type InvoicesRetrieveRequest = {
348
+ /**
349
+ * Onflay invoice id.
350
+ */
351
+ id: NonNullable<InvoicesRetrieveData['path']>['id'];
352
+ };
353
+ /** Request of `onflay.licenseKeys.list()`. */
354
+ type LicenseKeysListRequest = {
355
+ /**
356
+ * Page size.
357
+ */
358
+ limit?: NonNullable<LicenseKeysListData['query']>['limit'] | undefined;
359
+ /**
360
+ * Opaque `nextCursor` from the previous page. Omit for the first page. A malformed cursor answers 400 `invalid_cursor`.
361
+ */
362
+ cursor?: NonNullable<LicenseKeysListData['query']>['cursor'] | undefined;
363
+ /**
364
+ * Only keys of this customer (your app's id for them).
365
+ */
366
+ externalCustomerId?: NonNullable<LicenseKeysListData['query']>['externalCustomerId'] | undefined;
367
+ };
368
+ /** One page of `onflay.licenseKeys.list()`. */
369
+ type LicenseKeysListResponse = {
370
+ result: LicenseKeyList;
371
+ };
372
+ /** Request of `onflay.licenseKeys.retrieve()`. */
373
+ type LicenseKeysRetrieveRequest = {
374
+ /**
375
+ * License key id (from customer access `licenseKeys[].id`).
376
+ */
377
+ id: NonNullable<LicenseKeysRetrieveData['path']>['id'];
378
+ };
379
+ /** Request of `onflay.licenseKeys.revoke()`. */
380
+ type LicenseKeysRevokeRequest = {
381
+ /**
382
+ * License key id (from customer access `licenseKeys[].id`).
383
+ */
384
+ id: NonNullable<LicenseKeysRevokeData['path']>['id'];
385
+ /**
386
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
387
+ */
388
+ idempotencyKey?: NonNullable<LicenseKeysRevokeData['headers']>['Idempotency-Key'] | undefined;
389
+ };
390
+ /** Request of `onflay.meters.create()`. */
391
+ type MetersCreateRequest = {
392
+ /**
393
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
394
+ */
395
+ idempotencyKey?: NonNullable<MetersCreateData['headers']>['Idempotency-Key'] | undefined;
396
+ createMeter: CreateMeter;
397
+ };
398
+ /** Request of `onflay.paymentConfirmations.retrieve()`. */
399
+ type PaymentConfirmationsRetrieveRequest = {
400
+ /**
401
+ * Confirmation token from `confirmUrl`.
402
+ */
403
+ token: NonNullable<PaymentConfirmationsRetrieveData['path']>['token'];
404
+ };
405
+ /** Request of `onflay.payments.list()`. */
406
+ type PaymentsListRequest = {
407
+ /**
408
+ * Page size.
409
+ */
410
+ limit?: NonNullable<PaymentsListData['query']>['limit'] | undefined;
411
+ /**
412
+ * Opaque `nextCursor` from the previous page. Omit for the first page. A malformed cursor answers 400 `invalid_cursor`.
413
+ */
414
+ cursor?: NonNullable<PaymentsListData['query']>['cursor'] | undefined;
415
+ /**
416
+ * Only payments with this status (case-insensitive). Payments in `requires_action` are listed under `pending`.
417
+ */
418
+ status?: NonNullable<PaymentsListData['query']>['status'] | undefined;
419
+ /**
420
+ * Only payments for this product (listing) id.
421
+ */
422
+ listingId?: NonNullable<PaymentsListData['query']>['listingId'] | undefined;
423
+ /**
424
+ * Only payments for products of this type (case-insensitive).
425
+ */
426
+ listingType?: NonNullable<PaymentsListData['query']>['listingType'] | undefined;
427
+ /**
428
+ * Only payments created in this rolling window, or between `startDate` and `endDate` with `custom`.
429
+ */
430
+ period?: NonNullable<PaymentsListData['query']>['period'] | undefined;
431
+ /**
432
+ * Inclusive start date (YYYY-MM-DD) when `period` is `custom`.
433
+ */
434
+ startDate?: NonNullable<PaymentsListData['query']>['startDate'] | undefined;
435
+ /**
436
+ * Inclusive end date (YYYY-MM-DD) when `period` is `custom`.
437
+ */
438
+ endDate?: NonNullable<PaymentsListData['query']>['endDate'] | undefined;
439
+ /**
440
+ * Payment id, or a case-insensitive substring of the customer email or name.
441
+ */
442
+ search?: NonNullable<PaymentsListData['query']>['search'] | undefined;
443
+ };
444
+ /** One page of `onflay.payments.list()`. */
445
+ type PaymentsListResponse = {
446
+ result: PaymentList;
447
+ };
448
+ /** Request of `onflay.payments.create()`. */
449
+ type PaymentsCreateRequest = {
450
+ /**
451
+ * Required. Unique key (kept 48h) that makes retries safe: the same key and body returns the first response instead of running the request again.
452
+ */
453
+ idempotencyKey: NonNullable<PaymentsCreateData['headers']>['Idempotency-Key'];
454
+ createPayment: CreatePayment;
455
+ };
456
+ /** Request of `onflay.payments.retrieve()`. */
457
+ type PaymentsRetrieveRequest = {
458
+ /**
459
+ * Payment (transaction) id.
460
+ */
461
+ id: NonNullable<PaymentsRetrieveData['path']>['id'];
462
+ };
463
+ /** Request of `onflay.payments.refunds.list()`. */
464
+ type PaymentsRefundsListRequest = {
465
+ /**
466
+ * Payment id (from `GET /v1/payments` or customer access `ownedProducts[].paymentId`).
467
+ */
468
+ id: NonNullable<PaymentsRefundsListData['path']>['id'];
469
+ /**
470
+ * Page size.
471
+ */
472
+ limit?: NonNullable<PaymentsRefundsListData['query']>['limit'] | undefined;
473
+ /**
474
+ * Opaque `nextCursor` from the previous page. Omit for the first page. A malformed cursor answers 400 `invalid_cursor`.
475
+ */
476
+ cursor?: NonNullable<PaymentsRefundsListData['query']>['cursor'] | undefined;
477
+ };
478
+ /** One page of `onflay.payments.refunds.list()`. */
479
+ type PaymentsRefundsListResponse = {
480
+ result: RefundList;
481
+ };
482
+ /** Request of `onflay.payments.refunds.create()`. */
483
+ type PaymentsRefundsCreateRequest = {
484
+ /**
485
+ * Payment id (from `GET /v1/payments` or customer access `ownedProducts[].paymentId`).
486
+ */
487
+ id: NonNullable<PaymentsRefundsCreateData['path']>['id'];
488
+ /**
489
+ * Required. Unique key (kept 48h) that makes retries safe: the same key and body returns the first response instead of running the request again.
490
+ */
491
+ idempotencyKey: NonNullable<PaymentsRefundsCreateData['headers']>['Idempotency-Key'];
492
+ createRefund?: CreateRefund | undefined;
493
+ };
494
+ /** Request of `onflay.payments.refunds.retrieve()`. */
495
+ type PaymentsRefundsRetrieveRequest = {
496
+ /**
497
+ * Payment id (from `GET /v1/payments` or customer access `ownedProducts[].paymentId`).
498
+ */
499
+ id: NonNullable<PaymentsRefundsRetrieveData['path']>['id'];
500
+ /**
501
+ * Refund id.
502
+ */
503
+ refundId: NonNullable<PaymentsRefundsRetrieveData['path']>['refundId'];
504
+ };
505
+ /** Request of `onflay.prices.list()`. */
506
+ type PricesListRequest = {
507
+ /**
508
+ * Page size.
509
+ */
510
+ limit?: NonNullable<PricesListData['query']>['limit'] | undefined;
511
+ /**
512
+ * Opaque `nextCursor` from the previous page. Omit for the first page. A malformed cursor answers 400 `invalid_cursor`.
513
+ */
514
+ cursor?: NonNullable<PricesListData['query']>['cursor'] | undefined;
515
+ /**
516
+ * Only prices of this product id. Unknown or foreign ids answer 404.
517
+ */
518
+ productId?: NonNullable<PricesListData['query']>['productId'] | undefined;
519
+ /**
520
+ * true returns prices of published products; false returns the others. Omit for all.
521
+ */
522
+ active?: NonNullable<PricesListData['query']>['active'] | undefined;
523
+ };
524
+ /** One page of `onflay.prices.list()`. */
525
+ type PricesListResponse = {
526
+ result: PriceList;
527
+ };
528
+ /** Request of `onflay.prices.create()`. */
529
+ type PricesCreateRequest = {
530
+ /**
531
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
532
+ */
533
+ idempotencyKey?: NonNullable<PricesCreateData['headers']>['Idempotency-Key'] | undefined;
534
+ createPrice: CreatePrice;
535
+ };
536
+ /** Request of `onflay.prices.retrieve()`. */
537
+ type PricesRetrieveRequest = {
538
+ /**
539
+ * Price id: a persisted price id, `<productId>` or `<productId>:<variantId>`
540
+ */
541
+ id: NonNullable<PricesRetrieveData['path']>['id'];
542
+ };
543
+ /** Request of `onflay.prices.update()`. */
544
+ type PricesUpdateRequest = {
545
+ /**
546
+ * Price id: a persisted price id, `<productId>` or `<productId>:<variantId>`
547
+ */
548
+ id: NonNullable<PricesUpdateData['path']>['id'];
549
+ /**
550
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
551
+ */
552
+ idempotencyKey?: NonNullable<PricesUpdateData['headers']>['Idempotency-Key'] | undefined;
553
+ updatePrice: UpdatePrice;
554
+ };
555
+ /** Request of `onflay.products.list()`. */
556
+ type ProductsListRequest = {
557
+ /**
558
+ * Page size.
559
+ */
560
+ limit?: NonNullable<ProductsListData['query']>['limit'] | undefined;
561
+ /**
562
+ * Opaque `nextCursor` from the previous page. Omit for the first page. A malformed cursor answers 400 `invalid_cursor`.
563
+ */
564
+ cursor?: NonNullable<ProductsListData['query']>['cursor'] | undefined;
565
+ /**
566
+ * true returns published products; false returns paused products (drafts are excluded). Omit for all.
567
+ */
568
+ active?: NonNullable<ProductsListData['query']>['active'] | undefined;
569
+ };
570
+ /** One page of `onflay.products.list()`. */
571
+ type ProductsListResponse = {
572
+ result: ProductList;
573
+ };
574
+ /** Request of `onflay.products.create()`. */
575
+ type ProductsCreateRequest = {
576
+ /**
577
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
578
+ */
579
+ idempotencyKey?: NonNullable<ProductsCreateData['headers']>['Idempotency-Key'] | undefined;
580
+ createProduct: CreateProduct;
581
+ };
582
+ /** Request of `onflay.products.retrieve()`. */
583
+ type ProductsRetrieveRequest = {
584
+ /**
585
+ * Product id
586
+ */
587
+ id: NonNullable<ProductsRetrieveData['path']>['id'];
588
+ };
589
+ /** Request of `onflay.products.update()`. */
590
+ type ProductsUpdateRequest = {
591
+ /**
592
+ * Product id
593
+ */
594
+ id: NonNullable<ProductsUpdateData['path']>['id'];
595
+ /**
596
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
597
+ */
598
+ idempotencyKey?: NonNullable<ProductsUpdateData['headers']>['Idempotency-Key'] | undefined;
599
+ updateProduct: UpdateProduct;
600
+ };
601
+ /** Request of `onflay.setupSessions.retrieve()`. */
602
+ type SetupSessionsRetrieveRequest = {
603
+ /**
604
+ * Setup session token.
605
+ */
606
+ token: NonNullable<SetupSessionsRetrieveData['path']>['token'];
607
+ };
608
+ /** Request of `onflay.subscriptions.list()`. */
609
+ type SubscriptionsListRequest = {
610
+ /**
611
+ * Page size.
612
+ */
613
+ limit?: NonNullable<SubscriptionsListData['query']>['limit'] | undefined;
614
+ /**
615
+ * Opaque `nextCursor` from the previous page. Omit for the first page. A malformed cursor answers 400 `invalid_cursor`.
616
+ */
617
+ cursor?: NonNullable<SubscriptionsListData['query']>['cursor'] | undefined;
618
+ /**
619
+ * Only subscriptions with this status (case-insensitive).
620
+ */
621
+ status?: NonNullable<SubscriptionsListData['query']>['status'] | undefined;
622
+ /**
623
+ * Only subscriptions of the customer with this app-side id (the checkout `externalCustomerId`).
624
+ */
625
+ externalCustomerId?: NonNullable<SubscriptionsListData['query']>['externalCustomerId'] | undefined;
626
+ };
627
+ /** One page of `onflay.subscriptions.list()`. */
628
+ type SubscriptionsListResponse = {
629
+ result: SubscriptionList;
630
+ };
631
+ /** Request of `onflay.subscriptions.cancelByExternalCustomer()`. */
632
+ type SubscriptionsCancelByExternalCustomerRequest = {
633
+ /**
634
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
635
+ */
636
+ idempotencyKey?: NonNullable<SubscriptionsCancelByExternalCustomerData['headers']>['Idempotency-Key'] | undefined;
637
+ cancelByExternalCustomer: CancelByExternalCustomer;
638
+ };
639
+ /** Request of `onflay.subscriptions.uncancelByExternalCustomer()`. */
640
+ type SubscriptionsUncancelByExternalCustomerRequest = {
641
+ /**
642
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
643
+ */
644
+ idempotencyKey?: NonNullable<SubscriptionsUncancelByExternalCustomerData['headers']>['Idempotency-Key'] | undefined;
645
+ uncancelByExternalCustomer: UncancelByExternalCustomer;
646
+ };
647
+ /** Request of `onflay.subscriptions.retrieve()`. */
648
+ type SubscriptionsRetrieveRequest = {
649
+ /**
650
+ * Onflay subscription id (from customer-access `activePlans[].subscriptionId`), not a Stripe `sub_` id.
651
+ */
652
+ id: NonNullable<SubscriptionsRetrieveData['path']>['id'];
653
+ };
654
+ /** Request of `onflay.subscriptions.update()`. */
655
+ type SubscriptionsUpdateRequest = {
656
+ /**
657
+ * Onflay subscription id (from customer-access `activePlans[].subscriptionId`), not a Stripe `sub_` id.
658
+ */
659
+ id: NonNullable<SubscriptionsUpdateData['path']>['id'];
660
+ /**
661
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
662
+ */
663
+ idempotencyKey?: NonNullable<SubscriptionsUpdateData['headers']>['Idempotency-Key'] | undefined;
664
+ updateSubscription: UpdateSubscription;
665
+ };
666
+ /** Request of `onflay.subscriptions.cancel()`. */
667
+ type SubscriptionsCancelRequest = {
668
+ /**
669
+ * Onflay subscription id (from customer-access `activePlans[].subscriptionId`), not a Stripe `sub_` id.
670
+ */
671
+ id: NonNullable<SubscriptionsCancelData['path']>['id'];
672
+ /**
673
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
674
+ */
675
+ idempotencyKey?: NonNullable<SubscriptionsCancelData['headers']>['Idempotency-Key'] | undefined;
676
+ cancelSubscription?: CancelSubscription | undefined;
677
+ };
678
+ /** Request of `onflay.subscriptions.previewUpdate()`. */
679
+ type SubscriptionsPreviewUpdateRequest = {
680
+ /**
681
+ * Onflay subscription id (from customer-access `activePlans[].subscriptionId`), not a Stripe `sub_` id.
682
+ */
683
+ id: NonNullable<SubscriptionsPreviewUpdateData['path']>['id'];
684
+ previewSubscriptionUpdate: PreviewSubscriptionUpdate;
685
+ };
686
+ /** Request of `onflay.usage.billingPlans.create()`. */
687
+ type UsageBillingPlansCreateRequest = {
688
+ /**
689
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
690
+ */
691
+ idempotencyKey?: NonNullable<UsageBillingPlansCreateData['headers']>['Idempotency-Key'] | undefined;
692
+ createBillingPlan: CreateBillingPlan;
693
+ };
694
+ /** Request of `onflay.usage.billingPlans.retrieve()`. */
695
+ type UsageBillingPlansRetrieveRequest = {
696
+ /**
697
+ * Onflay subscription id.
698
+ */
699
+ subscriptionId: NonNullable<UsageBillingPlansRetrieveData['path']>['subscriptionId'];
700
+ };
701
+ /** Request of `onflay.webhookDeliveries.list()`. */
702
+ type WebhookDeliveriesListRequest = {
703
+ /**
704
+ * Only deliveries for this webhook endpoint id.
705
+ */
706
+ endpointId?: NonNullable<WebhookDeliveriesListData['query']>['endpointId'] | undefined;
707
+ /**
708
+ * Only deliveries with this status (case-insensitive).
709
+ */
710
+ status?: NonNullable<WebhookDeliveriesListData['query']>['status'] | undefined;
711
+ /**
712
+ * `nextCursor` from the previous page.
713
+ */
714
+ cursor?: NonNullable<WebhookDeliveriesListData['query']>['cursor'] | undefined;
715
+ /**
716
+ * Page size.
717
+ */
718
+ limit?: NonNullable<WebhookDeliveriesListData['query']>['limit'] | undefined;
719
+ };
720
+ /** One page of `onflay.webhookDeliveries.list()`. */
721
+ type WebhookDeliveriesListResponse = {
722
+ result: WebhookDeliveryList;
723
+ };
724
+ /** Request of `onflay.webhookDeliveries.retrieve()`. */
725
+ type WebhookDeliveriesRetrieveRequest = {
726
+ /**
727
+ * Webhook delivery id.
728
+ */
729
+ id: NonNullable<WebhookDeliveriesRetrieveData['path']>['id'];
730
+ };
731
+ /** Request of `onflay.webhookDeliveries.resend()`. */
732
+ type WebhookDeliveriesResendRequest = {
733
+ /**
734
+ * Webhook delivery id.
735
+ */
736
+ id: NonNullable<WebhookDeliveriesResendData['path']>['id'];
737
+ };
738
+ /** Request of `onflay.webhookEndpoints.create()`. */
739
+ type WebhookEndpointsCreateRequest = {
740
+ /**
741
+ * Unique key (kept 48h) that makes retries safe: the same key and body returns the first response.
742
+ */
743
+ idempotencyKey?: NonNullable<WebhookEndpointsCreateData['headers']>['Idempotency-Key'] | undefined;
744
+ createWebhookEndpoint: CreateWebhookEndpoint;
745
+ };
746
+ /** Request of `onflay.webhookEndpoints.retrieve()`. */
747
+ type WebhookEndpointsRetrieveRequest = {
748
+ /**
749
+ * Webhook endpoint id.
750
+ */
751
+ id: NonNullable<WebhookEndpointsRetrieveData['path']>['id'];
752
+ };
753
+ /** Request of `onflay.webhookEndpoints.delete()`. */
754
+ type WebhookEndpointsDeleteRequest = {
755
+ /**
756
+ * Webhook endpoint id.
757
+ */
758
+ id: NonNullable<WebhookEndpointsDeleteData['path']>['id'];
759
+ };
760
+ /** Request of `onflay.webhookEndpoints.update()`. */
761
+ type WebhookEndpointsUpdateRequest = {
762
+ /**
763
+ * Webhook endpoint id.
764
+ */
765
+ id: NonNullable<WebhookEndpointsUpdateData['path']>['id'];
766
+ updateWebhookEndpoint: UpdateWebhookEndpoint;
767
+ };
768
+
769
+ export type { CatalogListRequest, CatalogListResponse, CatalogListingsRetrieveIntegrationGuideRequest, CatalogListingsRetrieveRecipeRequest, CatalogPlansUpsertRequest, CatalogProductsRetrieveRequest, CatalogProductsUpsertRequest, CheckoutSessionsCreateRequest, CheckoutSessionsRetrieveReceiptRequest, CheckoutSessionsRetrieveRequest, CreditsAdjustRequest, CreditsConsumeRequest, CreditsListLedgerRequest, CreditsListLedgerResponse, CreditsRetrieveRequest, CustomerAccessRetrieveRequest, CustomerPortalSessionsCreateRequest, CustomersCreateRequest, CustomersCreateSetupIntentRequest, CustomersListPaymentMethodsRequest, CustomersListRequest, CustomersListResponse, CustomersRetrieveRequest, CustomersUpdateRequest, DiscountsCreateRequest, DiscountsDeactivateRequest, DiscountsListRequest, DiscountsListResponse, DiscountsRetrieveRequest, DiscountsUpdateRequest, IntegrationVerificationsListForListingRequest, IntegrationVerificationsListForListingResponse, InvoicesCreateRequest, InvoicesListRequest, InvoicesListResponse, InvoicesRetrieveRequest, LicenseKeysListRequest, LicenseKeysListResponse, LicenseKeysRetrieveRequest, LicenseKeysRevokeRequest, MetersCreateRequest, PaymentConfirmationsRetrieveRequest, PaymentsCreateRequest, PaymentsListRequest, PaymentsListResponse, PaymentsRefundsCreateRequest, PaymentsRefundsListRequest, PaymentsRefundsListResponse, PaymentsRefundsRetrieveRequest, PaymentsRetrieveRequest, PricesCreateRequest, PricesListRequest, PricesListResponse, PricesRetrieveRequest, PricesUpdateRequest, ProductsCreateRequest, ProductsListRequest, ProductsListResponse, ProductsRetrieveRequest, ProductsUpdateRequest, SetupSessionsRetrieveRequest, SubscriptionsCancelByExternalCustomerRequest, SubscriptionsCancelRequest, SubscriptionsListRequest, SubscriptionsListResponse, SubscriptionsPreviewUpdateRequest, SubscriptionsRetrieveRequest, SubscriptionsUncancelByExternalCustomerRequest, SubscriptionsUpdateRequest, UsageBillingPlansCreateRequest, UsageBillingPlansRetrieveRequest, WebhookDeliveriesListRequest, WebhookDeliveriesListResponse, WebhookDeliveriesResendRequest, WebhookDeliveriesRetrieveRequest, WebhookEndpointsCreateRequest, WebhookEndpointsDeleteRequest, WebhookEndpointsRetrieveRequest, WebhookEndpointsUpdateRequest };