maxcountryman_web_sys/features/
gen_PaymentMethodChangeEvent.rs

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