This repository was archived by the owner on Jul 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,27 @@ export interface SubscriptionOfferingBase {
3737 }
3838}
3939
40+ export interface SubscriptionOfferingBuildProduct {
41+ external_ref ?: string
42+ name : string
43+ description ?: string
44+ sku ?: string
45+ main_image ?: string
46+ price ?: {
47+ [ key : string ] : {
48+ amount : number
49+ includes_tax ?: boolean
50+ }
51+ }
52+ price_units ?: {
53+ unit : "day" | "month"
54+ amount : number
55+ }
56+ }
4057export interface SubscriptionOfferingBuildBody {
4158 name : string
4259 description : string
43- products : string [ ]
60+ products : string [ ] | SubscriptionOfferingBuildProduct [ ]
4461 plans : string [ ]
4562}
4663
@@ -69,6 +86,12 @@ type SubscriptionOfferingAttachmentsRelationships = {
6986 }
7087}
7188
89+ export interface SubscriptionOfferingFilter {
90+ eq ?: {
91+ "products.external_ref" : string
92+ }
93+ }
94+
7295export type SubscriptionOfferingPlan = SubscriptionPlan & SubscriptionOfferingAttachmentsRelationships
7396export type SubscriptionOfferingProduct = SubscriptionProduct & SubscriptionOfferingAttachmentsRelationships
7497/**
@@ -80,7 +103,7 @@ export interface SubscriptionOfferingsEndpoint
80103 SubscriptionOffering ,
81104 SubscriptionOfferingCreate ,
82105 SubscriptionOfferingUpdate ,
83- never ,
106+ SubscriptionOfferingFilter ,
84107 never ,
85108 never
86109 > {
You can’t perform that action at this time.
0 commit comments