Skip to content

Commit c0a648b

Browse files
authored
[ts] Fix receipt type (MONEI#461)
The format of the receipt depends on the payment gateway.
1 parent 6011d6e commit c0a648b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

index.d.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2782,14 +2782,6 @@ declare namespace Shopify {
27822782
type TransactionSourceName = 'android' | 'iphone' | 'pos' | 'web';
27832783
type TransactionStatus = 'error' | 'failure' | 'pending' | 'success';
27842784

2785-
interface ITRansactionReceipt {
2786-
testcase: boolean;
2787-
authorization: string;
2788-
balance_transaction?: {
2789-
[k: string]: any;
2790-
};
2791-
}
2792-
27932785
interface ITransaction {
27942786
amount: string;
27952787
authorization: string;
@@ -2807,7 +2799,7 @@ declare namespace Shopify {
28072799
payment_details: IPaymentDetails;
28082800
parent_id: number;
28092801
processed_at: string;
2810-
receipt: ITRansactionReceipt;
2802+
receipt: Record<string, any>;
28112803
source_name: TransactionSourceName;
28122804
status: TransactionStatus;
28132805
test: boolean;

0 commit comments

Comments
 (0)