diff --git a/src/resources/invoice-resource.ts b/src/resources/invoice-resource.ts index 8c24b80..8c1c949 100644 --- a/src/resources/invoice-resource.ts +++ b/src/resources/invoice-resource.ts @@ -56,7 +56,7 @@ export class InvoiceResource extends ChargebeeResource { invoice: { optional: false }, }); public readonly pdf = super.request("invoice", "pdf", { - invoice: { optional: false }, + download: { optional: false }, }); public readonly downloadEinvoice = super.request( "invoice", diff --git a/src/resources/quote-resource.ts b/src/resources/quote-resource.ts index 304b321..1d229eb 100644 --- a/src/resources/quote-resource.ts +++ b/src/resources/quote-resource.ts @@ -86,6 +86,6 @@ export class QuoteResource extends ChargebeeResource { quote: { optional: false }, }); public readonly pdf = super.request("quote", "pdf", { - quote: { optional: false }, + download: { optional: false }, }); } diff --git a/src/resources/usage-resource.ts b/src/resources/usage-resource.ts index 0a71984..593e5b9 100644 --- a/src/resources/usage-resource.ts +++ b/src/resources/usage-resource.ts @@ -13,6 +13,6 @@ export class UsageResource extends ChargebeeResource { usage: { optional: false }, }); public readonly pdf = super.request("usage", "pdf", { - usage: { optional: false }, + download: { optional: false }, }); }