objc2_pass_kit/generated/
PKPaymentMerchantSession.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/passkit/pkpaymentmerchantsession?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct PKPaymentMerchantSession;
14);
15
16extern_conformance!(
17    unsafe impl NSObjectProtocol for PKPaymentMerchantSession {}
18);
19
20impl PKPaymentMerchantSession {
21    extern_methods!(
22        /// # Safety
23        ///
24        /// `dictionary` generic should be of the correct type.
25        #[unsafe(method(initWithDictionary:))]
26        #[unsafe(method_family = init)]
27        pub unsafe fn initWithDictionary(
28            this: Allocated<Self>,
29            dictionary: &NSDictionary,
30        ) -> Retained<Self>;
31    );
32}
33
34/// Methods declared on superclass `NSObject`.
35impl PKPaymentMerchantSession {
36    extern_methods!(
37        #[unsafe(method(init))]
38        #[unsafe(method_family = init)]
39        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
40
41        #[unsafe(method(new))]
42        #[unsafe(method_family = new)]
43        pub unsafe fn new() -> Retained<Self>;
44    );
45}