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