Skip to main content

web_sys/features/
gen_PaymentResponse.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "::js_sys::Object",
9        js_name = "PaymentResponse",
10        typescript_type = "PaymentResponse"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `PaymentResponse` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"]
18    pub type PaymentResponse;
19    #[wasm_bindgen(method, getter, js_class = "PaymentResponse", js_name = "requestId")]
20    #[doc = "Getter for the `requestId` field of this object."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/requestId)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"]
25    pub fn request_id(this: &PaymentResponse) -> ::alloc::string::String;
26    #[wasm_bindgen(method, getter, js_class = "PaymentResponse", js_name = "methodName")]
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/PaymentResponse/methodName)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"]
32    pub fn method_name(this: &PaymentResponse) -> ::alloc::string::String;
33    #[wasm_bindgen(method, getter, js_class = "PaymentResponse", js_name = "details")]
34    #[doc = "Getter for the `details` field of this object."]
35    #[doc = ""]
36    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/details)"]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"]
39    pub fn details(this: &PaymentResponse) -> ::js_sys::Object;
40    #[cfg(feature = "PaymentAddress")]
41    #[wasm_bindgen(
42        method,
43        getter,
44        js_class = "PaymentResponse",
45        js_name = "shippingAddress"
46    )]
47    #[doc = "Getter for the `shippingAddress` field of this object."]
48    #[doc = ""]
49    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/shippingAddress)"]
50    #[doc = ""]
51    #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`, `PaymentResponse`*"]
52    pub fn shipping_address(this: &PaymentResponse) -> Option<PaymentAddress>;
53    #[wasm_bindgen(
54        method,
55        getter,
56        js_class = "PaymentResponse",
57        js_name = "shippingOption"
58    )]
59    #[doc = "Getter for the `shippingOption` field of this object."]
60    #[doc = ""]
61    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/shippingOption)"]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"]
64    pub fn shipping_option(this: &PaymentResponse) -> Option<::alloc::string::String>;
65    #[wasm_bindgen(method, getter, js_class = "PaymentResponse", js_name = "payerName")]
66    #[doc = "Getter for the `payerName` field of this object."]
67    #[doc = ""]
68    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/payerName)"]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"]
71    pub fn payer_name(this: &PaymentResponse) -> Option<::alloc::string::String>;
72    #[wasm_bindgen(method, getter, js_class = "PaymentResponse", js_name = "payerEmail")]
73    #[doc = "Getter for the `payerEmail` field of this object."]
74    #[doc = ""]
75    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/payerEmail)"]
76    #[doc = ""]
77    #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"]
78    pub fn payer_email(this: &PaymentResponse) -> Option<::alloc::string::String>;
79    #[wasm_bindgen(method, getter, js_class = "PaymentResponse", js_name = "payerPhone")]
80    #[doc = "Getter for the `payerPhone` field of this object."]
81    #[doc = ""]
82    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/payerPhone)"]
83    #[doc = ""]
84    #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"]
85    pub fn payer_phone(this: &PaymentResponse) -> Option<::alloc::string::String>;
86    #[wasm_bindgen(method, js_class = "PaymentResponse")]
87    #[doc = "The `complete()` method."]
88    #[doc = ""]
89    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/complete)"]
90    #[doc = ""]
91    #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"]
92    pub fn complete(this: &PaymentResponse) -> ::js_sys::Promise;
93    #[cfg(feature = "PaymentComplete")]
94    #[wasm_bindgen(method, js_class = "PaymentResponse", js_name = "complete")]
95    #[doc = "The `complete()` method."]
96    #[doc = ""]
97    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/complete)"]
98    #[doc = ""]
99    #[doc = "*This API requires the following crate features to be activated: `PaymentComplete`, `PaymentResponse`*"]
100    pub fn complete_with_result(
101        this: &PaymentResponse,
102        result: PaymentComplete,
103    ) -> ::js_sys::Promise;
104    #[wasm_bindgen(method, js_class = "PaymentResponse", js_name = "toJSON")]
105    #[doc = "The `toJSON()` method."]
106    #[doc = ""]
107    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/toJSON)"]
108    #[doc = ""]
109    #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"]
110    pub fn to_json(this: &PaymentResponse) -> ::js_sys::Object;
111}