diff --git a/src/endpoints/subscription-offerings.js b/src/endpoints/subscription-offerings.js index e1b927942..ff353af3b 100644 --- a/src/endpoints/subscription-offerings.js +++ b/src/endpoints/subscription-offerings.js @@ -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) } } diff --git a/src/types/subscription-offerings.d.ts b/src/types/subscription-offerings.d.ts index eb54734d1..40746de18 100644 --- a/src/types/subscription-offerings.d.ts +++ b/src/types/subscription-offerings.d.ts @@ -162,5 +162,5 @@ export interface SubscriptionOfferingsEndpoint RemovePlan(offeringId: string, planId: string): Promise - AttachProrationPolicy(offeringId: string, body: SubscriptionOfferingAttachProrationPolicyBody): Promise> + AttachProrationPolicy(offeringId: string, body: SubscriptionOfferingAttachProrationPolicyBody | null): Promise> }