Skip to content

Commit 6934fc9

Browse files
terminal: Add cancel* method definitions (#99)
* trivial; Group methods together * terminal: Add cancel* method definitions
1 parent 88ce74c commit 6934fc9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

types/terminal.d.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ export class Terminal {
486486
paymentIntent: ISdkManagedPaymentIntent;
487487
}
488488
>;
489+
cancelCollectPaymentMethod(): Promise<ErrorResponse | ICancelResponse>;
489490
/**
490491
* Confirms the payment intent which causes the charging of the user card.
491492
* @param request Object containing the payment intent to confirm.
@@ -501,7 +502,7 @@ export class Terminal {
501502
paymentIntent: IPaymentIntent;
502503
}
503504
>;
504-
cancelCollectPaymentMethod(): Promise<ErrorResponse | ICancelResponse>;
505+
cancelProcessPayment(): Promise<ErrorResponse | ICancelResponse>;
505506
readReusableCard(options?: {
506507
customer?: string;
507508
}): Promise<
@@ -538,13 +539,15 @@ export class Terminal {
538539
confirmSetupIntent(
539540
setupIntent: ISetupIntent
540541
): Promise<ErrorResponse | {setupIntent: ISetupIntent}>;
542+
cancelConfirmSetupIntent(): Promise<ErrorResponse | ICancelResponse>;
541543

542544
collectRefundPaymentMethod(
543545
charge_id: string,
544546
amount: number,
545547
currency: string,
546548
options?: RefundOptions
547549
): Promise<ErrorResponse | ICollectRefundPaymentMethodResponse>;
550+
cancelCollectRefundPaymentMethod(): Promise<ErrorResponse | ICancelResponse>;
548551

549552
processRefund(): Promise<
550553
| ErrorResponse
@@ -553,8 +556,8 @@ export class Terminal {
553556
refund: IRefund;
554557
}
555558
>;
559+
cancelProcessRefund(): Promise<ErrorResponse | ICancelResponse>;
556560

557-
cancelCollectRefundPaymentMethod(): Promise<ErrorResponse | ICancelResponse>;
558561
cancelReadReusableCard(): Promise<ErrorResponse | ICancelResponse>;
559562
setSimulatorConfiguration(config: any): void;
560563
getSimulatorConfiguration(): SimulatorConfiguration;

0 commit comments

Comments
 (0)