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
3 changes: 2 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2920,7 +2920,7 @@
/types/google_interactive_media_ads_types/ @Kiro705
/types/googlefc/ @johngeorgewright
/types/googlemaps.infobubble/ @Dashue
/types/googlepay/ @Fluccioni @Radu-Raicea @fstanis @mumpo @socsieng @JlUgia @dmengelt
/types/googlepay/ @Fluccioni @Radu-Raicea @fstanis @mumpo @socsieng @JlUgia @dmengelt @aikimatthew @stephenmcd
/types/googletag/ @atwwei
/types/gopd/ @ljharb
/types/gorilla-engine/ @jhwoodward @UJAM-JH @rip-off-hb @pkellett @vpietropaolo-ujam @agachuma
Expand Down Expand Up @@ -6984,6 +6984,7 @@
/types/rx-node/ @andre-luiz-dos-santos
/types/rx.wamp/ @darkl
/types/s-salt-pepper/ @kguzek
/types/s2-geometry/ @bilde2910
/types/s3-download-stream/ @everettcaleb
/types/s3-streams/ @azatoth
/types/s3-upload-stream/ @geoffreak
Expand Down
2 changes: 2 additions & 0 deletions types/event-calendar__core/event-calendar__core-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ cal = createCalendar(target, plugins, {
allDayContent: "content",
allDaySlot: true,
buttonText: { foo: "bar" },
columnWidth: "20px",
customButtons: {
foo: {
text: "Foo",
Expand Down Expand Up @@ -263,6 +264,7 @@ cal.setOption("buttonText", () => {
customButtons.bar = { text: "Bar", active: false, click: () => undefined };
return customButtons;
})
.setOption("columnWidth", undefined)
.setOption("dayCellFormat", (_d: Date) => "content")
.setOption("dayHeaderAriaLabelFormat", (_d: Date) => "content")
.setOption("dayHeaderFormat", (_d: Date) => "content")
Expand Down
2 changes: 2 additions & 0 deletions types/event-calendar__core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ export namespace Calendar {
events: EventSourceFunc | EventSourceFuncPromise;
};

type cssLength = string;
type dayOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;
type isoDateString = string;
type isoDateTimeString = string;
Expand All @@ -309,6 +310,7 @@ export namespace Calendar {
allDayContent?: Content;
allDaySlot?: boolean;
buttonText?: ButtonTextMapping | ((text: ButtonTextMapping) => ButtonTextMapping);
columnWidth?: cssLength;
customButtons?: CustomButtons | ((customButtons: CustomButtons) => CustomButtons);
date?: Date | string | undefined;
dateClick?: (info: DateClickInfo) => void;
Expand Down
2 changes: 1 addition & 1 deletion types/event-calendar__core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"type": "module",
"name": "@types/event-calendar__core",
"version": "4.7.9999",
"version": "5.0.9999",
"projects": [
"https://vkurko.github.io/calendar/"
],
Expand Down
8 changes: 8 additions & 0 deletions types/googlepay/googlepay-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@ const allowedCardNetworks = new Array<google.payments.api.CardNetwork>(
"INTERAC",
);

const cardFundingSource = new Array<google.payments.api.CardFundingSource>(
"UNKNOWN",
"CREDIT",
"DEBIT",
"PREPAID",
);

const allowedPaymentMethods = new Array<google.payments.api.PaymentMethodSpecification>({
type: "CARD",
parameters: {
allowedAuthMethods: ["PAN_ONLY", "CRYPTOGRAM_3DS"],
allowedCardNetworks,
allowedIssuerCountryCodes: ["US", "CA"],
billingAddressRequired: true,
billingAddressParameters: {
format: "MIN",
Expand Down
39 changes: 39 additions & 0 deletions types/googlepay/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,21 @@ declare namespace google.payments.api {
*/
allowCreditCards?: false | true | undefined;

/**
* Issuer country allowlist that contains ISO 3166-1 alpha-2 country codes.
* When this allowlist is set, users can only choose payment methods issued in the specified countries.
* If neither allowlist nor blocklist is set, users will be allowed to choose payment methods issued in any country.
*/
allowedIssuerCountryCodes?: string[] | undefined;

/**
* Issuer country blocklist that contains ISO 3166-1 alpha-2 country codes.
* When this blocklist is set, users are restricted from choosing payment methods issued in the specified countries.
*
* Note: allowedIssuerCountryCodes and blockedIssuerCountryCodes are mutually exclusive, so only one should be set at a time.
*/
blockedIssuerCountryCodes?: string[] | undefined;

/**
* Set to `true` to request assuranceDetails.
*
Expand Down Expand Up @@ -1192,6 +1207,11 @@ declare namespace google.payments.api {
* [[CardParameters.billingAddressRequired|`CardParameters.billingAddressRequired`]].
*/
billingAddress?: Address | undefined;

/**
* Card funding source for the selected payment method.
*/
cardFundingSource?: CardFundingSource | undefined;
}

/**
Expand Down Expand Up @@ -1841,6 +1861,25 @@ declare namespace google.payments.api {
*/
type TransactionState = "SUCCESS" | "ERROR";

/**
* Enum string for the card funding source of the selected payment method.
*
* Options:
*
* - `UNKNOWN`:
* The funding source is unknown.
*
* - `CREDIT`:
* The card is a credit card.
*
* - `DEBIT`:
* The card is a debit card.
*
* - `PREPAID`:
* The card is a prepaid card.
*/
type CardFundingSource = "UNKNOWN" | "CREDIT" | "DEBIT" | "PREPAID";

/**
* This object allows you to configure a Google Pay payment button. For
* more information about button types, colors, and display requirements,
Expand Down