diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
commit | 9835e2ae736235810b4ea1c162ca5e65c547e770 (patch) | |
tree | 3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_PaymentResponse.rs | |
parent | Releasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff) | |
download | rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip |
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_PaymentResponse.rs')
-rw-r--r-- | vendor/web-sys/src/features/gen_PaymentResponse.rs | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_PaymentResponse.rs b/vendor/web-sys/src/features/gen_PaymentResponse.rs new file mode 100644 index 000000000..b9007db1c --- /dev/null +++ b/vendor/web-sys/src/features/gen_PaymentResponse.rs @@ -0,0 +1,96 @@ +#![allow(unused_imports)] +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; +} |