1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = PaymentRequestUpdateEvent , typescript_type = "PaymentRequestUpdateEvent")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `PaymentRequestUpdateEvent` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestUpdateEvent)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEvent`*"] 13 pub type PaymentRequestUpdateEvent; 14 #[wasm_bindgen(catch, constructor, js_class = "PaymentRequestUpdateEvent")] 15 #[doc = "The `new PaymentRequestUpdateEvent(..)` constructor, creating a new instance of `PaymentRequestUpdateEvent`."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestUpdateEvent/PaymentRequestUpdateEvent)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEvent`*"] new(type_: &str) -> Result<PaymentRequestUpdateEvent, JsValue>20 pub fn new(type_: &str) -> Result<PaymentRequestUpdateEvent, JsValue>; 21 #[cfg(feature = "PaymentRequestUpdateEventInit")] 22 #[wasm_bindgen(catch, constructor, js_class = "PaymentRequestUpdateEvent")] 23 #[doc = "The `new PaymentRequestUpdateEvent(..)` constructor, creating a new instance of `PaymentRequestUpdateEvent`."] 24 #[doc = ""] 25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestUpdateEvent/PaymentRequestUpdateEvent)"] 26 #[doc = ""] 27 #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEvent`, `PaymentRequestUpdateEventInit`*"] new_with_event_init_dict( type_: &str, event_init_dict: &PaymentRequestUpdateEventInit, ) -> Result<PaymentRequestUpdateEvent, JsValue>28 pub fn new_with_event_init_dict( 29 type_: &str, 30 event_init_dict: &PaymentRequestUpdateEventInit, 31 ) -> Result<PaymentRequestUpdateEvent, JsValue>; 32 # [wasm_bindgen (catch , method , structural , js_class = "PaymentRequestUpdateEvent" , js_name = updateWith)] 33 #[doc = "The `updateWith()` method."] 34 #[doc = ""] 35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestUpdateEvent/updateWith)"] 36 #[doc = ""] 37 #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEvent`*"] update_with( this: &PaymentRequestUpdateEvent, details_promise: &::js_sys::Promise, ) -> Result<(), JsValue>38 pub fn update_with( 39 this: &PaymentRequestUpdateEvent, 40 details_promise: &::js_sys::Promise, 41 ) -> Result<(), JsValue>; 42 } 43