From d853a753d1713f2ccb21e9b3c5911ea39eb8f6de Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlovskyi Date: Mon, 16 Oct 2023 17:44:20 +0300 Subject: [PATCH] fix(invoice): create invoice fields mapping --- libs/stripe/package.json | 2 +- libs/stripe/src/lib/stripe.service.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/stripe/package.json b/libs/stripe/package.json index 41b528a..3dd8817 100644 --- a/libs/stripe/package.json +++ b/libs/stripe/package.json @@ -1,6 +1,6 @@ { "name": "@valor/nestjs-stripe", - "version": "0.0.14", + "version": "0.0.15", "type": "commonjs", "private": false, "author": "opavlovskyi-valor-software", diff --git a/libs/stripe/src/lib/stripe.service.ts b/libs/stripe/src/lib/stripe.service.ts index 4d5a03d..6842dfe 100644 --- a/libs/stripe/src/lib/stripe.service.ts +++ b/libs/stripe/src/lib/stripe.service.ts @@ -1015,6 +1015,12 @@ export class StripeService { description: dto.description, discounts: dto.discounts, due_date: dto.dueDate, + expand: dto.expand, + footer: dto.footer, + from_invoice: dto.fromInvoice ? { + action: 'revision', + invoice: dto.fromInvoice + } : undefined, pending_invoice_items_behavior: dto.pendingInvoiceItemsBehavior, subscription: dto.subscription, });