@@ -8,19 +8,6 @@ interface AddEventListenerOptions extends EventListenerOptions {
8
8
signal?: AbortSignal;
9
9
}
10
10
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
-
24
11
interface AesCbcParams extends Algorithm {
25
12
iv: BufferSource;
26
13
}
@@ -981,12 +968,6 @@ interface PannerOptions extends AudioNodeOptions {
981
968
rolloffFactor?: number;
982
969
}
983
970
984
- interface PayerErrors {
985
- email?: string;
986
- name?: string;
987
- phone?: string;
988
- }
989
-
990
971
interface PaymentCurrencyAmount {
991
972
currency: string;
992
973
value: string;
@@ -995,7 +976,6 @@ interface PaymentCurrencyAmount {
995
976
interface PaymentDetailsBase {
996
977
displayItems?: PaymentItem[];
997
978
modifiers?: PaymentDetailsModifier[];
998
- shippingOptions?: PaymentShippingOption[];
999
979
}
1000
980
1001
981
interface PaymentDetailsInit extends PaymentDetailsBase {
@@ -1011,10 +991,7 @@ interface PaymentDetailsModifier {
1011
991
}
1012
992
1013
993
interface PaymentDetailsUpdate extends PaymentDetailsBase {
1014
- error?: string;
1015
- payerErrors?: PayerErrors;
1016
994
paymentMethodErrors?: any;
1017
- shippingAddressErrors?: AddressErrors;
1018
995
total?: PaymentItem;
1019
996
}
1020
997
@@ -1034,30 +1011,12 @@ interface PaymentMethodData {
1034
1011
supportedMethods: string;
1035
1012
}
1036
1013
1037
- interface PaymentOptions {
1038
- requestBillingAddress?: boolean;
1039
- requestPayerEmail?: boolean;
1040
- requestPayerName?: boolean;
1041
- requestPayerPhone?: boolean;
1042
- requestShipping?: boolean;
1043
- shippingType?: PaymentShippingType;
1044
- }
1045
-
1046
1014
interface PaymentRequestUpdateEventInit extends EventInit {
1047
1015
}
1048
1016
1049
- interface PaymentShippingOption {
1050
- amount: PaymentCurrencyAmount;
1051
- id: string;
1052
- label: string;
1053
- selected?: boolean;
1054
- }
1055
-
1056
1017
interface PaymentValidationErrors {
1057
1018
error?: string;
1058
- payer?: PayerErrors;
1059
1019
paymentMethod?: any;
1060
- shippingAddress?: AddressErrors;
1061
1020
}
1062
1021
1063
1022
interface Pbkdf2Params extends Algorithm {
@@ -6337,6 +6296,7 @@ interface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementC
6337
6296
readonly offsetParent: Element | null;
6338
6297
readonly offsetTop: number;
6339
6298
readonly offsetWidth: number;
6299
+ outerText: string;
6340
6300
spellcheck: boolean;
6341
6301
title: string;
6342
6302
translate: boolean;
@@ -10906,19 +10866,12 @@ declare var PaymentMethodChangeEvent: {
10906
10866
10907
10867
interface PaymentRequestEventMap {
10908
10868
"paymentmethodchange": Event;
10909
- "shippingaddresschange": Event;
10910
- "shippingoptionchange": Event;
10911
10869
}
10912
10870
10913
10871
/** 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. */
10914
10872
interface PaymentRequest extends EventTarget {
10915
10873
readonly id: string;
10916
10874
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;
10922
10875
abort(): Promise<void>;
10923
10876
canMakePayment(): Promise<boolean>;
10924
10877
show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;
@@ -10930,7 +10883,7 @@ interface PaymentRequest extends EventTarget {
10930
10883
10931
10884
declare var PaymentRequest: {
10932
10885
readonly prototype: PaymentRequest;
10933
- new(methodData: PaymentMethodData[], details: PaymentDetailsInit, options?: PaymentOptions ): PaymentRequest;
10886
+ new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
10934
10887
};
10935
10888
10936
10889
/** 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: {
10943
10896
new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
10944
10897
};
10945
10898
10946
- interface PaymentResponseEventMap {
10947
- "payerdetailchange": Event;
10948
- }
10949
-
10950
10899
/** This Payment Request API interface is returned after a user selects a payment method and approves a payment request. */
10951
10900
interface PaymentResponse extends EventTarget {
10952
10901
readonly details: any;
10953
10902
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;
10958
10903
readonly requestId: string;
10959
- readonly shippingAddress: PaymentAddress | null;
10960
- readonly shippingOption: string | null;
10961
10904
complete(result?: PaymentComplete): Promise<void>;
10962
10905
retry(errorFields?: PaymentValidationErrors): Promise<void>;
10963
10906
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;
10968
10907
}
10969
10908
10970
10909
declare var PaymentResponse: {
@@ -18682,7 +18621,6 @@ type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
18682
18621
type OverSampleType = "2x" | "4x" | "none";
18683
18622
type PanningModelType = "HRTF" | "equalpower";
18684
18623
type PaymentComplete = "fail" | "success" | "unknown";
18685
- type PaymentShippingType = "delivery" | "pickup" | "shipping";
18686
18624
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push";
18687
18625
type PermissionState = "denied" | "granted" | "prompt";
18688
18626
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
0 commit comments