Package apple.passkit

Class PKPaymentTokenContext

  • All Implemented Interfaces:
    NSObject

    public class PKPaymentTokenContext
    extends NSObject
    Defines the context for a single payment token in a request for multiple payment tokens. API-Since: 16.0
    • Constructor Detail

      • PKPaymentTokenContext

        protected PKPaymentTokenContext​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static PKPaymentTokenContext allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • amount

        @NotNull
        public @NotNull NSDecimalNumber amount()
        The amount this particular payment token should be authorized for. It has the same currency as the enclosing payment request. Must be less than or equal to the total amount of the enclosing payment request.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • externalIdentifier

        @NotNull
        public @NotNull java.lang.String externalIdentifier()
        An external identifier for the merchant, provided by the developer. If you request a payment token for another merchant, try to always use the same external identifier for that merchant, if possible.
      • hash_static

        public static long hash_static()
      • initWithMerchantIdentifierExternalIdentifierMerchantNameMerchantDomainAmount

        public PKPaymentTokenContext initWithMerchantIdentifierExternalIdentifierMerchantNameMerchantDomainAmount​(@NotNull
                                                                                                                  @NotNull java.lang.String merchantIdentifier,
                                                                                                                  @NotNull
                                                                                                                  @NotNull java.lang.String externalIdentifier,
                                                                                                                  @NotNull
                                                                                                                  @NotNull java.lang.String merchantName,
                                                                                                                  @Nullable
                                                                                                                  @Nullable java.lang.String merchantDomain,
                                                                                                                  @NotNull
                                                                                                                  @NotNull NSDecimalNumber amount)
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • merchantDomain

        @Nullable
        public @Nullable java.lang.String merchantDomain()
        The main top-level domain of the merchant this payment token is intended for, optional.
      • merchantIdentifier

        @NotNull
        public @NotNull java.lang.String merchantIdentifier()
        An identifier for the merchant, as previously agreed with Apple. If you request a payment token for another merchant, use their merchant identifier, if available. Otherwise, use your own.
      • merchantName

        @NotNull
        public @NotNull java.lang.String merchantName()
        The name of the merchant this payment token is intended for; will be displayed to the user.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setAmount

        public void setAmount​(@NotNull
                              @NotNull NSDecimalNumber value)
        The amount this particular payment token should be authorized for. It has the same currency as the enclosing payment request. Must be less than or equal to the total amount of the enclosing payment request.
      • setExternalIdentifier

        public void setExternalIdentifier​(@NotNull
                                          @NotNull java.lang.String value)
        An external identifier for the merchant, provided by the developer. If you request a payment token for another merchant, try to always use the same external identifier for that merchant, if possible.
      • setMerchantDomain

        public void setMerchantDomain​(@Nullable
                                      @Nullable java.lang.String value)
        The main top-level domain of the merchant this payment token is intended for, optional.
      • setMerchantIdentifier

        public void setMerchantIdentifier​(@NotNull
                                          @NotNull java.lang.String value)
        An identifier for the merchant, as previously agreed with Apple. If you request a payment token for another merchant, use their merchant identifier, if available. Otherwise, use your own.
      • setMerchantName

        public void setMerchantName​(@NotNull
                                    @NotNull java.lang.String value)
        The name of the merchant this payment token is intended for; will be displayed to the user.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.