Skip to content

Commit b207ad2

Browse files
fix(api): improve catalog detail response in customer billing (#105)
1 parent 18bb115 commit b207ad2

File tree

2 files changed

+60
-46
lines changed

2 files changed

+60
-46
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 37
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/flowglad%2Fflowglad-085889adb3c18e499d8f9fb0ec9d020e5ba1f85aa40c33eba39b6788d6e238c2.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/flowglad%2Fflowglad-1e72292ee37cb957ff2c392034c96b7b4dda9f089dd00a16c8b7c6805e22c688.yml

src/resources/customers.ts

Lines changed: 59 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -368,17 +368,75 @@ export interface CustomerRetrieveBillingResponse {
368368

369369
export namespace CustomerRetrieveBillingResponse {
370370
export interface Catalog {
371+
id: string;
372+
373+
/**
374+
* safeZodDate
375+
*/
376+
createdAt: (string & {}) | string;
377+
378+
isDefault: boolean;
379+
380+
livemode: boolean;
381+
382+
name: string;
383+
384+
organizationId: string;
385+
371386
products: Array<Catalog.Product>;
387+
388+
/**
389+
* safeZodDate
390+
*/
391+
updatedAt: (string & {}) | string | null;
372392
}
373393

374394
export namespace Catalog {
375395
export interface Product {
396+
id: string;
397+
398+
active: boolean;
399+
400+
catalogId: string;
401+
402+
/**
403+
* safeZodDate
404+
*/
405+
createdAt: (string & {}) | string;
406+
407+
description: string | null;
408+
409+
displayFeatures: Array<Product.DisplayFeature> | null;
410+
411+
imageURL: string | null;
412+
413+
livemode: boolean;
414+
415+
name: string;
416+
417+
organizationId: string;
418+
419+
pluralQuantityLabel: string | null;
420+
376421
prices: Array<Product.SubscriptionPrice | Product.SinglePaymentPrice>;
377422

378-
product: Product.Product;
423+
singularQuantityLabel: string | null;
424+
425+
/**
426+
* safeZodDate
427+
*/
428+
updatedAt: (string & {}) | string;
379429
}
380430

381431
export namespace Product {
432+
export interface DisplayFeature {
433+
enabled: boolean;
434+
435+
label: string;
436+
437+
details?: string | null;
438+
}
439+
382440
export interface SubscriptionPrice {
383441
id: string;
384442

@@ -737,50 +795,6 @@ export namespace CustomerRetrieveBillingResponse {
737795
*/
738796
trialPeriodDays?: 'null' | null | unknown;
739797
}
740-
741-
export interface Product {
742-
id: string;
743-
744-
active: boolean;
745-
746-
catalogId: string;
747-
748-
/**
749-
* safeZodDate
750-
*/
751-
createdAt: (string & {}) | string;
752-
753-
description: string | null;
754-
755-
displayFeatures: Array<Product.DisplayFeature> | null;
756-
757-
imageURL: string | null;
758-
759-
livemode: boolean;
760-
761-
name: string;
762-
763-
organizationId: string;
764-
765-
pluralQuantityLabel: string | null;
766-
767-
singularQuantityLabel: string | null;
768-
769-
/**
770-
* safeZodDate
771-
*/
772-
updatedAt: (string & {}) | string;
773-
}
774-
775-
export namespace Product {
776-
export interface DisplayFeature {
777-
enabled: boolean;
778-
779-
label: string;
780-
781-
details?: string | null;
782-
}
783-
}
784798
}
785799
}
786800

0 commit comments

Comments
 (0)