Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions types/aws-lambda/common/api-gateway.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,6 @@ export interface APIGatewayEventIdentity {
user: string | null;
userAgent: string | null;
userArn: string | null;
vpcId: string | null;
vpceId: string | null;
}
2 changes: 2 additions & 0 deletions types/aws-lambda/test/api-gateway-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ let proxyHandler: APIGatewayProxyHandler = async (event, context, callback) => {
strOrNull = requestContext.identity.user;
strOrNull = requestContext.identity.userAgent;
strOrNull = requestContext.identity.userArn;
strOrNull = requestContext.identity.vpcId;
strOrNull = requestContext.identity.vpceId;
strOrUndefined = requestContext.messageDirection;
strOrUndefinedOrNull = requestContext.messageId;
str = requestContext.path;
Expand Down
6 changes: 6 additions & 0 deletions types/googlepay/googlepay-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ const allowedPaymentMethods = new Array<google.payments.api.PaymentMethodSpecifi
},
});

const checkoutOptions = new Array<google.payments.api.CheckoutOption>(
"DEFAULT",
"COMPLETE_IMMEDIATE_PURCHASE",
"CONTINUE_TO_REVIEW",
);

// @ts-expect-error
allowedPaymentMethods[0].tokenizationSpecification = {
type: "DIRECT",
Expand Down
7 changes: 6 additions & 1 deletion types/googlepay/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1623,8 +1623,13 @@ declare namespace google.payments.api {
* [[TransactionInfo.totalPriceStatus|`TransactionInfo.totalPriceStatus`]]
* is set to [[TotalPriceStatus|`FINAL`]]. Otherwise,
* a payment data request will fail.
*
* - `CONTINUE_TO_REVIEW`:
* Use the 'Continue to Review Order' button for a buy flow in the
* payments sheet. Once loadPaymentData completes, the integrator should
* show an order confirmation screen to finalize the purchase.
*/
type CheckoutOption = "DEFAULT" | "COMPLETE_IMMEDIATE_PURCHASE";
type CheckoutOption = "DEFAULT" | "COMPLETE_IMMEDIATE_PURCHASE" | "CONTINUE_TO_REVIEW";

/**
* Enum string of a display item.
Expand Down