Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

feat: added ability to remove attached proration from offering #938

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/endpoints/subscription-offerings.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class SubscriptionOfferingsEndpoint extends CRUDExtend {

AttachProrationPolicy(offeringId, body) {
return this.request.send(`${this.endpoint}/${offeringId}/relationships/proration-policies`, 'PUT', {
...body
})
data: body
}, undefined, undefined, false)
}

}
Expand Down
2 changes: 1 addition & 1 deletion src/types/subscription-offerings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,5 @@ export interface SubscriptionOfferingsEndpoint

RemovePlan(offeringId: string, planId: string): Promise<void>

AttachProrationPolicy(offeringId: string, body: SubscriptionOfferingAttachProrationPolicyBody): Promise<Resource<SubscriptionOfferingAttachProrationPolicyBody>>
AttachProrationPolicy(offeringId: string, body: SubscriptionOfferingAttachProrationPolicyBody | null): Promise<Resource<SubscriptionOfferingAttachProrationPolicyBody>>
}
Loading