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