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