web_sys/features/
gen_PaymentMethodChangeEvent.rs

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