Skip to content

Commit

Permalink
fix: fix typings of amountBreakdown
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed May 16, 2024
1 parent 07dd691 commit 2242686
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-feet-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hyperse-io/paypal-node-sdk": patch
---

fix typings of amountBreakdown
14 changes: 7 additions & 7 deletions src/types/type-payment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ export interface AddressPortable {

// https://developer.paypal.com/docs/api/payments/v2/#definition-amount_breakdown
export interface AmountBreakdown {
discount: Money;
handling: Money;
insurance: Money;
item_total: Money;
shipping_discount: Money;
shipping: Money;
tax_total: Money;
discount?: Money;
handling?: Money;
insurance?: Money;
item_total?: Money;
shipping_discount?: Money;
shipping?: Money;
tax_total?: Money;
}

// https://developer.paypal.com/docs/api/payments/v2/#definition-authorization
Expand Down

0 comments on commit 2242686

Please sign in to comment.