// GENERATED CONTENT - DO NOT EDIT // Content was automatically extracted by Reffy into reffy-reports // (https://github.com/tidoust/reffy-reports) // Source: Payment Handler API (https://w3c.github.io/payment-handler/) partial interface ServiceWorkerRegistration { [SameObject] readonly attribute PaymentManager paymentManager; }; [SecureContext, Exposed=(Window,Worker)] interface PaymentManager { [SameObject] readonly attribute PaymentInstruments instruments; attribute DOMString userHint; }; [SecureContext, Exposed=(Window,Worker)] interface PaymentInstruments { Promise delete(DOMString instrumentKey); Promise get(DOMString instrumentKey); Promise> keys(); Promise has(DOMString instrumentKey); Promise set(DOMString instrumentKey, PaymentInstrument details); Promise clear(); }; dictionary PaymentInstrument { required DOMString name; sequence icons; DOMString method; object capabilities; }; dictionary ImageObject { required USVString src; DOMString sizes; DOMString type; }; partial interface ServiceWorkerGlobalScope { attribute EventHandler oncanmakepayment; }; [Constructor(DOMString type, CanMakePaymentEventInit eventInitDict), Exposed=ServiceWorker] interface CanMakePaymentEvent : ExtendableEvent { readonly attribute USVString topOrigin; readonly attribute USVString paymentRequestOrigin; readonly attribute FrozenArray methodData; void respondWith(Promise canMakePaymentResponse); }; dictionary CanMakePaymentEventInit : ExtendableEventInit { USVString topOrigin; USVString paymentRequestOrigin; sequence methodData; }; partial interface ServiceWorkerGlobalScope { attribute EventHandler onpaymentrequest; }; dictionary PaymentMethodChangeResponse { DOMString error; PaymentCurrencyAmount total; FrozenArray modifiers; object paymentMethodErrors; }; [Constructor(DOMString type, PaymentRequestEventInit eventInitDict), Exposed=ServiceWorker] interface PaymentRequestEvent : ExtendableEvent { readonly attribute USVString topOrigin; readonly attribute USVString paymentRequestOrigin; readonly attribute DOMString paymentRequestId; readonly attribute FrozenArray methodData; readonly attribute object total; readonly attribute FrozenArray modifiers; readonly attribute DOMString instrumentKey; readonly attribute boolean requestBillingAddress; Promise openWindow(USVString url); Promise changePaymentMethod(DOMString methodName, optional object? methodDetails = null); void respondWith(Promise handlerResponsePromise); }; dictionary PaymentRequestEventInit : ExtendableEventInit { USVString topOrigin; USVString paymentRequestOrigin; DOMString paymentRequestId; sequence methodData; PaymentCurrencyAmount total; sequence modifiers; DOMString instrumentKey; }; dictionary PaymentHandlerResponse { DOMString methodName; object details; };