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