@openmeter/sdk 1.0.0-beta.217 → 1.0.0-beta.218

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.
@@ -128,7 +128,7 @@ export declare class BillingInvoices {
128
128
  readonly deletedAt?: Date;
129
129
  readonly type: import("./schemas.cjs").components["schemas"]["InvoiceType"];
130
130
  supplier: import("./schemas.cjs").components["schemas"]["BillingParty"];
131
- customer: import("./schemas.cjs").components["schemas"]["BillingParty"];
131
+ customer: import("./schemas.cjs").components["schemas"]["BillingInvoiceCustomerExtendedDetails"];
132
132
  readonly number: import("./schemas.cjs").components["schemas"]["InvoiceNumber"];
133
133
  currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
134
134
  readonly preceding?: import("./schemas.cjs").components["schemas"]["InvoiceDocumentRef"][];
@@ -166,7 +166,7 @@ export declare class BillingInvoices {
166
166
  readonly deletedAt?: Date;
167
167
  readonly type: import("./schemas.cjs").components["schemas"]["InvoiceType"];
168
168
  supplier: import("./schemas.cjs").components["schemas"]["BillingParty"];
169
- customer: import("./schemas.cjs").components["schemas"]["BillingParty"];
169
+ customer: import("./schemas.cjs").components["schemas"]["BillingInvoiceCustomerExtendedDetails"];
170
170
  readonly number: import("./schemas.cjs").components["schemas"]["InvoiceNumber"];
171
171
  currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
172
172
  readonly preceding?: import("./schemas.cjs").components["schemas"]["InvoiceDocumentRef"][];
@@ -211,7 +211,7 @@ export declare class BillingInvoices {
211
211
  readonly deletedAt?: Date;
212
212
  readonly type: import("./schemas.cjs").components["schemas"]["InvoiceType"];
213
213
  supplier: import("./schemas.cjs").components["schemas"]["BillingParty"];
214
- customer: import("./schemas.cjs").components["schemas"]["BillingParty"];
214
+ customer: import("./schemas.cjs").components["schemas"]["BillingInvoiceCustomerExtendedDetails"];
215
215
  readonly number: import("./schemas.cjs").components["schemas"]["InvoiceNumber"];
216
216
  currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
217
217
  readonly preceding?: import("./schemas.cjs").components["schemas"]["InvoiceDocumentRef"][];
@@ -248,7 +248,7 @@ export declare class BillingInvoices {
248
248
  readonly deletedAt?: Date;
249
249
  readonly type: import("./schemas.cjs").components["schemas"]["InvoiceType"];
250
250
  supplier: import("./schemas.cjs").components["schemas"]["BillingParty"];
251
- customer: import("./schemas.cjs").components["schemas"]["BillingParty"];
251
+ customer: import("./schemas.cjs").components["schemas"]["BillingInvoiceCustomerExtendedDetails"];
252
252
  readonly number: import("./schemas.cjs").components["schemas"]["InvoiceNumber"];
253
253
  currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
254
254
  readonly preceding?: import("./schemas.cjs").components["schemas"]["InvoiceDocumentRef"][];
@@ -284,7 +284,7 @@ export declare class BillingInvoices {
284
284
  readonly deletedAt?: Date;
285
285
  readonly type: import("./schemas.cjs").components["schemas"]["InvoiceType"];
286
286
  supplier: import("./schemas.cjs").components["schemas"]["BillingParty"];
287
- customer: import("./schemas.cjs").components["schemas"]["BillingParty"];
287
+ customer: import("./schemas.cjs").components["schemas"]["BillingInvoiceCustomerExtendedDetails"];
288
288
  readonly number: import("./schemas.cjs").components["schemas"]["InvoiceNumber"];
289
289
  currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
290
290
  readonly preceding?: import("./schemas.cjs").components["schemas"]["InvoiceDocumentRef"][];
@@ -323,7 +323,7 @@ export declare class BillingInvoices {
323
323
  readonly deletedAt?: Date;
324
324
  readonly type: import("./schemas.cjs").components["schemas"]["InvoiceType"];
325
325
  supplier: import("./schemas.cjs").components["schemas"]["BillingParty"];
326
- customer: import("./schemas.cjs").components["schemas"]["BillingParty"];
326
+ customer: import("./schemas.cjs").components["schemas"]["BillingInvoiceCustomerExtendedDetails"];
327
327
  readonly number: import("./schemas.cjs").components["schemas"]["InvoiceNumber"];
328
328
  currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
329
329
  readonly preceding?: import("./schemas.cjs").components["schemas"]["InvoiceDocumentRef"][];
@@ -359,7 +359,7 @@ export declare class BillingInvoices {
359
359
  readonly deletedAt?: Date;
360
360
  readonly type: import("./schemas.cjs").components["schemas"]["InvoiceType"];
361
361
  supplier: import("./schemas.cjs").components["schemas"]["BillingParty"];
362
- customer: import("./schemas.cjs").components["schemas"]["BillingParty"];
362
+ customer: import("./schemas.cjs").components["schemas"]["BillingInvoiceCustomerExtendedDetails"];
363
363
  readonly number: import("./schemas.cjs").components["schemas"]["InvoiceNumber"];
364
364
  currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
365
365
  readonly preceding?: import("./schemas.cjs").components["schemas"]["InvoiceDocumentRef"][];
@@ -395,7 +395,7 @@ export declare class BillingInvoices {
395
395
  readonly deletedAt?: Date;
396
396
  readonly type: import("./schemas.cjs").components["schemas"]["InvoiceType"];
397
397
  supplier: import("./schemas.cjs").components["schemas"]["BillingParty"];
398
- customer: import("./schemas.cjs").components["schemas"]["BillingParty"];
398
+ customer: import("./schemas.cjs").components["schemas"]["BillingInvoiceCustomerExtendedDetails"];
399
399
  readonly number: import("./schemas.cjs").components["schemas"]["InvoiceNumber"];
400
400
  currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
401
401
  readonly preceding?: import("./schemas.cjs").components["schemas"]["InvoiceDocumentRef"][];
@@ -451,7 +451,7 @@ export declare class BillingInvoices {
451
451
  readonly deletedAt?: Date;
452
452
  readonly type: import("./schemas.cjs").components["schemas"]["InvoiceType"];
453
453
  supplier: import("./schemas.cjs").components["schemas"]["BillingParty"];
454
- customer: import("./schemas.cjs").components["schemas"]["BillingParty"];
454
+ customer: import("./schemas.cjs").components["schemas"]["BillingInvoiceCustomerExtendedDetails"];
455
455
  readonly number: import("./schemas.cjs").components["schemas"]["InvoiceNumber"];
456
456
  currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
457
457
  readonly preceding?: import("./schemas.cjs").components["schemas"]["InvoiceDocumentRef"][];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CustomerEntitlements = exports.CustomerApps = exports.Customers = void 0;
3
+ exports.CustomerEntitlements = exports.CustomerStripe = exports.CustomerApps = exports.Customers = void 0;
4
4
  const utils_js_1 = require("./utils.cjs");
5
5
  /**
6
6
  * Customers
@@ -10,10 +10,12 @@ class Customers {
10
10
  client;
11
11
  apps;
12
12
  entitlements;
13
+ stripe;
13
14
  constructor(client) {
14
15
  this.client = client;
15
16
  this.apps = new CustomerApps(client);
16
17
  this.entitlements = new CustomerEntitlements(client);
18
+ this.stripe = new CustomerStripe(client);
17
19
  }
18
20
  /**
19
21
  * Create a customer
@@ -112,6 +114,20 @@ class Customers {
112
114
  });
113
115
  return (0, utils_js_1.transformResponse)(resp);
114
116
  }
117
+ /**
118
+ * List customer subscriptions
119
+ * @param customerIdOrKey - The ID or key of the customer
120
+ * @param query - The query parameters
121
+ * @param signal - An optional abort signal
122
+ * @returns The list of customer subscriptions
123
+ */
124
+ async listSubscriptions(customerIdOrKey, query, options) {
125
+ const resp = await this.client.GET('/api/v1/customers/{customerIdOrKey}/subscriptions', {
126
+ params: { path: { customerIdOrKey }, query },
127
+ ...options,
128
+ });
129
+ return (0, utils_js_1.transformResponse)(resp);
130
+ }
115
131
  }
116
132
  exports.Customers = Customers;
117
133
  /**
@@ -173,22 +189,73 @@ class CustomerApps {
173
189
  });
174
190
  return (0, utils_js_1.transformResponse)(resp);
175
191
  }
192
+ }
193
+ exports.CustomerApps = CustomerApps;
194
+ /**
195
+ * Customer Stripe
196
+ * Manage customer Stripe data.
197
+ */
198
+ class CustomerStripe {
199
+ client;
200
+ constructor(client) {
201
+ this.client = client;
202
+ }
176
203
  /**
177
- * List customer subscriptions
204
+ * Upsert customer stripe app data
205
+ * @param customerIdOrKey - The ID or Key of the customer
206
+ * @param appData - The app data to upsert
207
+ * @param signal - An optional abort signal
208
+ * @returns The upserted customer stripe app data
209
+ */
210
+ async upsert(customerIdOrKey, stripeAppData, options) {
211
+ const resp = await this.client.PUT('/api/v1/customers/{customerIdOrKey}/stripe', {
212
+ body: stripeAppData,
213
+ params: {
214
+ path: {
215
+ customerIdOrKey,
216
+ },
217
+ },
218
+ ...options,
219
+ });
220
+ return (0, utils_js_1.transformResponse)(resp);
221
+ }
222
+ /**
223
+ * Get customer stripe app data
178
224
  * @param customerIdOrKey - The ID or key of the customer
179
225
  * @param query - The query parameters
180
226
  * @param signal - An optional abort signal
181
- * @returns The list of customer subscriptions
227
+ * @returns The customer stripe app data
182
228
  */
183
- async listSubscriptions(customerIdOrKey, query, options) {
184
- const resp = await this.client.GET('/api/v1/customers/{customerIdOrKey}/subscriptions', {
185
- params: { path: { customerIdOrKey }, query },
229
+ async get(customerIdOrKey, options) {
230
+ const resp = await this.client.GET('/api/v1/customers/{customerIdOrKey}/apps', {
231
+ params: {
232
+ path: { customerIdOrKey },
233
+ },
234
+ ...options,
235
+ });
236
+ return (0, utils_js_1.transformResponse)(resp);
237
+ }
238
+ /**
239
+ * Create a Stripe customer portal session
240
+ * @param customerIdOrKey - The ID or Key of the customer
241
+ * @param params - The parameters for creating a Stripe customer portal session
242
+ * @param signal - An optional abort signal
243
+ * @returns The Stripe customer portal session
244
+ */
245
+ async createPortalSession(customerIdOrKey, params, options) {
246
+ const resp = await this.client.POST('/api/v1/customers/{customerIdOrKey}/stripe/portal', {
247
+ body: params,
248
+ params: {
249
+ path: {
250
+ customerIdOrKey,
251
+ },
252
+ },
186
253
  ...options,
187
254
  });
188
255
  return (0, utils_js_1.transformResponse)(resp);
189
256
  }
190
257
  }
191
- exports.CustomerApps = CustomerApps;
258
+ exports.CustomerStripe = CustomerStripe;
192
259
  /**
193
260
  * Customer Entitlements
194
261
  */
@@ -1,5 +1,5 @@
1
1
  import type { RequestOptions } from './common.cjs';
2
- import type { CustomerAppData, CustomerCreate, CustomerReplaceUpdate, operations, paths } from './schemas.cjs';
2
+ import type { CreateStripeCustomerPortalSessionParams, CustomerAppData, CustomerCreate, CustomerReplaceUpdate, operations, paths, StripeCustomerAppDataBase } from './schemas.cjs';
3
3
  import type { Client } from 'openapi-fetch';
4
4
  /**
5
5
  * Customers
@@ -9,6 +9,7 @@ export declare class Customers {
9
9
  private client;
10
10
  apps: CustomerApps;
11
11
  entitlements: CustomerEntitlements;
12
+ stripe: CustomerStripe;
12
13
  constructor(client: Client<paths, `${string}/${string}`>);
13
14
  /**
14
15
  * Create a customer
@@ -109,6 +110,19 @@ export declare class Customers {
109
110
  [key: string]: import("./schemas.cjs").components["schemas"]["EntitlementValue"];
110
111
  };
111
112
  }>;
113
+ /**
114
+ * List customer subscriptions
115
+ * @param customerIdOrKey - The ID or key of the customer
116
+ * @param query - The query parameters
117
+ * @param signal - An optional abort signal
118
+ * @returns The list of customer subscriptions
119
+ */
120
+ listSubscriptions(customerIdOrKey: operations['listCustomerSubscriptions']['parameters']['path']['customerIdOrKey'], query?: operations['listCustomerSubscriptions']['parameters']['query'], options?: RequestOptions): Promise<{
121
+ totalCount: number;
122
+ page: number;
123
+ pageSize: number;
124
+ items: import("./schemas.cjs").components["schemas"]["Subscription"][];
125
+ }>;
112
126
  }
113
127
  /**
114
128
  * Customer Apps
@@ -132,9 +146,9 @@ export declare class CustomerApps {
132
146
  } | {
133
147
  id?: string;
134
148
  type: "stripe";
135
- readonly app?: import("./schemas.cjs").components["schemas"]["StripeApp"];
136
149
  stripeCustomerId: string;
137
150
  stripeDefaultPaymentMethodId?: string;
151
+ readonly app?: import("./schemas.cjs").components["schemas"]["StripeApp"];
138
152
  } | {
139
153
  readonly app?: import("./schemas.cjs").components["schemas"]["SandboxApp"];
140
154
  id?: string;
@@ -161,18 +175,57 @@ export declare class CustomerApps {
161
175
  * @returns The deleted customer app data
162
176
  */
163
177
  delete(customerIdOrKey: operations['deleteCustomerAppData']['parameters']['path']['customerIdOrKey'], appId: operations['deleteCustomerAppData']['parameters']['path']['appId'], options?: RequestOptions): Promise<undefined>;
178
+ }
179
+ /**
180
+ * Customer Stripe
181
+ * Manage customer Stripe data.
182
+ */
183
+ export declare class CustomerStripe {
184
+ private client;
185
+ constructor(client: Client<paths, `${string}/${string}`>);
164
186
  /**
165
- * List customer subscriptions
187
+ * Upsert customer stripe app data
188
+ * @param customerIdOrKey - The ID or Key of the customer
189
+ * @param appData - The app data to upsert
190
+ * @param signal - An optional abort signal
191
+ * @returns The upserted customer stripe app data
192
+ */
193
+ upsert(customerIdOrKey: operations['upsertCustomerStripeAppData']['parameters']['path']['customerIdOrKey'], stripeAppData: StripeCustomerAppDataBase, options?: RequestOptions): Promise<{
194
+ id?: string;
195
+ type: "stripe";
196
+ stripeCustomerId: string;
197
+ stripeDefaultPaymentMethodId?: string;
198
+ readonly app?: import("./schemas.cjs").components["schemas"]["StripeApp"];
199
+ }>;
200
+ /**
201
+ * Get customer stripe app data
166
202
  * @param customerIdOrKey - The ID or key of the customer
167
203
  * @param query - The query parameters
168
204
  * @param signal - An optional abort signal
169
- * @returns The list of customer subscriptions
205
+ * @returns The customer stripe app data
170
206
  */
171
- listSubscriptions(customerIdOrKey: operations['listCustomerSubscriptions']['parameters']['path']['customerIdOrKey'], query?: operations['listCustomerSubscriptions']['parameters']['query'], options?: RequestOptions): Promise<{
207
+ get(customerIdOrKey: operations['getCustomerStripeAppData']['parameters']['path']['customerIdOrKey'], options?: RequestOptions): Promise<{
172
208
  totalCount: number;
173
209
  page: number;
174
210
  pageSize: number;
175
- items: import("./schemas.cjs").components["schemas"]["Subscription"][];
211
+ items: import("./schemas.cjs").components["schemas"]["CustomerAppData"][];
212
+ }>;
213
+ /**
214
+ * Create a Stripe customer portal session
215
+ * @param customerIdOrKey - The ID or Key of the customer
216
+ * @param params - The parameters for creating a Stripe customer portal session
217
+ * @param signal - An optional abort signal
218
+ * @returns The Stripe customer portal session
219
+ */
220
+ createPortalSession(customerIdOrKey: operations['createCustomerStripePortalSession']['parameters']['path']['customerIdOrKey'], params: CreateStripeCustomerPortalSessionParams, options?: RequestOptions): Promise<{
221
+ id: string;
222
+ stripeCustomerId: string;
223
+ configurationId: string;
224
+ livemode: boolean;
225
+ createdAt: Date;
226
+ returnUrl: string;
227
+ locale: string;
228
+ url: string;
176
229
  }>;
177
230
  }
178
231
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../../src/client/customers.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAW9C;;;GAGG;AACH,MAAa,SAAS;IAIA;IAHb,IAAI,CAAc;IAClB,YAAY,CAAsB;IAEzC,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;QAC9D,IAAI,CAAC,IAAI,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAA;QACpC,IAAI,CAAC,YAAY,GAAG,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAA;IACtD,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,QAAwB,EAAE,OAAwB;QACpE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAmB,EAAE;YACvD,IAAI,EAAE,QAAQ;YACd,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,GAAG,CACd,eAAmF,EACnF,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,qCAAqC,EAAE;YACxE,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,eAAe;iBAChB;aACF;YACD,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,MAAM,CACjB,eAAsF,EACtF,QAA+B,EAC/B,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,qCAAqC,EAAE;YACx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