Package apple.passkit
Class PKPaymentRequest
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.passkit.PKPaymentRequest
-
- All Implemented Interfaces:
NSObject
public class PKPaymentRequest extends NSObject
PKPaymentRequest defines an application's request to produce a payment instrument for the purchase of goods and services. It encapsulates information about the selling party's payment processing capabilities, an amount to pay, and the currency code.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPKPaymentRequest(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static PKPaymentRequestalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)NSDataapplicationData()Optional merchant-supplied information about the payment request.static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static NSArray<java.lang.String>availableNetworks()The payment networks and platforms supported for in-app paymentorg.moe.natj.general.ptr.ConstVoidPtrbillingAddress()Deprecated.PKContactbillingContact()If the merchant already has a billing address on file, set it here.static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()java.lang.StringcountryCode()The merchant's ISO country code.java.lang.StringcurrencyCode()Currency code for this payment.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()static longhash_static()PKPaymentRequestinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)longmerchantCapabilities()The payment processing capabilities of the merchant.java.lang.StringmerchantIdentifier()Identifies the merchant, as previously agreed with Apple.static java.lang.Objectnew_objc()static NSErrorpaymentBillingAddressInvalidErrorWithKeyLocalizedDescription(java.lang.String postalAddressKey, java.lang.String localizedDescription)Convenience method to create a payment billing address error with the supplied CNPostalAddressKey and descriptionstatic NSErrorpaymentContactInvalidErrorWithContactFieldLocalizedDescription(java.lang.String field, java.lang.String localizedDescription)Convenience method to create a payment contact error with the supplied field You may optionally provide a localized description to be displayed to the user.static NSErrorpaymentShippingAddressInvalidErrorWithKeyLocalizedDescription(java.lang.String postalAddressKey, java.lang.String localizedDescription)Convenience method to create a payment shipping address error with the supplied CNPostalAddressKey and descriptionstatic NSErrorpaymentShippingAddressUnserviceableErrorWithLocalizedDescription(java.lang.String localizedDescription)Convenience method to create a payment shipping address service error with the supplied descriptionNSArray<? extends PKPaymentSummaryItem>paymentSummaryItems()Array of PKPaymentSummaryItem objects which should be presented to the user.longrequiredBillingAddressFields()Indicates which billing address fields are required.NSSet<java.lang.String>requiredBillingContactFields()Indicates which billing contact fields the merchant requires in order to process a transaction.longrequiredShippingAddressFields()Indicates which shipping address fields are required.NSSet<java.lang.String>requiredShippingContactFields()Indicates which shipping contact fields the merchant requires in order to process a transactionsstatic booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetApplicationData(NSData value)Optional merchant-supplied information about the payment request.voidsetBillingAddress(org.moe.natj.general.ptr.ConstVoidPtr value)Deprecated.voidsetBillingContact(PKContact value)If the merchant already has a billing address on file, set it here.voidsetCountryCode(java.lang.String value)The merchant's ISO country code.voidsetCurrencyCode(java.lang.String value)Currency code for this payment.voidsetMerchantCapabilities(long value)The payment processing capabilities of the merchant.voidsetMerchantIdentifier(java.lang.String value)Identifies the merchant, as previously agreed with Apple.voidsetPaymentSummaryItems(NSArray<? extends PKPaymentSummaryItem> value)Array of PKPaymentSummaryItem objects which should be presented to the user.voidsetRequiredBillingAddressFields(long value)Indicates which billing address fields are required.voidsetRequiredBillingContactFields(NSSet<java.lang.String> value)Indicates which billing contact fields the merchant requires in order to process a transaction.voidsetRequiredShippingAddressFields(long value)Indicates which shipping address fields are required.voidsetRequiredShippingContactFields(NSSet<java.lang.String> value)Indicates which shipping contact fields the merchant requires in order to process a transactionsvoidsetShippingAddress(org.moe.natj.general.ptr.ConstVoidPtr value)Deprecated.voidsetShippingContact(PKContact value)If the merchant already has a shipping address on file, set it here.voidsetShippingMethods(NSArray<? extends PKShippingMethod> value)Shipping methods supported by the merchant.voidsetShippingType(long value)Indicates the display mode for the shipping (e.g, "Pick Up", "Ship To", "Deliver To").voidsetSupportedCountries(NSSet<java.lang.String> value)Set of two-letter ISO 3166 country codes.voidsetSupportedNetworks(NSArray<java.lang.String> value)The payment networks supported by the merchant, for example @[ PKPaymentNetworkVisa, PKPaymentNetworkMasterCard ].static voidsetVersion_static(long aVersion)org.moe.natj.general.ptr.ConstVoidPtrshippingAddress()Deprecated.PKContactshippingContact()If the merchant already has a shipping address on file, set it here.NSArray<? extends PKShippingMethod>shippingMethods()Shipping methods supported by the merchant.longshippingType()Indicates the display mode for the shipping (e.g, "Pick Up", "Ship To", "Deliver To").static org.moe.natj.objc.Classsuperclass_static()NSSet<java.lang.String>supportedCountries()Set of two-letter ISO 3166 country codes.NSArray<java.lang.String>supportedNetworks()The payment networks supported by the merchant, for example @[ PKPaymentNetworkVisa, PKPaymentNetworkMasterCard ].static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static PKPaymentRequest alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
availableNetworks
public static NSArray<java.lang.String> availableNetworks()
The payment networks and platforms supported for in-app payment
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
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()
-
applicationData
public NSData applicationData()
Optional merchant-supplied information about the payment request. Examples of this are an order or cart identifier. It will be signed and included in the resulting PKPaymentToken.
-
billingAddress
@Deprecated public org.moe.natj.general.ptr.ConstVoidPtr billingAddress()
Deprecated.
-
billingContact
public PKContact billingContact()
If the merchant already has a billing address on file, set it here.
-
countryCode
public java.lang.String countryCode()
The merchant's ISO country code.
-
currencyCode
public java.lang.String currencyCode()
Currency code for this payment.
-
init
public PKPaymentRequest init()
-
merchantCapabilities
public long merchantCapabilities()
The payment processing capabilities of the merchant.
-
merchantIdentifier
public java.lang.String merchantIdentifier()
Identifies the merchant, as previously agreed with Apple. Must match one of the merchant identifiers in the application's entitlement.
-
paymentSummaryItems
public NSArray<? extends PKPaymentSummaryItem> paymentSummaryItems()
Array of PKPaymentSummaryItem objects which should be presented to the user. The last item should be the total you wish to charge, and should not be pending
-
requiredBillingAddressFields
public long requiredBillingAddressFields()
Indicates which billing address fields are required. The default is PKAddressFieldNone. This property is deprecated and should not be used.
-
requiredShippingAddressFields
public long requiredShippingAddressFields()
Indicates which shipping address fields are required. The default is PKAddressFieldNone. This property is deprecated and should not be used
-
setApplicationData
public void setApplicationData(NSData value)
Optional merchant-supplied information about the payment request. Examples of this are an order or cart identifier. It will be signed and included in the resulting PKPaymentToken.
-
setBillingAddress
@Deprecated public void setBillingAddress(org.moe.natj.general.ptr.ConstVoidPtr value)
Deprecated.
-
setBillingContact
public void setBillingContact(PKContact value)
If the merchant already has a billing address on file, set it here.
-
setCountryCode
public void setCountryCode(java.lang.String value)
The merchant's ISO country code.
-
setCurrencyCode
public void setCurrencyCode(java.lang.String value)
Currency code for this payment.
-
setMerchantCapabilities
public void setMerchantCapabilities(long value)
The payment processing capabilities of the merchant.
-
setMerchantIdentifier
public void setMerchantIdentifier(java.lang.String value)
Identifies the merchant, as previously agreed with Apple. Must match one of the merchant identifiers in the application's entitlement.
-
setPaymentSummaryItems
public void setPaymentSummaryItems(NSArray<? extends PKPaymentSummaryItem> value)
Array of PKPaymentSummaryItem objects which should be presented to the user. The last item should be the total you wish to charge, and should not be pending
-
setRequiredBillingAddressFields
public void setRequiredBillingAddressFields(long value)
Indicates which billing address fields are required. The default is PKAddressFieldNone. This property is deprecated and should not be used.
-
setRequiredShippingAddressFields
public void setRequiredShippingAddressFields(long value)
Indicates which shipping address fields are required. The default is PKAddressFieldNone. This property is deprecated and should not be used
-
setShippingAddress
@Deprecated public void setShippingAddress(org.moe.natj.general.ptr.ConstVoidPtr value)
Deprecated.These properties have been deprecated and should not be used.
-
setShippingContact
public void setShippingContact(PKContact value)
If the merchant already has a shipping address on file, set it here.
-
setShippingMethods
public void setShippingMethods(NSArray<? extends PKShippingMethod> value)
Shipping methods supported by the merchant.
-
setShippingType
public void setShippingType(long value)
Indicates the display mode for the shipping (e.g, "Pick Up", "Ship To", "Deliver To"). Localized. The default is PKShippingTypeShipping
-
setSupportedNetworks
public void setSupportedNetworks(NSArray<java.lang.String> value)
The payment networks supported by the merchant, for example @[ PKPaymentNetworkVisa, PKPaymentNetworkMasterCard ]. This property constrains payment cards that may fund the payment.
-
shippingAddress
@Deprecated public org.moe.natj.general.ptr.ConstVoidPtr shippingAddress()
Deprecated.These properties have been deprecated and should not be used.
-
shippingContact
public PKContact shippingContact()
If the merchant already has a shipping address on file, set it here.
-
shippingMethods
public NSArray<? extends PKShippingMethod> shippingMethods()
Shipping methods supported by the merchant.
-
shippingType
public long shippingType()
Indicates the display mode for the shipping (e.g, "Pick Up", "Ship To", "Deliver To"). Localized. The default is PKShippingTypeShipping
-
supportedNetworks
public NSArray<java.lang.String> supportedNetworks()
The payment networks supported by the merchant, for example @[ PKPaymentNetworkVisa, PKPaymentNetworkMasterCard ]. This property constrains payment cards that may fund the payment.
-
paymentBillingAddressInvalidErrorWithKeyLocalizedDescription
public static NSError paymentBillingAddressInvalidErrorWithKeyLocalizedDescription(java.lang.String postalAddressKey, java.lang.String localizedDescription)
Convenience method to create a payment billing address error with the supplied CNPostalAddressKey and description
-
paymentContactInvalidErrorWithContactFieldLocalizedDescription
public static NSError paymentContactInvalidErrorWithContactFieldLocalizedDescription(java.lang.String field, java.lang.String localizedDescription)
Convenience method to create a payment contact error with the supplied field You may optionally provide a localized description to be displayed to the user. Available display space for descriptions may be limited, so you should keep your messages concise
-
paymentShippingAddressInvalidErrorWithKeyLocalizedDescription
public static NSError paymentShippingAddressInvalidErrorWithKeyLocalizedDescription(java.lang.String postalAddressKey, java.lang.String localizedDescription)
Convenience method to create a payment shipping address error with the supplied CNPostalAddressKey and description
-
paymentShippingAddressUnserviceableErrorWithLocalizedDescription
public static NSError paymentShippingAddressUnserviceableErrorWithLocalizedDescription(java.lang.String localizedDescription)
Convenience method to create a payment shipping address service error with the supplied description
-
requiredBillingContactFields
public NSSet<java.lang.String> requiredBillingContactFields()
Indicates which billing contact fields the merchant requires in order to process a transaction. Currently only postal address may be requested for billing contact. For all other fields use -requiredShippingContactFields
-
requiredShippingContactFields
public NSSet<java.lang.String> requiredShippingContactFields()
Indicates which shipping contact fields the merchant requires in order to process a transactions
-
setRequiredBillingContactFields
public void setRequiredBillingContactFields(NSSet<java.lang.String> value)
Indicates which billing contact fields the merchant requires in order to process a transaction. Currently only postal address may be requested for billing contact. For all other fields use -requiredShippingContactFields
-
setRequiredShippingContactFields
public void setRequiredShippingContactFields(NSSet<java.lang.String> value)
Indicates which shipping contact fields the merchant requires in order to process a transactions
-
setSupportedCountries
public void setSupportedCountries(NSSet<java.lang.String> value)
Set of two-letter ISO 3166 country codes. When provided will filter the selectable payment passes to those issued in the supported countries.
-
supportedCountries
public NSSet<java.lang.String> supportedCountries()
Set of two-letter ISO 3166 country codes. When provided will filter the selectable payment passes to those issued in the supported countries.
-
-