Skip to content

Commit

Permalink
fix(invoice): create invoice fields mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
StashBank committed Oct 16, 2023
1 parent 4c1eef7 commit d853a75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libs/stripe/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@valor/nestjs-stripe",
"version": "0.0.14",
"version": "0.0.15",
"type": "commonjs",
"private": false,
"author": "opavlovskyi-valor-software",
Expand Down
6 changes: 6 additions & 0 deletions libs/stripe/src/lib/stripe.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit d853a75

Please sign in to comment.