Skip to content

Commit 3b5b896

Browse files
🤖 Merge PR DefinitelyTyped#72185 [braintree] add shipping tax amount to TransactionRequest by @claudiowilson
1 parent 29d62b7 commit 3b5b896

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

‎types/braintree/braintree-tests.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ const gateway: BraintreeGateway = new braintree.BraintreeGateway({
117117
(async () => {
118118
const transactionRequest: braintree.TransactionRequest = {
119119
amount: "128.00",
120+
shippingTaxAmount: "10.00",
120121
};
121122
const response = await gateway.transaction.sale(transactionRequest).catch(console.error);
122123
if (!response) return;

‎types/braintree/index.d.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,6 +1857,7 @@ declare namespace braintree {
18571857
| undefined;
18581858
shippingAddressId?: string | undefined;
18591859
shippingAmount?: string | undefined;
1860+
shippingTaxAmount?: string | undefined;
18601861
shipsFromPostalCode?: string | undefined;
18611862
taxAmount?: string | undefined;
18621863
taxExempt?: boolean | undefined;

‎types/braintree/package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
"name": "Aaron Rose",
2121
"githubUsername": "acdr"
2222
},
23-
{
24-
"name": "Sanders DeNardi",
25-
"githubUsername": "sedenardi"
26-
},
2723
{
2824
"name": "Sebastian Campos",
2925
"githubUsername": "sebacampos"
26+
},
27+
{
28+
"name": "Claudio Wilson",
29+
"githubUsername": "claudiowilson"
3030
}
3131
]
3232
}

0 commit comments

Comments
 (0)