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

Commit

Permalink
feat: added ability to remove attached proration from offering (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
rostyk-kanafotskyy authored Jun 27, 2024
1 parent 8379a71 commit 1a003fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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>>
}

0 comments on commit 1a003fb

Please sign in to comment.