use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(SKRequest, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "SKRequest")]
#[deprecated = "Use Transaction.all and AppTransaction.shared"]
pub struct SKReceiptRefreshRequest;
);
#[cfg(feature = "SKRequest")]
extern_conformance!(
unsafe impl NSObjectProtocol for SKReceiptRefreshRequest {}
);
#[cfg(feature = "SKRequest")]
impl SKReceiptRefreshRequest {
extern_methods!(
#[deprecated = "Use Transaction.all and AppTransaction.shared"]
#[unsafe(method(initWithReceiptProperties:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithReceiptProperties(
this: Allocated<Self>,
properties: Option<&NSDictionary<NSString, AnyObject>>,
) -> Retained<Self>;
#[deprecated = "Use Transaction.all and AppTransaction.shared"]
#[unsafe(method(receiptProperties))]
#[unsafe(method_family = none)]
pub unsafe fn receiptProperties(
&self,
) -> Option<Retained<NSDictionary<NSString, AnyObject>>>;
);
}
#[cfg(feature = "SKRequest")]
impl SKReceiptRefreshRequest {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern "C-unwind" {
pub fn SKTerminateForInvalidReceipt();
}
extern "C" {
#[deprecated = "No longer supported"]
pub static SKReceiptPropertyIsExpired: &'static NSString;
}
extern "C" {
#[deprecated = "No longer supported"]
pub static SKReceiptPropertyIsRevoked: &'static NSString;
}
extern "C" {
#[deprecated = "No longer supported"]
pub static SKReceiptPropertyIsVolumePurchase: &'static NSString;
}