@@ -8,19 +8,6 @@ interface AddEventListenerOptions extends EventListenerOptions {
88 signal?: AbortSignal;
99}
1010
11- interface AddressErrors {
12- addressLine?: string;
13- city?: string;
14- country?: string;
15- dependentLocality?: string;
16- organization?: string;
17- phone?: string;
18- postalCode?: string;
19- recipient?: string;
20- region?: string;
21- sortingCode?: string;
22- }
23-
2411interface AesCbcParams extends Algorithm {
2512 iv: BufferSource;
2613}
@@ -981,12 +968,6 @@ interface PannerOptions extends AudioNodeOptions {
981968 rolloffFactor?: number;
982969}
983970
984- interface PayerErrors {
985- email?: string;
986- name?: string;
987- phone?: string;
988- }
989-
990971interface PaymentCurrencyAmount {
991972 currency: string;
992973 value: string;
@@ -995,7 +976,6 @@ interface PaymentCurrencyAmount {
995976interface PaymentDetailsBase {
996977 displayItems?: PaymentItem[];
997978 modifiers?: PaymentDetailsModifier[];
998- shippingOptions?: PaymentShippingOption[];
999979}
1000980
1001981interface PaymentDetailsInit extends PaymentDetailsBase {
@@ -1011,10 +991,7 @@ interface PaymentDetailsModifier {
1011991}
1012992
1013993interface PaymentDetailsUpdate extends PaymentDetailsBase {
1014- error?: string;
1015- payerErrors?: PayerErrors;
1016994 paymentMethodErrors?: any;
1017- shippingAddressErrors?: AddressErrors;
1018995 total?: PaymentItem;
1019996}
1020997
@@ -1034,30 +1011,12 @@ interface PaymentMethodData {
10341011 supportedMethods: string;
10351012}
10361013
1037- interface PaymentOptions {
1038- requestBillingAddress?: boolean;
1039- requestPayerEmail?: boolean;
1040- requestPayerName?: boolean;
1041- requestPayerPhone?: boolean;
1042- requestShipping?: boolean;
1043- shippingType?: PaymentShippingType;
1044- }
1045-
10461014interface PaymentRequestUpdateEventInit extends EventInit {
10471015}
10481016
1049- interface PaymentShippingOption {
1050- amount: PaymentCurrencyAmount;
1051- id: string;
1052- label: string;
1053- selected?: boolean;
1054- }
1055-
10561017interface PaymentValidationErrors {
10571018 error?: string;
1058- payer?: PayerErrors;
10591019 paymentMethod?: any;
1060- shippingAddress?: AddressErrors;
10611020}
10621021
10631022interface Pbkdf2Params extends Algorithm {
@@ -6337,6 +6296,7 @@ interface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementC
63376296 readonly offsetParent: Element | null;
63386297 readonly offsetTop: number;
63396298 readonly offsetWidth: number;
6299+ outerText: string;
63406300 spellcheck: boolean;
63416301 title: string;
63426302 translate: boolean;
@@ -10906,19 +10866,12 @@ declare var PaymentMethodChangeEvent: {
1090610866
1090710867interface PaymentRequestEventMap {
1090810868 "paymentmethodchange": Event;
10909- "shippingaddresschange": Event;
10910- "shippingoptionchange": Event;
1091110869}
1091210870
1091310871/** This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user. */
1091410872interface PaymentRequest extends EventTarget {
1091510873 readonly id: string;
1091610874 onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
10917- onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null;
10918- onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null;
10919- readonly shippingAddress: PaymentAddress | null;
10920- readonly shippingOption: string | null;
10921- readonly shippingType: PaymentShippingType | null;
1092210875 abort(): Promise<void>;
1092310876 canMakePayment(): Promise<boolean>;
1092410877 show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;
@@ -10930,7 +10883,7 @@ interface PaymentRequest extends EventTarget {
1093010883
1093110884declare var PaymentRequest: {
1093210885 readonly prototype: PaymentRequest;
10933- new(methodData: PaymentMethodData[], details: PaymentDetailsInit, options?: PaymentOptions ): PaymentRequest;
10886+ new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
1093410887};
1093510888
1093610889/** This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action. */
@@ -10943,28 +10896,14 @@ declare var PaymentRequestUpdateEvent: {
1094310896 new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
1094410897};
1094510898
10946- interface PaymentResponseEventMap {
10947- "payerdetailchange": Event;
10948- }
10949-
1095010899/** This Payment Request API interface is returned after a user selects a payment method and approves a payment request. */
1095110900interface PaymentResponse extends EventTarget {
1095210901 readonly details: any;
1095310902 readonly methodName: string;
10954- onpayerdetailchange: ((this: PaymentResponse, ev: Event) => any) | null;
10955- readonly payerEmail: string | null;
10956- readonly payerName: string | null;
10957- readonly payerPhone: string | null;
1095810903 readonly requestId: string;
10959- readonly shippingAddress: PaymentAddress | null;
10960- readonly shippingOption: string | null;
1096110904 complete(result?: PaymentComplete): Promise<void>;
1096210905 retry(errorFields?: PaymentValidationErrors): Promise<void>;
1096310906 toJSON(): any;
10964- addEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
10965- addEventListener(type: string, listener: EventListener, options?: boolean | AddEventListenerOptions): void;
10966- removeEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
10967- removeEventListener(type: string, listener: EventListener, options?: boolean | EventListenerOptions): void;
1096810907}
1096910908
1097010909declare var PaymentResponse: {
@@ -18682,7 +18621,6 @@ type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
1868218621type OverSampleType = "2x" | "4x" | "none";
1868318622type PanningModelType = "HRTF" | "equalpower";
1868418623type PaymentComplete = "fail" | "success" | "unknown";
18685- type PaymentShippingType = "delivery" | "pickup" | "shipping";
1868618624type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push";
1868718625type PermissionState = "denied" | "granted" | "prompt";
1868818626type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
0 commit comments