All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.web.paymentrequest.PaymentRequestUpdateEvent Maven / Gradle / Ivy

package js.web.paymentrequest;

import js.lang.Promise;
import js.web.dom.Event;
import org.teavm.jso.JSBody;

/**
 * This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action.
 */
public interface PaymentRequestUpdateEvent extends Event {
    @JSBody(script = "return PaymentRequestUpdateEvent.prototype")
    static PaymentRequestUpdateEvent prototype() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(params = {"type", "eventInitDict"}, script = "return new PaymentRequestUpdateEvent(type, eventInitDict)")
    static PaymentRequestUpdateEvent create(String type, PaymentRequestUpdateEventInit eventInitDict) {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(params = "type", script = "return new PaymentRequestUpdateEvent(type)")
    static PaymentRequestUpdateEvent create(String type) {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    void updateWith(PaymentDetailsUpdate detailsPromise);

    void updateWith(Promise detailsPromise);


    interface PaymentRequestUpdateEventInit extends EventInit {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy