33 * Description: Subscription Offerings.
44 * DOCS: TODO: add docs when ready
55 */
6+
67import {
78 Identifiable ,
89 CrudQueryableResource , Resource
@@ -15,6 +16,7 @@ import { SubscriptionPlan } from './subscription-plans'
1516 * For custom flows, extend this interface
1617 * DOCS: TODO: add docs when ready
1718 */
19+
1820export interface SubscriptionOfferingBase {
1921 type : string
2022 attributes : {
@@ -133,6 +135,7 @@ type SubscriptionOfferingPlanMeta = {
133135
134136export type SubscriptionOfferingPlan = Omit < SubscriptionPlan , 'meta' > & SubscriptionOfferingAttachmentsRelationships & SubscriptionOfferingPlanMeta
135137export type SubscriptionOfferingProduct = SubscriptionProduct & SubscriptionOfferingAttachmentsRelationships
138+
136139/**
137140 * Subscription Offering Endpoints
138141 * DOCS: TODO: add docs when ready
@@ -150,9 +153,9 @@ export interface SubscriptionOfferingsEndpoint
150153
151154 Build ( body : SubscriptionOfferingBuildBody ) : Promise < Resource < SubscriptionOffering > >
152155
153- GetAttachedProducts ( id : string ) : Promise < Resource < SubscriptionOfferingProduct [ ] > >
156+ GetAttachedProducts ( id : string ) : Promise < Resource < SubscriptionOfferingProduct [ ] > >
154157
155- GetAttachedPlans ( id : string ) : Promise < Resource < SubscriptionOfferingPlan [ ] > >
158+ GetAttachedPlans ( id : string ) : Promise < Resource < SubscriptionOfferingPlan [ ] > >
156159
157160 AttachProducts ( offeringId : string , body : SubscriptionOfferingAttachProductBody ) : Promise < Resource < SubscriptionProduct [ ] > >
158161
@@ -165,3 +168,4 @@ export interface SubscriptionOfferingsEndpoint
165168 AttachProrationPolicy ( offeringId : string , body : SubscriptionOfferingAttachProrationPolicyBody | null ) : Promise < Resource < SubscriptionOfferingAttachProrationPolicyBody > >
166169
167170 ReplaceProducts ( offeringId : string , productIds : string [ ] ) : Promise < Resource < SubscriptionProduct [ ] > >
171+ }
0 commit comments