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
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern "C" {
    pub static SKErrorDomain: &'static NSString;
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct SKErrorCode(pub NSInteger);
impl SKErrorCode {
    pub const SKErrorUnknown: Self = Self(0);
    pub const SKErrorClientInvalid: Self = Self(1);
    pub const SKErrorPaymentCancelled: Self = Self(2);
    pub const SKErrorPaymentInvalid: Self = Self(3);
    pub const SKErrorPaymentNotAllowed: Self = Self(4);
    pub const SKErrorStoreProductNotAvailable: Self = Self(5);
    pub const SKErrorCloudServicePermissionDenied: Self = Self(6);
    pub const SKErrorCloudServiceNetworkConnectionFailed: Self = Self(7);
    pub const SKErrorCloudServiceRevoked: Self = Self(8);
    pub const SKErrorPrivacyAcknowledgementRequired: Self = Self(9);
    pub const SKErrorUnauthorizedRequestData: Self = Self(10);
    pub const SKErrorInvalidOfferIdentifier: Self = Self(11);
    pub const SKErrorInvalidSignature: Self = Self(12);
    pub const SKErrorMissingOfferParams: Self = Self(13);
    pub const SKErrorInvalidOfferPrice: Self = Self(14);
    pub const SKErrorOverlayCancelled: Self = Self(15);
    pub const SKErrorOverlayInvalidConfiguration: Self = Self(16);
    pub const SKErrorOverlayTimeout: Self = Self(17);
    pub const SKErrorIneligibleForOffer: Self = Self(18);
    pub const SKErrorUnsupportedPlatform: Self = Self(19);
    pub const SKErrorOverlayPresentedInBackgroundScene: Self = Self(20);
}

unsafe impl Encode for SKErrorCode {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for SKErrorCode {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}