objc2_store_kit/generated/
SKReceiptRefreshRequest.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(SKRequest, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(feature = "SKRequest")]
15 #[deprecated = "Use Transaction.all and AppTransaction.shared"]
16 pub struct SKReceiptRefreshRequest;
17);
18
19#[cfg(feature = "SKRequest")]
20extern_conformance!(
21 unsafe impl NSObjectProtocol for SKReceiptRefreshRequest {}
22);
23
24#[cfg(feature = "SKRequest")]
25impl SKReceiptRefreshRequest {
26 extern_methods!(
27 #[deprecated = "Use Transaction.all and AppTransaction.shared"]
31 #[unsafe(method(initWithReceiptProperties:))]
32 #[unsafe(method_family = init)]
33 pub unsafe fn initWithReceiptProperties(
34 this: Allocated<Self>,
35 properties: Option<&NSDictionary<NSString, AnyObject>>,
36 ) -> Retained<Self>;
37
38 #[deprecated = "Use Transaction.all and AppTransaction.shared"]
39 #[unsafe(method(receiptProperties))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn receiptProperties(
42 &self,
43 ) -> Option<Retained<NSDictionary<NSString, AnyObject>>>;
44 );
45}
46
47#[cfg(feature = "SKRequest")]
49impl SKReceiptRefreshRequest {
50 extern_methods!(
51 #[unsafe(method(init))]
52 #[unsafe(method_family = init)]
53 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
54
55 #[unsafe(method(new))]
56 #[unsafe(method_family = new)]
57 pub unsafe fn new() -> Retained<Self>;
58 );
59}
60
61extern "C-unwind" {
62 pub fn SKTerminateForInvalidReceipt();
63}
64
65extern "C" {
66 #[deprecated = "No longer supported"]
68 pub static SKReceiptPropertyIsExpired: &'static NSString;
69}
70
71extern "C" {
72 #[deprecated = "No longer supported"]
74 pub static SKReceiptPropertyIsRevoked: &'static NSString;
75}
76
77extern "C" {
78 #[deprecated = "No longer supported"]
80 pub static SKReceiptPropertyIsVolumePurchase: &'static NSString;
81}