passkit

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package passkit provides a fluent Go API over the macOS PassKit framework.

Construction

New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.

Lifecycle

A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.

Errors

Failing calls return errors carrying the Objective-C error domain and code. Match them against this package's Err… sentinel values with errors.Is, or inspect domain, code, and Apple's prose via errors.As with *errkit.Error.

Main-thread requirements

Methods, setters, and constructors of classes Apple isolates to the main thread run there automatically; callers never need to arrange main-thread dispatch for the generated API.

Delegates

A …Delegate interface is implemented by a plain Go value and installed with the matching With… setter; the package builds the Objective-C delegate object behind the scenes. Optional protocol methods are separate one-method …Handler interfaces — implement the ones you need on the same value and the framework calls them too.

Types

Each base type below lists the concrete types you construct and pass where the base is accepted:

Index

Constants

This section is empty.

Variables

View Source
var ErrCodeSessionNotActive = errkit.New("PKVehicleConnectionErrorDomain", 2)

ErrCodeSessionNotActive matches the PassKit error PKVehicleConnectionErrorCodeSessionNotActive.

View Source
var ErrCodeSessionUnableToStart = errkit.New("PKVehicleConnectionErrorDomain", 1)

ErrCodeSessionUnableToStart matches the PassKit error PKVehicleConnectionErrorCodeSessionUnableToStart.

View Source
var ErrCodeUnknown = errkit.New("PKVehicleConnectionErrorDomain", 0)

ErrCodeUnknown matches the PassKit error PKVehicleConnectionErrorCodeUnknown.

View Source
var ErrPKAddSecureElementPassDeviceNotReadyError = errkit.New("PKAddSecureElementPassErrorDomain", 5)

ErrPKAddSecureElementPassDeviceNotReadyError matches the PassKit error PKAddSecureElementPassDeviceNotReadyError.

View Source
var ErrPKAddSecureElementPassDeviceNotSupportedError = errkit.New("PKAddSecureElementPassErrorDomain", 4)

ErrPKAddSecureElementPassDeviceNotSupportedError matches the PassKit error PKAddSecureElementPassDeviceNotSupportedError.

View Source
var ErrPKAddSecureElementPassGenericError = errkit.New("PKAddSecureElementPassErrorDomain", 0)

ErrPKAddSecureElementPassGenericError matches the PassKit error PKAddSecureElementPassGenericError.

View Source
var ErrPKAddSecureElementPassInvalidConfigurationError = errkit.New("PKAddSecureElementPassErrorDomain", 3)

ErrPKAddSecureElementPassInvalidConfigurationError matches the PassKit error PKAddSecureElementPassInvalidConfigurationError.

View Source
var ErrPKAddSecureElementPassOSVersionNotSupportedError = errkit.New("PKAddSecureElementPassErrorDomain", 6)

ErrPKAddSecureElementPassOSVersionNotSupportedError matches the PassKit error PKAddSecureElementPassOSVersionNotSupportedError.

View Source
var ErrPKAddSecureElementPassUnavailableError = errkit.New("PKAddSecureElementPassErrorDomain", 2)

ErrPKAddSecureElementPassUnavailableError matches the PassKit error PKAddSecureElementPassUnavailableError.

View Source
var ErrPKAddSecureElementPassUserCanceledError = errkit.New("PKAddSecureElementPassErrorDomain", 1)

ErrPKAddSecureElementPassUserCanceledError matches the PassKit error PKAddSecureElementPassUserCanceledError.

View Source
var ErrPKDisbursementRecipientContactInvalidError = errkit.New("PKDisbursementErrorDomain", 2)

ErrPKDisbursementRecipientContactInvalidError matches the PassKit error PKDisbursementRecipientContactInvalidError.

View Source
var ErrPKDisbursementUnknownError = errkit.New("PKDisbursementErrorDomain", -1)

ErrPKDisbursementUnknownError matches the PassKit error PKDisbursementUnknownError.

View Source
var ErrPKDisbursementUnsupportedCardError = errkit.New("PKDisbursementErrorDomain", 1)

ErrPKDisbursementUnsupportedCardError matches the PassKit error PKDisbursementUnsupportedCardError.

View Source
var ErrPKInvalidDataError = errkit.New("PKPassKitErrorDomain", 1)

ErrPKInvalidDataError matches the PassKit error PKInvalidDataError.

View Source
var ErrPKInvalidSignature = errkit.New("PKPassKitErrorDomain", 3)

ErrPKInvalidSignature matches the PassKit error PKInvalidSignature.

View Source
var ErrPKNotEntitledError = errkit.New("PKPassKitErrorDomain", 4)

ErrPKNotEntitledError matches the PassKit error PKNotEntitledError.

View Source
var ErrPKPaymentBillingContactInvalidError = errkit.New("PKPaymentErrorDomain", 2)

ErrPKPaymentBillingContactInvalidError matches the PassKit error PKPaymentBillingContactInvalidError.

View Source
var ErrPKPaymentCouponCodeExpiredError = errkit.New("PKPaymentErrorDomain", 5)

ErrPKPaymentCouponCodeExpiredError matches the PassKit error PKPaymentCouponCodeExpiredError.

View Source
var ErrPKPaymentCouponCodeInvalidError = errkit.New("PKPaymentErrorDomain", 4)

ErrPKPaymentCouponCodeInvalidError matches the PassKit error PKPaymentCouponCodeInvalidError.

View Source
var ErrPKPaymentShippingAddressUnserviceableError = errkit.New("PKPaymentErrorDomain", 3)

ErrPKPaymentShippingAddressUnserviceableError matches the PassKit error PKPaymentShippingAddressUnserviceableError.

View Source
var ErrPKPaymentShippingContactInvalidError = errkit.New("PKPaymentErrorDomain", 1)

ErrPKPaymentShippingContactInvalidError matches the PassKit error PKPaymentShippingContactInvalidError.

View Source
var ErrPKPaymentUnknownError = errkit.New("PKPaymentErrorDomain", -1)

ErrPKPaymentUnknownError matches the PassKit error PKPaymentUnknownError.

View Source
var ErrPKShareSecureElementPassSetupError = errkit.New("PKShareSecureElementPassErrorDomain", 1)

ErrPKShareSecureElementPassSetupError matches the PassKit error PKShareSecureElementPassSetupError.

View Source
var ErrPKShareSecureElementPassUnknownError = errkit.New("PKShareSecureElementPassErrorDomain", 0)

ErrPKShareSecureElementPassUnknownError matches the PassKit error PKShareSecureElementPassUnknownError.

View Source
var ErrPKUnknownError = errkit.New("PKPassKitErrorDomain", -1)

ErrPKUnknownError matches the PassKit error PKUnknownError.

View Source
var ErrPKUnsupportedVersionError = errkit.New("PKPassKitErrorDomain", 2)

ErrPKUnsupportedVersionError matches the PassKit error PKUnsupportedVersionError.

Functions

func AvailableNetworks added in v0.17.0

func AvailableNetworks() []obj.Object

AvailableNetworks returns the list of available payment methods that Apple Pay supports.

AvailableNetworks returns the collection as a Go slice.

func CanMakePayments added in v0.17.0

func CanMakePayments() bool

CanMakePayments reports whether the user can make payments.

func CanMakePaymentsUsingNetworks added in v0.17.0

func CanMakePaymentsUsingNetworks(supportedNetworks []*foundation.String) bool

CanMakePaymentsUsingNetworks returns whether the user can make payments through the specified network.

func CanMakePaymentsUsingNetworksCapabilities added in v0.17.0

func CanMakePaymentsUsingNetworksCapabilities(supportedNetworks []*foundation.String, capabilties MerchantCapability) bool

CanMakePaymentsUsingNetworksCapabilities returns whether the user can make payments using a card from the specified network with the specified capabilities.

func DisbursementCardUnsupportedError added in v0.18.0

func DisbursementCardUnsupportedError() unsafe.Pointer

DisbursementCardUnsupportedError creates an error that indicates that the selected payment pass doesn’t support receiving funds through disbursements.

func DisbursementContactInvalidErrorWithContactFieldLocalizedDescription added in v0.18.0

func DisbursementContactInvalidErrorWithContactFieldLocalizedDescription(field obj.Object, localizedDescription string) unsafe.Pointer

DisbursementContactInvalidErrorWithContactFieldLocalizedDescription creates a recipient contact error with the supplied field.

func EndAutomaticPassPresentationSuppressionWithRequestToken added in v0.17.0

func EndAutomaticPassPresentationSuppressionWithRequestToken(requestToken int)

EndAutomaticPassPresentationSuppressionWithRequestToken reenables the automatic display of the Apple Pay interface.

func IsPassLibraryAvailable added in v0.17.0

func IsPassLibraryAvailable() bool

IsPassLibraryAvailable reports whether returns a Boolean value that indicates whether the pass library is available.

func IsPaymentPassActivationAvailable added in v0.17.0

func IsPaymentPassActivationAvailable() bool

IsPaymentPassActivationAvailable reports whether the object is payment pass activation available.

func IsSuppressingAutomaticPassPresentation added in v0.17.0

func IsSuppressingAutomaticPassPresentation() bool

IsSuppressingAutomaticPassPresentation reports whether returns a Boolean value that indicates whether the system suppresses the automatic presentation of Apple Pay passes.

func PKAddSecureElementPassErrorDomain

func PKAddSecureElementPassErrorDomain() obj.Object

PKAddSecureElementPassErrorDomain returns the string constant PKAddSecureElementPassErrorDomain, for use as a dictionary key or argument.

func PKContactFieldEmailAddress

func PKContactFieldEmailAddress() obj.Object

PKContactFieldEmailAddress returns the string constant PKContactFieldEmailAddress, for use as a dictionary key or argument.

func PKContactFieldName

func PKContactFieldName() obj.Object

PKContactFieldName returns the string constant PKContactFieldName, for use as a dictionary key or argument.

func PKContactFieldPhoneNumber

func PKContactFieldPhoneNumber() obj.Object

PKContactFieldPhoneNumber returns the string constant PKContactFieldPhoneNumber, for use as a dictionary key or argument.

func PKContactFieldPhoneticName

func PKContactFieldPhoneticName() obj.Object

PKContactFieldPhoneticName returns the string constant PKContactFieldPhoneticName, for use as a dictionary key or argument.

func PKContactFieldPostalAddress

func PKContactFieldPostalAddress() obj.Object

PKContactFieldPostalAddress returns the string constant PKContactFieldPostalAddress, for use as a dictionary key or argument.

func PKDisbursementErrorContactFieldUserInfoKey

func PKDisbursementErrorContactFieldUserInfoKey() obj.Object

PKDisbursementErrorContactFieldUserInfoKey returns the string constant PKDisbursementErrorContactFieldUserInfoKey, for use as a dictionary key or argument.

func PKDisbursementErrorDomain

func PKDisbursementErrorDomain() obj.Object

PKDisbursementErrorDomain returns the string constant PKDisbursementErrorDomain, for use as a dictionary key or argument.

func PKEncryptionSchemeECC_V2

func PKEncryptionSchemeECC_V2() obj.Object

PKEncryptionSchemeECC_V2 returns the string constant PKEncryptionSchemeECC_V2, for use as a dictionary key or argument.

func PKEncryptionSchemeRSA_V2

func PKEncryptionSchemeRSA_V2() obj.Object

PKEncryptionSchemeRSA_V2 returns the string constant PKEncryptionSchemeRSA_V2, for use as a dictionary key or argument.

func PKMerchantCategoryCodeNone

func PKMerchantCategoryCodeNone() int16

PKMerchantCategoryCodeNone returns the value of the constant PKMerchantCategoryCodeNone.

func PKPassKitErrorDomain

func PKPassKitErrorDomain() obj.Object

PKPassKitErrorDomain returns the string constant PKPassKitErrorDomain, for use as a dictionary key or argument.

func PKPassLibraryAddedPassesUserInfoKey

func PKPassLibraryAddedPassesUserInfoKey() obj.Object

PKPassLibraryAddedPassesUserInfoKey returns the string constant PKPassLibraryAddedPassesUserInfoKey, for use as a dictionary key or argument.

func PKPassLibraryDidChangeNotification

func PKPassLibraryDidChangeNotification() obj.Object

PKPassLibraryDidChangeNotification returns the string constant PKPassLibraryDidChangeNotification, for use as a dictionary key or argument.

func PKPassLibraryPassTypeIdentifierUserInfoKey

func PKPassLibraryPassTypeIdentifierUserInfoKey() obj.Object

PKPassLibraryPassTypeIdentifierUserInfoKey returns the string constant PKPassLibraryPassTypeIdentifierUserInfoKey, for use as a dictionary key or argument.

func PKPassLibraryRecoveredPassesUserInfoKey

func PKPassLibraryRecoveredPassesUserInfoKey() obj.Object

PKPassLibraryRecoveredPassesUserInfoKey returns the string constant PKPassLibraryRecoveredPassesUserInfoKey, for use as a dictionary key or argument.

func PKPassLibraryRemotePaymentPassesDidChangeNotification

func PKPassLibraryRemotePaymentPassesDidChangeNotification() obj.Object

PKPassLibraryRemotePaymentPassesDidChangeNotification returns the string constant PKPassLibraryRemotePaymentPassesDidChangeNotification, for use as a dictionary key or argument.

func PKPassLibraryRemovedPassInfosUserInfoKey

func PKPassLibraryRemovedPassInfosUserInfoKey() obj.Object

PKPassLibraryRemovedPassInfosUserInfoKey returns the string constant PKPassLibraryRemovedPassInfosUserInfoKey, for use as a dictionary key or argument.

func PKPassLibraryReplacementPassesUserInfoKey

func PKPassLibraryReplacementPassesUserInfoKey() obj.Object

PKPassLibraryReplacementPassesUserInfoKey returns the string constant PKPassLibraryReplacementPassesUserInfoKey, for use as a dictionary key or argument.

func PKPassLibrarySerialNumberUserInfoKey

func PKPassLibrarySerialNumberUserInfoKey() obj.Object

PKPassLibrarySerialNumberUserInfoKey returns the string constant PKPassLibrarySerialNumberUserInfoKey, for use as a dictionary key or argument.

func PKPaymentAuthorizationViewControllerCanMakePayments

func PKPaymentAuthorizationViewControllerCanMakePayments() bool

PKPaymentAuthorizationViewControllerCanMakePayments reports whether the user can make payments.

func PKPaymentAuthorizationViewControllerCanMakePaymentsUsingNetworks

func PKPaymentAuthorizationViewControllerCanMakePaymentsUsingNetworks(supportedNetworks []*foundation.String) bool

PKPaymentAuthorizationViewControllerCanMakePaymentsUsingNetworks returns whether the user can make payments through the specified network.

func PKPaymentAuthorizationViewControllerCanMakePaymentsUsingNetworksCapabilities

func PKPaymentAuthorizationViewControllerCanMakePaymentsUsingNetworksCapabilities(supportedNetworks []*foundation.String, capabilties MerchantCapability) bool

PKPaymentAuthorizationViewControllerCanMakePaymentsUsingNetworksCapabilities returns whether the user can make payments using a card from the specified network with the specified capabilities.

func PKPaymentAuthorizationViewControllerSupportsDisbursements

func PKPaymentAuthorizationViewControllerSupportsDisbursements() bool

PKPaymentAuthorizationViewControllerSupportsDisbursements reports whether returns a Boolean value that indicates whether this device can process disbursement requests.

func PKPaymentAuthorizationViewControllerSupportsDisbursementsUsingNetworks

func PKPaymentAuthorizationViewControllerSupportsDisbursementsUsingNetworks(supportedNetworks []*foundation.String) bool

PKPaymentAuthorizationViewControllerSupportsDisbursementsUsingNetworks returns a Boolean value that indicates whether this device can process disbursement requests using the specified payment networks.

func PKPaymentAuthorizationViewControllerSupportsDisbursementsUsingNetworksCapabilities

func PKPaymentAuthorizationViewControllerSupportsDisbursementsUsingNetworksCapabilities(supportedNetworks []*foundation.String, capabilities MerchantCapability) bool

PKPaymentAuthorizationViewControllerSupportsDisbursementsUsingNetworksCapabilities returns a Boolean value that indicates whether this device can process disbursement requests using the specified payment networks and merchant capabilities.

func PKPaymentErrorContactFieldUserInfoKey

func PKPaymentErrorContactFieldUserInfoKey() obj.Object

PKPaymentErrorContactFieldUserInfoKey returns the string constant PKPaymentErrorContactFieldUserInfoKey, for use as a dictionary key or argument.

func PKPaymentErrorDomain

func PKPaymentErrorDomain() obj.Object

PKPaymentErrorDomain returns the string constant PKPaymentErrorDomain, for use as a dictionary key or argument.

func PKPaymentErrorPostalAddressUserInfoKey

func PKPaymentErrorPostalAddressUserInfoKey() obj.Object

PKPaymentErrorPostalAddressUserInfoKey returns the string constant PKPaymentErrorPostalAddressUserInfoKey, for use as a dictionary key or argument.

func PKPaymentNetworkAmex

func PKPaymentNetworkAmex() obj.Object

PKPaymentNetworkAmex returns the string constant PKPaymentNetworkAmex, for use as a dictionary key or argument.

func PKPaymentNetworkBancomat

func PKPaymentNetworkBancomat() obj.Object

PKPaymentNetworkBancomat returns the string constant PKPaymentNetworkBancomat, for use as a dictionary key or argument.

func PKPaymentNetworkBancontact

func PKPaymentNetworkBancontact() obj.Object

PKPaymentNetworkBancontact returns the string constant PKPaymentNetworkBancontact, for use as a dictionary key or argument.

func PKPaymentNetworkBankAxept

func PKPaymentNetworkBankAxept() obj.Object

PKPaymentNetworkBankAxept returns the string constant PKPaymentNetworkBankAxept, for use as a dictionary key or argument.

func PKPaymentNetworkBarcode

func PKPaymentNetworkBarcode() obj.Object

PKPaymentNetworkBarcode returns the string constant PKPaymentNetworkBarcode, for use as a dictionary key or argument.

func PKPaymentNetworkCarteBancaire

func PKPaymentNetworkCarteBancaire() obj.Object

PKPaymentNetworkCarteBancaire returns the string constant PKPaymentNetworkCarteBancaire, for use as a dictionary key or argument.

func PKPaymentNetworkCarteBancaires

func PKPaymentNetworkCarteBancaires() obj.Object

PKPaymentNetworkCarteBancaires returns the string constant PKPaymentNetworkCarteBancaires, for use as a dictionary key or argument.

func PKPaymentNetworkCartesBancaires

func PKPaymentNetworkCartesBancaires() obj.Object

PKPaymentNetworkCartesBancaires returns the string constant PKPaymentNetworkCartesBancaires, for use as a dictionary key or argument.

func PKPaymentNetworkChinaUnionPay

func PKPaymentNetworkChinaUnionPay() obj.Object

PKPaymentNetworkChinaUnionPay returns the string constant PKPaymentNetworkChinaUnionPay, for use as a dictionary key or argument.

func PKPaymentNetworkConecs

func PKPaymentNetworkConecs() obj.Object

PKPaymentNetworkConecs returns the string constant PKPaymentNetworkConecs, for use as a dictionary key or argument.

func PKPaymentNetworkDankort

func PKPaymentNetworkDankort() obj.Object

PKPaymentNetworkDankort returns the string constant PKPaymentNetworkDankort, for use as a dictionary key or argument.

func PKPaymentNetworkDiscover

func PKPaymentNetworkDiscover() obj.Object

PKPaymentNetworkDiscover returns the string constant PKPaymentNetworkDiscover, for use as a dictionary key or argument.

func PKPaymentNetworkEftpos

func PKPaymentNetworkEftpos() obj.Object

PKPaymentNetworkEftpos returns the string constant PKPaymentNetworkEftpos, for use as a dictionary key or argument.

func PKPaymentNetworkElCorteIngles

func PKPaymentNetworkElCorteIngles() obj.Object

PKPaymentNetworkElCorteIngles returns the string constant PKPaymentNetworkElCorteIngles, for use as a dictionary key or argument.

func PKPaymentNetworkElectron

func PKPaymentNetworkElectron() obj.Object

PKPaymentNetworkElectron returns the string constant PKPaymentNetworkElectron, for use as a dictionary key or argument.

func PKPaymentNetworkElo

func PKPaymentNetworkElo() obj.Object

PKPaymentNetworkElo returns the string constant PKPaymentNetworkElo, for use as a dictionary key or argument.

func PKPaymentNetworkGirocard

func PKPaymentNetworkGirocard() obj.Object

PKPaymentNetworkGirocard returns the string constant PKPaymentNetworkGirocard, for use as a dictionary key or argument.

func PKPaymentNetworkHimyan

func PKPaymentNetworkHimyan() obj.Object

PKPaymentNetworkHimyan returns the string constant PKPaymentNetworkHimyan, for use as a dictionary key or argument.

func PKPaymentNetworkIDCredit

func PKPaymentNetworkIDCredit() obj.Object

PKPaymentNetworkIDCredit returns the string constant PKPaymentNetworkIDCredit, for use as a dictionary key or argument.

func PKPaymentNetworkInterac

func PKPaymentNetworkInterac() obj.Object

PKPaymentNetworkInterac returns the string constant PKPaymentNetworkInterac, for use as a dictionary key or argument.

func PKPaymentNetworkJCB

func PKPaymentNetworkJCB() obj.Object

PKPaymentNetworkJCB returns the string constant PKPaymentNetworkJCB, for use as a dictionary key or argument.

func PKPaymentNetworkJaywan

func PKPaymentNetworkJaywan() obj.Object

PKPaymentNetworkJaywan returns the string constant PKPaymentNetworkJaywan, for use as a dictionary key or argument.

func PKPaymentNetworkMada

func PKPaymentNetworkMada() obj.Object

PKPaymentNetworkMada returns the string constant PKPaymentNetworkMada, for use as a dictionary key or argument.

func PKPaymentNetworkMaestro

func PKPaymentNetworkMaestro() obj.Object

PKPaymentNetworkMaestro returns the string constant PKPaymentNetworkMaestro, for use as a dictionary key or argument.

func PKPaymentNetworkMasterCard

func PKPaymentNetworkMasterCard() obj.Object

PKPaymentNetworkMasterCard returns the string constant PKPaymentNetworkMasterCard, for use as a dictionary key or argument.

func PKPaymentNetworkMeeza

func PKPaymentNetworkMeeza() obj.Object

PKPaymentNetworkMeeza returns the string constant PKPaymentNetworkMeeza, for use as a dictionary key or argument.

func PKPaymentNetworkMir

func PKPaymentNetworkMir() obj.Object

PKPaymentNetworkMir returns the string constant PKPaymentNetworkMir, for use as a dictionary key or argument.

func PKPaymentNetworkMyDebit

func PKPaymentNetworkMyDebit() obj.Object

PKPaymentNetworkMyDebit returns the string constant PKPaymentNetworkMyDebit, for use as a dictionary key or argument.

func PKPaymentNetworkNAPAS

func PKPaymentNetworkNAPAS() obj.Object

PKPaymentNetworkNAPAS returns the string constant PKPaymentNetworkNAPAS, for use as a dictionary key or argument.

func PKPaymentNetworkNanaco

func PKPaymentNetworkNanaco() obj.Object

PKPaymentNetworkNanaco returns the string constant PKPaymentNetworkNanaco, for use as a dictionary key or argument.

func PKPaymentNetworkPagoBancomat

func PKPaymentNetworkPagoBancomat() obj.Object

PKPaymentNetworkPagoBancomat returns the string constant PKPaymentNetworkPagoBancomat, for use as a dictionary key or argument.

func PKPaymentNetworkPostFinance

func PKPaymentNetworkPostFinance() obj.Object

PKPaymentNetworkPostFinance returns the string constant PKPaymentNetworkPostFinance, for use as a dictionary key or argument.

func PKPaymentNetworkPrivateLabel

func PKPaymentNetworkPrivateLabel() obj.Object

PKPaymentNetworkPrivateLabel returns the string constant PKPaymentNetworkPrivateLabel, for use as a dictionary key or argument.

func PKPaymentNetworkQuicPay

func PKPaymentNetworkQuicPay() obj.Object

PKPaymentNetworkQuicPay returns the string constant PKPaymentNetworkQuicPay, for use as a dictionary key or argument.

func PKPaymentNetworkSuica

func PKPaymentNetworkSuica() obj.Object

PKPaymentNetworkSuica returns the string constant PKPaymentNetworkSuica, for use as a dictionary key or argument.

func PKPaymentNetworkTmoney

func PKPaymentNetworkTmoney() obj.Object

PKPaymentNetworkTmoney returns the string constant PKPaymentNetworkTmoney, for use as a dictionary key or argument.

func PKPaymentNetworkVPay

func PKPaymentNetworkVPay() obj.Object

PKPaymentNetworkVPay returns the string constant PKPaymentNetworkVPay, for use as a dictionary key or argument.

func PKPaymentNetworkVisa

func PKPaymentNetworkVisa() obj.Object

PKPaymentNetworkVisa returns the string constant PKPaymentNetworkVisa, for use as a dictionary key or argument.

func PKPaymentNetworkWaon

func PKPaymentNetworkWaon() obj.Object

PKPaymentNetworkWaon returns the string constant PKPaymentNetworkWaon, for use as a dictionary key or argument.

func PKShareSecureElementPassErrorDomain

func PKShareSecureElementPassErrorDomain() obj.Object

PKShareSecureElementPassErrorDomain returns the string constant PKShareSecureElementPassErrorDomain, for use as a dictionary key or argument.

func PKStoredValuePassBalanceTypeCash

func PKStoredValuePassBalanceTypeCash() obj.Object

PKStoredValuePassBalanceTypeCash returns the string constant PKStoredValuePassBalanceTypeCash, for use as a dictionary key or argument.

func PKStoredValuePassBalanceTypeLoyaltyPoints

func PKStoredValuePassBalanceTypeLoyaltyPoints() obj.Object

PKStoredValuePassBalanceTypeLoyaltyPoints returns the string constant PKStoredValuePassBalanceTypeLoyaltyPoints, for use as a dictionary key or argument.

func PaymentBillingAddressInvalidErrorWithKeyLocalizedDescription added in v0.18.0

func PaymentBillingAddressInvalidErrorWithKeyLocalizedDescription(postalAddressKey string, localizedDescription string) unsafe.Pointer

PaymentBillingAddressInvalidErrorWithKeyLocalizedDescription creates a billing address error with the supplied key and user-facing error message.

func PaymentContactInvalidErrorWithContactFieldLocalizedDescription added in v0.18.0

func PaymentContactInvalidErrorWithContactFieldLocalizedDescription(field obj.Object, localizedDescription string) unsafe.Pointer

PaymentContactInvalidErrorWithContactFieldLocalizedDescription creates a contact error with the supplied field and user-facing error message.

func PaymentCouponCodeExpiredErrorWithLocalizedDescription added in v0.18.0

func PaymentCouponCodeExpiredErrorWithLocalizedDescription(localizedDescription string) unsafe.Pointer

PaymentCouponCodeExpiredErrorWithLocalizedDescription returns an error object that indicates an expired coupon.

func PaymentCouponCodeInvalidErrorWithLocalizedDescription added in v0.18.0

func PaymentCouponCodeInvalidErrorWithLocalizedDescription(localizedDescription string) unsafe.Pointer

PaymentCouponCodeInvalidErrorWithLocalizedDescription returns an error object that indicates an invalid coupon.

func PaymentShippingAddressInvalidErrorWithKeyLocalizedDescription added in v0.18.0

func PaymentShippingAddressInvalidErrorWithKeyLocalizedDescription(postalAddressKey string, localizedDescription string) unsafe.Pointer

PaymentShippingAddressInvalidErrorWithKeyLocalizedDescription creates a shipping address error with the supplied key and user-facing error message.

func PaymentShippingAddressUnserviceableErrorWithLocalizedDescription added in v0.18.0

func PaymentShippingAddressUnserviceableErrorWithLocalizedDescription(localizedDescription string) unsafe.Pointer

PaymentShippingAddressUnserviceableErrorWithLocalizedDescription creates an error for an unserviceable address, with the supplied user-facing error message.

func RequestAutomaticPassPresentationSuppressionWithResponseHandler added in v0.18.0

func RequestAutomaticPassPresentationSuppressionWithResponseHandler(responseHandler func(AutomaticPassPresentationSuppressionResult)) int

RequestAutomaticPassPresentationSuppressionWithResponseHandler prevents the device from automatically displaying the Apple Pay interface.

func SupportsDisbursements added in v0.17.0

func SupportsDisbursements() bool

SupportsDisbursements reports whether returns a Boolean value that indicates whether this device can process disbursement requests.

func SupportsDisbursementsUsingNetworks added in v0.17.0

func SupportsDisbursementsUsingNetworks(supportedNetworks []*foundation.String) bool

SupportsDisbursementsUsingNetworks returns a Boolean value that indicates whether this device can process disbursement requests using the specified payment network brands.

func SupportsDisbursementsUsingNetworksCapabilities added in v0.17.0

func SupportsDisbursementsUsingNetworksCapabilities(supportedNetworks []*foundation.String, capabilties MerchantCapability) bool

SupportsDisbursementsUsingNetworksCapabilities returns a Boolean value indicating whether this device can process disbursement requests using the specified payment network brands and capabilities.

Types

type AddCarKeyPassConfiguration added in v0.17.0

type AddCarKeyPassConfiguration struct {
	AddSecureElementPassConfiguration
}

AddCarKeyPassConfiguration is an idiomatic wrapper over the Objective-C class PKAddCarKeyPassConfiguration.

It embeds AddSecureElementPassConfiguration, promoting that type's methods.

A specialized configuration object that PassKit uses when it creates a digital car key.

func AddCarKeyPassConfigurationFromID added in v0.17.0

func AddCarKeyPassConfigurationFromID(id objc.ID) *AddCarKeyPassConfiguration

AddCarKeyPassConfigurationFromID adopts an existing Objective-C object as a AddCarKeyPassConfiguration (nil for 0), retaining it and registering a release finalizer.

func NewAddCarKeyPassConfiguration added in v0.17.0

func NewAddCarKeyPassConfiguration() *AddCarKeyPassConfiguration

NewAddCarKeyPassConfiguration creates a new AddCarKeyPassConfiguration.

func (*AddCarKeyPassConfiguration) ManufacturerIdentifier added in v0.17.0

func (ackpc *AddCarKeyPassConfiguration) ManufacturerIdentifier() string

ManufacturerIdentifier returns the manufacturer identifier.

func (*AddCarKeyPassConfiguration) Password added in v0.17.0

func (ackpc *AddCarKeyPassConfiguration) Password() string

Password returns the password.

func (*AddCarKeyPassConfiguration) ProductPlanIdentifier added in v0.17.0

func (ackpc *AddCarKeyPassConfiguration) ProductPlanIdentifier() string

ProductPlanIdentifier returns the product plan identifier.

func (*AddCarKeyPassConfiguration) ProvisioningTemplateIdentifier added in v0.17.0

func (ackpc *AddCarKeyPassConfiguration) ProvisioningTemplateIdentifier() string

ProvisioningTemplateIdentifier returns the provisioning template identifier.

func (*AddCarKeyPassConfiguration) SupportedRadioTechnologies added in v0.17.0

func (ackpc *AddCarKeyPassConfiguration) SupportedRadioTechnologies() RadioTechnology

SupportedRadioTechnologies returns the supported radio technologies.

func (*AddCarKeyPassConfiguration) WithIssuerIdentifier added in v0.17.0

func (ackpc *AddCarKeyPassConfiguration) WithIssuerIdentifier(issuerIdentifier string) *AddCarKeyPassConfiguration

WithIssuerIdentifier sets an opaque value for the configuration.

func (*AddCarKeyPassConfiguration) WithLocalizedDescription added in v0.17.0

func (ackpc *AddCarKeyPassConfiguration) WithLocalizedDescription(localizedDescription string) *AddCarKeyPassConfiguration

WithLocalizedDescription sets the configuration’s localized description.

func (*AddCarKeyPassConfiguration) WithManufacturerIdentifier added in v0.17.0

func (ackpc *AddCarKeyPassConfiguration) WithManufacturerIdentifier(manufacturerIdentifier string) *AddCarKeyPassConfiguration

WithManufacturerIdentifier sets the manufacturer identifier.

func (*AddCarKeyPassConfiguration) WithPassword added in v0.17.0

func (ackpc *AddCarKeyPassConfiguration) WithPassword(password string) *AddCarKeyPassConfiguration

WithPassword sets a one-time password that the vehicle manufacturer provides.

func (*AddCarKeyPassConfiguration) WithProductPlanIdentifier added in v0.17.0

func (ackpc *AddCarKeyPassConfiguration) WithProductPlanIdentifier(productPlanIdentifier string) *AddCarKeyPassConfiguration

WithProductPlanIdentifier sets the product plan identifier (PPID) supplied by the vehicle’s original equipment manufacturer (OEM).

func (*AddCarKeyPassConfiguration) WithProvisioningTemplateIdentifier added in v0.17.0

func (ackpc *AddCarKeyPassConfiguration) WithProvisioningTemplateIdentifier(provisioningTemplateIdentifier string) *AddCarKeyPassConfiguration

WithProvisioningTemplateIdentifier sets the provisioning template identifier.

func (*AddCarKeyPassConfiguration) WithSupportedRadioTechnologies added in v0.17.0

func (ackpc *AddCarKeyPassConfiguration) WithSupportedRadioTechnologies(supportedRadioTechnologies RadioTechnology) *AddCarKeyPassConfiguration

WithSupportedRadioTechnologies sets the wireless radio technology that the key uses.

type AddIdentityDocumentConfiguration added in v0.17.0

type AddIdentityDocumentConfiguration struct {
	AddSecureElementPassConfiguration
}

AddIdentityDocumentConfiguration is an idiomatic wrapper over the Objective-C class PKAddIdentityDocumentConfiguration.

It embeds AddSecureElementPassConfiguration, promoting that type's methods.

Configuration to define the identity document.

func AddIdentityDocumentConfigurationFromID added in v0.17.0

func AddIdentityDocumentConfigurationFromID(id objc.ID) *AddIdentityDocumentConfiguration

AddIdentityDocumentConfigurationFromID adopts an existing Objective-C object as a AddIdentityDocumentConfiguration (nil for 0), retaining it and registering a release finalizer.

func ConfigurationForMetadataCompletion added in v0.17.0

func ConfigurationForMetadataCompletion(ctx context.Context, metadata *IdentityDocumentMetadata) (result *AddIdentityDocumentConfiguration, err error)

ConfigurationForMetadataCompletion returns the identity document configuration.

ConfigurationForMetadataCompletion blocks until the operation completes or ctx is cancelled.

func NewAddIdentityDocumentConfiguration added in v0.17.0

func NewAddIdentityDocumentConfiguration() *AddIdentityDocumentConfiguration

NewAddIdentityDocumentConfiguration creates a new AddIdentityDocumentConfiguration.

func (*AddIdentityDocumentConfiguration) Metadata added in v0.17.0

Metadata returns the metadata.

func (*AddIdentityDocumentConfiguration) WithIssuerIdentifier added in v0.17.0

func (aidc *AddIdentityDocumentConfiguration) WithIssuerIdentifier(issuerIdentifier string) *AddIdentityDocumentConfiguration

WithIssuerIdentifier sets an opaque value for the configuration.

func (*AddIdentityDocumentConfiguration) WithLocalizedDescription added in v0.17.0

func (aidc *AddIdentityDocumentConfiguration) WithLocalizedDescription(localizedDescription string) *AddIdentityDocumentConfiguration

WithLocalizedDescription sets the configuration’s localized description.

type AddIdentityDocumentMetadata added in v0.17.0

type AddIdentityDocumentMetadata struct {
	IdentityDocumentMetadata
}

AddIdentityDocumentMetadata is an idiomatic wrapper over the Objective-C class PKAddIdentityDocumentMetadata.

It embeds IdentityDocumentMetadata, promoting that type's methods.

The object for specifying the metadata necessary to provision identity documents.

func AddIdentityDocumentMetadataFromID added in v0.17.0

func AddIdentityDocumentMetadataFromID(id objc.ID) *AddIdentityDocumentMetadata

AddIdentityDocumentMetadataFromID adopts an existing Objective-C object as a AddIdentityDocumentMetadata (nil for 0), retaining it and registering a release finalizer.

func NewAddIdentityDocumentMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierCardTemplateIdentifierIssuingCountryCodeDocumentTypePreview added in v0.17.0

func NewAddIdentityDocumentMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierCardTemplateIdentifierIssuingCountryCodeDocumentTypePreview(credentialIdentifier string, sharingInstanceIdentifier string, templateIdentifier string, issuingCountryCode string, documentType AddIdentityDocumentType, preview *AddPassMetadataPreview) *AddIdentityDocumentMetadata

NewAddIdentityDocumentMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierCardTemplateIdentifierIssuingCountryCodeDocumentTypePreview creates the identity document metadata with parameters that the issuer’s server configures to indicate the specific product instance to provision.

func (*AddIdentityDocumentMetadata) Preview added in v0.17.0

Preview returns the preview.

func (*AddIdentityDocumentMetadata) WithServerEnvironmentIdentifier added in v0.17.0

func (aidm *AddIdentityDocumentMetadata) WithServerEnvironmentIdentifier(serverEnvironmentIdentifier string) *AddIdentityDocumentMetadata

WithServerEnvironmentIdentifier sets an identifier that references the target server environment Apple Pay servers need to connect with to provision the pass.

type AddIdentityDocumentType added in v0.17.0

type AddIdentityDocumentType int64

Classifications that reflect the type of identity document.

const (
	// A generic pass that represents a person’s identification.
	AddIdentityDocumentTypeIDCard AddIdentityDocumentType = 0
	// A pass that represents a driver’s license or government-issued identification.
	AddIdentityDocumentTypeMDL AddIdentityDocumentType = 1
	// A pass to use for personal identification.
	AddIdentityDocumentTypePhotoID AddIdentityDocumentType = 2
)

func (AddIdentityDocumentType) String added in v0.17.0

func (e AddIdentityDocumentType) String() string

String returns the AddIdentityDocumentType constant's name, or its numeric form when the value is not a known constant.

type AddPassMetadataPreview added in v0.17.0

type AddPassMetadataPreview struct {
	objref.Handle
}

AddPassMetadataPreview is an idiomatic wrapper over the Objective-C class PKAddPassMetadataPreview.

AddPassMetadataPreview is an abstract base — you do not construct it directly. Construct one of ShareablePassMetadataPreview and pass it where a AddPassMetadataPreview is accepted.

A preview object that contains information representing the pass you add to Wallet.

func AddPassMetadataPreviewFromID added in v0.17.0

func AddPassMetadataPreviewFromID(id objc.ID) *AddPassMetadataPreview

AddPassMetadataPreviewFromID adopts an existing Objective-C object as a AddPassMetadataPreview (nil for 0), retaining it and registering a release finalizer.

func NewAddPassMetadataPreviewWithPassThumbnailLocalizedDescription added in v0.17.0

func NewAddPassMetadataPreviewWithPassThumbnailLocalizedDescription(passThumbnail coregraphics.CGImageRef, description string) *AddPassMetadataPreview

NewAddPassMetadataPreviewWithPassThumbnailLocalizedDescription provides a preview of an image object that represents the pass you add to Wallet.

func PreviewWithPassThumbnailLocalizedDescription added in v0.17.0

func PreviewWithPassThumbnailLocalizedDescription(passThumbnail coregraphics.CGImageRef, description string) *AddPassMetadataPreview

PreviewWithPassThumbnailLocalizedDescription initializes properties you need to preview an object that represents the pass you add to Wallet.

func (*AddPassMetadataPreview) Description added in v0.17.0

func (apmp *AddPassMetadataPreview) Description() string

Description returns the object's -description text.

func (*AddPassMetadataPreview) IsEqual added in v0.17.0

func (apmp *AddPassMetadataPreview) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*AddPassMetadataPreview) IsKind added in v0.17.0

func (apmp *AddPassMetadataPreview) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*AddPassMetadataPreview) LocalizedDescription added in v0.17.0

func (apmp *AddPassMetadataPreview) LocalizedDescription() string

LocalizedDescription returns localized description of the pass to be referenced during provisioning.

func (*AddPassMetadataPreview) PassThumbnailImage added in v0.17.0

func (apmp *AddPassMetadataPreview) PassThumbnailImage() coregraphics.CGImageRef

PassThumbnailImage returns CGImage representing the pass in our provisioning UI.

func (*AddPassMetadataPreview) String added in v0.17.0

func (apmp *AddPassMetadataPreview) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type AddPassMetadataPreviewProvider added in v0.17.0

type AddPassMetadataPreviewProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

AddPassMetadataPreviewProvider is accepted wherever a PKAddPassMetadataPreview (or one of its subclasses) is expected.

type AddPaymentPassError added in v0.17.0

type AddPaymentPassError int64

Error codes for adding payment passes.

const (
	// The app cannot add cards to Apple Pay.
	AddPaymentPassErrorUnsupported AddPaymentPassError = 0
	// The user canceled the request to add a card to Apple Pay.
	AddPaymentPassErrorUserCancelled AddPaymentPassError = 1
	// The system canceled the request to add a card to Apple Pay.
	AddPaymentPassErrorSystemCancelled AddPaymentPassError = 2
)

func (AddPaymentPassError) String added in v0.17.0

func (e AddPaymentPassError) String() string

String returns the AddPaymentPassError constant's name, or its numeric form when the value is not a known constant.

type AddPaymentPassRequest added in v0.17.0

type AddPaymentPassRequest struct {
	objref.Handle
}

AddPaymentPassRequest is an idiomatic wrapper over the Objective-C class PKAddPaymentPassRequest.

Contains the card data needed to add a card to Apple Pay.

func AddPaymentPassRequestFromID added in v0.17.0

func AddPaymentPassRequestFromID(id objc.ID) *AddPaymentPassRequest

AddPaymentPassRequestFromID adopts an existing Objective-C object as a AddPaymentPassRequest (nil for 0), retaining it and registering a release finalizer.

func NewAddPaymentPassRequest added in v0.17.0

func NewAddPaymentPassRequest() *AddPaymentPassRequest

NewAddPaymentPassRequest creates a new AddPaymentPassRequest.

func (*AddPaymentPassRequest) ActivationData added in v0.17.0

func (appr *AddPaymentPassRequest) ActivationData() []byte

ActivationData returns the activation data.

func (*AddPaymentPassRequest) Description added in v0.17.0

func (appr *AddPaymentPassRequest) Description() string

Description returns the object's -description text.

func (*AddPaymentPassRequest) EncryptedPassData added in v0.17.0

func (appr *AddPaymentPassRequest) EncryptedPassData() []byte

EncryptedPassData returns the encrypted pass data.

func (*AddPaymentPassRequest) EphemeralPublicKey added in v0.17.0

func (appr *AddPaymentPassRequest) EphemeralPublicKey() []byte

EphemeralPublicKey returns the ephemeral public key.

func (*AddPaymentPassRequest) IsEqual added in v0.17.0

func (appr *AddPaymentPassRequest) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*AddPaymentPassRequest) IsKind added in v0.17.0

func (appr *AddPaymentPassRequest) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*AddPaymentPassRequest) String added in v0.17.0

func (appr *AddPaymentPassRequest) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*AddPaymentPassRequest) WithActivationData added in v0.17.0

func (appr *AddPaymentPassRequest) WithActivationData(activationData []byte) *AddPaymentPassRequest

WithActivationData sets the request’s activation data.

func (*AddPaymentPassRequest) WithEncryptedPassData added in v0.17.0

func (appr *AddPaymentPassRequest) WithEncryptedPassData(encryptedPassData []byte) *AddPaymentPassRequest

WithEncryptedPassData sets an encrypted JSON file containing the sensitive information needed to add a card to Apple Pay.

func (*AddPaymentPassRequest) WithEphemeralPublicKey added in v0.17.0

func (appr *AddPaymentPassRequest) WithEphemeralPublicKey(ephemeralPublicKey []byte) *AddPaymentPassRequest

WithEphemeralPublicKey sets the ephemeral public key used by elliptic curve cryptography (ECC).

func (*AddPaymentPassRequest) WithWrappedKey added in v0.17.0

func (appr *AddPaymentPassRequest) WithWrappedKey(wrappedKey []byte) *AddPaymentPassRequest

WithWrappedKey sets the wrapped key.

func (*AddPaymentPassRequest) WrappedKey added in v0.17.0

func (appr *AddPaymentPassRequest) WrappedKey() []byte

WrappedKey returns the wrapped key.

type AddPaymentPassRequestConfiguration added in v0.17.0

type AddPaymentPassRequestConfiguration struct {
	objref.Handle
}

AddPaymentPassRequestConfiguration is an idiomatic wrapper over the Objective-C class PKAddPaymentPassRequestConfiguration.

Contains the configuration data for a view controller that lets the user add a payment pass.

func AddPaymentPassRequestConfigurationFromID added in v0.17.0

func AddPaymentPassRequestConfigurationFromID(id objc.ID) *AddPaymentPassRequestConfiguration

AddPaymentPassRequestConfigurationFromID adopts an existing Objective-C object as a AddPaymentPassRequestConfiguration (nil for 0), retaining it and registering a release finalizer.

func NewAddPaymentPassRequestConfigurationWithEncryptionScheme added in v0.17.0

func NewAddPaymentPassRequestConfigurationWithEncryptionScheme(encryptionScheme obj.Object) *AddPaymentPassRequestConfiguration

NewAddPaymentPassRequestConfigurationWithEncryptionScheme instantiates a new request configuration with the given encryption scheme.

func (*AddPaymentPassRequestConfiguration) CardDetails added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) CardDetails() []*LabeledValue

CardDetails returns the card details.

CardDetails returns the collection as a Go slice.

func (*AddPaymentPassRequestConfiguration) CardholderName added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) CardholderName() string

CardholderName returns the cardholder name.

func (*AddPaymentPassRequestConfiguration) Description added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) Description() string

Description returns the object's -description text.

func (*AddPaymentPassRequestConfiguration) EncryptionScheme added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) EncryptionScheme() *foundation.String

EncryptionScheme returns the encryption scheme.

func (*AddPaymentPassRequestConfiguration) IsEqual added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*AddPaymentPassRequestConfiguration) IsKind added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*AddPaymentPassRequestConfiguration) LocalizedDescription added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) LocalizedDescription() string

LocalizedDescription returns the localized description.

func (*AddPaymentPassRequestConfiguration) PaymentNetwork added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) PaymentNetwork() *foundation.String

PaymentNetwork returns the payment network.

func (*AddPaymentPassRequestConfiguration) PrimaryAccountIdentifier added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) PrimaryAccountIdentifier() string

PrimaryAccountIdentifier returns the primary account identifier.

func (*AddPaymentPassRequestConfiguration) PrimaryAccountSuffix added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) PrimaryAccountSuffix() string

PrimaryAccountSuffix returns the primary account suffix.

func (*AddPaymentPassRequestConfiguration) ProductIdentifiers added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) ProductIdentifiers() []string

ProductIdentifiers returns the order of the returned elements is unspecified.

func (*AddPaymentPassRequestConfiguration) RequiresFelicaSecureElement added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) RequiresFelicaSecureElement() bool

RequiresFelicaSecureElement wraps the corresponding Objective-C method.

func (*AddPaymentPassRequestConfiguration) String added in v0.17.0

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*AddPaymentPassRequestConfiguration) Style added in v0.17.0

Style returns the style.

func (*AddPaymentPassRequestConfiguration) WithCardDetails added in v0.17.0

WithCardDetails sets an array of labeled values that describe a card.

func (*AddPaymentPassRequestConfiguration) WithCardholderName added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) WithCardholderName(cardholderName string) *AddPaymentPassRequestConfiguration

WithCardholderName sets the name of the person as shown on the card.

func (*AddPaymentPassRequestConfiguration) WithLocalizedDescription added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) WithLocalizedDescription(localizedDescription string) *AddPaymentPassRequestConfiguration

WithLocalizedDescription sets a short description of the card.

func (*AddPaymentPassRequestConfiguration) WithPaymentNetwork added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) WithPaymentNetwork(paymentNetwork obj.Object) *AddPaymentPassRequestConfiguration

WithPaymentNetwork sets the payment network.

func (*AddPaymentPassRequestConfiguration) WithPrimaryAccountIdentifier added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) WithPrimaryAccountIdentifier(primaryAccountIdentifier string) *AddPaymentPassRequestConfiguration

WithPrimaryAccountIdentifier sets a primary account identifier, used to filter out pass libraries.

func (*AddPaymentPassRequestConfiguration) WithPrimaryAccountSuffix added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) WithPrimaryAccountSuffix(primaryAccountSuffix string) *AddPaymentPassRequestConfiguration

WithPrimaryAccountSuffix sets the last four or five digits of the card’s number.

func (*AddPaymentPassRequestConfiguration) WithProductIdentifiers added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) WithProductIdentifiers(productIdentifiers []string) *AddPaymentPassRequestConfiguration

WithProductIdentifiers sets the product identifiers.

func (*AddPaymentPassRequestConfiguration) WithRequiresFelicaSecureElement added in v0.17.0

func (apprc *AddPaymentPassRequestConfiguration) WithRequiresFelicaSecureElement(requiresFelicaSecureElement bool) *AddPaymentPassRequestConfiguration

WithRequiresFelicaSecureElement sets a Boolean value that indicates whether the payment pass requires the Felica Secure Element.

func (*AddPaymentPassRequestConfiguration) WithStyle added in v0.17.0

WithStyle sets a value that indicates whether a pass is for access or for payment use.

type AddPaymentPassStyle added in v0.17.0

type AddPaymentPassStyle int64

The type of payment pass.

const (
	// A pass used by a customer for purchasing.
	AddPaymentPassStylePayment AddPaymentPassStyle = 0
	// A pass that authorizes the user to access a location or resource.
	AddPaymentPassStyleAccess AddPaymentPassStyle = 1
)

func (AddPaymentPassStyle) String added in v0.17.0

func (e AddPaymentPassStyle) String() string

String returns the AddPaymentPassStyle constant's name, or its numeric form when the value is not a known constant.

type AddSecureElementPassConfiguration added in v0.17.0

type AddSecureElementPassConfiguration struct {
	objref.Handle
}

AddSecureElementPassConfiguration is an idiomatic wrapper over the Objective-C class PKAddSecureElementPassConfiguration.

AddSecureElementPassConfiguration is an abstract base — you do not construct it directly. Construct one of AddCarKeyPassConfiguration, AddIdentityDocumentConfiguration, AddShareablePassConfiguration and pass it where a AddSecureElementPassConfiguration is accepted.

An object that describes the configuration of a secure element payment pass.

func AddSecureElementPassConfigurationFromID added in v0.17.0

func AddSecureElementPassConfigurationFromID(id objc.ID) *AddSecureElementPassConfiguration

AddSecureElementPassConfigurationFromID adopts an existing Objective-C object as a AddSecureElementPassConfiguration (nil for 0), retaining it and registering a release finalizer.

func (*AddSecureElementPassConfiguration) Description added in v0.17.0

func (asepc *AddSecureElementPassConfiguration) Description() string

Description returns the object's -description text.

func (*AddSecureElementPassConfiguration) IsEqual added in v0.17.0

func (asepc *AddSecureElementPassConfiguration) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*AddSecureElementPassConfiguration) IsKind added in v0.17.0

func (asepc *AddSecureElementPassConfiguration) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*AddSecureElementPassConfiguration) IssuerIdentifier added in v0.17.0

func (asepc *AddSecureElementPassConfiguration) IssuerIdentifier() string

IssuerIdentifier returns the issuer identifier.

func (*AddSecureElementPassConfiguration) LocalizedDescription added in v0.17.0

func (asepc *AddSecureElementPassConfiguration) LocalizedDescription() string

LocalizedDescription returns the localized description.

func (*AddSecureElementPassConfiguration) String added in v0.17.0

func (asepc *AddSecureElementPassConfiguration) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*AddSecureElementPassConfiguration) WithIssuerIdentifier added in v0.17.0

func (asepc *AddSecureElementPassConfiguration) WithIssuerIdentifier(issuerIdentifier string) *AddSecureElementPassConfiguration

WithIssuerIdentifier sets an opaque value for the configuration.

func (*AddSecureElementPassConfiguration) WithLocalizedDescription added in v0.17.0

func (asepc *AddSecureElementPassConfiguration) WithLocalizedDescription(localizedDescription string) *AddSecureElementPassConfiguration

WithLocalizedDescription sets the configuration’s localized description.

type AddSecureElementPassConfigurationProvider added in v0.17.0

type AddSecureElementPassConfigurationProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

AddSecureElementPassConfigurationProvider is accepted wherever a PKAddSecureElementPassConfiguration (or one of its subclasses) is expected.

type AddSecureElementPassErrorCode added in v0.17.0

type AddSecureElementPassErrorCode int64

Error codes for problems that occur when you add a secure element passes.

const (
	AddSecureElementPassGenericError AddSecureElementPassErrorCode = 0
	// The system canceled adding the pass due to an unknown failure.
	AddSecureElementPassUnknownError               AddSecureElementPassErrorCode = 0
	AddSecureElementPassUserCanceledError          AddSecureElementPassErrorCode = 1
	AddSecureElementPassUnavailableError           AddSecureElementPassErrorCode = 2
	AddSecureElementPassInvalidConfigurationError  AddSecureElementPassErrorCode = 3
	AddSecureElementPassDeviceNotSupportedError    AddSecureElementPassErrorCode = 4
	AddSecureElementPassDeviceNotReadyError        AddSecureElementPassErrorCode = 5
	AddSecureElementPassOSVersionNotSupportedError AddSecureElementPassErrorCode = 6
)

func (AddSecureElementPassErrorCode) String added in v0.17.0

String returns the AddSecureElementPassErrorCode constant's name, or its numeric form when the value is not a known constant.

type AddShareablePassConfiguration added in v0.17.0

type AddShareablePassConfiguration struct {
	AddSecureElementPassConfiguration
}

AddShareablePassConfiguration is an idiomatic wrapper over the Objective-C class PKAddShareablePassConfiguration.

It embeds AddSecureElementPassConfiguration, promoting that type's methods.

An object that represents the data and action for a shared copy of pass.

func AddShareablePassConfigurationFromID added in v0.17.0

func AddShareablePassConfigurationFromID(id objc.ID) *AddShareablePassConfiguration

AddShareablePassConfigurationFromID adopts an existing Objective-C object as a AddShareablePassConfiguration (nil for 0), retaining it and registering a release finalizer.

func ConfigurationForPassMetadataPrimaryActionCompletion added in v0.17.0

func ConfigurationForPassMetadataPrimaryActionCompletion(ctx context.Context, passMetadata []*ShareablePassMetadata, action AddShareablePassConfigurationPrimaryAction) (result *AddShareablePassConfiguration, err error)

ConfigurationForPassMetadataPrimaryActionCompletion wraps the corresponding Objective-C method.

ConfigurationForPassMetadataPrimaryActionCompletion blocks until the operation completes or ctx is cancelled.

func ConfigurationForPassMetadataProvisioningPolicyIdentifierPrimaryActionCompletion added in v0.17.0

func ConfigurationForPassMetadataProvisioningPolicyIdentifierPrimaryActionCompletion(ctx context.Context, passMetadata []*ShareablePassMetadata, provisioningPolicyIdentifier string, action AddShareablePassConfigurationPrimaryAction) (result *AddShareablePassConfiguration, err error)

ConfigurationForPassMetadataProvisioningPolicyIdentifierPrimaryActionCompletion creates and error checks a new shareable pass-configuration object.

ConfigurationForPassMetadataProvisioningPolicyIdentifierPrimaryActionCompletion blocks until the operation completes or ctx is cancelled.

func NewAddShareablePassConfiguration added in v0.17.0

func NewAddShareablePassConfiguration() *AddShareablePassConfiguration

NewAddShareablePassConfiguration creates a new AddShareablePassConfiguration.

func (*AddShareablePassConfiguration) CredentialsMetadata added in v0.17.0

func (aspc *AddShareablePassConfiguration) CredentialsMetadata() []*ShareablePassMetadata

CredentialsMetadata returns the credentials metadata.

CredentialsMetadata returns the collection as a Go slice.

func (*AddShareablePassConfiguration) PrimaryAction added in v0.17.0

PrimaryAction returns the primary action.

func (*AddShareablePassConfiguration) ProvisioningPolicyIdentifier added in v0.17.0

func (aspc *AddShareablePassConfiguration) ProvisioningPolicyIdentifier() string

ProvisioningPolicyIdentifier returns the provisioning policy identifier.

func (*AddShareablePassConfiguration) WithIssuerIdentifier added in v0.17.0

func (aspc *AddShareablePassConfiguration) WithIssuerIdentifier(issuerIdentifier string) *AddShareablePassConfiguration

WithIssuerIdentifier sets an opaque value for the configuration.

func (*AddShareablePassConfiguration) WithLocalizedDescription added in v0.17.0

func (aspc *AddShareablePassConfiguration) WithLocalizedDescription(localizedDescription string) *AddShareablePassConfiguration

WithLocalizedDescription sets the configuration’s localized description.

type AddShareablePassConfigurationPrimaryAction added in v0.17.0

type AddShareablePassConfigurationPrimaryAction uint64

The kind of add action that the system performs with a pass.

const (
	// A constant that indicates the system adds a pass to a device.
	AddShareablePassConfigurationPrimaryActionAdd AddShareablePassConfigurationPrimaryAction = 0
	// A constant that indicates the system shares the pass with another user.
	AddShareablePassConfigurationPrimaryActionShare AddShareablePassConfigurationPrimaryAction = 1
)

func (AddShareablePassConfigurationPrimaryAction) String added in v0.17.0

String returns the AddShareablePassConfigurationPrimaryAction constant's name, or its numeric form when the value is not a known constant.

type AddressField added in v0.17.0

type AddressField uint64

Billing or shipping address fields. Bitmask — values may be combined with |.

const (
	// No fields.
	AddressFieldNone AddressField = 0
	// The buyer’s full street address, including name, street, city, state or province, postal code, and country or region.
	AddressFieldPostalAddress AddressField = 1
	// The buyer’s telephone number.
	AddressFieldPhone AddressField = 2
	// The buyer’s email address.
	AddressFieldEmail AddressField = 4
	// The buyer’s first and last name.
	AddressFieldName AddressField = 8
	// All fields.
	AddressFieldAll AddressField = 15
)

func (AddressField) String added in v0.17.0

func (e AddressField) String() string

String returns the AddressField constant's name, or its numeric form when the value is not a known constant.

type ApplePayLaterAvailability added in v0.17.0

type ApplePayLaterAvailability int64

Values you use to enable or disable Apple Pay Later for a specific transaction.

const (
	// Apple Pay Later is available.
	ApplePayLaterAvailable ApplePayLaterAvailability = 0
	// Apple Pay Later is unavailable because one or more ineligible or prohibited items are in the shopping cart, such as gift cards.
	ApplePayLaterUnavailableItemIneligible ApplePayLaterAvailability = 1
	// Apple Pay Later is unavailable because there’s a recurring payment or subscription in the shopping cart.
	ApplePayLaterUnavailableRecurringTransaction ApplePayLaterAvailability = 2
)

func (ApplePayLaterAvailability) String added in v0.17.0

func (e ApplePayLaterAvailability) String() string

String returns the ApplePayLaterAvailability constant's name, or its numeric form when the value is not a known constant.

type AutomaticPassPresentationSuppressionResult added in v0.17.0

type AutomaticPassPresentationSuppressionResult uint64

The result of an attempt to suppress automatic pass presentation.

const (
	// The device doesn’t support the suppression of automatic pass presentation.
	AutomaticPassPresentationSuppressionResultNotSupported AutomaticPassPresentationSuppressionResult = 0
	// The device is already presenting passes.
	AutomaticPassPresentationSuppressionResultAlreadyPresenting AutomaticPassPresentationSuppressionResult = 1
	// The user prevented the suppression, or an internal error occurred.
	AutomaticPassPresentationSuppressionResultDenied AutomaticPassPresentationSuppressionResult = 2
	// The system canceled the suppression before calling the response handler.
	AutomaticPassPresentationSuppressionResultCancelled AutomaticPassPresentationSuppressionResult = 3
	// Suppression of automatic presentation successful.
	AutomaticPassPresentationSuppressionResultSuccess AutomaticPassPresentationSuppressionResult = 4
)

func (AutomaticPassPresentationSuppressionResult) String added in v0.17.0

String returns the AutomaticPassPresentationSuppressionResult constant's name, or its numeric form when the value is not a known constant.

type AutomaticReloadPaymentRequest added in v0.17.0

type AutomaticReloadPaymentRequest struct {
	objref.Handle
}

AutomaticReloadPaymentRequest is an idiomatic wrapper over the Objective-C class PKAutomaticReloadPaymentRequest.

A class that represents a request to set up an automatic reload payment, such as a store card top-up or a prepaid account.

func AutomaticReloadPaymentRequestFromID added in v0.17.0

func AutomaticReloadPaymentRequestFromID(id objc.ID) *AutomaticReloadPaymentRequest

AutomaticReloadPaymentRequestFromID adopts an existing Objective-C object as a AutomaticReloadPaymentRequest (nil for 0), retaining it and registering a release finalizer.

func NewAutomaticReloadPaymentRequestWithPaymentDescriptionAutomaticReloadBillingManagementURL added in v0.17.0

func NewAutomaticReloadPaymentRequestWithPaymentDescriptionAutomaticReloadBillingManagementURL(paymentDescription string, automaticReloadBilling *AutomaticReloadPaymentSummaryItem, managementURL string) *AutomaticReloadPaymentRequest

NewAutomaticReloadPaymentRequestWithPaymentDescriptionAutomaticReloadBillingManagementURL create an automatic reload payment object with a description, automatic billing information, and a management URL.

func (*AutomaticReloadPaymentRequest) AutomaticReloadBilling added in v0.17.0

func (arpr *AutomaticReloadPaymentRequest) AutomaticReloadBilling() *AutomaticReloadPaymentSummaryItem

AutomaticReloadBilling returns the automatic reload billing.

func (*AutomaticReloadPaymentRequest) BillingAgreement added in v0.17.0

func (arpr *AutomaticReloadPaymentRequest) BillingAgreement() string

BillingAgreement returns the billing agreement.

func (*AutomaticReloadPaymentRequest) Description added in v0.17.0

func (arpr *AutomaticReloadPaymentRequest) Description() string

Description returns the object's -description text.

func (*AutomaticReloadPaymentRequest) IsEqual added in v0.17.0

func (arpr *AutomaticReloadPaymentRequest) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*AutomaticReloadPaymentRequest) IsKind added in v0.17.0

func (arpr *AutomaticReloadPaymentRequest) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*AutomaticReloadPaymentRequest) ManagementURL added in v0.17.0

func (arpr *AutomaticReloadPaymentRequest) ManagementURL() string

ManagementURL returns the management URL.

func (*AutomaticReloadPaymentRequest) PaymentDescription added in v0.17.0

func (arpr *AutomaticReloadPaymentRequest) PaymentDescription() string

PaymentDescription returns the payment description.

func (*AutomaticReloadPaymentRequest) String added in v0.17.0

func (arpr *AutomaticReloadPaymentRequest) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*AutomaticReloadPaymentRequest) TokenNotificationURL added in v0.17.0

func (arpr *AutomaticReloadPaymentRequest) TokenNotificationURL() string

TokenNotificationURL returns the token notification URL.

func (*AutomaticReloadPaymentRequest) WithAutomaticReloadBilling added in v0.17.0

func (arpr *AutomaticReloadPaymentRequest) WithAutomaticReloadBilling(automaticReloadBilling *AutomaticReloadPaymentSummaryItem) *AutomaticReloadPaymentRequest

WithAutomaticReloadBilling sets summary items that contain the top-up amount and balance threshold amount for the automatic reload payment.

func (*AutomaticReloadPaymentRequest) WithBillingAgreement added in v0.17.0

func (arpr *AutomaticReloadPaymentRequest) WithBillingAgreement(billingAgreement string) *AutomaticReloadPaymentRequest

WithBillingAgreement sets a localized billing agreement that the payment sheet displays to the user before the user authorizes the payment.

func (*AutomaticReloadPaymentRequest) WithManagementURL added in v0.17.0

func (arpr *AutomaticReloadPaymentRequest) WithManagementURL(managementURL string) *AutomaticReloadPaymentRequest

WithManagementURL sets a URL to a web page where the user can manage and delete the payment method for the automatic reload payment.

func (*AutomaticReloadPaymentRequest) WithPaymentDescription added in v0.17.0

func (arpr *AutomaticReloadPaymentRequest) WithPaymentDescription(paymentDescription string) *AutomaticReloadPaymentRequest

WithPaymentDescription sets a description that you provide of the automatic reload payment and that Apple Pay displays to the user in the payment sheet.

func (*AutomaticReloadPaymentRequest) WithTokenNotificationURL added in v0.17.0

func (arpr *AutomaticReloadPaymentRequest) WithTokenNotificationURL(tokenNotificationURL string) *AutomaticReloadPaymentRequest

WithTokenNotificationURL sets a URL you provide to receive life-cycle notifications from the Apple Pay servers about the Apple Pay merchant token for the automatic reload payment.

type AutomaticReloadPaymentSummaryItem added in v0.17.0

type AutomaticReloadPaymentSummaryItem struct {
	PaymentSummaryItem
}

AutomaticReloadPaymentSummaryItem is an idiomatic wrapper over the Objective-C class PKAutomaticReloadPaymentSummaryItem.

It embeds PaymentSummaryItem, promoting that type's methods.

An object that defines a summary item for an automatic reload or refill payment, such as a store card top-up.

func AutomaticReloadPaymentSummaryItemFromID added in v0.17.0

func AutomaticReloadPaymentSummaryItemFromID(id objc.ID) *AutomaticReloadPaymentSummaryItem

AutomaticReloadPaymentSummaryItemFromID adopts an existing Objective-C object as a AutomaticReloadPaymentSummaryItem (nil for 0), retaining it and registering a release finalizer.

func NewAutomaticReloadPaymentSummaryItem added in v0.17.0

func NewAutomaticReloadPaymentSummaryItem() *AutomaticReloadPaymentSummaryItem

NewAutomaticReloadPaymentSummaryItem creates a new AutomaticReloadPaymentSummaryItem.

func (*AutomaticReloadPaymentSummaryItem) ThresholdAmount added in v0.17.0

ThresholdAmount returns the threshold amount.

func (*AutomaticReloadPaymentSummaryItem) WithAmount added in v0.17.0

WithAmount sets the summary item’s amount.

func (*AutomaticReloadPaymentSummaryItem) WithLabel added in v0.17.0

WithLabel sets a short, localized description of the item.

func (*AutomaticReloadPaymentSummaryItem) WithThresholdAmount added in v0.17.0

func (arpsi *AutomaticReloadPaymentSummaryItem) WithThresholdAmount(thresholdAmount obj.Object) *AutomaticReloadPaymentSummaryItem

WithThresholdAmount sets the balance an account reaches before you apply the automatic reload amount.

func (*AutomaticReloadPaymentSummaryItem) WithType added in v0.17.0

WithType sets the summary item’s type that indicates whether the amount is final.

type BarcodeEventConfigurationDataType added in v0.17.0

type BarcodeEventConfigurationDataType int64
const (
	BarcodeEventConfigurationDataTypeUnknown            BarcodeEventConfigurationDataType = 0
	BarcodeEventConfigurationDataTypeSigningKeyMaterial BarcodeEventConfigurationDataType = 1
	BarcodeEventConfigurationDataTypeSigningCertificate BarcodeEventConfigurationDataType = 2
)

func (BarcodeEventConfigurationDataType) String added in v0.17.0

String returns the BarcodeEventConfigurationDataType constant's name, or its numeric form when the value is not a known constant.

type BarcodeEventConfigurationRequest added in v0.17.0

type BarcodeEventConfigurationRequest struct {
	objref.Handle
}

BarcodeEventConfigurationRequest is an idiomatic wrapper over the Objective-C class PKBarcodeEventConfigurationRequest.

func BarcodeEventConfigurationRequestFromID added in v0.17.0

func BarcodeEventConfigurationRequestFromID(id objc.ID) *BarcodeEventConfigurationRequest

BarcodeEventConfigurationRequestFromID adopts an existing Objective-C object as a BarcodeEventConfigurationRequest (nil for 0), retaining it and registering a release finalizer.

func NewBarcodeEventConfigurationRequest added in v0.17.0

func NewBarcodeEventConfigurationRequest() *BarcodeEventConfigurationRequest

NewBarcodeEventConfigurationRequest creates a new BarcodeEventConfigurationRequest.

func (*BarcodeEventConfigurationRequest) ConfigurationData added in v0.17.0

func (becr *BarcodeEventConfigurationRequest) ConfigurationData() []byte

ConfigurationData returns the configuration data.

func (*BarcodeEventConfigurationRequest) ConfigurationDataType added in v0.17.0

ConfigurationDataType returns the configuration data type.

func (*BarcodeEventConfigurationRequest) Description added in v0.17.0

func (becr *BarcodeEventConfigurationRequest) Description() string

Description returns the object's -description text.

func (*BarcodeEventConfigurationRequest) DeviceAccountIdentifier added in v0.17.0

func (becr *BarcodeEventConfigurationRequest) DeviceAccountIdentifier() string

DeviceAccountIdentifier returns the device account identifier.

func (*BarcodeEventConfigurationRequest) IsEqual added in v0.17.0

func (becr *BarcodeEventConfigurationRequest) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*BarcodeEventConfigurationRequest) IsKind added in v0.17.0

func (becr *BarcodeEventConfigurationRequest) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*BarcodeEventConfigurationRequest) String added in v0.17.0

String returns the object's -description text, so a wrapper prints usefully under fmt.

type BarcodeEventMetadataRequest added in v0.17.0

type BarcodeEventMetadataRequest struct {
	objref.Handle
}

BarcodeEventMetadataRequest is an idiomatic wrapper over the Objective-C class PKBarcodeEventMetadataRequest.

func BarcodeEventMetadataRequestFromID added in v0.17.0

func BarcodeEventMetadataRequestFromID(id objc.ID) *BarcodeEventMetadataRequest

BarcodeEventMetadataRequestFromID adopts an existing Objective-C object as a BarcodeEventMetadataRequest (nil for 0), retaining it and registering a release finalizer.

func NewBarcodeEventMetadataRequest added in v0.17.0

func NewBarcodeEventMetadataRequest() *BarcodeEventMetadataRequest

NewBarcodeEventMetadataRequest creates a new BarcodeEventMetadataRequest.

func (*BarcodeEventMetadataRequest) Description added in v0.17.0

func (bemr *BarcodeEventMetadataRequest) Description() string

Description returns the object's -description text.

func (*BarcodeEventMetadataRequest) DeviceAccountIdentifier added in v0.17.0

func (bemr *BarcodeEventMetadataRequest) DeviceAccountIdentifier() string

DeviceAccountIdentifier returns the device account identifier.

func (*BarcodeEventMetadataRequest) IsEqual added in v0.17.0

func (bemr *BarcodeEventMetadataRequest) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*BarcodeEventMetadataRequest) IsKind added in v0.17.0

func (bemr *BarcodeEventMetadataRequest) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*BarcodeEventMetadataRequest) LastUsedBarcodeIdentifier added in v0.17.0

func (bemr *BarcodeEventMetadataRequest) LastUsedBarcodeIdentifier() string

LastUsedBarcodeIdentifier returns the last used barcode identifier.

func (*BarcodeEventMetadataRequest) String added in v0.17.0

func (bemr *BarcodeEventMetadataRequest) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type BarcodeEventMetadataResponse added in v0.17.0

type BarcodeEventMetadataResponse struct {
	objref.Handle
}

BarcodeEventMetadataResponse is an idiomatic wrapper over the Objective-C class PKBarcodeEventMetadataResponse.

func BarcodeEventMetadataResponseFromID added in v0.17.0

func BarcodeEventMetadataResponseFromID(id objc.ID) *BarcodeEventMetadataResponse

BarcodeEventMetadataResponseFromID adopts an existing Objective-C object as a BarcodeEventMetadataResponse (nil for 0), retaining it and registering a release finalizer.

func NewBarcodeEventMetadataResponseWithPaymentInformation added in v0.17.0

func NewBarcodeEventMetadataResponseWithPaymentInformation(paymentInformation []byte) *BarcodeEventMetadataResponse

NewBarcodeEventMetadataResponseWithPaymentInformation creates a new BarcodeEventMetadataResponse.

func (*BarcodeEventMetadataResponse) Description added in v0.17.0

func (bemr *BarcodeEventMetadataResponse) Description() string

Description returns the object's -description text.

func (*BarcodeEventMetadataResponse) IsEqual added in v0.17.0

func (bemr *BarcodeEventMetadataResponse) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*BarcodeEventMetadataResponse) IsKind added in v0.17.0

func (bemr *BarcodeEventMetadataResponse) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*BarcodeEventMetadataResponse) PaymentInformation added in v0.17.0

func (bemr *BarcodeEventMetadataResponse) PaymentInformation() []byte

PaymentInformation returns the payment information.

func (*BarcodeEventMetadataResponse) String added in v0.17.0

func (bemr *BarcodeEventMetadataResponse) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*BarcodeEventMetadataResponse) WithPaymentInformation added in v0.17.0

func (bemr *BarcodeEventMetadataResponse) WithPaymentInformation(paymentInformation []byte) *BarcodeEventMetadataResponse

WithPaymentInformation sets the payment information.

type BarcodeEventSignatureRequest added in v0.17.0

type BarcodeEventSignatureRequest struct {
	objref.Handle
}

BarcodeEventSignatureRequest is an idiomatic wrapper over the Objective-C class PKBarcodeEventSignatureRequest.

func BarcodeEventSignatureRequestFromID added in v0.17.0

func BarcodeEventSignatureRequestFromID(id objc.ID) *BarcodeEventSignatureRequest

BarcodeEventSignatureRequestFromID adopts an existing Objective-C object as a BarcodeEventSignatureRequest (nil for 0), retaining it and registering a release finalizer.

func NewBarcodeEventSignatureRequest added in v0.17.0

func NewBarcodeEventSignatureRequest() *BarcodeEventSignatureRequest

NewBarcodeEventSignatureRequest creates a new BarcodeEventSignatureRequest.

func (*BarcodeEventSignatureRequest) Amount added in v0.17.0

Amount returns the amount.

func (*BarcodeEventSignatureRequest) BarcodeIdentifier added in v0.17.0

func (besr *BarcodeEventSignatureRequest) BarcodeIdentifier() string

BarcodeIdentifier returns the barcode identifier.

func (*BarcodeEventSignatureRequest) CurrencyCode added in v0.17.0

func (besr *BarcodeEventSignatureRequest) CurrencyCode() string

CurrencyCode returns the currency code.

func (*BarcodeEventSignatureRequest) Description added in v0.17.0

func (besr *BarcodeEventSignatureRequest) Description() string

Description returns the object's -description text.

func (*BarcodeEventSignatureRequest) DeviceAccountIdentifier added in v0.17.0

func (besr *BarcodeEventSignatureRequest) DeviceAccountIdentifier() string

DeviceAccountIdentifier returns the device account identifier.

func (*BarcodeEventSignatureRequest) IsEqual added in v0.17.0

func (besr *BarcodeEventSignatureRequest) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*BarcodeEventSignatureRequest) IsKind added in v0.17.0

func (besr *BarcodeEventSignatureRequest) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*BarcodeEventSignatureRequest) MerchantName added in v0.17.0

func (besr *BarcodeEventSignatureRequest) MerchantName() string

MerchantName returns the merchant name.

func (*BarcodeEventSignatureRequest) PartialSignature added in v0.17.0

func (besr *BarcodeEventSignatureRequest) PartialSignature() []byte

PartialSignature returns the partial signature.

func (*BarcodeEventSignatureRequest) RawMerchantName added in v0.17.0

func (besr *BarcodeEventSignatureRequest) RawMerchantName() string

RawMerchantName returns the raw merchant name.

func (*BarcodeEventSignatureRequest) String added in v0.17.0

func (besr *BarcodeEventSignatureRequest) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*BarcodeEventSignatureRequest) TransactionDate added in v0.17.0

func (besr *BarcodeEventSignatureRequest) TransactionDate() time.Time

TransactionDate returns the transaction date.

func (*BarcodeEventSignatureRequest) TransactionIdentifier added in v0.17.0

func (besr *BarcodeEventSignatureRequest) TransactionIdentifier() string

TransactionIdentifier returns the transaction identifier.

func (*BarcodeEventSignatureRequest) TransactionStatus added in v0.17.0

func (besr *BarcodeEventSignatureRequest) TransactionStatus() string

TransactionStatus returns the transaction status.

type BarcodeEventSignatureResponse added in v0.17.0

type BarcodeEventSignatureResponse struct {
	objref.Handle
}

BarcodeEventSignatureResponse is an idiomatic wrapper over the Objective-C class PKBarcodeEventSignatureResponse.

func BarcodeEventSignatureResponseFromID added in v0.17.0

func BarcodeEventSignatureResponseFromID(id objc.ID) *BarcodeEventSignatureResponse

BarcodeEventSignatureResponseFromID adopts an existing Objective-C object as a BarcodeEventSignatureResponse (nil for 0), retaining it and registering a release finalizer.

func NewBarcodeEventSignatureResponseWithSignedData added in v0.17.0

func NewBarcodeEventSignatureResponseWithSignedData(signedData []byte) *BarcodeEventSignatureResponse

NewBarcodeEventSignatureResponseWithSignedData creates a new BarcodeEventSignatureResponse.

func (*BarcodeEventSignatureResponse) Description added in v0.17.0

func (besr *BarcodeEventSignatureResponse) Description() string

Description returns the object's -description text.

func (*BarcodeEventSignatureResponse) IsEqual added in v0.17.0

func (besr *BarcodeEventSignatureResponse) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*BarcodeEventSignatureResponse) IsKind added in v0.17.0

func (besr *BarcodeEventSignatureResponse) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*BarcodeEventSignatureResponse) SignedData added in v0.17.0

func (besr *BarcodeEventSignatureResponse) SignedData() []byte

SignedData returns the signed data.

func (*BarcodeEventSignatureResponse) String added in v0.17.0

func (besr *BarcodeEventSignatureResponse) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*BarcodeEventSignatureResponse) WithSignedData added in v0.17.0

func (besr *BarcodeEventSignatureResponse) WithSignedData(signedData []byte) *BarcodeEventSignatureResponse

WithSignedData sets the signed data.

type CGLCPContextPriorityRequest

type CGLCPContextPriorityRequest int32
const (
	KCGLCPContextPriorityRequestHigh   CGLCPContextPriorityRequest = 0
	KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1
	KCGLCPContextPriorityRequestLow    CGLCPContextPriorityRequest = 2
)

func (CGLCPContextPriorityRequest) String

String returns the CGLCPContextPriorityRequest constant's name, or its numeric form when the value is not a known constant.

type Clockid added in v0.17.0

type Clockid int32
const (
	ClockidRealtime           Clockid = 0
	ClockidMonotonic          Clockid = 6
	ClockidMonotonicRaw       Clockid = 4
	ClockidMonotonicRawApprox Clockid = 5
	ClockidUptimeRaw          Clockid = 8
	ClockidUptimeRawApprox    Clockid = 9
	ClockidProcessCputimeID   Clockid = 12
	ClockidThreadCputimeID    Clockid = 16
)

func (Clockid) String added in v0.17.0

func (e Clockid) String() string

String returns the Clockid constant's name, or its numeric form when the value is not a known constant.

type Contact added in v0.17.0

type Contact struct {
	objref.Handle
}

Contact is an idiomatic wrapper over the Objective-C class PKContact.

An object that encapsulates contact information needed for billing and shipping.

func ContactFromID added in v0.17.0

func ContactFromID(id objc.ID) *Contact

ContactFromID adopts an existing Objective-C object as a Contact (nil for 0), retaining it and registering a release finalizer.

func NewContact added in v0.17.0

func NewContact() *Contact

NewContact creates a new Contact.

func (*Contact) Description added in v0.17.0

func (c *Contact) Description() string

Description returns the object's -description text.

func (*Contact) EmailAddress added in v0.17.0

func (c *Contact) EmailAddress() string

EmailAddress returns the email address.

func (*Contact) IsEqual added in v0.17.0

func (c *Contact) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Contact) IsKind added in v0.17.0

func (c *Contact) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Contact) Name added in v0.17.0

Name returns the name.

func (*Contact) PhoneNumber added in v0.17.0

func (c *Contact) PhoneNumber() obj.Object

PhoneNumber returns the phone number.

func (*Contact) PostalAddress added in v0.17.0

func (c *Contact) PostalAddress() obj.Object

PostalAddress returns the postal address.

func (*Contact) String added in v0.17.0

func (c *Contact) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Contact) SupplementarySubLocality added in v0.17.0

func (c *Contact) SupplementarySubLocality() string

SupplementarySubLocality returns the supplementary sub locality.

func (*Contact) WithEmailAddress added in v0.17.0

func (c *Contact) WithEmailAddress(emailAddress string) *Contact

WithEmailAddress sets the contact’s email address, or nil if the contact’s email is not needed for the transaction.

func (*Contact) WithName added in v0.17.0

func (c *Contact) WithName(name obj.Object) *Contact

WithName sets the contact’s first and last name, or nil if the contact’s name is not needed for the transaction.

func (*Contact) WithPhoneNumber added in v0.17.0

func (c *Contact) WithPhoneNumber(phoneNumber obj.Object) *Contact

WithPhoneNumber sets the contact’s telephone number, or nil if the contact’s phone number is not needed for the transaction.

func (*Contact) WithPostalAddress added in v0.17.0

func (c *Contact) WithPostalAddress(postalAddress obj.Object) *Contact

WithPostalAddress sets the contact’s full postal address.

func (*Contact) WithSupplementarySubLocality added in v0.17.0

func (c *Contact) WithSupplementarySubLocality(supplementarySubLocality string) *Contact

WithSupplementarySubLocality sets the contact’s sublocality, or nil if the sublocality is not needed for the transaction.

type DateComponentsRange added in v0.17.0

type DateComponentsRange struct {
	objref.Handle
}

DateComponentsRange is an idiomatic wrapper over the Objective-C class PKDateComponentsRange.

An object that specifies the start and end dates for a range of time.

func DateComponentsRangeFromID added in v0.17.0

func DateComponentsRangeFromID(id objc.ID) *DateComponentsRange

DateComponentsRangeFromID adopts an existing Objective-C object as a DateComponentsRange (nil for 0), retaining it and registering a release finalizer.

func NewDateComponentsRangeWithStartDateComponentsEndDateComponents added in v0.17.0

func NewDateComponentsRangeWithStartDateComponentsEndDateComponents(startDateComponents obj.Object, endDateComponents obj.Object) *DateComponentsRange

NewDateComponentsRangeWithStartDateComponentsEndDateComponents creates a new time range with the start and end dates and times that you specify.

func (*DateComponentsRange) Description added in v0.17.0

func (dcr *DateComponentsRange) Description() string

Description returns the object's -description text.

func (*DateComponentsRange) EndDateComponents added in v0.17.0

func (dcr *DateComponentsRange) EndDateComponents() *foundation.DateComponents

EndDateComponents returns the end date components.

func (*DateComponentsRange) IsEqual added in v0.17.0

func (dcr *DateComponentsRange) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*DateComponentsRange) IsKind added in v0.17.0

func (dcr *DateComponentsRange) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*DateComponentsRange) StartDateComponents added in v0.17.0

func (dcr *DateComponentsRange) StartDateComponents() *foundation.DateComponents

StartDateComponents returns the start date components.

func (*DateComponentsRange) String added in v0.17.0

func (dcr *DateComponentsRange) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type DeferredPaymentRequest added in v0.17.0

type DeferredPaymentRequest struct {
	objref.Handle
}

DeferredPaymentRequest is an idiomatic wrapper over the Objective-C class PKDeferredPaymentRequest.

An object that represents a request to set up a deferred payment, such as a hotel booking or a pre-order.

func DeferredPaymentRequestFromID added in v0.17.0

func DeferredPaymentRequestFromID(id objc.ID) *DeferredPaymentRequest

DeferredPaymentRequestFromID adopts an existing Objective-C object as a DeferredPaymentRequest (nil for 0), retaining it and registering a release finalizer.

func NewDeferredPaymentRequestWithPaymentDescriptionDeferredBillingManagementURL added in v0.17.0

func NewDeferredPaymentRequestWithPaymentDescriptionDeferredBillingManagementURL(paymentDescription string, deferredBilling *DeferredPaymentSummaryItem, managementURL string) *DeferredPaymentRequest

NewDeferredPaymentRequestWithPaymentDescriptionDeferredBillingManagementURL creates a deferred payment request with the payment description, deferred billing summary, and management URL you provide.

func (*DeferredPaymentRequest) BillingAgreement added in v0.17.0

func (dpr *DeferredPaymentRequest) BillingAgreement() string

BillingAgreement returns the billing agreement.

func (*DeferredPaymentRequest) DeferredBilling added in v0.17.0

func (dpr *DeferredPaymentRequest) DeferredBilling() *DeferredPaymentSummaryItem

DeferredBilling returns the deferred billing.

func (*DeferredPaymentRequest) Description added in v0.17.0

func (dpr *DeferredPaymentRequest) Description() string

Description returns the object's -description text.

func (*DeferredPaymentRequest) FreeCancellationDate added in v0.17.0

func (dpr *DeferredPaymentRequest) FreeCancellationDate() time.Time

FreeCancellationDate returns the free cancellation date.

func (*DeferredPaymentRequest) FreeCancellationDateTimeZone added in v0.17.0

func (dpr *DeferredPaymentRequest) FreeCancellationDateTimeZone() *foundation.TimeZone

FreeCancellationDateTimeZone returns the free cancellation date time zone.

func (*DeferredPaymentRequest) IsEqual added in v0.17.0

func (dpr *DeferredPaymentRequest) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*DeferredPaymentRequest) IsKind added in v0.17.0

func (dpr *DeferredPaymentRequest) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*DeferredPaymentRequest) ManagementURL added in v0.17.0

func (dpr *DeferredPaymentRequest) ManagementURL() string

ManagementURL returns the management URL.

func (*DeferredPaymentRequest) PaymentDescription added in v0.17.0

func (dpr *DeferredPaymentRequest) PaymentDescription() string

PaymentDescription returns the payment description.

func (*DeferredPaymentRequest) String added in v0.17.0

func (dpr *DeferredPaymentRequest) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*DeferredPaymentRequest) TokenNotificationURL added in v0.17.0

func (dpr *DeferredPaymentRequest) TokenNotificationURL() string

TokenNotificationURL returns the token notification URL.

func (*DeferredPaymentRequest) WithBillingAgreement added in v0.17.0

func (dpr *DeferredPaymentRequest) WithBillingAgreement(billingAgreement string) *DeferredPaymentRequest

WithBillingAgreement sets the localized billing agreement the framework displays to the user prior to payment authorization.

func (*DeferredPaymentRequest) WithDeferredBilling added in v0.17.0

func (dpr *DeferredPaymentRequest) WithDeferredBilling(deferredBilling *DeferredPaymentSummaryItem) *DeferredPaymentRequest

WithDeferredBilling sets an object that contains details about the deferred payment.

func (*DeferredPaymentRequest) WithFreeCancellationDate added in v0.17.0

func (dpr *DeferredPaymentRequest) WithFreeCancellationDate(freeCancellationDate time.Time) *DeferredPaymentRequest

WithFreeCancellationDate sets the date before which you must cancel a deferred payment without incurring any cancellation charges.

func (*DeferredPaymentRequest) WithFreeCancellationDateTimeZone added in v0.17.0

func (dpr *DeferredPaymentRequest) WithFreeCancellationDateTimeZone(freeCancellationDateTimeZone obj.Object) *DeferredPaymentRequest

WithFreeCancellationDateTimeZone sets the time zone at the destination location of the payment.

func (*DeferredPaymentRequest) WithManagementURL added in v0.17.0

func (dpr *DeferredPaymentRequest) WithManagementURL(managementURL string) *DeferredPaymentRequest

WithManagementURL sets a URL that links to a page on your web site where the user can manage the payment method for the deferred payment, including deleting it.

func (*DeferredPaymentRequest) WithPaymentDescription added in v0.17.0

func (dpr *DeferredPaymentRequest) WithPaymentDescription(paymentDescription string) *DeferredPaymentRequest

WithPaymentDescription sets a description of the deferred payment.

func (*DeferredPaymentRequest) WithTokenNotificationURL added in v0.17.0

func (dpr *DeferredPaymentRequest) WithTokenNotificationURL(tokenNotificationURL string) *DeferredPaymentRequest

WithTokenNotificationURL sets a URL to receive life-cycle notifications for the merchant-specific payment token the system issues for the request, if applicable.

type DeferredPaymentSummaryItem added in v0.17.0

type DeferredPaymentSummaryItem struct {
	PaymentSummaryItem
}

DeferredPaymentSummaryItem is an idiomatic wrapper over the Objective-C class PKDeferredPaymentSummaryItem.

It embeds PaymentSummaryItem, promoting that type's methods.

An object that defines a summary item for a payment that occurs at a later date, such as a pre-order.

func DeferredPaymentSummaryItemFromID added in v0.17.0

func DeferredPaymentSummaryItemFromID(id objc.ID) *DeferredPaymentSummaryItem

DeferredPaymentSummaryItemFromID adopts an existing Objective-C object as a DeferredPaymentSummaryItem (nil for 0), retaining it and registering a release finalizer.

func NewDeferredPaymentSummaryItem added in v0.17.0

func NewDeferredPaymentSummaryItem() *DeferredPaymentSummaryItem

NewDeferredPaymentSummaryItem creates a new DeferredPaymentSummaryItem.

func (*DeferredPaymentSummaryItem) DeferredDate added in v0.17.0

func (dpsi *DeferredPaymentSummaryItem) DeferredDate() time.Time

DeferredDate returns the deferred date.

func (*DeferredPaymentSummaryItem) WithAmount added in v0.17.0

WithAmount sets the summary item’s amount.

func (*DeferredPaymentSummaryItem) WithDeferredDate added in v0.17.0

func (dpsi *DeferredPaymentSummaryItem) WithDeferredDate(deferredDate time.Time) *DeferredPaymentSummaryItem

WithDeferredDate sets the date, in the future, of the payment.

func (*DeferredPaymentSummaryItem) WithLabel added in v0.17.0

WithLabel sets a short, localized description of the item.

func (*DeferredPaymentSummaryItem) WithType added in v0.17.0

WithType sets the summary item’s type that indicates whether the amount is final.

type DisbursementErrorCode added in v0.17.0

type DisbursementErrorCode int64

Values that describe errors that can occur while processing the disbursement.

const (
	DisbursementUnknownError                 DisbursementErrorCode = -1
	DisbursementUnsupportedCardError         DisbursementErrorCode = 1
	DisbursementRecipientContactInvalidError DisbursementErrorCode = 2
)

func (DisbursementErrorCode) String added in v0.17.0

func (e DisbursementErrorCode) String() string

String returns the DisbursementErrorCode constant's name, or its numeric form when the value is not a known constant.

type DisbursementRequest added in v0.17.0

type DisbursementRequest struct {
	objref.Handle
}

DisbursementRequest is an idiomatic wrapper over the Objective-C class PKDisbursementRequest.

An object that represents a request to disburse funds from a merchant to an individual.

func DisbursementRequestFromID added in v0.17.0

func DisbursementRequestFromID(id objc.ID) *DisbursementRequest

DisbursementRequestFromID adopts an existing Objective-C object as a DisbursementRequest (nil for 0), retaining it and registering a release finalizer.

func NewDisbursementRequestWithMerchantIdentifierCurrencyCodeRegionCodeSupportedNetworksMerchantCapabilitiesSummaryItems added in v0.17.0

func NewDisbursementRequestWithMerchantIdentifierCurrencyCodeRegionCodeSupportedNetworksMerchantCapabilitiesSummaryItems(merchantIdentifier string, currencyCode string, regionCode string, supportedNetworks []*foundation.String, merchantCapabilities MerchantCapability, summaryItems []*PaymentSummaryItem) *DisbursementRequest

NewDisbursementRequestWithMerchantIdentifierCurrencyCodeRegionCodeSupportedNetworksMerchantCapabilitiesSummaryItems creates a new instance of a disbursement request with the merchant identifier, currency and region codes, and other parameters you specify.

func (*DisbursementRequest) ApplicationData added in v0.17.0

func (dr *DisbursementRequest) ApplicationData() []byte

ApplicationData returns the application data.

func (*DisbursementRequest) CurrencyCode added in v0.17.0

func (dr *DisbursementRequest) CurrencyCode() string

CurrencyCode returns the currency code.

func (*DisbursementRequest) Description added in v0.17.0

func (dr *DisbursementRequest) Description() string

Description returns the object's -description text.

func (*DisbursementRequest) IsDelegatedRequest added in v0.17.0

func (dr *DisbursementRequest) IsDelegatedRequest() bool

IsDelegatedRequest reports whether this disbursement request is being made by a delegated entity on behalf of a merchant. Set this property to true when your application is acting as an Apple Pay delegate and presenting the payment sheet on behalf of another merchant. The default value is false.

func (*DisbursementRequest) IsEqual added in v0.17.0

func (dr *DisbursementRequest) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*DisbursementRequest) IsKind added in v0.17.0

func (dr *DisbursementRequest) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*DisbursementRequest) MerchantCapabilities added in v0.17.0

func (dr *DisbursementRequest) MerchantCapabilities() MerchantCapability

MerchantCapabilities returns the merchant capabilities.

func (*DisbursementRequest) MerchantIdentifier added in v0.17.0

func (dr *DisbursementRequest) MerchantIdentifier() string

MerchantIdentifier returns the merchant identifier.

func (*DisbursementRequest) RecipientContact added in v0.17.0

func (dr *DisbursementRequest) RecipientContact() *Contact

RecipientContact returns the recipient contact.

func (*DisbursementRequest) RegionCode added in v0.17.0

func (dr *DisbursementRequest) RegionCode() string

RegionCode returns the region code.

func (*DisbursementRequest) RequiredRecipientContactFields added in v0.17.0

func (dr *DisbursementRequest) RequiredRecipientContactFields() []obj.Object

RequiredRecipientContactFields returns the required recipient contact fields.

RequiredRecipientContactFields returns the collection as a Go slice.

func (*DisbursementRequest) String added in v0.17.0

func (dr *DisbursementRequest) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*DisbursementRequest) SummaryItems added in v0.17.0

func (dr *DisbursementRequest) SummaryItems() []*PaymentSummaryItem

SummaryItems returns the summary items.

SummaryItems returns the collection as a Go slice.

func (*DisbursementRequest) SupportedNetworks added in v0.17.0

func (dr *DisbursementRequest) SupportedNetworks() []obj.Object

SupportedNetworks returns the supported networks.

SupportedNetworks returns the collection as a Go slice.

func (*DisbursementRequest) SupportedRegions added in v0.17.0

func (dr *DisbursementRequest) SupportedRegions() []string

SupportedRegions returns the supported regions.

SupportedRegions returns the collection as a Go slice.

func (*DisbursementRequest) WithApplicationData added in v0.17.0

func (dr *DisbursementRequest) WithApplicationData(applicationData []byte) *DisbursementRequest

WithApplicationData sets optional merchant-supplied information about the disbursement request.

func (*DisbursementRequest) WithCurrencyCode added in v0.17.0

func (dr *DisbursementRequest) WithCurrencyCode(currencyCode string) *DisbursementRequest

WithCurrencyCode sets the currency code string for this disbursement.

func (*DisbursementRequest) WithIsDelegatedRequest added in v0.17.0

func (dr *DisbursementRequest) WithIsDelegatedRequest(isDelegatedRequest bool) *DisbursementRequest

WithIsDelegatedRequest sets a Boolean value that indicates whether this disbursement request is being made by a delegated entity on behalf of a merchant.

func (*DisbursementRequest) WithMerchantCapabilities added in v0.17.0

func (dr *DisbursementRequest) WithMerchantCapabilities(merchantCapabilities MerchantCapability) *DisbursementRequest

WithMerchantCapabilities sets a value that represents the payment-processing capabilities of the merchant.

func (*DisbursementRequest) WithMerchantIdentifier added in v0.17.0

func (dr *DisbursementRequest) WithMerchantIdentifier(merchantIdentifier string) *DisbursementRequest

WithMerchantIdentifier sets a string that identifies the merchant.

func (*DisbursementRequest) WithRecipientContact added in v0.17.0

func (dr *DisbursementRequest) WithRecipientContact(recipientContact *Contact) *DisbursementRequest

WithRecipientContact sets a contact object that describes the recipient.

func (*DisbursementRequest) WithRegionCode added in v0.17.0

func (dr *DisbursementRequest) WithRegionCode(regionCode string) *DisbursementRequest

WithRegionCode sets the merchant’s country code string.

func (*DisbursementRequest) WithRequiredRecipientContactFields added in v0.17.0

func (dr *DisbursementRequest) WithRequiredRecipientContactFields(items ...obj.Object) *DisbursementRequest

WithRequiredRecipientContactFields sets an array that indicates which of the recipient’s contact details the merchant requires in order to process a disbursement.

func (*DisbursementRequest) WithSummaryItems added in v0.17.0

func (dr *DisbursementRequest) WithSummaryItems(items ...PaymentSummaryItemProvider) *DisbursementRequest

WithSummaryItems sets an array of payment summary item objects that the framework presents to people.

func (*DisbursementRequest) WithSupportedNetworks added in v0.17.0

func (dr *DisbursementRequest) WithSupportedNetworks(items ...obj.Object) *DisbursementRequest

WithSupportedNetworks sets an array of payment networks the merchant supports.

func (*DisbursementRequest) WithSupportedRegions added in v0.17.0

func (dr *DisbursementRequest) WithSupportedRegions(items ...obj.Object) *DisbursementRequest

WithSupportedRegions sets an array of two-letter region codes that describes the regions to support.

type DisbursementSummaryItem added in v0.17.0

type DisbursementSummaryItem struct {
	PaymentSummaryItem
}

DisbursementSummaryItem is an idiomatic wrapper over the Objective-C class PKDisbursementSummaryItem.

It embeds PaymentSummaryItem, promoting that type's methods.

A summary item that represents a disbursement.

func DisbursementSummaryItemFromID added in v0.17.0

func DisbursementSummaryItemFromID(id objc.ID) *DisbursementSummaryItem

DisbursementSummaryItemFromID adopts an existing Objective-C object as a DisbursementSummaryItem (nil for 0), retaining it and registering a release finalizer.

func NewDisbursementSummaryItem added in v0.17.0

func NewDisbursementSummaryItem() *DisbursementSummaryItem

NewDisbursementSummaryItem creates a new DisbursementSummaryItem.

func (*DisbursementSummaryItem) WithAmount added in v0.17.0

func (dsi *DisbursementSummaryItem) WithAmount(amount obj.Object) *DisbursementSummaryItem

WithAmount sets the summary item’s amount.

func (*DisbursementSummaryItem) WithLabel added in v0.17.0

WithLabel sets a short, localized description of the item.

func (*DisbursementSummaryItem) WithType added in v0.17.0

WithType sets the summary item’s type that indicates whether the amount is final.

type DispatchAutoreleaseFrequency added in v0.17.0

type DispatchAutoreleaseFrequency uint64
const (
	DispatchAutoreleaseFrequencyInherit  DispatchAutoreleaseFrequency = 0
	DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1
	DispatchAutoreleaseFrequencyNever    DispatchAutoreleaseFrequency = 2
)

func (DispatchAutoreleaseFrequency) String added in v0.17.0

String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.

type DispatchBlockFlags added in v0.17.0

type DispatchBlockFlags uint64

Bitmask — values may be combined with |.

const (
	DispatchBlockFlagsBarrier         DispatchBlockFlags = 1
	DispatchBlockFlagsDetached        DispatchBlockFlags = 2
	DispatchBlockFlagsAssignCurrent   DispatchBlockFlags = 4
	DispatchBlockFlagsNoQosClass      DispatchBlockFlags = 8
	DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16
	DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32
)

func (DispatchBlockFlags) String added in v0.17.0

func (e DispatchBlockFlags) String() string

String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.

type EntryID added in v0.17.0

type EntryID int32
const (
	EntryIDFirstEntry EntryID = 0
	EntryIDNextEntry  EntryID = -1
	EntryIDLastEntry  EntryID = -2
)

func (EntryID) String added in v0.17.0

func (e EntryID) String() string

String returns the EntryID constant's name, or its numeric form when the value is not a known constant.

type EvCmd

type EvCmd int32
const (
	EVNOP   EvCmd = 0
	EVHIDE  EvCmd = 1
	EVSHOW  EvCmd = 2
	EVMOVE  EvCmd = 3
	EVLEVEL EvCmd = 4
)

func (EvCmd) String

func (e EvCmd) String() string

String returns the EvCmd constant's name, or its numeric form when the value is not a known constant.

type FilesecProperty added in v0.17.0

type FilesecProperty int32
const (
	FilesecPropertyOwner        FilesecProperty = 1
	FilesecPropertyGroup        FilesecProperty = 2
	FilesecPropertyUUID         FilesecProperty = 3
	FilesecPropertyMode         FilesecProperty = 4
	FilesecPropertyACL          FilesecProperty = 5
	FilesecPropertyGrpuuid      FilesecProperty = 6
	FilesecPropertyACLRaw       FilesecProperty = 100
	FilesecPropertyACLAllocsize FilesecProperty = 101
)

func (FilesecProperty) String added in v0.17.0

func (e FilesecProperty) String() string

String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.

type Flag added in v0.17.0

type Flag int32
const (
	FlagFlagDeferInherit      Flag = 1
	FlagFlagNoInherit         Flag = 131072
	FlagEntryInherited        Flag = 16
	FlagEntryFileInherit      Flag = 32
	FlagEntryDirectoryInherit Flag = 64
	FlagEntryLimitInherit     Flag = 128
	FlagEntryOnlyInherit      Flag = 256
)

func (Flag) String added in v0.17.0

func (e Flag) String() string

String returns the Flag constant's name, or its numeric form when the value is not a known constant.

type IdentityDocumentMetadata added in v0.17.0

type IdentityDocumentMetadata struct {
	objref.Handle
}

IdentityDocumentMetadata is an idiomatic wrapper over the Objective-C class PKIdentityDocumentMetadata.

IdentityDocumentMetadata is an abstract base — you do not construct it directly. Construct one of AddIdentityDocumentMetadata, JapanIndividualNumberCardMetadata and pass it where a IdentityDocumentMetadata is accepted.

A set of configured metadata that defines the required information to add the corresponding pass to Wallet.

func IdentityDocumentMetadataFromID added in v0.17.0

func IdentityDocumentMetadataFromID(id objc.ID) *IdentityDocumentMetadata

IdentityDocumentMetadataFromID adopts an existing Objective-C object as a IdentityDocumentMetadata (nil for 0), retaining it and registering a release finalizer.

func (*IdentityDocumentMetadata) CardConfigurationIdentifier added in v0.17.0

func (idm *IdentityDocumentMetadata) CardConfigurationIdentifier() string

CardConfigurationIdentifier returns cardConfigurationIdentifier: Identifier referencing a card configuration registered by developers. Returns empty string if no identifier is set.

func (*IdentityDocumentMetadata) CardTemplateIdentifier added in v0.17.0

func (idm *IdentityDocumentMetadata) CardTemplateIdentifier() string

CardTemplateIdentifier returns cardTemplateIdentifier: Identifier referencing a card template registered by developers in web portal - identifies a combination of cardProfileIdentifier, cardConfigurationIdentifier, and cardArtBundleName. Returns empty string if no identifier is set.

func (*IdentityDocumentMetadata) CredentialIdentifier added in v0.17.0

func (idm *IdentityDocumentMetadata) CredentialIdentifier() string

CredentialIdentifier returns credentialIdentifier: A unique identifier for provisioning credential data.

func (*IdentityDocumentMetadata) Description added in v0.17.0

func (idm *IdentityDocumentMetadata) Description() string

Description returns the object's -description text.

func (*IdentityDocumentMetadata) DocumentType added in v0.17.0

DocumentType returns identityDocumentType: identifies the type of the identity document

func (*IdentityDocumentMetadata) IsEqual added in v0.17.0

func (idm *IdentityDocumentMetadata) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*IdentityDocumentMetadata) IsKind added in v0.17.0

func (idm *IdentityDocumentMetadata) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*IdentityDocumentMetadata) IssuingCountryCode added in v0.17.0

func (idm *IdentityDocumentMetadata) IssuingCountryCode() string

IssuingCountryCode returns issuingCountryCode: identifies the issuing country of the identity document

func (*IdentityDocumentMetadata) ServerEnvironmentIdentifier added in v0.17.0

func (idm *IdentityDocumentMetadata) ServerEnvironmentIdentifier() string

ServerEnvironmentIdentifier returns serverEnvironmentIdentifier: Identifier referencing the target server environment Apple Pay servers should reach out to to provision this pass. If not present, the default Apply Pay server environment will be used and an empty string will be returned.

func (*IdentityDocumentMetadata) SharingInstanceIdentifier added in v0.17.0

func (idm *IdentityDocumentMetadata) SharingInstanceIdentifier() string

SharingInstanceIdentifier returns sharingInstanceIdentifier: A unique identifier that refers to an instance of sharing of credentials to a user's device initiated from another user, device, or web.

func (*IdentityDocumentMetadata) String added in v0.17.0

func (idm *IdentityDocumentMetadata) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*IdentityDocumentMetadata) WithServerEnvironmentIdentifier added in v0.17.0

func (idm *IdentityDocumentMetadata) WithServerEnvironmentIdentifier(serverEnvironmentIdentifier string) *IdentityDocumentMetadata

WithServerEnvironmentIdentifier sets an identifier that references the target server environment Apple Pay servers need to connect with to provision the pass.

type IdentityDocumentMetadataProvider added in v0.17.0

type IdentityDocumentMetadataProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

IdentityDocumentMetadataProvider is accepted wherever a PKIdentityDocumentMetadata (or one of its subclasses) is expected.

type Idtype added in v0.17.0

type Idtype int32
const (
	IdtypeAll  Idtype = 0
	IdtypePid  Idtype = 1
	IdtypePgid Idtype = 2
)

func (Idtype) String added in v0.17.0

func (e Idtype) String() string

String returns the Idtype constant's name, or its numeric form when the value is not a known constant.

type InstantFundsOutFeeSummaryItem added in v0.17.0

type InstantFundsOutFeeSummaryItem struct {
	PaymentSummaryItem
}

InstantFundsOutFeeSummaryItem is an idiomatic wrapper over the Objective-C class PKInstantFundsOutFeeSummaryItem.

It embeds PaymentSummaryItem, promoting that type's methods.

A summary item that represents a fee for an instant funds out transfer.

func InstantFundsOutFeeSummaryItemFromID added in v0.17.0

func InstantFundsOutFeeSummaryItemFromID(id objc.ID) *InstantFundsOutFeeSummaryItem

InstantFundsOutFeeSummaryItemFromID adopts an existing Objective-C object as a InstantFundsOutFeeSummaryItem (nil for 0), retaining it and registering a release finalizer.

func NewInstantFundsOutFeeSummaryItem added in v0.17.0

func NewInstantFundsOutFeeSummaryItem() *InstantFundsOutFeeSummaryItem

NewInstantFundsOutFeeSummaryItem creates a new InstantFundsOutFeeSummaryItem.

func (*InstantFundsOutFeeSummaryItem) WithAmount added in v0.17.0

WithAmount sets the summary item’s amount.

func (*InstantFundsOutFeeSummaryItem) WithLabel added in v0.17.0

WithLabel sets a short, localized description of the item.

func (*InstantFundsOutFeeSummaryItem) WithType added in v0.17.0

WithType sets the summary item’s type that indicates whether the amount is final.

type IpcInfoObjectType added in v0.17.0

type IpcInfoObjectType uint32
const (
	IpcInfoObjectTypeNone               IpcInfoObjectType = 0
	IpcInfoObjectTypeThreadControl      IpcInfoObjectType = 1
	IpcInfoObjectTypeTaskControl        IpcInfoObjectType = 2
	IpcInfoObjectTypeHost               IpcInfoObjectType = 3
	IpcInfoObjectTypeHostPriv           IpcInfoObjectType = 4
	IpcInfoObjectTypeProcessor          IpcInfoObjectType = 5
	IpcInfoObjectTypeProcessorSet       IpcInfoObjectType = 6
	IpcInfoObjectTypeProcessorSetName   IpcInfoObjectType = 7
	IpcInfoObjectTypeTimer              IpcInfoObjectType = 8
	IpcInfoObjectTypePortSubstOnce      IpcInfoObjectType = 9
	IpcInfoObjectTypeMig                IpcInfoObjectType = 10
	IpcInfoObjectTypeMemoryObject       IpcInfoObjectType = 11
	IpcInfoObjectTypeXmmPager           IpcInfoObjectType = 12
	IpcInfoObjectTypeXmmKernel          IpcInfoObjectType = 13
	IpcInfoObjectTypeXmmReply           IpcInfoObjectType = 14
	IpcInfoObjectTypeUndReply           IpcInfoObjectType = 15
	IpcInfoObjectTypeHostNotify         IpcInfoObjectType = 16
	IpcInfoObjectTypeHostSecurity       IpcInfoObjectType = 17
	IpcInfoObjectTypeLedger             IpcInfoObjectType = 18
	IpcInfoObjectTypeMainDevice         IpcInfoObjectType = 19
	IpcInfoObjectTypeTaskName           IpcInfoObjectType = 20
	IpcInfoObjectTypeSubsystem          IpcInfoObjectType = 21
	IpcInfoObjectTypeIODoneQueue        IpcInfoObjectType = 22
	IpcInfoObjectTypeSemaphore          IpcInfoObjectType = 23
	IpcInfoObjectTypeLockSet            IpcInfoObjectType = 24
	IpcInfoObjectTypeClock              IpcInfoObjectType = 25
	IpcInfoObjectTypeClockCtrl          IpcInfoObjectType = 26
	IpcInfoObjectTypeIokitIdent         IpcInfoObjectType = 27
	IpcInfoObjectTypeNamedEntry         IpcInfoObjectType = 28
	IpcInfoObjectTypeIokitConnect       IpcInfoObjectType = 29
	IpcInfoObjectTypeIokitObject        IpcInfoObjectType = 30
	IpcInfoObjectTypeUpl                IpcInfoObjectType = 31
	IpcInfoObjectTypeMemObjControl      IpcInfoObjectType = 32
	IpcInfoObjectTypeAuSessionport      IpcInfoObjectType = 33
	IpcInfoObjectTypeFileport           IpcInfoObjectType = 34
	IpcInfoObjectTypeLabelh             IpcInfoObjectType = 35
	IpcInfoObjectTypeTaskResume         IpcInfoObjectType = 36
	IpcInfoObjectTypeVoucher            IpcInfoObjectType = 37
	IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38
	IpcInfoObjectTypeWorkInterval       IpcInfoObjectType = 39
	IpcInfoObjectTypeUxHandler          IpcInfoObjectType = 40
	IpcInfoObjectTypeUextObject         IpcInfoObjectType = 41
	IpcInfoObjectTypeArcadeReg          IpcInfoObjectType = 42
	IpcInfoObjectTypeEventlink          IpcInfoObjectType = 43
	IpcInfoObjectTypeTaskInspect        IpcInfoObjectType = 44
	IpcInfoObjectTypeTaskRead           IpcInfoObjectType = 45
	IpcInfoObjectTypeThreadInspect      IpcInfoObjectType = 46
	IpcInfoObjectTypeThreadRead         IpcInfoObjectType = 47
	IpcInfoObjectTypeSuidCred           IpcInfoObjectType = 48
	IpcInfoObjectTypeHypervisor         IpcInfoObjectType = 49
	IpcInfoObjectTypeTaskIDToken        IpcInfoObjectType = 50
	IpcInfoObjectTypeTaskFatal          IpcInfoObjectType = 51
	IpcInfoObjectTypeKcdata             IpcInfoObjectType = 52
	IpcInfoObjectTypeExclavesResource   IpcInfoObjectType = 53
	IpcInfoObjectTypeThreadResume       IpcInfoObjectType = 54
	IpcInfoObjectTypeUnknown            IpcInfoObjectType = 4294967295
)

func (IpcInfoObjectType) String added in v0.17.0

func (e IpcInfoObjectType) String() string

String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.

type IssuerProvisioningExtensionPassEntry added in v0.17.0

type IssuerProvisioningExtensionPassEntry struct {
	objref.Handle
}

IssuerProvisioningExtensionPassEntry is an idiomatic wrapper over the Objective-C class PKIssuerProvisioningExtensionPassEntry.

IssuerProvisioningExtensionPassEntry is an abstract base — you do not construct it directly. Construct one of IssuerProvisioningExtensionPaymentPassEntry and pass it where a IssuerProvisioningExtensionPassEntry is accepted.

An object that represents an item available to add to as a Wallet pass.

func IssuerProvisioningExtensionPassEntryFromID added in v0.17.0

func IssuerProvisioningExtensionPassEntryFromID(id objc.ID) *IssuerProvisioningExtensionPassEntry

IssuerProvisioningExtensionPassEntryFromID adopts an existing Objective-C object as a IssuerProvisioningExtensionPassEntry (nil for 0), retaining it and registering a release finalizer.

func (*IssuerProvisioningExtensionPassEntry) Art added in v0.17.0

Art returns the art.

func (*IssuerProvisioningExtensionPassEntry) Description added in v0.17.0

func (ipepe *IssuerProvisioningExtensionPassEntry) Description() string

Description returns the object's -description text.

func (*IssuerProvisioningExtensionPassEntry) Identifier added in v0.17.0

func (ipepe *IssuerProvisioningExtensionPassEntry) Identifier() string

Identifier returns the identifier.

func (*IssuerProvisioningExtensionPassEntry) IsEqual added in v0.17.0

func (ipepe *IssuerProvisioningExtensionPassEntry) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*IssuerProvisioningExtensionPassEntry) IsKind added in v0.17.0

func (ipepe *IssuerProvisioningExtensionPassEntry) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*IssuerProvisioningExtensionPassEntry) String added in v0.17.0

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*IssuerProvisioningExtensionPassEntry) Title added in v0.17.0

Title returns the title.

type IssuerProvisioningExtensionPassEntryProvider added in v0.17.0

type IssuerProvisioningExtensionPassEntryProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

IssuerProvisioningExtensionPassEntryProvider is accepted wherever a PKIssuerProvisioningExtensionPassEntry (or one of its subclasses) is expected.

type IssuerProvisioningExtensionPaymentPassEntry added in v0.17.0

type IssuerProvisioningExtensionPaymentPassEntry struct {
	IssuerProvisioningExtensionPassEntry
}

IssuerProvisioningExtensionPaymentPassEntry is an idiomatic wrapper over the Objective-C class PKIssuerProvisioningExtensionPaymentPassEntry.

It embeds IssuerProvisioningExtensionPassEntry, promoting that type's methods.

An object that represents a payment card available to add as a payment pass.

func IssuerProvisioningExtensionPaymentPassEntryFromID added in v0.17.0

func IssuerProvisioningExtensionPaymentPassEntryFromID(id objc.ID) *IssuerProvisioningExtensionPaymentPassEntry

IssuerProvisioningExtensionPaymentPassEntryFromID adopts an existing Objective-C object as a IssuerProvisioningExtensionPaymentPassEntry (nil for 0), retaining it and registering a release finalizer.

func NewIssuerProvisioningExtensionPaymentPassEntryWithIdentifierTitleArtAddRequestConfiguration added in v0.17.0

func NewIssuerProvisioningExtensionPaymentPassEntryWithIdentifierTitleArtAddRequestConfiguration(identifier string, title string, art coregraphics.CGImageRef, configuration *AddPaymentPassRequestConfiguration) *IssuerProvisioningExtensionPaymentPassEntry

NewIssuerProvisioningExtensionPaymentPassEntryWithIdentifierTitleArtAddRequestConfiguration creates a new entry for a payment pass that a user adds to Wallet.

func (*IssuerProvisioningExtensionPaymentPassEntry) AddRequestConfiguration added in v0.17.0

AddRequestConfiguration returns the add request configuration.

type IssuerProvisioningExtensionStatus added in v0.17.0

type IssuerProvisioningExtensionStatus struct {
	objref.Handle
}

IssuerProvisioningExtensionStatus is an idiomatic wrapper over the Objective-C class PKIssuerProvisioningExtensionStatus.

An object that indicates whether there are any payment cards available to add as Wallet passes.

func IssuerProvisioningExtensionStatusFromID added in v0.17.0

func IssuerProvisioningExtensionStatusFromID(id objc.ID) *IssuerProvisioningExtensionStatus

IssuerProvisioningExtensionStatusFromID adopts an existing Objective-C object as a IssuerProvisioningExtensionStatus (nil for 0), retaining it and registering a release finalizer.

func NewIssuerProvisioningExtensionStatus added in v0.17.0

func NewIssuerProvisioningExtensionStatus() *IssuerProvisioningExtensionStatus

NewIssuerProvisioningExtensionStatus creates a new IssuerProvisioningExtensionStatus.

func (*IssuerProvisioningExtensionStatus) Description added in v0.17.0

func (ipes *IssuerProvisioningExtensionStatus) Description() string

Description returns the object's -description text.

func (*IssuerProvisioningExtensionStatus) IsEqual added in v0.17.0

func (ipes *IssuerProvisioningExtensionStatus) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*IssuerProvisioningExtensionStatus) IsKind added in v0.17.0

func (ipes *IssuerProvisioningExtensionStatus) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*IssuerProvisioningExtensionStatus) PassEntriesAvailable added in v0.17.0

func (ipes *IssuerProvisioningExtensionStatus) PassEntriesAvailable() bool

PassEntriesAvailable wraps the corresponding Objective-C method.

func (*IssuerProvisioningExtensionStatus) RemotePassEntriesAvailable added in v0.17.0

func (ipes *IssuerProvisioningExtensionStatus) RemotePassEntriesAvailable() bool

RemotePassEntriesAvailable wraps the corresponding Objective-C method.

func (*IssuerProvisioningExtensionStatus) RequiresAuthentication added in v0.17.0

func (ipes *IssuerProvisioningExtensionStatus) RequiresAuthentication() bool

RequiresAuthentication wraps the corresponding Objective-C method.

func (*IssuerProvisioningExtensionStatus) String added in v0.17.0

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*IssuerProvisioningExtensionStatus) WithPassEntriesAvailable added in v0.17.0

func (ipes *IssuerProvisioningExtensionStatus) WithPassEntriesAvailable(passEntriesAvailable bool) *IssuerProvisioningExtensionStatus

WithPassEntriesAvailable sets a Boolean value that indicates whether a payment card is available to add to an iPhone.

func (*IssuerProvisioningExtensionStatus) WithRemotePassEntriesAvailable added in v0.17.0

func (ipes *IssuerProvisioningExtensionStatus) WithRemotePassEntriesAvailable(remotePassEntriesAvailable bool) *IssuerProvisioningExtensionStatus

WithRemotePassEntriesAvailable sets a Boolean value that indicates whether a payment card is available to add to an Apple Watch.

func (*IssuerProvisioningExtensionStatus) WithRequiresAuthentication added in v0.17.0

func (ipes *IssuerProvisioningExtensionStatus) WithRequiresAuthentication(requiresAuthentication bool) *IssuerProvisioningExtensionStatus

WithRequiresAuthentication sets a Boolean value that indicates whether adding a card requires an authorization-user-interface extension provided by your app.

type JapanIndividualNumberCardMetadata added in v0.17.0

type JapanIndividualNumberCardMetadata struct {
	IdentityDocumentMetadata
}

JapanIndividualNumberCardMetadata is an idiomatic wrapper over the Objective-C class PKJapanIndividualNumberCardMetadata.

It embeds IdentityDocumentMetadata, promoting that type's methods.

A class that contains metadata indicating the specific product instance to provision.

func JapanIndividualNumberCardMetadataFromID added in v0.17.0

func JapanIndividualNumberCardMetadataFromID(id objc.ID) *JapanIndividualNumberCardMetadata

JapanIndividualNumberCardMetadataFromID adopts an existing Objective-C object as a JapanIndividualNumberCardMetadata (nil for 0), retaining it and registering a release finalizer.

func NewJapanIndividualNumberCardMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierCardConfigurationIdentifierPreview added in v0.17.0

func NewJapanIndividualNumberCardMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierCardConfigurationIdentifierPreview(credentialIdentifier string, sharingInstanceIdentifier string, cardConfigurationIdentifier string, preview *AddPassMetadataPreview) *JapanIndividualNumberCardMetadata

NewJapanIndividualNumberCardMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierCardConfigurationIdentifierPreview initializes the user instance for provisioning.

func NewJapanIndividualNumberCardMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierCardTemplateIdentifierPreview added in v0.17.0

func NewJapanIndividualNumberCardMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierCardTemplateIdentifierPreview(credentialIdentifier string, sharingInstanceIdentifier string, templateIdentifier string, preview *AddPassMetadataPreview) *JapanIndividualNumberCardMetadata

NewJapanIndividualNumberCardMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierCardTemplateIdentifierPreview creates the product instance to provision.

func (*JapanIndividualNumberCardMetadata) AuthenticationPassword added in v0.17.0

func (jincm *JapanIndividualNumberCardMetadata) AuthenticationPassword() string

AuthenticationPassword returns raw authentication password used to protect authentication functionality. If configured in the pass, this functionality allows users to present their identity credentials to external parties.

func (*JapanIndividualNumberCardMetadata) Preview added in v0.17.0

Preview returns preview: A preview object containing the necessary information to represent the pass during provisioning.

func (*JapanIndividualNumberCardMetadata) SigningPassword added in v0.17.0

func (jincm *JapanIndividualNumberCardMetadata) SigningPassword() string

SigningPassword returns raw signing password used to protect signing functionality. If configured in the pass, this functionality allows users to digitally sign with external parties or print officially signed documents.

func (*JapanIndividualNumberCardMetadata) WithAuthenticationPassword added in v0.17.0

func (jincm *JapanIndividualNumberCardMetadata) WithAuthenticationPassword(authenticationPassword string) *JapanIndividualNumberCardMetadata

WithAuthenticationPassword sets a string that specifies the authentication password when provisioning the pass.

func (*JapanIndividualNumberCardMetadata) WithPreview added in v0.17.0

WithPreview sets an object that contains information representing the pass for provisioning.

func (*JapanIndividualNumberCardMetadata) WithServerEnvironmentIdentifier added in v0.17.0

func (jincm *JapanIndividualNumberCardMetadata) WithServerEnvironmentIdentifier(serverEnvironmentIdentifier string) *JapanIndividualNumberCardMetadata

WithServerEnvironmentIdentifier sets an identifier that references the target server environment Apple Pay servers need to connect with to provision the pass.

func (*JapanIndividualNumberCardMetadata) WithSigningPassword added in v0.17.0

func (jincm *JapanIndividualNumberCardMetadata) WithSigningPassword(signingPassword string) *JapanIndividualNumberCardMetadata

WithSigningPassword sets a string that sets the signing password when you provision the pass.

type LabeledValue added in v0.17.0

type LabeledValue struct {
	objref.Handle
}

LabeledValue is an idiomatic wrapper over the Objective-C class PKLabeledValue.

An object that can represent a detail about a payment card or other item.

func LabeledValueFromID added in v0.17.0

func LabeledValueFromID(id objc.ID) *LabeledValue

LabeledValueFromID adopts an existing Objective-C object as a LabeledValue (nil for 0), retaining it and registering a release finalizer.

func NewLabeledValueWithLabelValue added in v0.17.0

func NewLabeledValueWithLabelValue(label string, value string) *LabeledValue

NewLabeledValueWithLabelValue instantiates a new labeled value object with the specified label and value strings.

func (*LabeledValue) Description added in v0.17.0

func (lv *LabeledValue) Description() string

Description returns the object's -description text.

func (*LabeledValue) IsEqual added in v0.17.0

func (lv *LabeledValue) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*LabeledValue) IsKind added in v0.17.0

func (lv *LabeledValue) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*LabeledValue) Label added in v0.17.0

func (lv *LabeledValue) Label() string

Label returns the label.

func (*LabeledValue) String added in v0.17.0

func (lv *LabeledValue) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*LabeledValue) Value added in v0.17.0

func (lv *LabeledValue) Value() string

Value returns the value.

type LaunchDataType added in v0.17.0

type LaunchDataType int32
const (
	LaunchDataTypeDictionary LaunchDataType = 1
	LaunchDataTypeArray      LaunchDataType = 2
	LaunchDataTypeFd         LaunchDataType = 3
	LaunchDataTypeInteger    LaunchDataType = 4
	LaunchDataTypeReal       LaunchDataType = 5
	LaunchDataTypeBool       LaunchDataType = 6
	LaunchDataTypeString     LaunchDataType = 7
	LaunchDataTypeOpaque     LaunchDataType = 8
	LaunchDataTypeErrno      LaunchDataType = 9
	LaunchDataTypeMachport   LaunchDataType = 10
)

func (LaunchDataType) String added in v0.17.0

func (e LaunchDataType) String() string

String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.

type MDLabelDomain

type MDLabelDomain int32

These constants are used to specify a domain to MDLabelCreate().

const (
	KMDLabelUserDomain  MDLabelDomain = 0
	KMDLabelLocalDomain MDLabelDomain = 1
)

func (MDLabelDomain) String

func (e MDLabelDomain) String() string

String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.

type MDQueryOptionFlags

type MDQueryOptionFlags int32
const (
	KMDQuerySynchronous        MDQueryOptionFlags = 1
	KMDQueryWantsUpdates       MDQueryOptionFlags = 4
	KMDQueryAllowFSTranslation MDQueryOptionFlags = 8
)

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int32
const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeFlags added in v0.17.0

type MachVMRangeFlags uint64

Bitmask — values may be combined with |.

const (
	MachVMRangeFlagsNone MachVMRangeFlags = 0
)

func (MachVMRangeFlags) String added in v0.17.0

func (e MachVMRangeFlags) String() string

String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeFlavor added in v0.17.0

type MachVMRangeFlavor uint32
const (
	MachVMRangeFlavorInvalid MachVMRangeFlavor = 0
	MachVMRangeFlavorV1      MachVMRangeFlavor = 1
)

func (MachVMRangeFlavor) String added in v0.17.0

func (e MachVMRangeFlavor) String() string

String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeTag added in v0.17.0

type MachVMRangeTag uint16
const (
	MachVMRangeTagDefault MachVMRangeTag = 0
	MachVMRangeTagData    MachVMRangeTag = 1
	MachVMRangeTagFixed   MachVMRangeTag = 2
)

func (MachVMRangeTag) String added in v0.17.0

func (e MachVMRangeTag) String() string

String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.

type MerchantCapability added in v0.17.0

type MerchantCapability uint64

Capabilities for processing payment. Bitmask — values may be combined with |.

const (
	// Support for the 3-D Secure protocol.
	MerchantCapability3DS MerchantCapability = 1
	// Support for the EMV protocol.
	MerchantCapabilityEMV MerchantCapability = 2
	// Support for credit cards.
	MerchantCapabilityCredit MerchantCapability = 4
	// Support for debit cards.
	MerchantCapabilityDebit MerchantCapability = 8
	// The value that indicates the merchant supports disbursing funds using Instant Funds Out.
	MerchantCapabilityInstantFundsOut MerchantCapability = 128
)

func (MerchantCapability) String added in v0.17.0

func (e MerchantCapability) String() string

String returns the MerchantCapability constant's name, or its numeric form when the value is not a known constant.

type MpoFlags added in v0.17.0

type MpoFlags uint32

Bitmask — values may be combined with |.

const (
	MpoFlagsPort                        MpoFlags = 0
	MpoFlagsServicePort                 MpoFlags = 1024
	MpoFlagsConnectionPort              MpoFlags = 2048
	MpoFlagsReplyPort                   MpoFlags = 4096
	MpoFlagsWeakReplyPort               MpoFlags = 16384
	MpoFlagsNotificationPort            MpoFlags = 17408
	MpoFlagsExceptionPort               MpoFlags = 32768
	MpoFlagsConnectionPortWithPortArray MpoFlags = 65536
)

func (MpoFlags) String added in v0.17.0

func (e MpoFlags) String() string

String returns the MpoFlags constant's name, or its numeric form when the value is not a known constant.

type NXMouseButton

type NXMouseButton int32
const (
	NX_OneButton   NXMouseButton = 0
	NX_LeftButton  NXMouseButton = 1
	NX_RightButton NXMouseButton = 2
)

func (NXMouseButton) String

func (e NXMouseButton) String() string

String returns the NXMouseButton constant's name, or its numeric form when the value is not a known constant.

type OSClockid added in v0.17.0

type OSClockid uint32
const (
	OSClockidTime OSClockid = 32
)

func (OSClockid) String added in v0.17.0

func (e OSClockid) String() string

String returns the OSClockid constant's name, or its numeric form when the value is not a known constant.

type OSUnfairLockFlags added in v0.17.0

type OSUnfairLockFlags uint32

Bitmask — values may be combined with |.

const (
	OSUnfairLockFlagsNone         OSUnfairLockFlags = 0
	OSUnfairLockFlagsAdaptiveSpin OSUnfairLockFlags = 262144
)

func (OSUnfairLockFlags) String added in v0.17.0

func (e OSUnfairLockFlags) String() string

String returns the OSUnfairLockFlags constant's name, or its numeric form when the value is not a known constant.

type PMPageToPaperMappingType

type PMPageToPaperMappingType int32
const (
	KPMPageToPaperMappingNone       PMPageToPaperMappingType = 1
	KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2
)

func (PMPageToPaperMappingType) String

func (e PMPageToPaperMappingType) String() string

String returns the PMPageToPaperMappingType constant's name, or its numeric form when the value is not a known constant.

type Pass added in v0.17.0

type Pass struct {
	objref.Handle
}

Pass is an idiomatic wrapper over the Objective-C class PKPass.

Pass is an abstract base — you do not construct it directly. Construct one of SecureElementPass and pass it where a Pass is accepted.

An object that represents a single pass.

func NewPassWithData added in v0.17.0

func NewPassWithData(data []byte) (result *Pass, err error)

NewPassWithData creates a pass using the data you provide.

func PassFromID added in v0.17.0

func PassFromID(id objc.ID) *Pass

PassFromID adopts an existing Objective-C object as a Pass (nil for 0), retaining it and registering a release finalizer.

func (*Pass) AuthenticationToken added in v0.17.0

func (p *Pass) AuthenticationToken() string

AuthenticationToken returns the authentication token.

func (*Pass) Description added in v0.17.0

func (p *Pass) Description() string

Description returns the object's -description text.

func (*Pass) DeviceName added in v0.17.0

func (p *Pass) DeviceName() string

DeviceName returns the device name.

func (*Pass) IsEqual added in v0.17.0

func (p *Pass) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Pass) IsKind added in v0.17.0

func (p *Pass) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Pass) IsRemotePass added in v0.17.0

func (p *Pass) IsRemotePass() bool

IsRemotePass reports whether the object is remote pass.

func (*Pass) LocalizedDescription added in v0.17.0

func (p *Pass) LocalizedDescription() string

LocalizedDescription returns the localized description.

func (*Pass) LocalizedName added in v0.17.0

func (p *Pass) LocalizedName() string

LocalizedName returns the localized name.

func (*Pass) LocalizedValueForFieldKey added in v0.17.0

func (p *Pass) LocalizedValueForFieldKey(key string) obj.Object

LocalizedValueForFieldKey returns the localized value for a specified field of the pass.

func (*Pass) OrganizationName added in v0.17.0

func (p *Pass) OrganizationName() string

OrganizationName returns the organization name.

func (*Pass) PassType added in v0.17.0

func (p *Pass) PassType() PassType

PassType returns the pass type.

func (*Pass) PassTypeIdentifier added in v0.17.0

func (p *Pass) PassTypeIdentifier() string

PassTypeIdentifier returns the pass type identifier.

func (*Pass) PassURL added in v0.17.0

func (p *Pass) PassURL() string

PassURL returns the pass URL.

func (*Pass) PaymentPass added in v0.17.0

func (p *Pass) PaymentPass() *PaymentPass

PaymentPass returns the payment pass.

func (*Pass) RelevantDate added in v0.17.0

func (p *Pass) RelevantDate() time.Time

RelevantDate returns the relevant date.

func (*Pass) RelevantDates added in v0.17.0

func (p *Pass) RelevantDates() []*PassRelevantDate

RelevantDates returns the relevant dates.

RelevantDates returns the collection as a Go slice.

func (*Pass) SecureElementPass added in v0.17.0

func (p *Pass) SecureElementPass() *SecureElementPass

SecureElementPass returns the secure element pass.

func (*Pass) SerialNumber added in v0.17.0

func (p *Pass) SerialNumber() string

SerialNumber returns the serial number.

func (*Pass) String added in v0.17.0

func (p *Pass) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Pass) UserInfo added in v0.17.0

func (p *Pass) UserInfo() obj.Object

UserInfo returns the user info.

func (*Pass) WebServiceURL added in v0.17.0

func (p *Pass) WebServiceURL() string

WebServiceURL returns the web service URL.

type PassKitErrorCode added in v0.17.0

type PassKitErrorCode int64

Errors that the PassKit framework uses.

const (
	UnknownError            PassKitErrorCode = -1
	InvalidDataError        PassKitErrorCode = 1
	UnsupportedVersionError PassKitErrorCode = 2
	InvalidSignature        PassKitErrorCode = 3
	NotEntitledError        PassKitErrorCode = 4
)

func (PassKitErrorCode) String added in v0.17.0

func (e PassKitErrorCode) String() string

String returns the PassKitErrorCode constant's name, or its numeric form when the value is not a known constant.

type PassLibrary added in v0.17.0

type PassLibrary struct {
	objref.Handle
}

PassLibrary is an idiomatic wrapper over the Objective-C class PKPassLibrary.

Provides an interface to the user’s library of passes.

func NewPassLibrary added in v0.17.0

func NewPassLibrary() *PassLibrary

NewPassLibrary creates a new PassLibrary.

func PassLibraryFromID added in v0.17.0

func PassLibraryFromID(id objc.ID) *PassLibrary

PassLibraryFromID adopts an existing Objective-C object as a PassLibrary (nil for 0), retaining it and registering a release finalizer.

func (*PassLibrary) ActivatePaymentPassWithActivationCodeCompletion added in v0.18.0

func (pl *PassLibrary) ActivatePaymentPassWithActivationCodeCompletion(paymentPass *PaymentPass, activationCode string, completion func(bool, unsafe.Pointer))

ActivatePaymentPassWithActivationCodeCompletion wraps the corresponding Objective-C method.

func (*PassLibrary) ActivatePaymentPassWithActivationDataCompletion added in v0.18.0

func (pl *PassLibrary) ActivatePaymentPassWithActivationDataCompletion(paymentPass *PaymentPass, activationData []byte, completion func(bool, unsafe.Pointer))

ActivatePaymentPassWithActivationDataCompletion wraps the corresponding Objective-C method.

func (*PassLibrary) ActivateSecureElementPassWithActivationDataCompletion added in v0.18.0

func (pl *PassLibrary) ActivateSecureElementPassWithActivationDataCompletion(secureElementPass *SecureElementPass, activationData []byte, completion func(bool, unsafe.Pointer))

ActivateSecureElementPassWithActivationDataCompletion activates a Secure Element pass using the specified data.

func (*PassLibrary) AddPassesWithCompletionHandler added in v0.18.0

func (pl *PassLibrary) AddPassesWithCompletionHandler(passes []*Pass, completion func(PassLibraryAddPassesStatus))

AddPassesWithCompletionHandler presents a user interface for adding multiple passes at once.

func (*PassLibrary) AuthorizationStatusForCapability added in v0.17.0

func (pl *PassLibrary) AuthorizationStatusForCapability(capability PassLibraryCapability) PassLibraryAuthorizationStatus

AuthorizationStatusForCapability wraps the corresponding Objective-C method.

func (*PassLibrary) CanAddFelicaPass added in v0.17.0

func (pl *PassLibrary) CanAddFelicaPass() bool

CanAddFelicaPass reports whether returns a Boolean value that indicates whether the library can add FeliCa™ passes.

func (*PassLibrary) CanAddPaymentPassWithPrimaryAccountIdentifier added in v0.17.0

func (pl *PassLibrary) CanAddPaymentPassWithPrimaryAccountIdentifier(primaryAccountIdentifier string) bool

CanAddPaymentPassWithPrimaryAccountIdentifier wraps the corresponding Objective-C method.

func (*PassLibrary) CanAddSecureElementPassWithPrimaryAccountIdentifier added in v0.17.0

func (pl *PassLibrary) CanAddSecureElementPassWithPrimaryAccountIdentifier(primaryAccountIdentifier string) bool

CanAddSecureElementPassWithPrimaryAccountIdentifier returns a Boolean value that indicates whether PassKit can add a Secure Element pass for the specified account.

func (*PassLibrary) ContainsPass added in v0.17.0

func (pl *PassLibrary) ContainsPass(pass *Pass) bool

ContainsPass returns a Boolean value that indicates whether the user’s pass library contains the specified pass.

func (*PassLibrary) Description added in v0.17.0

func (pl *PassLibrary) Description() string

Description returns the object's -description text.

func (*PassLibrary) EncryptedServiceProviderDataForSecureElementPassCompletion added in v0.18.0

func (pl *PassLibrary) EncryptedServiceProviderDataForSecureElementPassCompletion(secureElementPass *SecureElementPass, completion func(obj.Object, unsafe.Pointer))

EncryptedServiceProviderDataForSecureElementPassCompletion wraps the corresponding Objective-C method.

func (*PassLibrary) IsEqual added in v0.17.0

func (pl *PassLibrary) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*PassLibrary) IsKind added in v0.17.0

func (pl *PassLibrary) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*PassLibrary) IsPaymentPassActivationAvailable added in v0.17.0

func (pl *PassLibrary) IsPaymentPassActivationAvailable() bool

IsPaymentPassActivationAvailable reports whether the object is payment pass activation available.

func (*PassLibrary) IsSecureElementPassActivationAvailable added in v0.17.0

func (pl *PassLibrary) IsSecureElementPassActivationAvailable() bool

IsSecureElementPassActivationAvailable reports whether the object is secure element pass activation available.

func (*PassLibrary) OpenPaymentSetup added in v0.17.0

func (pl *PassLibrary) OpenPaymentSetup()

OpenPaymentSetup opens the user interface to set up credit cards for Apple Pay.

func (*PassLibrary) OpenPaymentSetupWithMerchantIdentifier added in v0.17.0

func (pl *PassLibrary) OpenPaymentSetupWithMerchantIdentifier(merchantIdentifier string)

OpenPaymentSetupWithMerchantIdentifier opens payment setup with merchant identifier.

func (*PassLibrary) PassWithPassTypeIdentifierSerialNumber added in v0.17.0

func (pl *PassLibrary) PassWithPassTypeIdentifierSerialNumber(identifier string, serialNumber string) *Pass

PassWithPassTypeIdentifierSerialNumber returns the pass with the specified pass type identifier and serial number.

func (*PassLibrary) Passes added in v0.17.0

func (pl *PassLibrary) Passes() []*Pass

Passes returns the passes in the user’s pass library that the app can access.

Passes returns the collection as a Go slice.

func (*PassLibrary) PassesOfType added in v0.17.0

func (pl *PassLibrary) PassesOfType(passType PassType) []*Pass

PassesOfType returns the passes of the specified pass type.

func (*PassLibrary) PassesWithReaderIdentifier added in v0.17.0

func (pl *PassLibrary) PassesWithReaderIdentifier(readerIdentifier string) []*SecureElementPass

PassesWithReaderIdentifier the order of the returned elements is unspecified.

func (*PassLibrary) PresentPaymentPass added in v0.17.0

func (pl *PassLibrary) PresentPaymentPass(pass *PaymentPass)

PresentPaymentPass presents payment pass.

func (*PassLibrary) PresentSecureElementPass added in v0.17.0

func (pl *PassLibrary) PresentSecureElementPass(pass *SecureElementPass)

PresentSecureElementPass presents a Secure Element pass.

func (*PassLibrary) RemotePaymentPasses added in v0.17.0

func (pl *PassLibrary) RemotePaymentPasses() []*PaymentPass

RemotePaymentPasses returns the remote payment passes.

RemotePaymentPasses returns the collection as a Go slice.

func (*PassLibrary) RemoteSecureElementPasses added in v0.17.0

func (pl *PassLibrary) RemoteSecureElementPasses() []*SecureElementPass

RemoteSecureElementPasses returns the remote secure element passes.

RemoteSecureElementPasses returns the collection as a Go slice.

func (*PassLibrary) RemovePass added in v0.17.0

func (pl *PassLibrary) RemovePass(pass *Pass)

RemovePass removes the pass from the user’s pass library.

func (*PassLibrary) ReplacePass added in v0.17.0

func (pl *PassLibrary) ReplacePass(pass *Pass) bool

ReplacePass replaces a pass in the user’s pass library with the specified pass.

func (*PassLibrary) RequestAuthorizationForCapabilityCompletion added in v0.18.0

func (pl *PassLibrary) RequestAuthorizationForCapabilityCompletion(capability PassLibraryCapability, completion func(PassLibraryAuthorizationStatus))

RequestAuthorizationForCapabilityCompletion requests authorization for capability completion.

func (*PassLibrary) ServiceProviderDataForSecureElementPassCompletion added in v0.17.0

func (pl *PassLibrary) ServiceProviderDataForSecureElementPassCompletion(ctx context.Context, secureElementPass *SecureElementPass) (result obj.Object, err error)

ServiceProviderDataForSecureElementPassCompletion calls a completion handler that returns the custom data for a Secure Element pass.

ServiceProviderDataForSecureElementPassCompletion blocks until the operation completes or ctx is cancelled.

func (*PassLibrary) SignDataWithSecureElementPassCompletion added in v0.18.0

func (pl *PassLibrary) SignDataWithSecureElementPassCompletion(signData []byte, secureElementPass *SecureElementPass, completion func(obj.Object, obj.Object, unsafe.Pointer))

SignDataWithSecureElementPassCompletion signs an opaque value using a cryptographic signature.

func (*PassLibrary) String added in v0.17.0

func (pl *PassLibrary) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type PassLibraryAddPassesStatus added in v0.17.0

type PassLibraryAddPassesStatus int64

Statuses that PassKit uses when it adds passes to the pass library.

const (
	// A status that occurs when the user successfully adds one or more passes.
	PassLibraryDidAddPasses PassLibraryAddPassesStatus = 0
	// A status that occurs when the app prompts the user to review the passes.
	PassLibraryShouldReviewPasses PassLibraryAddPassesStatus = 1
	// A status that occurs when the user cancels the addition of passes.
	PassLibraryDidCancelAddPasses PassLibraryAddPassesStatus = 2
)

func (PassLibraryAddPassesStatus) String added in v0.17.0

String returns the PassLibraryAddPassesStatus constant's name, or its numeric form when the value is not a known constant.

type PassLibraryAuthorizationStatus added in v0.17.0

type PassLibraryAuthorizationStatus int64
const (
	PassLibraryAuthorizationStatusNotDetermined PassLibraryAuthorizationStatus = -1
	PassLibraryAuthorizationStatusDenied        PassLibraryAuthorizationStatus = 0
	PassLibraryAuthorizationStatusAuthorized    PassLibraryAuthorizationStatus = 1
	PassLibraryAuthorizationStatusRestricted    PassLibraryAuthorizationStatus = 2
)

func (PassLibraryAuthorizationStatus) String added in v0.17.0

String returns the PassLibraryAuthorizationStatus constant's name, or its numeric form when the value is not a known constant.

type PassLibraryCapability added in v0.17.0

type PassLibraryCapability int64
const (
	PassLibraryCapabilityBackgroundAddPasses PassLibraryCapability = 0
)

func (PassLibraryCapability) String added in v0.17.0

func (e PassLibraryCapability) String() string

String returns the PassLibraryCapability constant's name, or its numeric form when the value is not a known constant.

type PassProvider added in v0.17.0

type PassProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

PassProvider is accepted wherever a PKPass (or one of its subclasses) is expected.

type PassRelevantDate added in v0.17.0

type PassRelevantDate struct {
	objref.Handle
}

PassRelevantDate is an idiomatic wrapper over the Objective-C class PKPassRelevantDate.

func NewPassRelevantDate added in v0.17.0

func NewPassRelevantDate() *PassRelevantDate

NewPassRelevantDate creates a new PassRelevantDate.

func PassRelevantDateFromID added in v0.17.0

func PassRelevantDateFromID(id objc.ID) *PassRelevantDate

PassRelevantDateFromID adopts an existing Objective-C object as a PassRelevantDate (nil for 0), retaining it and registering a release finalizer.

func (*PassRelevantDate) Date added in v0.17.0

func (prd *PassRelevantDate) Date() time.Time

Date returns the date.

func (*PassRelevantDate) Description added in v0.17.0

func (prd *PassRelevantDate) Description() string

Description returns the object's -description text.

func (*PassRelevantDate) Interval added in v0.17.0

func (prd *PassRelevantDate) Interval() *foundation.DateInterval

Interval returns the interval.

func (*PassRelevantDate) IsEqual added in v0.17.0

func (prd *PassRelevantDate) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*PassRelevantDate) IsKind added in v0.17.0

func (prd *PassRelevantDate) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*PassRelevantDate) String added in v0.17.0

func (prd *PassRelevantDate) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type PassType added in v0.17.0

type PassType uint64

Types of passes.

const (
	// A pass that represents a barcode.
	PassTypeBarcode PassType = 0
	// A pass that represents a credential that the device stores in the Secure Element.
	PassTypeSecureElement PassType = 1
	// A pass that represents a credit or debit card
	//
	// Deprecated: Use PKPassTypeSecureElement instead
	PassTypePayment PassType = 1
	// A nonspecific pass type.
	//
	// Deprecated: Use PKPassTypeSecureElement instead
	PassTypeAny PassType = 18446744073709551615
)

func (PassType) String added in v0.17.0

func (e PassType) String() string

String returns the PassType constant's name, or its numeric form when the value is not a known constant.

type Payment added in v0.17.0

type Payment struct {
	objref.Handle
}

Payment is an idiomatic wrapper over the Objective-C class PKPayment.

Represents the result of authorizing a payment request and contains payment information, encrypted in the payment token.

func NewPayment added in v0.17.0

func NewPayment() *Payment

NewPayment creates a new Payment.

func PaymentFromID added in v0.17.0

func PaymentFromID(id objc.ID) *Payment

PaymentFromID adopts an existing Objective-C object as a Payment (nil for 0), retaining it and registering a release finalizer.

func (*Payment) BillingContact added in v0.17.0

func (p *Payment) BillingContact() *Contact

BillingContact returns the billing contact.

func (*Payment) Description added in v0.17.0

func (p *Payment) Description() string

Description returns the object's -description text.

func (*Payment) IsEqual added in v0.17.0

func (p *Payment) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Payment) IsKind added in v0.17.0

func (p *Payment) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Payment) ShippingContact added in v0.17.0

func (p *Payment) ShippingContact() *Contact

ShippingContact returns the shipping contact.

func (*Payment) ShippingMethod added in v0.17.0

func (p *Payment) ShippingMethod() *ShippingMethod

ShippingMethod returns the shipping method.

func (*Payment) String added in v0.17.0

func (p *Payment) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Payment) Token added in v0.17.0

func (p *Payment) Token() *PaymentToken

Token returns the token.

type PaymentAuthorizationController added in v0.17.0

type PaymentAuthorizationController struct {
	objref.Handle
}

PaymentAuthorizationController is an idiomatic wrapper over the Objective-C class PKPaymentAuthorizationController.

An object that presents a sheet that prompts the user to authorize a payment request.

func NewPaymentAuthorizationControllerWithDisbursementRequest added in v0.17.0

func NewPaymentAuthorizationControllerWithDisbursementRequest(request *DisbursementRequest) *PaymentAuthorizationController

NewPaymentAuthorizationControllerWithDisbursementRequest creates a new payment authorization controller with the disbursement request you provide.

func NewPaymentAuthorizationControllerWithPaymentRequest added in v0.17.0

func NewPaymentAuthorizationControllerWithPaymentRequest(request *PaymentRequest) *PaymentAuthorizationController

NewPaymentAuthorizationControllerWithPaymentRequest initializes and returns a payment authorization controller.

func PaymentAuthorizationControllerFromID added in v0.17.0

func PaymentAuthorizationControllerFromID(id objc.ID) *PaymentAuthorizationController

PaymentAuthorizationControllerFromID adopts an existing Objective-C object as a PaymentAuthorizationController (nil for 0), retaining it and registering a release finalizer.

func (*PaymentAuthorizationController) Description added in v0.17.0

func (pac *PaymentAuthorizationController) Description() string

Description returns the object's -description text.

func (*PaymentAuthorizationController) DismissWithCompletion added in v0.17.0

func (pac *PaymentAuthorizationController) DismissWithCompletion(ctx context.Context) error

DismissWithCompletion dismisses the payment sheet.

DismissWithCompletion blocks until the operation completes or ctx is cancelled.

func (*PaymentAuthorizationController) IsEqual added in v0.17.0

func (pac *PaymentAuthorizationController) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*PaymentAuthorizationController) IsKind added in v0.17.0

func (pac *PaymentAuthorizationController) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*PaymentAuthorizationController) PresentWithCompletion added in v0.17.0

func (pac *PaymentAuthorizationController) PresentWithCompletion(completion func(bool))

PresentWithCompletion presents the payment sheet modally over your app.

func (*PaymentAuthorizationController) String added in v0.17.0

func (pac *PaymentAuthorizationController) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type PaymentAuthorizationControllerDelegate added in v0.17.0

type PaymentAuthorizationControllerDelegate interface {
	PaymentAuthorizationControllerDidFinish(controller *PaymentAuthorizationController)
	PresentationWindowForPaymentAuthorizationController(controller *PaymentAuthorizationController) obj.Object
}

PaymentAuthorizationControllerDelegate is the Go form of the Objective-C protocol PKPaymentAuthorizationControllerDelegate.

type PaymentAuthorizationResult added in v0.17.0

type PaymentAuthorizationResult struct {
	objref.Handle
}

PaymentAuthorizationResult is an idiomatic wrapper over the Objective-C class PKPaymentAuthorizationResult.

An object that reports the status code and errors for a payment authorization request.

func NewPaymentAuthorizationResultWithStatusErrors added in v0.17.0

func NewPaymentAuthorizationResultWithStatusErrors(status PaymentAuthorizationStatus) (result *PaymentAuthorizationResult, err error)

NewPaymentAuthorizationResultWithStatusErrors initializes the result with the status code and list of errors.

func PaymentAuthorizationResultFromID added in v0.17.0

func PaymentAuthorizationResultFromID(id objc.ID) *PaymentAuthorizationResult

PaymentAuthorizationResultFromID adopts an existing Objective-C object as a PaymentAuthorizationResult (nil for 0), retaining it and registering a release finalizer.

func (*PaymentAuthorizationResult) Description added in v0.17.0

func (par *PaymentAuthorizationResult) Description() string

Description returns the object's -description text.

func (*PaymentAuthorizationResult) Errors added in v0.17.0

func (par *PaymentAuthorizationResult) Errors() []obj.Object

Errors returns the errors.

func (*PaymentAuthorizationResult) IsEqual added in v0.17.0

func (par *PaymentAuthorizationResult) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*PaymentAuthorizationResult) IsKind added in v0.17.0

func (par *PaymentAuthorizationResult) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*PaymentAuthorizationResult) OrderDetails added in v0.17.0

func (par *PaymentAuthorizationResult) OrderDetails() *PaymentOrderDetails

OrderDetails returns the order details.

func (*PaymentAuthorizationResult) SetErrors added in v0.17.0

func (par *PaymentAuthorizationResult) SetErrors() error

SetErrors wraps the corresponding Objective-C method.

func (*PaymentAuthorizationResult) Status added in v0.17.0

Status returns the status.

func (*PaymentAuthorizationResult) String added in v0.17.0

func (par *PaymentAuthorizationResult) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*PaymentAuthorizationResult) WithOrderDetails added in v0.17.0

func (par *PaymentAuthorizationResult) WithOrderDetails(orderDetails *PaymentOrderDetails) *PaymentAuthorizationResult

WithOrderDetails sets optional metadata with order details for the placed order.

func (*PaymentAuthorizationResult) WithStatus added in v0.17.0

WithStatus sets payment authorization general status.

type PaymentAuthorizationStatus added in v0.17.0

type PaymentAuthorizationStatus int64

General success and failure status for payment authorization.

const (
	// Merchant successfully authorized the transaction, or the transaction is expected to succeed.
	PaymentAuthorizationStatusSuccess PaymentAuthorizationStatus = 0
	// Merchant failed to authorize the transaction.
	PaymentAuthorizationStatusFailure PaymentAuthorizationStatus = 1
	// Invalid or unusable billing address.
	PaymentAuthorizationStatusInvalidBillingPostalAddress PaymentAuthorizationStatus = 2
	// Invalid or unusable shipping address.
	PaymentAuthorizationStatusInvalidShippingPostalAddress PaymentAuthorizationStatus = 3
	// Invalid or incomplete shipping contact.
	PaymentAuthorizationStatusInvalidShippingContact PaymentAuthorizationStatus = 4
	// Transaction requires PIN entry.
	PaymentAuthorizationStatusPINRequired PaymentAuthorizationStatus = 5
	// Incorrect PIN entered.
	PaymentAuthorizationStatusPINIncorrect PaymentAuthorizationStatus = 6
	// PIN retry limit exceeded.
	PaymentAuthorizationStatusPINLockout PaymentAuthorizationStatus = 7
)

func (PaymentAuthorizationStatus) String added in v0.17.0

String returns the PaymentAuthorizationStatus constant's name, or its numeric form when the value is not a known constant.

type PaymentAuthorizationViewController added in v0.17.0

type PaymentAuthorizationViewController struct {
	objref.Handle
}

PaymentAuthorizationViewController is an idiomatic wrapper over the Objective-C class PKPaymentAuthorizationViewController.

An object that presents a sheet that prompts the user to authorize a payment request.

func NewPaymentAuthorizationViewControllerWithDisbursementRequest added in v0.17.0

func NewPaymentAuthorizationViewControllerWithDisbursementRequest(request *DisbursementRequest) *PaymentAuthorizationViewController

NewPaymentAuthorizationViewControllerWithDisbursementRequest initializes and returns a new payment authorization view controller with the provided disbursement request.

func NewPaymentAuthorizationViewControllerWithPaymentRequest added in v0.17.0

func NewPaymentAuthorizationViewControllerWithPaymentRequest(request *PaymentRequest) *PaymentAuthorizationViewController

NewPaymentAuthorizationViewControllerWithPaymentRequest initializes and returns a payment authorization view controller.

func PaymentAuthorizationViewControllerFromID added in v0.17.0

func PaymentAuthorizationViewControllerFromID(id objc.ID) *PaymentAuthorizationViewController

PaymentAuthorizationViewControllerFromID adopts an existing Objective-C object as a PaymentAuthorizationViewController (nil for 0), retaining it and registering a release finalizer.

func (*PaymentAuthorizationViewController) Description added in v0.17.0

func (pavc *PaymentAuthorizationViewController) Description() string

Description returns the object's -description text.

func (*PaymentAuthorizationViewController) IsEqual added in v0.17.0

func (pavc *PaymentAuthorizationViewController) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*PaymentAuthorizationViewController) IsKind added in v0.17.0

func (pavc *PaymentAuthorizationViewController) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*PaymentAuthorizationViewController) String added in v0.17.0

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*PaymentAuthorizationViewController) WithDelegate added in v0.17.0

WithDelegate sets the view controller’s delegate.

type PaymentAuthorizationViewControllerDelegate added in v0.17.0

type PaymentAuthorizationViewControllerDelegate interface {
	// PaymentAuthorizationViewControllerDidFinish wraps the corresponding Objective-C method.
	PaymentAuthorizationViewControllerDidFinish(controller *PaymentAuthorizationViewController)
}

PaymentAuthorizationViewControllerDelegate receives the callbacks of the Objective-C protocol PKPaymentAuthorizationViewControllerDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (PaymentAuthorizationViewControllerDelegate…Handler): implement the ones you need on the same value and the framework will call them too.

type PaymentAuthorizationViewControllerDelegatePaymentAuthorizationViewControllerWillAuthorizePaymentHandler added in v0.17.0

type PaymentAuthorizationViewControllerDelegatePaymentAuthorizationViewControllerWillAuthorizePaymentHandler interface {
	PaymentAuthorizationViewControllerWillAuthorizePayment(controller *PaymentAuthorizationViewController)
}

PaymentAuthorizationViewControllerDelegatePaymentAuthorizationViewControllerWillAuthorizePaymentHandler is the optional PKPaymentAuthorizationViewControllerDelegate method paymentAuthorizationViewControllerWillAuthorizePayment:. Implement it on a PaymentAuthorizationViewControllerDelegate value to receive that callback; a value without it is simply never sent one.

type PaymentButton added in v0.17.0

type PaymentButton struct {
	objref.Handle
}

PaymentButton is an idiomatic wrapper over the Objective-C class PKPaymentButton.

An object that displays a button either to trigger payments through Apple Pay or to prompt the user to set up a card.

func ButtonWithTypeStyle added in v0.17.0

func ButtonWithTypeStyle(buttonType PaymentButtonType, buttonStyle PaymentButtonStyle) *PaymentButton

ButtonWithTypeStyle creates a new payment button with the specified type and style.

func NewPaymentButtonWithPaymentButtonTypePaymentButtonStyle added in v0.17.0

func NewPaymentButtonWithPaymentButtonTypePaymentButtonStyle(type_ PaymentButtonType, style PaymentButtonStyle) *PaymentButton

NewPaymentButtonWithPaymentButtonTypePaymentButtonStyle creates a new payment button with the specified type and style.

func PaymentButtonFromID added in v0.17.0

func PaymentButtonFromID(id objc.ID) *PaymentButton

PaymentButtonFromID adopts an existing Objective-C object as a PaymentButton (nil for 0), retaining it and registering a release finalizer.

func (*PaymentButton) CornerRadius added in v0.17.0

func (pb *PaymentButton) CornerRadius() float64

CornerRadius returns the corner radius.

func (*PaymentButton) Description added in v0.17.0

func (pb *PaymentButton) Description() string

Description returns the object's -description text.

func (*PaymentButton) IsEqual added in v0.17.0

func (pb *PaymentButton) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*PaymentButton) IsKind added in v0.17.0

func (pb *PaymentButton) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*PaymentButton) String added in v0.17.0

func (pb *PaymentButton) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*PaymentButton) WithCornerRadius added in v0.17.0

func (pb *PaymentButton) WithCornerRadius(cornerRadius float64) *PaymentButton

WithCornerRadius sets the radius, in points, for the rounded corners on the button.

type PaymentButtonStyle added in v0.17.0

type PaymentButtonStyle int64

A type that indicates the available appearances for an Apple Pay button.

const (
	// A white button with black lettering.
	PaymentButtonStyleWhite PaymentButtonStyle = 0
	// A white button with black lettering and a black outline.
	PaymentButtonStyleWhiteOutline PaymentButtonStyle = 1
	// A black button with white lettering.
	PaymentButtonStyleBlack PaymentButtonStyle = 2
	// A button that automatically changes its appearance when the user switches between Light Mode and Dark Mode.
	PaymentButtonStyleAutomatic PaymentButtonStyle = 3
)

func (PaymentButtonStyle) String added in v0.17.0

func (e PaymentButtonStyle) String() string

String returns the PaymentButtonStyle constant's name, or its numeric form when the value is not a known constant.

type PaymentButtonType added in v0.17.0

type PaymentButtonType int64

The Apple Pay button types you can display to initiate Apple Pay transactions.

const (
	// An Apple Pay button with the Apple Pay logo only, useful when an additional call to action isn’t needed.
	PaymentButtonTypePlain PaymentButtonType = 0
	// An Apple Pay button useful for product purchases.
	PaymentButtonTypeBuy PaymentButtonType = 1
	// An Apple Pay button useful for prompting the user to set up a card.
	PaymentButtonTypeSetUp PaymentButtonType = 2
	// An Apple Pay button useful for paying bills or invoices.
	PaymentButtonTypeInStore PaymentButtonType = 3
	// An Apple Pay button used by approved nonprofit organization that lets people make donations.
	PaymentButtonTypeDonate PaymentButtonType = 4
	// An Apple Pay button useful for purchase experiences that include other payment buttons that start with “Check out”.
	PaymentButtonTypeCheckout PaymentButtonType = 5
	// An Apple Pay button useful for booking trips, flights, or other experiences.
	PaymentButtonTypeBook PaymentButtonType = 6
	// An Apple Pay button useful for purchasing a subscription such as a gym membership or meal-kit delivery service.
	PaymentButtonTypeSubscribe PaymentButtonType = 7
	// An Apple Pay button useful for adding money to a card, account, or payment system.
	PaymentButtonTypeReload PaymentButtonType = 8
	// An Apple Pay button useful for adding money to a card, account, or payment system.
	PaymentButtonTypeAddMoney PaymentButtonType = 9
	// An Apple Pay button useful for adding money to a card, account, or payment system.
	PaymentButtonTypeTopUp PaymentButtonType = 10
	// An Apple Pay button useful for placing orders for such as like meals or flowers.
	PaymentButtonTypeOrder PaymentButtonType = 11
	// An Apple Pay button useful for renting items such as cars or scooters.
	PaymentButtonTypeRent PaymentButtonType = 12
	// An Apple Pay button useful supporting people give money to projects, causes, organizations, and other entities.
	PaymentButtonTypeSupport PaymentButtonType = 13
	// An Apple Pay button useful to help people contribute money to projects, causes, organizations, and other entities.
	PaymentButtonTypeContribute PaymentButtonType = 14
	// An Apple Pay button useful useful for letting people tip for goods or services.
	PaymentButtonTypeTip PaymentButtonType = 15
	// An Apple Pay button useful for general purchases.
	PaymentButtonTypeContinue PaymentButtonType = 16
)

func (PaymentButtonType) String added in v0.17.0

func (e PaymentButtonType) String() string

String returns the PaymentButtonType constant's name, or its numeric form when the value is not a known constant.

type PaymentErrorCode added in v0.17.0

type PaymentErrorCode int64

An error code that you provide to indicate problems with address or contact information on an Apple Pay sheet.

const (
	PaymentUnknownError                      PaymentErrorCode = -1
	PaymentShippingContactInvalidError       PaymentErrorCode = 1
	PaymentBillingContactInvalidError        PaymentErrorCode = 2
	PaymentShippingAddressUnserviceableError PaymentErrorCode = 3
	PaymentCouponCodeInvalidError            PaymentErrorCode = 4
	PaymentCouponCodeExpiredError            PaymentErrorCode = 5
)

func (PaymentErrorCode) String added in v0.17.0

func (e PaymentErrorCode) String() string

String returns the PaymentErrorCode constant's name, or its numeric form when the value is not a known constant.

type PaymentInformationEventExtension added in v0.17.0

type PaymentInformationEventExtension struct {
	objref.Handle
}

PaymentInformationEventExtension is an idiomatic wrapper over the Objective-C class PKPaymentInformationEventExtension.

An abstract superclass for an extension to collect payment information and sign transaction data in a QR code purchase.

func NewPaymentInformationEventExtension added in v0.17.0

func NewPaymentInformationEventExtension() *PaymentInformationEventExtension

NewPaymentInformationEventExtension creates a new PaymentInformationEventExtension.

func PaymentInformationEventExtensionFromID added in v0.17.0

func PaymentInformationEventExtensionFromID(id objc.ID) *PaymentInformationEventExtension

PaymentInformationEventExtensionFromID adopts an existing Objective-C object as a PaymentInformationEventExtension (nil for 0), retaining it and registering a release finalizer.

func (*PaymentInformationEventExtension) Description added in v0.17.0

func (piee *PaymentInformationEventExtension) Description() string

Description returns the object's -description text.

func (*PaymentInformationEventExtension) IsEqual added in v0.17.0

func (piee *PaymentInformationEventExtension) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*PaymentInformationEventExtension) IsKind added in v0.17.0

func (piee *PaymentInformationEventExtension) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*PaymentInformationEventExtension) String added in v0.17.0

String returns the object's -description text, so a wrapper prints usefully under fmt.

type PaymentInformationRequestHandling added in v0.17.0

type PaymentInformationRequestHandling interface {
	HandleInformationRequestCompletion(infoRequest *BarcodeEventMetadataRequest, completion func(obj.Object))
	HandleSignatureRequestCompletion(signatureRequest *BarcodeEventSignatureRequest, completion func(obj.Object))
	HandleConfigurationRequestCompletion(configurationRequest *BarcodeEventConfigurationRequest, completion func())
}

PaymentInformationRequestHandling is the Go form of the Objective-C protocol PKPaymentInformationRequestHandling.

type PaymentMerchantSession added in v0.17.0

type PaymentMerchantSession struct {
	objref.Handle
}

PaymentMerchantSession is an idiomatic wrapper over the Objective-C class PKPaymentMerchantSession.

An object that validates the identity of a merchant for a payment request.

func NewPaymentMerchantSessionWithDictionary added in v0.17.0

func NewPaymentMerchantSessionWithDictionary(dictionary obj.Object) *PaymentMerchantSession

NewPaymentMerchantSessionWithDictionary creates an object that validates the identity of a merchant for a payment request.

func PaymentMerchantSessionFromID added in v0.17.0

func PaymentMerchantSessionFromID(id objc.ID) *PaymentMerchantSession

PaymentMerchantSessionFromID adopts an existing Objective-C object as a PaymentMerchantSession (nil for 0), retaining it and registering a release finalizer.

func (*PaymentMerchantSession) Description added in v0.17.0

func (pms *PaymentMerchantSession) Description() string

Description returns the object's -description text.

func (*PaymentMerchantSession) IsEqual added in v0.17.0

func (pms *PaymentMerchantSession) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*PaymentMerchantSession) IsKind added in v0.17.0

func (pms *PaymentMerchantSession) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*PaymentMerchantSession) String added in v0.17.0

func (pms *PaymentMerchantSession) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type PaymentMethod added in v0.17.0

type PaymentMethod struct {
	objref.Handle
}

PaymentMethod is an idiomatic wrapper over the Objective-C class PKPaymentMethod.

An object that contains information about payment methods.

func NewPaymentMethod added in v0.17.0

func NewPaymentMethod() *PaymentMethod

NewPaymentMethod creates a new PaymentMethod.

func PaymentMethodFromID added in v0.17.0

func PaymentMethodFromID(id objc.ID) *PaymentMethod

PaymentMethodFromID adopts an existing Objective-C object as a PaymentMethod (nil for 0), retaining it and registering a release finalizer.

func (*PaymentMethod) BillingAddress added in v0.17.0

func (pm *PaymentMethod) BillingAddress() obj.Object

BillingAddress returns the billing address.

func (*PaymentMethod) Description added in v0.17.0

func (pm *PaymentMethod) Description() string

Description returns the object's -description text.

func (*PaymentMethod) DisplayName added in v0.17.0

func (pm *PaymentMethod) DisplayName() string

DisplayName returns the display name.

func (*PaymentMethod) IsEqual added in v0.17.0

func (pm *PaymentMethod) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*PaymentMethod) IsKind added in v0.17.0

func (pm *PaymentMethod) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*PaymentMethod) Network added in v0.17.0

func (pm *PaymentMethod) Network() *foundation.String

Network returns the network.

func (*PaymentMethod) PaymentPass added in v0.17.0

func (pm *PaymentMethod) PaymentPass() *PaymentPass

PaymentPass returns the payment pass.

func (*PaymentMethod) SecureElementPass added in v0.17.0

func (pm *PaymentMethod) SecureElementPass() *SecureElementPass

SecureElementPass returns the secure element pass.

func (*PaymentMethod) String added in v0.17.0

func (pm *PaymentMethod) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*PaymentMethod) Type added in v0.17.0

func (pm *PaymentMethod) Type() PaymentMethodType

Type returns the type.

type PaymentMethodType added in v0.17.0

type PaymentMethodType uint64

The type of cards available in Apple Pay.

const (
	// The card’s type is unknown.
	PaymentMethodTypeUnknown PaymentMethodType = 0
	// A debit card.
	PaymentMethodTypeDebit PaymentMethodType = 1
	// A credit card.
	PaymentMethodTypeCredit PaymentMethodType = 2
	// A prepaid card.
	PaymentMethodTypePrepaid PaymentMethodType = 3
	// A store card.
	PaymentMethodTypeStore PaymentMethodType = 4
	// An electronic money card.
	PaymentMethodTypeEMoney PaymentMethodType = 5
)

func (PaymentMethodType) String added in v0.17.0

func (e PaymentMethodType) String() string

String returns the PaymentMethodType constant's name, or its numeric form when the value is not a known constant.

type PaymentOrderDetails added in v0.17.0

type PaymentOrderDetails struct {
	objref.Handle
}

PaymentOrderDetails is an idiomatic wrapper over the Objective-C class PKPaymentOrderDetails.

Optional metadata with payment order details for the placed order.

func NewPaymentOrderDetailsWithOrderTypeIdentifierOrderIdentifierWebServiceURLAuthenticationToken added in v0.17.0

func NewPaymentOrderDetailsWithOrderTypeIdentifierOrderIdentifierWebServiceURLAuthenticationToken(orderTypeIdentifier string, orderIdentifier string, webServiceURL string, authenticationToken string) *PaymentOrderDetails

NewPaymentOrderDetailsWithOrderTypeIdentifierOrderIdentifierWebServiceURLAuthenticationToken initializes a payment order details object with the identifier, web service URL, and authentication token you provide.

func PaymentOrderDetailsFromID added in v0.17.0

func PaymentOrderDetailsFromID(id objc.ID) *PaymentOrderDetails

PaymentOrderDetailsFromID adopts an existing Objective-C object as a PaymentOrderDetails (nil for 0), retaining it and registering a release finalizer.

func (*PaymentOrderDetails) AuthenticationToken added in v0.17.0

func (pod *PaymentOrderDetails) AuthenticationToken() string

AuthenticationToken returns the authentication token.

func (*PaymentOrderDetails) Description added in v0.17.0

func (pod *PaymentOrderDetails) Description() string

Description returns the object's -description text.

func (*PaymentOrderDetails) IsEqual added in v0.17.0

func (pod *PaymentOrderDetails) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*PaymentOrderDetails) IsKind added in v0.17.0

func (pod *PaymentOrderDetails) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*PaymentOrderDetails) OrderIdentifier added in v0.17.0

func (pod *PaymentOrderDetails) OrderIdentifier() string

OrderIdentifier returns the order identifier.

func (*PaymentOrderDetails) OrderTypeIdentifier added in v0.17.0

func (pod *PaymentOrderDetails) OrderTypeIdentifier() string

OrderTypeIdentifier returns the order type identifier.

func (*PaymentOrderDetails) String added in v0.17.0

func (pod *PaymentOrderDetails) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*PaymentOrderDetails) WebServiceURL added in v0.17.0

func (pod *PaymentOrderDetails) WebServiceURL() string

WebServiceURL returns the web service URL.

func (*PaymentOrderDetails) WithAuthenticationToken added in v0.17.0

func (pod *PaymentOrderDetails) WithAuthenticationToken(authenticationToken string) *PaymentOrderDetails

WithAuthenticationToken sets the authentification token supplied to your web service.

func (*PaymentOrderDetails) WithOrderIdentifier added in v0.17.0

func (pod *PaymentOrderDetails) WithOrderIdentifier(orderIdentifier string) *PaymentOrderDetails

WithOrderIdentifier sets a unique order identifier scoped to your order type identifier.

func (*PaymentOrderDetails) WithOrderTypeIdentifier added in v0.17.0

func (pod *PaymentOrderDetails) WithOrderTypeIdentifier(orderTypeIdentifier string) *PaymentOrderDetails

WithOrderTypeIdentifier sets an identifier for the order type associated with the order.

func (*PaymentOrderDetails) WithWebServiceURL added in v0.17.0

func (pod *PaymentOrderDetails) WithWebServiceURL(webServiceURL string) *PaymentOrderDetails

WithWebServiceURL sets the URL for your web service.

type PaymentPass added in v0.17.0

type PaymentPass struct {
	SecureElementPass
}

PaymentPass is an idiomatic wrapper over the Objective-C class PKPaymentPass.

It embeds SecureElementPass, promoting that type's methods.

An object that represents a provisioned payment card for in-app payments.

func NewPaymentPass added in v0.17.0

func NewPaymentPass() *PaymentPass

NewPaymentPass creates a new PaymentPass.

func PaymentPassFromID added in v0.17.0

func PaymentPassFromID(id objc.ID) *PaymentPass

PaymentPassFromID adopts an existing Objective-C object as a PaymentPass (nil for 0), retaining it and registering a release finalizer.

func (*PaymentPass) ActivationState added in v0.17.0

func (pp *PaymentPass) ActivationState() PaymentPassActivationState

ActivationState returns the activation state.

type PaymentPassActivationState deprecated added in v0.17.0

type PaymentPassActivationState uint64

Cases that indicate payment pass activation states.

Deprecated: Use PKSecureElementPassActivationState instead

const (
	// Active and ready for payment use.
	PaymentPassActivationStateActivated PaymentPassActivationState = 0
	// Not active but may be activated by the issuer.
	PaymentPassActivationStateRequiresActivation PaymentPassActivationState = 1
	// Not ready for use but activation is in progress.
	PaymentPassActivationStateActivating PaymentPassActivationState = 2
	// Not active and can’t be activated.
	PaymentPassActivationStateSuspended PaymentPassActivationState = 3
	// Not active because the issuer disabled the account associated with the device.
	PaymentPassActivationStateDeactivated PaymentPassActivationState = 4
)

func (PaymentPassActivationState) String added in v0.17.0

String returns the PaymentPassActivationState constant's name, or its numeric form when the value is not a known constant.

type PaymentRequest added in v0.17.0

type PaymentRequest struct {
	objref.Handle
}

PaymentRequest is an idiomatic wrapper over the Objective-C class PKPaymentRequest.

An object that represents a request for payment, including details about payment-processing capabilities, the payment amount, and shipping information.

func NewPaymentRequest added in v0.17.0

func NewPaymentRequest() *PaymentRequest

NewPaymentRequest creates a new PaymentRequest.

func PaymentRequestFromID added in v0.17.0

func PaymentRequestFromID(id objc.ID) *PaymentRequest

PaymentRequestFromID adopts an existing Objective-C object as a PaymentRequest (nil for 0), retaining it and registering a release finalizer.

func (*PaymentRequest) ApplePayLaterAvailability added in v0.17.0

func (pr *PaymentRequest) ApplePayLaterAvailability() ApplePayLaterAvailability

ApplePayLaterAvailability returns the apple pay later availability.

func (*PaymentRequest) ApplicationData added in v0.17.0

func (pr *PaymentRequest) ApplicationData() []byte

ApplicationData returns the application data.

func (*PaymentRequest) AttributionIdentifier added in v0.17.0

func (pr *PaymentRequest) AttributionIdentifier() string

AttributionIdentifier returns the attribution identifier.

func (*PaymentRequest) AutomaticReloadPaymentRequest added in v0.17.0

func (pr *PaymentRequest) AutomaticReloadPaymentRequest() *AutomaticReloadPaymentRequest

AutomaticReloadPaymentRequest returns the automatic reload payment request.

func (*PaymentRequest) BillingContact added in v0.17.0

func (pr *PaymentRequest) BillingContact() *Contact

BillingContact returns the billing contact.

func (*PaymentRequest) CountryCode added in v0.17.0

func (pr *PaymentRequest) CountryCode() string

CountryCode returns the country code.

func (*PaymentRequest) CouponCode added in v0.17.0

func (pr *PaymentRequest) CouponCode() string

CouponCode returns the coupon code.

func (*PaymentRequest) CurrencyCode added in v0.17.0

func (pr *PaymentRequest) CurrencyCode() string

CurrencyCode returns the currency code.

func (*PaymentRequest) DeferredPaymentRequest added in v0.17.0

func (pr *PaymentRequest) DeferredPaymentRequest() *DeferredPaymentRequest

DeferredPaymentRequest returns the deferred payment request.

func (*PaymentRequest) Description added in v0.17.0

func (pr *PaymentRequest) Description() string

Description returns the object's -description text.

func (*PaymentRequest) IsDelegatedRequest added in v0.17.0

func (pr *PaymentRequest) IsDelegatedRequest() bool

IsDelegatedRequest reports whether this payment request is being made by a delegated entity on behalf of a merchant. Set this property to true when your app is acting as an Apple Pay delegate and presenting the payment sheet on behalf of another merchant. The default value is false.

func (*PaymentRequest) IsEqual added in v0.17.0

func (pr *PaymentRequest) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*PaymentRequest) IsKind added in v0.17.0

func (pr *PaymentRequest) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*PaymentRequest) MerchantCapabilities added in v0.17.0

func (pr *PaymentRequest) MerchantCapabilities() MerchantCapability

MerchantCapabilities returns the merchant capabilities.

func (*PaymentRequest) MerchantCategoryCode added in v0.17.0

func (pr *PaymentRequest) MerchantCategoryCode() int16

MerchantCategoryCode returns the merchant category code.

func (*PaymentRequest) MerchantIdentifier added in v0.17.0

func (pr *PaymentRequest) MerchantIdentifier() string

MerchantIdentifier returns the merchant identifier.

func (*PaymentRequest) MultiTokenContexts added in v0.17.0

func (pr *PaymentRequest) MultiTokenContexts() []*PaymentTokenContext

MultiTokenContexts returns the multi token contexts.

MultiTokenContexts returns the collection as a Go slice.

func (*PaymentRequest) PaymentSummaryItems added in v0.17.0

func (pr *PaymentRequest) PaymentSummaryItems() []*PaymentSummaryItem

PaymentSummaryItems returns the payment summary items.

PaymentSummaryItems returns the collection as a Go slice.

func (*PaymentRequest) RecurringPaymentRequest added in v0.17.0

func (pr *PaymentRequest) RecurringPaymentRequest() *RecurringPaymentRequest

RecurringPaymentRequest returns the recurring payment request.

func (*PaymentRequest) RequiredBillingAddressFields added in v0.17.0

func (pr *PaymentRequest) RequiredBillingAddressFields() AddressField

RequiredBillingAddressFields returns the required billing address fields.

func (*PaymentRequest) RequiredBillingContactFields added in v0.17.0

func (pr *PaymentRequest) RequiredBillingContactFields() []*foundation.String

RequiredBillingContactFields returns the order of the returned elements is unspecified.

func (*PaymentRequest) RequiredShippingAddressFields added in v0.17.0

func (pr *PaymentRequest) RequiredShippingAddressFields() AddressField

RequiredShippingAddressFields returns the required shipping address fields.

func (*PaymentRequest) RequiredShippingContactFields added in v0.17.0

func (pr *PaymentRequest) RequiredShippingContactFields() []*foundation.String

RequiredShippingContactFields returns the order of the returned elements is unspecified.

func (*PaymentRequest) ShippingContact added in v0.17.0

func (pr *PaymentRequest) ShippingContact() *Contact

ShippingContact returns the shipping contact.

func (*PaymentRequest) ShippingContactEditingMode added in v0.17.0

func (pr *PaymentRequest) ShippingContactEditingMode() ShippingContactEditingMode

ShippingContactEditingMode returns the shipping contact editing mode.

func (*PaymentRequest) ShippingMethods added in v0.17.0

func (pr *PaymentRequest) ShippingMethods() []*ShippingMethod

ShippingMethods returns the shipping methods.

ShippingMethods returns the collection as a Go slice.

func (*PaymentRequest) ShippingType added in v0.17.0

func (pr *PaymentRequest) ShippingType() ShippingType

ShippingType returns the shipping type.

func (*PaymentRequest) String added in v0.17.0

func (pr *PaymentRequest) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*PaymentRequest) SupportedCountries added in v0.17.0

func (pr *PaymentRequest) SupportedCountries() []string

SupportedCountries returns the order of the returned elements is unspecified.

func (*PaymentRequest) SupportedNetworks added in v0.17.0

func (pr *PaymentRequest) SupportedNetworks() []obj.Object

SupportedNetworks returns the supported networks.

SupportedNetworks returns the collection as a Go slice.

func (*PaymentRequest) SupportsCouponCode added in v0.17.0

func (pr *PaymentRequest) SupportsCouponCode() bool

SupportsCouponCode wraps the corresponding Objective-C method.

func (*PaymentRequest) WithApplePayLaterAvailability added in v0.17.0

func (pr *PaymentRequest) WithApplePayLaterAvailability(applePayLaterAvailability ApplePayLaterAvailability) *PaymentRequest

WithApplePayLaterAvailability sets a value that indicates whether Apple Pay Later is available for a transaction.

func (*PaymentRequest) WithApplicationData added in v0.17.0

func (pr *PaymentRequest) WithApplicationData(applicationData []byte) *PaymentRequest

WithApplicationData sets application-specific data or state.

func (*PaymentRequest) WithAttributionIdentifier added in v0.17.0

func (pr *PaymentRequest) WithAttributionIdentifier(attributionIdentifier string) *PaymentRequest

WithAttributionIdentifier sets the attribution identifier.

func (*PaymentRequest) WithAutomaticReloadPaymentRequest added in v0.17.0

func (pr *PaymentRequest) WithAutomaticReloadPaymentRequest(automaticReloadPaymentRequest *AutomaticReloadPaymentRequest) *PaymentRequest

WithAutomaticReloadPaymentRequest sets an optional request to set up an automatic reload payment, such as a store card top-up.

func (*PaymentRequest) WithBillingContact added in v0.17.0

func (pr *PaymentRequest) WithBillingContact(billingContact *Contact) *PaymentRequest

WithBillingContact sets a prepopulated billing address.

func (*PaymentRequest) WithCountryCode added in v0.17.0

func (pr *PaymentRequest) WithCountryCode(countryCode string) *PaymentRequest

WithCountryCode sets the merchant’s two-letter ISO 3166 country code.

func (*PaymentRequest) WithCouponCode added in v0.17.0

func (pr *PaymentRequest) WithCouponCode(couponCode string) *PaymentRequest

WithCouponCode sets the initial coupon code for the payment request.

func (*PaymentRequest) WithCurrencyCode added in v0.17.0

func (pr *PaymentRequest) WithCurrencyCode(currencyCode string) *PaymentRequest

WithCurrencyCode sets the three-letter ISO 4217 currency code that determines the currency the payment request uses.

func (*PaymentRequest) WithDeferredPaymentRequest added in v0.17.0

func (pr *PaymentRequest) WithDeferredPaymentRequest(deferredPaymentRequest *DeferredPaymentRequest) *PaymentRequest

WithDeferredPaymentRequest sets a request to set up a deferred payment, such as a hotel booking or a pre-order.

func (*PaymentRequest) WithIsDelegatedRequest added in v0.17.0

func (pr *PaymentRequest) WithIsDelegatedRequest(isDelegatedRequest bool) *PaymentRequest

WithIsDelegatedRequest sets a Boolean value that indicates whether this payment request is being made by a delegated entity on behalf of a merchant.

func (*PaymentRequest) WithMerchantCapabilities added in v0.17.0

func (pr *PaymentRequest) WithMerchantCapabilities(merchantCapabilities MerchantCapability) *PaymentRequest

WithMerchantCapabilities sets a bit field of the payment-processing protocols and card types that you support.

func (*PaymentRequest) WithMerchantCategoryCode added in v0.17.0

func (pr *PaymentRequest) WithMerchantCategoryCode(merchantCategoryCode int16) *PaymentRequest

WithMerchantCategoryCode sets an optional four-digit property, in ISO 18245 format, that represents the type of goods or service the merchant provides for the transaction.

func (*PaymentRequest) WithMerchantIdentifier added in v0.17.0

func (pr *PaymentRequest) WithMerchantIdentifier(merchantIdentifier string) *PaymentRequest

WithMerchantIdentifier sets your merchant identifier.

func (*PaymentRequest) WithMultiTokenContexts added in v0.17.0

func (pr *PaymentRequest) WithMultiTokenContexts(items ...*PaymentTokenContext) *PaymentRequest

WithMultiTokenContexts sets an array of payment token contexts to request multiple payment tokens with one payment token per context.

func (*PaymentRequest) WithPaymentSummaryItems added in v0.17.0

func (pr *PaymentRequest) WithPaymentSummaryItems(items ...PaymentSummaryItemProvider) *PaymentRequest

WithPaymentSummaryItems sets an array of payment summary item objects that summarize the amount of the payment.

func (*PaymentRequest) WithRecurringPaymentRequest added in v0.17.0

func (pr *PaymentRequest) WithRecurringPaymentRequest(recurringPaymentRequest *RecurringPaymentRequest) *PaymentRequest

WithRecurringPaymentRequest sets an optional request to set up a recurring payment, typically a subscription.

func (*PaymentRequest) WithRequiredBillingAddressFields added in v0.17.0

func (pr *PaymentRequest) WithRequiredBillingAddressFields(requiredBillingAddressFields AddressField) *PaymentRequest

WithRequiredBillingAddressFields sets a bit field of billing address fields that you need in order to process the transaction.

func (*PaymentRequest) WithRequiredBillingContactFields added in v0.17.0

func (pr *PaymentRequest) WithRequiredBillingContactFields(requiredBillingContactFields []*foundation.String) *PaymentRequest

WithRequiredBillingContactFields sets a list of fields that you need for a billing contact to process the transaction.

func (*PaymentRequest) WithRequiredShippingAddressFields added in v0.17.0

func (pr *PaymentRequest) WithRequiredShippingAddressFields(requiredShippingAddressFields AddressField) *PaymentRequest

WithRequiredShippingAddressFields sets a bit field of shipping address fields that you need in order to process the transaction.

func (*PaymentRequest) WithRequiredShippingContactFields added in v0.17.0

func (pr *PaymentRequest) WithRequiredShippingContactFields(requiredShippingContactFields []*foundation.String) *PaymentRequest

WithRequiredShippingContactFields sets a list of fields that you need for a shipping contact to process the transaction.

func (*PaymentRequest) WithShippingContact added in v0.17.0

func (pr *PaymentRequest) WithShippingContact(shippingContact *Contact) *PaymentRequest

WithShippingContact sets a prepopulated shipping address.

func (*PaymentRequest) WithShippingContactEditingMode added in v0.17.0

func (pr *PaymentRequest) WithShippingContactEditingMode(shippingContactEditingMode ShippingContactEditingMode) *PaymentRequest

WithShippingContactEditingMode sets a value that indicates whether the shipping mode prevents the user from editing the shipping address.

func (*PaymentRequest) WithShippingMethods added in v0.17.0

func (pr *PaymentRequest) WithShippingMethods(items ...*ShippingMethod) *PaymentRequest

WithShippingMethods sets an array of shipping method objects that describe the supported shipping methods.

func (*PaymentRequest) WithShippingType added in v0.17.0

func (pr *PaymentRequest) WithShippingType(shippingType ShippingType) *PaymentRequest

WithShippingType sets the type of shipping the request uses.

func (*PaymentRequest) WithSupportedCountries added in v0.17.0

func (pr *PaymentRequest) WithSupportedCountries(supportedCountries []string) *PaymentRequest

WithSupportedCountries sets a list of ISO 3166 country codes to limit payments to cards from specific countries or regions.

func (*PaymentRequest) WithSupportedNetworks added in v0.17.0

func (pr *PaymentRequest) WithSupportedNetworks(items ...obj.Object) *PaymentRequest

WithSupportedNetworks sets the payment methods that you support.

func (*PaymentRequest) WithSupportsCouponCode added in v0.17.0

func (pr *PaymentRequest) WithSupportsCouponCode(supportsCouponCode bool) *PaymentRequest

WithSupportsCouponCode sets a Boolean value that determines whether the payment sheet displays the coupon code field.

type PaymentRequestCouponCodeUpdate added in v0.17.0

type PaymentRequestCouponCodeUpdate struct {
	PaymentRequestUpdate
}

PaymentRequestCouponCodeUpdate is an idiomatic wrapper over the Objective-C class PKPaymentRequestCouponCodeUpdate.

It embeds PaymentRequestUpdate, promoting that type's methods.

An object that updates the payment request after the coupon code changes.

func NewPaymentRequestCouponCodeUpdateWithErrorsPaymentSummaryItemsShippingMethods added in v0.17.0

func NewPaymentRequestCouponCodeUpdateWithErrorsPaymentSummaryItemsShippingMethods(errors_ []obj.Object, paymentSummaryItems []*PaymentSummaryItem, shippingMethods []*ShippingMethod) *PaymentRequestCouponCodeUpdate

NewPaymentRequestCouponCodeUpdateWithErrorsPaymentSummaryItemsShippingMethods creates a payment coupon update with your specified payment summary items, errors, and shipping methods.

func PaymentRequestCouponCodeUpdateFromID added in v0.17.0

func PaymentRequestCouponCodeUpdateFromID(id objc.ID) *PaymentRequestCouponCodeUpdate

PaymentRequestCouponCodeUpdateFromID adopts an existing Objective-C object as a PaymentRequestCouponCodeUpdate (nil for 0), retaining it and registering a release finalizer.

func (*PaymentRequestCouponCodeUpdate) Errors added in v0.17.0

func (prccu *PaymentRequestCouponCodeUpdate) Errors() []obj.Object

Errors returns the errors.

func (*PaymentRequestCouponCodeUpdate) SetErrors added in v0.17.0

func (prccu *PaymentRequestCouponCodeUpdate) SetErrors() error

SetErrors wraps the corresponding Objective-C method.

func (*PaymentRequestCouponCodeUpdate) WithAutomaticReloadPaymentRequest added in v0.17.0

func (prccu *PaymentRequestCouponCodeUpdate) WithAutomaticReloadPaymentRequest(automaticReloadPaymentRequest *AutomaticReloadPaymentRequest) *PaymentRequestCouponCodeUpdate

WithAutomaticReloadPaymentRequest sets the automatic reload payment request to update the payment request with.

func (*PaymentRequestCouponCodeUpdate) WithDeferredPaymentRequest added in v0.17.0

func (prccu *PaymentRequestCouponCodeUpdate) WithDeferredPaymentRequest(deferredPaymentRequest *DeferredPaymentRequest) *PaymentRequestCouponCodeUpdate

WithDeferredPaymentRequest sets the deferred payment request to update the payment request with.

func (*PaymentRequestCouponCodeUpdate) WithMultiTokenContexts added in v0.17.0

func (prccu *PaymentRequestCouponCodeUpdate) WithMultiTokenContexts(items ...*PaymentTokenContext) *PaymentRequestCouponCodeUpdate

WithMultiTokenContexts sets an optional array of payment token contexts to request multiple payment tokens with one payment token per context.

func (*PaymentRequestCouponCodeUpdate) WithPaymentSummaryItems added in v0.17.0

WithPaymentSummaryItems sets the list of payment summary items for the instance.

func (*PaymentRequestCouponCodeUpdate) WithRecurringPaymentRequest added in v0.17.0

func (prccu *PaymentRequestCouponCodeUpdate) WithRecurringPaymentRequest(recurringPaymentRequest *RecurringPaymentRequest) *PaymentRequestCouponCodeUpdate

WithRecurringPaymentRequest sets the recurring payment request to update the payment request with.

func (*PaymentRequestCouponCodeUpdate) WithShippingMethods added in v0.17.0

func (prccu *PaymentRequestCouponCodeUpdate) WithShippingMethods(items ...*ShippingMethod) *PaymentRequestCouponCodeUpdate

WithShippingMethods sets the list of shipping methods available for a payment request.

func (*PaymentRequestCouponCodeUpdate) WithStatus added in v0.17.0

WithStatus sets the status of the payment request that indicates whether authorization succeeds or fails.

type PaymentRequestMerchantSessionUpdate added in v0.17.0

type PaymentRequestMerchantSessionUpdate struct {
	objref.Handle
}

PaymentRequestMerchantSessionUpdate is an idiomatic wrapper over the Objective-C class PKPaymentRequestMerchantSessionUpdate.

An object that updates a payment request with a merchant validation.

func NewPaymentRequestMerchantSessionUpdateWithStatusMerchantSession added in v0.17.0

func NewPaymentRequestMerchantSessionUpdateWithStatusMerchantSession(status PaymentAuthorizationStatus, session *PaymentMerchantSession) *PaymentRequestMerchantSessionUpdate

NewPaymentRequestMerchantSessionUpdateWithStatusMerchantSession creates a payment method update with the specified status and merchant session.

func PaymentRequestMerchantSessionUpdateFromID added in v0.17.0

func PaymentRequestMerchantSessionUpdateFromID(id objc.ID) *PaymentRequestMerchantSessionUpdate

PaymentRequestMerchantSessionUpdateFromID adopts an existing Objective-C object as a PaymentRequestMerchantSessionUpdate (nil for 0), retaining it and registering a release finalizer.

func (*PaymentRequestMerchantSessionUpdate) Description added in v0.17.0

func (prmsu *PaymentRequestMerchantSessionUpdate) Description() string

Description returns the object's -description text.

func (*PaymentRequestMerchantSessionUpdate) IsEqual added in v0.17.0

func (prmsu *PaymentRequestMerchantSessionUpdate) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*PaymentRequestMerchantSessionUpdate) IsKind added in v0.17.0

func (prmsu *PaymentRequestMerchantSessionUpdate) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*PaymentRequestMerchantSessionUpdate) Session added in v0.17.0

Session returns the session.

func (*PaymentRequestMerchantSessionUpdate) Status added in v0.17.0

Status returns the status.

func (*PaymentRequestMerchantSessionUpdate) String added in v0.17.0

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*PaymentRequestMerchantSessionUpdate) WithSession added in v0.17.0

WithSession sets an object that validates the identity of a merchant for the payment request.

func (*PaymentRequestMerchantSessionUpdate) WithStatus added in v0.17.0

WithStatus sets the current authorization status for the payment.

type PaymentRequestPaymentMethodUpdate added in v0.17.0

type PaymentRequestPaymentMethodUpdate struct {
	PaymentRequestUpdate
}

PaymentRequestPaymentMethodUpdate is an idiomatic wrapper over the Objective-C class PKPaymentRequestPaymentMethodUpdate.

It embeds PaymentRequestUpdate, promoting that type's methods.

An object that updates the payment request after the payment method changes.

func NewPaymentRequestPaymentMethodUpdateWithErrorsPaymentSummaryItems added in v0.17.0

func NewPaymentRequestPaymentMethodUpdateWithErrorsPaymentSummaryItems(errors_ []obj.Object, paymentSummaryItems []*PaymentSummaryItem) *PaymentRequestPaymentMethodUpdate

NewPaymentRequestPaymentMethodUpdateWithErrorsPaymentSummaryItems creates a payment-method update with your specified payment summary items.

func PaymentRequestPaymentMethodUpdateFromID added in v0.17.0

func PaymentRequestPaymentMethodUpdateFromID(id objc.ID) *PaymentRequestPaymentMethodUpdate

PaymentRequestPaymentMethodUpdateFromID adopts an existing Objective-C object as a PaymentRequestPaymentMethodUpdate (nil for 0), retaining it and registering a release finalizer.

func (*PaymentRequestPaymentMethodUpdate) Errors added in v0.17.0

func (prpmu *PaymentRequestPaymentMethodUpdate) Errors() []obj.Object

Errors returns the errors.

func (*PaymentRequestPaymentMethodUpdate) SetErrors added in v0.17.0

func (prpmu *PaymentRequestPaymentMethodUpdate) SetErrors() error

SetErrors wraps the corresponding Objective-C method.

func (*PaymentRequestPaymentMethodUpdate) WithAutomaticReloadPaymentRequest added in v0.17.0

func (prpmu *PaymentRequestPaymentMethodUpdate) WithAutomaticReloadPaymentRequest(automaticReloadPaymentRequest *AutomaticReloadPaymentRequest) *PaymentRequestPaymentMethodUpdate

WithAutomaticReloadPaymentRequest sets the automatic reload payment request to update the payment request with.

func (*PaymentRequestPaymentMethodUpdate) WithDeferredPaymentRequest added in v0.17.0

func (prpmu *PaymentRequestPaymentMethodUpdate) WithDeferredPaymentRequest(deferredPaymentRequest *DeferredPaymentRequest) *PaymentRequestPaymentMethodUpdate

WithDeferredPaymentRequest sets the deferred payment request to update the payment request with.

func (*PaymentRequestPaymentMethodUpdate) WithMultiTokenContexts added in v0.17.0

WithMultiTokenContexts sets an optional array of payment token contexts to request multiple payment tokens with one payment token per context.

func (*PaymentRequestPaymentMethodUpdate) WithPaymentSummaryItems added in v0.17.0

WithPaymentSummaryItems sets the list of payment summary items for the instance.

func (*PaymentRequestPaymentMethodUpdate) WithRecurringPaymentRequest added in v0.17.0

func (prpmu *PaymentRequestPaymentMethodUpdate) WithRecurringPaymentRequest(recurringPaymentRequest *RecurringPaymentRequest) *PaymentRequestPaymentMethodUpdate

WithRecurringPaymentRequest sets the recurring payment request to update the payment request with.

func (*PaymentRequestPaymentMethodUpdate) WithShippingMethods added in v0.17.0

WithShippingMethods sets the list of shipping methods available for a payment request.

func (*PaymentRequestPaymentMethodUpdate) WithStatus added in v0.17.0

WithStatus sets the status of the payment request that indicates whether authorization succeeds or fails.

type PaymentRequestShippingContactUpdate added in v0.17.0

type PaymentRequestShippingContactUpdate struct {
	PaymentRequestUpdate
}

PaymentRequestShippingContactUpdate is an idiomatic wrapper over the Objective-C class PKPaymentRequestShippingContactUpdate.

It embeds PaymentRequestUpdate, promoting that type's methods.

An object that updates the payment request after the shipping contact information changes.

func NewPaymentRequestShippingContactUpdateWithErrorsPaymentSummaryItemsShippingMethods added in v0.17.0

func NewPaymentRequestShippingContactUpdateWithErrorsPaymentSummaryItemsShippingMethods(errors_ []obj.Object, paymentSummaryItems []*PaymentSummaryItem, shippingMethods []*ShippingMethod) *PaymentRequestShippingContactUpdate

NewPaymentRequestShippingContactUpdateWithErrorsPaymentSummaryItemsShippingMethods creates a shipping contact update with your specified payment summary items and shipping methods.

func PaymentRequestShippingContactUpdateFromID added in v0.17.0

func PaymentRequestShippingContactUpdateFromID(id objc.ID) *PaymentRequestShippingContactUpdate

PaymentRequestShippingContactUpdateFromID adopts an existing Objective-C object as a PaymentRequestShippingContactUpdate (nil for 0), retaining it and registering a release finalizer.

func (*PaymentRequestShippingContactUpdate) Errors added in v0.17.0

Errors returns the errors.

func (*PaymentRequestShippingContactUpdate) SetErrors added in v0.17.0

func (prscu *PaymentRequestShippingContactUpdate) SetErrors() error

SetErrors wraps the corresponding Objective-C method.

func (*PaymentRequestShippingContactUpdate) WithAutomaticReloadPaymentRequest added in v0.17.0

func (prscu *PaymentRequestShippingContactUpdate) WithAutomaticReloadPaymentRequest(automaticReloadPaymentRequest *AutomaticReloadPaymentRequest) *PaymentRequestShippingContactUpdate

WithAutomaticReloadPaymentRequest sets the automatic reload payment request to update the payment request with.

func (*PaymentRequestShippingContactUpdate) WithDeferredPaymentRequest added in v0.17.0

func (prscu *PaymentRequestShippingContactUpdate) WithDeferredPaymentRequest(deferredPaymentRequest *DeferredPaymentRequest) *PaymentRequestShippingContactUpdate

WithDeferredPaymentRequest sets the deferred payment request to update the payment request with.

func (*PaymentRequestShippingContactUpdate) WithMultiTokenContexts added in v0.17.0

WithMultiTokenContexts sets an optional array of payment token contexts to request multiple payment tokens with one payment token per context.

func (*PaymentRequestShippingContactUpdate) WithPaymentSummaryItems added in v0.17.0

WithPaymentSummaryItems sets the list of payment summary items for the instance.

func (*PaymentRequestShippingContactUpdate) WithRecurringPaymentRequest added in v0.17.0

func (prscu *PaymentRequestShippingContactUpdate) WithRecurringPaymentRequest(recurringPaymentRequest *RecurringPaymentRequest) *PaymentRequestShippingContactUpdate

WithRecurringPaymentRequest sets the recurring payment request to update the payment request with.

func (*PaymentRequestShippingContactUpdate) WithShippingMethods added in v0.17.0

WithShippingMethods sets the list of shipping methods available for a payment request.

func (*PaymentRequestShippingContactUpdate) WithStatus added in v0.17.0

WithStatus sets the status of the payment request that indicates whether authorization succeeds or fails.

type PaymentRequestShippingMethodUpdate added in v0.17.0

type PaymentRequestShippingMethodUpdate struct {
	PaymentRequestUpdate
}

PaymentRequestShippingMethodUpdate is an idiomatic wrapper over the Objective-C class PKPaymentRequestShippingMethodUpdate.

It embeds PaymentRequestUpdate, promoting that type's methods.

An object that updates the payment request after the shipping method changed.

func NewPaymentRequestShippingMethodUpdate added in v0.17.0

func NewPaymentRequestShippingMethodUpdate() *PaymentRequestShippingMethodUpdate

NewPaymentRequestShippingMethodUpdate creates a new PaymentRequestShippingMethodUpdate.

func PaymentRequestShippingMethodUpdateFromID added in v0.17.0

func PaymentRequestShippingMethodUpdateFromID(id objc.ID) *PaymentRequestShippingMethodUpdate

PaymentRequestShippingMethodUpdateFromID adopts an existing Objective-C object as a PaymentRequestShippingMethodUpdate (nil for 0), retaining it and registering a release finalizer.

func (*PaymentRequestShippingMethodUpdate) WithAutomaticReloadPaymentRequest added in v0.17.0

func (prsmu *PaymentRequestShippingMethodUpdate) WithAutomaticReloadPaymentRequest(automaticReloadPaymentRequest *AutomaticReloadPaymentRequest) *PaymentRequestShippingMethodUpdate

WithAutomaticReloadPaymentRequest sets the automatic reload payment request to update the payment request with.

func (*PaymentRequestShippingMethodUpdate) WithDeferredPaymentRequest added in v0.17.0

func (prsmu *PaymentRequestShippingMethodUpdate) WithDeferredPaymentRequest(deferredPaymentRequest *DeferredPaymentRequest) *PaymentRequestShippingMethodUpdate

WithDeferredPaymentRequest sets the deferred payment request to update the payment request with.

func (*PaymentRequestShippingMethodUpdate) WithMultiTokenContexts added in v0.17.0

WithMultiTokenContexts sets an optional array of payment token contexts to request multiple payment tokens with one payment token per context.

func (*PaymentRequestShippingMethodUpdate) WithPaymentSummaryItems added in v0.17.0

WithPaymentSummaryItems sets the list of payment summary items for the instance.

func (*PaymentRequestShippingMethodUpdate) WithRecurringPaymentRequest added in v0.17.0

func (prsmu *PaymentRequestShippingMethodUpdate) WithRecurringPaymentRequest(recurringPaymentRequest *RecurringPaymentRequest) *PaymentRequestShippingMethodUpdate

WithRecurringPaymentRequest sets the recurring payment request to update the payment request with.

func (*PaymentRequestShippingMethodUpdate) WithShippingMethods added in v0.17.0

WithShippingMethods sets the list of shipping methods available for a payment request.

func (*PaymentRequestShippingMethodUpdate) WithStatus added in v0.17.0

WithStatus sets the status of the payment request that indicates whether authorization succeeds or fails.

type PaymentRequestUpdate added in v0.17.0

type PaymentRequestUpdate struct {
	objref.Handle
}

PaymentRequestUpdate is an idiomatic wrapper over the Objective-C class PKPaymentRequestUpdate.

PaymentRequestUpdate is an abstract base — you do not construct it directly. Construct one of PaymentRequestCouponCodeUpdate, PaymentRequestPaymentMethodUpdate, PaymentRequestShippingContactUpdate, PaymentRequestShippingMethodUpdate and pass it where a PaymentRequestUpdate is accepted.

The base class for updating the payment request after the user makes changes on the payment sheet.

func NewPaymentRequestUpdateWithPaymentSummaryItems added in v0.17.0

func NewPaymentRequestUpdateWithPaymentSummaryItems(paymentSummaryItems []*PaymentSummaryItem) *PaymentRequestUpdate

NewPaymentRequestUpdateWithPaymentSummaryItems creates a payment request update with the specified payment summary items.

func PaymentRequestUpdateFromID added in v0.17.0

func PaymentRequestUpdateFromID(id objc.ID) *PaymentRequestUpdate

PaymentRequestUpdateFromID adopts an existing Objective-C object as a PaymentRequestUpdate (nil for 0), retaining it and registering a release finalizer.

func (*PaymentRequestUpdate) AutomaticReloadPaymentRequest added in v0.17.0

func (pru *PaymentRequestUpdate) AutomaticReloadPaymentRequest() *AutomaticReloadPaymentRequest

AutomaticReloadPaymentRequest returns the automatic reload payment request.

func (*PaymentRequestUpdate) DeferredPaymentRequest added in v0.17.0

func (pru *PaymentRequestUpdate) DeferredPaymentRequest() *DeferredPaymentRequest

DeferredPaymentRequest returns the deferred payment request.

func (*PaymentRequestUpdate) Description added in v0.17.0

func (pru *PaymentRequestUpdate) Description() string

Description returns the object's -description text.

func (*PaymentRequestUpdate) IsEqual added in v0.17.0

func (pru *PaymentRequestUpdate) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*PaymentRequestUpdate) IsKind added in v0.17.0

func (pru *PaymentRequestUpdate) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*PaymentRequestUpdate) MultiTokenContexts added in v0.17.0

func (pru *PaymentRequestUpdate) MultiTokenContexts() []*PaymentTokenContext

MultiTokenContexts returns the multi token contexts.

MultiTokenContexts returns the collection as a Go slice.

func (*PaymentRequestUpdate) PaymentSummaryItems added in v0.17.0

func (pru *PaymentRequestUpdate) PaymentSummaryItems() []*PaymentSummaryItem

PaymentSummaryItems returns the payment summary items.

PaymentSummaryItems returns the collection as a Go slice.

func (*PaymentRequestUpdate) RecurringPaymentRequest added in v0.17.0

func (pru *PaymentRequestUpdate) RecurringPaymentRequest() *RecurringPaymentRequest

RecurringPaymentRequest returns the recurring payment request.

func (*PaymentRequestUpdate) ShippingMethods added in v0.17.0

func (pru *PaymentRequestUpdate) ShippingMethods() []*ShippingMethod

ShippingMethods returns the shipping methods.

ShippingMethods returns the collection as a Go slice.

func (*PaymentRequestUpdate) Status added in v0.17.0

Status returns the status.

func (*PaymentRequestUpdate) String added in v0.17.0

func (pru *PaymentRequestUpdate) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*PaymentRequestUpdate) WithAutomaticReloadPaymentRequest added in v0.17.0

func (pru *PaymentRequestUpdate) WithAutomaticReloadPaymentRequest(automaticReloadPaymentRequest *AutomaticReloadPaymentRequest) *PaymentRequestUpdate

WithAutomaticReloadPaymentRequest sets the automatic reload payment request to update the payment request with.

func (*PaymentRequestUpdate) WithDeferredPaymentRequest added in v0.17.0

func (pru *PaymentRequestUpdate) WithDeferredPaymentRequest(deferredPaymentRequest *DeferredPaymentRequest) *PaymentRequestUpdate

WithDeferredPaymentRequest sets the deferred payment request to update the payment request with.

func (*PaymentRequestUpdate) WithMultiTokenContexts added in v0.17.0

func (pru *PaymentRequestUpdate) WithMultiTokenContexts(items ...*PaymentTokenContext) *PaymentRequestUpdate

WithMultiTokenContexts sets an optional array of payment token contexts to request multiple payment tokens with one payment token per context.

func (*PaymentRequestUpdate) WithPaymentSummaryItems added in v0.17.0

func (pru *PaymentRequestUpdate) WithPaymentSummaryItems(items ...PaymentSummaryItemProvider) *PaymentRequestUpdate

WithPaymentSummaryItems sets the list of payment summary items for the instance.

func (*PaymentRequestUpdate) WithRecurringPaymentRequest added in v0.17.0

func (pru *PaymentRequestUpdate) WithRecurringPaymentRequest(recurringPaymentRequest *RecurringPaymentRequest) *PaymentRequestUpdate

WithRecurringPaymentRequest sets the recurring payment request to update the payment request with.

func (*PaymentRequestUpdate) WithShippingMethods added in v0.17.0

func (pru *PaymentRequestUpdate) WithShippingMethods(items ...*ShippingMethod) *PaymentRequestUpdate

WithShippingMethods sets the list of shipping methods available for a payment request.

func (*PaymentRequestUpdate) WithStatus added in v0.17.0

WithStatus sets the status of the payment request that indicates whether authorization succeeds or fails.

type PaymentRequestUpdateProvider added in v0.17.0

type PaymentRequestUpdateProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

PaymentRequestUpdateProvider is accepted wherever a PKPaymentRequestUpdate (or one of its subclasses) is expected.

type PaymentSummaryItem added in v0.17.0

type PaymentSummaryItem struct {
	objref.Handle
}

PaymentSummaryItem is an idiomatic wrapper over the Objective-C class PKPaymentSummaryItem.

PaymentSummaryItem is an abstract base — you do not construct it directly. Construct one of AutomaticReloadPaymentSummaryItem, DeferredPaymentSummaryItem, DisbursementSummaryItem, InstantFundsOutFeeSummaryItem, RecurringPaymentSummaryItem, ShippingMethod and pass it where a PaymentSummaryItem is accepted.

An object that defines a summary item in a payment request, taxes, discounts, shipping, a grand total, and the like.

func PaymentSummaryItemFromID added in v0.17.0

func PaymentSummaryItemFromID(id objc.ID) *PaymentSummaryItem

PaymentSummaryItemFromID adopts an existing Objective-C object as a PaymentSummaryItem (nil for 0), retaining it and registering a release finalizer.

func SummaryItemWithLabelAmount added in v0.17.0

func SummaryItemWithLabelAmount(label string, amount obj.Object) *PaymentSummaryItem

SummaryItemWithLabelAmount initializes and returns a summary item with the given label and amount.

func SummaryItemWithLabelAmountType added in v0.17.0

func SummaryItemWithLabelAmountType(label string, amount obj.Object, type_ PaymentSummaryItemType) *PaymentSummaryItem

SummaryItemWithLabelAmountType initializes and returns a summary item with the given label, amount, and type.

func (*PaymentSummaryItem) Amount added in v0.17.0

Amount returns the amount.

func (*PaymentSummaryItem) Description added in v0.17.0

func (psi *PaymentSummaryItem) Description() string

Description returns the object's -description text.

func (*PaymentSummaryItem) IsEqual added in v0.17.0

func (psi *PaymentSummaryItem) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*PaymentSummaryItem) IsKind added in v0.17.0

func (psi *PaymentSummaryItem) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*PaymentSummaryItem) Label added in v0.17.0

func (psi *PaymentSummaryItem) Label() string

Label returns the label.

func (*PaymentSummaryItem) String added in v0.17.0

func (psi *PaymentSummaryItem) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*PaymentSummaryItem) Type added in v0.17.0

Type returns the type.

func (*PaymentSummaryItem) WithAmount added in v0.17.0

func (psi *PaymentSummaryItem) WithAmount(amount obj.Object) *PaymentSummaryItem

WithAmount sets the summary item’s amount.

func (*PaymentSummaryItem) WithLabel added in v0.17.0

func (psi *PaymentSummaryItem) WithLabel(label string) *PaymentSummaryItem

WithLabel sets a short, localized description of the item.

func (*PaymentSummaryItem) WithType added in v0.17.0

WithType sets the summary item’s type that indicates whether the amount is final.

type PaymentSummaryItemProvider added in v0.17.0

type PaymentSummaryItemProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

PaymentSummaryItemProvider is accepted wherever a PKPaymentSummaryItem (or one of its subclasses) is expected.

type PaymentSummaryItemType added in v0.17.0

type PaymentSummaryItemType uint64

Constants that describe the type of the payment summary item, such as final or pending.

const (
	// A summary item that represents a known, final cost.
	PaymentSummaryItemTypeFinal PaymentSummaryItemType = 0
	// A summary item that represents an estimated or unknown cost.
	PaymentSummaryItemTypePending PaymentSummaryItemType = 1
)

func (PaymentSummaryItemType) String added in v0.17.0

func (e PaymentSummaryItemType) String() string

String returns the PaymentSummaryItemType constant's name, or its numeric form when the value is not a known constant.

type PaymentToken added in v0.17.0

type PaymentToken struct {
	objref.Handle
}

PaymentToken is an idiomatic wrapper over the Objective-C class PKPaymentToken.

Contains the user’s payment credentials.

func NewPaymentToken added in v0.17.0

func NewPaymentToken() *PaymentToken

NewPaymentToken creates a new PaymentToken.

func PaymentTokenFromID added in v0.17.0

func PaymentTokenFromID(id objc.ID) *PaymentToken

PaymentTokenFromID adopts an existing Objective-C object as a PaymentToken (nil for 0), retaining it and registering a release finalizer.

func (*PaymentToken) Description added in v0.17.0

func (pt *PaymentToken) Description() string

Description returns the object's -description text.

func (*PaymentToken) IsEqual added in v0.17.0

func (pt *PaymentToken) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*PaymentToken) IsKind added in v0.17.0

func (pt *PaymentToken) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*PaymentToken) PaymentData added in v0.17.0

func (pt *PaymentToken) PaymentData() []byte

PaymentData returns the payment data.

func (*PaymentToken) PaymentInstrumentName added in v0.17.0

func (pt *PaymentToken) PaymentInstrumentName() string

PaymentInstrumentName returns the payment instrument name.

func (*PaymentToken) PaymentMethod added in v0.17.0

func (pt *PaymentToken) PaymentMethod() *PaymentMethod

PaymentMethod returns the payment method.

func (*PaymentToken) PaymentNetwork added in v0.17.0

func (pt *PaymentToken) PaymentNetwork() string

PaymentNetwork returns the payment network.

func (*PaymentToken) String added in v0.17.0

func (pt *PaymentToken) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*PaymentToken) TransactionIdentifier added in v0.17.0

func (pt *PaymentToken) TransactionIdentifier() string

TransactionIdentifier returns the transaction identifier.

type PaymentTokenContext added in v0.17.0

type PaymentTokenContext struct {
	objref.Handle
}

PaymentTokenContext is an idiomatic wrapper over the Objective-C class PKPaymentTokenContext.

A class that defines the context for a single payment token in a payment request for multimerchant payments.

func NewPaymentTokenContextWithMerchantIdentifierExternalIdentifierMerchantNameMerchantDomainAmount added in v0.17.0

func NewPaymentTokenContextWithMerchantIdentifierExternalIdentifierMerchantNameMerchantDomainAmount(merchantIdentifier string, externalIdentifier string, merchantName string, merchantDomain string, amount obj.Object) *PaymentTokenContext

NewPaymentTokenContextWithMerchantIdentifierExternalIdentifierMerchantNameMerchantDomainAmount create a payment token context for a single merchant.

func PaymentTokenContextFromID added in v0.17.0

func PaymentTokenContextFromID(id objc.ID) *PaymentTokenContext

PaymentTokenContextFromID adopts an existing Objective-C object as a PaymentTokenContext (nil for 0), retaining it and registering a release finalizer.

func (*PaymentTokenContext) Amount added in v0.17.0

Amount returns the amount.

func (*PaymentTokenContext) Description added in v0.17.0

func (ptc *PaymentTokenContext) Description() string

Description returns the object's -description text.

func (*PaymentTokenContext) ExternalIdentifier added in v0.17.0

func (ptc *PaymentTokenContext) ExternalIdentifier() string

ExternalIdentifier returns the external identifier.

func (*PaymentTokenContext) IsEqual added in v0.17.0

func (ptc *PaymentTokenContext) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*PaymentTokenContext) IsKind added in v0.17.0

func (ptc *PaymentTokenContext) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*PaymentTokenContext) MerchantDomain added in v0.17.0

func (ptc *PaymentTokenContext) MerchantDomain() string

MerchantDomain returns the merchant domain.

func (*PaymentTokenContext) MerchantIdentifier added in v0.17.0

func (ptc *PaymentTokenContext) MerchantIdentifier() string

MerchantIdentifier returns the merchant identifier.

func (*PaymentTokenContext) MerchantName added in v0.17.0

func (ptc *PaymentTokenContext) MerchantName() string

MerchantName returns the merchant name.

func (*PaymentTokenContext) String added in v0.17.0

func (ptc *PaymentTokenContext) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*PaymentTokenContext) WithAmount added in v0.17.0

func (ptc *PaymentTokenContext) WithAmount(amount obj.Object) *PaymentTokenContext

WithAmount sets the amount to authorize for the payment token.

func (*PaymentTokenContext) WithExternalIdentifier added in v0.17.0

func (ptc *PaymentTokenContext) WithExternalIdentifier(externalIdentifier string) *PaymentTokenContext

WithExternalIdentifier sets an external identifier for the merchant.

func (*PaymentTokenContext) WithMerchantDomain added in v0.17.0

func (ptc *PaymentTokenContext) WithMerchantDomain(merchantDomain string) *PaymentTokenContext

WithMerchantDomain sets the merchant’s top-level domain that the Apple Pay server associates with the payment token.

func (*PaymentTokenContext) WithMerchantIdentifier added in v0.17.0

func (ptc *PaymentTokenContext) WithMerchantIdentifier(merchantIdentifier string) *PaymentTokenContext

WithMerchantIdentifier sets the Apply Pay merchant identifier.

func (*PaymentTokenContext) WithMerchantName added in v0.17.0

func (ptc *PaymentTokenContext) WithMerchantName(merchantName string) *PaymentTokenContext

WithMerchantName sets the merchant’s display name that the Apple Pay server associates with the payment token.

type Perm added in v0.17.0

type Perm int32
const (
	PermReadData           Perm = 2
	PermListDirectory      Perm = 2
	PermWriteData          Perm = 4
	PermAddFile            Perm = 4
	PermExecute            Perm = 8
	PermSearch             Perm = 8
	PermDelete             Perm = 16
	PermAppendData         Perm = 32
	PermAddSubdirectory    Perm = 32
	PermDeleteChild        Perm = 64
	PermReadAttributes     Perm = 128
	PermWriteAttributes    Perm = 256
	PermReadExtattributes  Perm = 512
	PermWriteExtattributes Perm = 1024
	PermReadSecurity       Perm = 2048
	PermWriteSecurity      Perm = 4096
	PermChangeOwner        Perm = 8192
	PermSynchronize        Perm = 1048576
)

func (Perm) String added in v0.17.0

func (e Perm) String() string

String returns the Perm constant's name, or its numeric form when the value is not a known constant.

type PtrauthKey added in v0.17.0

type PtrauthKey int32
const (
	Ptrauth_key_none                     PtrauthKey = -1
	Ptrauth_key_asia                     PtrauthKey = 0
	Ptrauth_key_asib                     PtrauthKey = 1
	Ptrauth_key_asda                     PtrauthKey = 2
	Ptrauth_key_asdb                     PtrauthKey = 3
	Ptrauth_key_process_independent_code PtrauthKey = 0
	Ptrauth_key_process_dependent_code   PtrauthKey = 1
	Ptrauth_key_process_independent_data PtrauthKey = 2
	Ptrauth_key_process_dependent_data   PtrauthKey = 3
	Ptrauth_key_return_address           PtrauthKey = 1
	Ptrauth_key_frame_pointer            PtrauthKey = 3
	Ptrauth_key_function_pointer         PtrauthKey = 0
	Ptrauth_key_block_function           PtrauthKey = 0
	Ptrauth_key_cxx_vtable_pointer       PtrauthKey = 2
	Ptrauth_key_method_list_pointer      PtrauthKey = 2
	Ptrauth_key_objc_isa_pointer         PtrauthKey = 2
	Ptrauth_key_objc_super_pointer       PtrauthKey = 2
	Ptrauth_key_objc_sel_pointer         PtrauthKey = 3
	Ptrauth_key_objc_class_ro_pointer    PtrauthKey = 2
	Ptrauth_key_block_descriptor_pointer PtrauthKey = 2
	Ptrauth_key_init_fini_pointer        PtrauthKey = 0
)

func (PtrauthKey) String added in v0.17.0

func (e PtrauthKey) String() string

String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.

type QosClass added in v0.17.0

type QosClass uint32
const (
	QosClassUserInteractive QosClass = 33
	QosClassUserInitiated   QosClass = 25
	QosClassDefault         QosClass = 21
	QosClassUtility         QosClass = 17
	QosClassBackground      QosClass = 9
	QosClassUnspecified     QosClass = 0
)

func (QosClass) String added in v0.17.0

func (e QosClass) String() string

String returns the QosClass constant's name, or its numeric form when the value is not a known constant.

type RadioTechnology added in v0.17.0

type RadioTechnology uint64

Constants that describe the type of wireless radio technology that a pass uses. Bitmask — values may be combined with |.

const (
	// An identifier that indicates the pass doesn’t use radio frequency communication.
	RadioTechnologyNone RadioTechnology = 0
	// An identifier that indicates the near field communication (NFC) radio frequency communication technology.
	RadioTechnologyNFC RadioTechnology = 1
	// An identifier that indicates the Bluetooth radio frequency communication technology.
	RadioTechnologyBluetooth RadioTechnology = 2
)

func (RadioTechnology) String added in v0.17.0

func (e RadioTechnology) String() string

String returns the RadioTechnology constant's name, or its numeric form when the value is not a known constant.

type RecurringPaymentRequest added in v0.17.0

type RecurringPaymentRequest struct {
	objref.Handle
}

RecurringPaymentRequest is an idiomatic wrapper over the Objective-C class PKRecurringPaymentRequest.

A class that represents a request to set up a recurring payment, typically a subscription.

func NewRecurringPaymentRequestWithPaymentDescriptionRegularBillingManagementURL added in v0.17.0

func NewRecurringPaymentRequestWithPaymentDescriptionRegularBillingManagementURL(paymentDescription string, regularBilling *RecurringPaymentSummaryItem, managementURL string) *RecurringPaymentRequest

NewRecurringPaymentRequestWithPaymentDescriptionRegularBillingManagementURL create a recurring payment object with a description, regular billing information, and a management URL.

func RecurringPaymentRequestFromID added in v0.17.0

func RecurringPaymentRequestFromID(id objc.ID) *RecurringPaymentRequest

RecurringPaymentRequestFromID adopts an existing Objective-C object as a RecurringPaymentRequest (nil for 0), retaining it and registering a release finalizer.

func (*RecurringPaymentRequest) BillingAgreement added in v0.17.0

func (rpr *RecurringPaymentRequest) BillingAgreement() string

BillingAgreement returns the billing agreement.

func (*RecurringPaymentRequest) Description added in v0.17.0

func (rpr *RecurringPaymentRequest) Description() string

Description returns the object's -description text.

func (*RecurringPaymentRequest) IsEqual added in v0.17.0

func (rpr *RecurringPaymentRequest) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*RecurringPaymentRequest) IsKind added in v0.17.0

func (rpr *RecurringPaymentRequest) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*RecurringPaymentRequest) ManagementURL added in v0.17.0

func (rpr *RecurringPaymentRequest) ManagementURL() string

ManagementURL returns the management URL.

func (*RecurringPaymentRequest) PaymentDescription added in v0.17.0

func (rpr *RecurringPaymentRequest) PaymentDescription() string

PaymentDescription returns the payment description.

func (*RecurringPaymentRequest) RegularBilling added in v0.17.0

RegularBilling returns the regular billing.

func (*RecurringPaymentRequest) String added in v0.17.0

func (rpr *RecurringPaymentRequest) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*RecurringPaymentRequest) TokenNotificationURL added in v0.17.0

func (rpr *RecurringPaymentRequest) TokenNotificationURL() string

TokenNotificationURL returns the token notification URL.

func (*RecurringPaymentRequest) TrialBilling added in v0.17.0

TrialBilling returns the trial billing.

func (*RecurringPaymentRequest) WithBillingAgreement added in v0.17.0

func (rpr *RecurringPaymentRequest) WithBillingAgreement(billingAgreement string) *RecurringPaymentRequest

WithBillingAgreement sets a localized billing agreement that the payment sheet displays to the user before the user authorizes the payment.

func (*RecurringPaymentRequest) WithManagementURL added in v0.17.0

func (rpr *RecurringPaymentRequest) WithManagementURL(managementURL string) *RecurringPaymentRequest

WithManagementURL sets a URL to a web page where the user can update or delete the payment method for the recurring payment.

func (*RecurringPaymentRequest) WithPaymentDescription added in v0.17.0

func (rpr *RecurringPaymentRequest) WithPaymentDescription(paymentDescription string) *RecurringPaymentRequest

WithPaymentDescription sets a description that you provide of the recurring payment and that Apple Pay displays to the user in the payment sheet.

func (*RecurringPaymentRequest) WithRegularBilling added in v0.17.0

func (rpr *RecurringPaymentRequest) WithRegularBilling(regularBilling *RecurringPaymentSummaryItem) *RecurringPaymentRequest

WithRegularBilling sets the regular billing cycle for the recurring payment, including start and end dates, an interval, and an interval count.

func (*RecurringPaymentRequest) WithTokenNotificationURL added in v0.17.0

func (rpr *RecurringPaymentRequest) WithTokenNotificationURL(tokenNotificationURL string) *RecurringPaymentRequest

WithTokenNotificationURL sets a URL you provide to receive life-cycle notifications from the Apple Pay servers about the Apple Pay merchant token for the recurring payment.

func (*RecurringPaymentRequest) WithTrialBilling added in v0.17.0

func (rpr *RecurringPaymentRequest) WithTrialBilling(trialBilling *RecurringPaymentSummaryItem) *RecurringPaymentRequest

WithTrialBilling sets the trial billing cycle for the recurring payment.

type RecurringPaymentSummaryItem added in v0.17.0

type RecurringPaymentSummaryItem struct {
	PaymentSummaryItem
}

RecurringPaymentSummaryItem is an idiomatic wrapper over the Objective-C class PKRecurringPaymentSummaryItem.

It embeds PaymentSummaryItem, promoting that type's methods.

An object that defines a summary item for a payment that occurs repeatedly at a specified interval, such as a subscription.

func NewRecurringPaymentSummaryItem added in v0.17.0

func NewRecurringPaymentSummaryItem() *RecurringPaymentSummaryItem

NewRecurringPaymentSummaryItem creates a new RecurringPaymentSummaryItem.

func RecurringPaymentSummaryItemFromID added in v0.17.0

func RecurringPaymentSummaryItemFromID(id objc.ID) *RecurringPaymentSummaryItem

RecurringPaymentSummaryItemFromID adopts an existing Objective-C object as a RecurringPaymentSummaryItem (nil for 0), retaining it and registering a release finalizer.

func (*RecurringPaymentSummaryItem) EndDate added in v0.17.0

func (rpsi *RecurringPaymentSummaryItem) EndDate() time.Time

EndDate returns the end date.

func (*RecurringPaymentSummaryItem) IntervalCount added in v0.17.0

func (rpsi *RecurringPaymentSummaryItem) IntervalCount() int

IntervalCount returns the interval count.

func (*RecurringPaymentSummaryItem) StartDate added in v0.17.0

func (rpsi *RecurringPaymentSummaryItem) StartDate() time.Time

StartDate returns the start date.

func (*RecurringPaymentSummaryItem) WithAmount added in v0.17.0

WithAmount sets the summary item’s amount.

func (*RecurringPaymentSummaryItem) WithEndDate added in v0.17.0

WithEndDate sets the date of the final payment.

func (*RecurringPaymentSummaryItem) WithIntervalCount added in v0.17.0

func (rpsi *RecurringPaymentSummaryItem) WithIntervalCount(intervalCount int) *RecurringPaymentSummaryItem

WithIntervalCount sets the number of interval units that make up the total payment interval.

func (*RecurringPaymentSummaryItem) WithLabel added in v0.17.0

WithLabel sets a short, localized description of the item.

func (*RecurringPaymentSummaryItem) WithStartDate added in v0.17.0

func (rpsi *RecurringPaymentSummaryItem) WithStartDate(startDate time.Time) *RecurringPaymentSummaryItem

WithStartDate sets the date of the first payment.

func (*RecurringPaymentSummaryItem) WithType added in v0.17.0

WithType sets the summary item’s type that indicates whether the amount is final.

type SecureElementPass added in v0.17.0

type SecureElementPass struct {
	Pass
}

SecureElementPass is an idiomatic wrapper over the Objective-C class PKSecureElementPass.

SecureElementPass is an abstract base — you do not construct it directly. Construct one of PaymentPass and pass it where a SecureElementPass is accepted.

A pass with a credential that the device stores in a certified payment information chip.

func SecureElementPassFromID added in v0.17.0

func SecureElementPassFromID(id objc.ID) *SecureElementPass

SecureElementPassFromID adopts an existing Objective-C object as a SecureElementPass (nil for 0), retaining it and registering a release finalizer.

func (*SecureElementPass) DeviceAccountIdentifier added in v0.17.0

func (sep *SecureElementPass) DeviceAccountIdentifier() string

DeviceAccountIdentifier returns the device account identifier.

func (*SecureElementPass) DeviceAccountNumberSuffix added in v0.17.0

func (sep *SecureElementPass) DeviceAccountNumberSuffix() string

DeviceAccountNumberSuffix returns the device account number suffix.

func (*SecureElementPass) DevicePassIdentifier added in v0.17.0

func (sep *SecureElementPass) DevicePassIdentifier() string

DevicePassIdentifier returns the device pass identifier.

func (*SecureElementPass) PairedTerminalIdentifier added in v0.17.0

func (sep *SecureElementPass) PairedTerminalIdentifier() string

PairedTerminalIdentifier returns the paired terminal identifier.

func (*SecureElementPass) PassActivationState added in v0.17.0

func (sep *SecureElementPass) PassActivationState() SecureElementPassActivationState

PassActivationState returns the pass activation state.

func (*SecureElementPass) PrimaryAccountIdentifier added in v0.17.0

func (sep *SecureElementPass) PrimaryAccountIdentifier() string

PrimaryAccountIdentifier returns the primary account identifier.

func (*SecureElementPass) PrimaryAccountNumberSuffix added in v0.17.0

func (sep *SecureElementPass) PrimaryAccountNumberSuffix() string

PrimaryAccountNumberSuffix returns the primary account number suffix.

type SecureElementPassActivationState added in v0.17.0

type SecureElementPassActivationState int64

The activation states of a Secure Element pass.

const (
	SecureElementPassActivationStateActivated          SecureElementPassActivationState = 0
	SecureElementPassActivationStateRequiresActivation SecureElementPassActivationState = 1
	SecureElementPassActivationStateActivating         SecureElementPassActivationState = 2
	SecureElementPassActivationStateSuspended          SecureElementPassActivationState = 3
	SecureElementPassActivationStateDeactivated        SecureElementPassActivationState = 4
)

func (SecureElementPassActivationState) String added in v0.17.0

String returns the SecureElementPassActivationState constant's name, or its numeric form when the value is not a known constant.

type SecureElementPassProvider added in v0.17.0

type SecureElementPassProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

SecureElementPassProvider is accepted wherever a PKSecureElementPass (or one of its subclasses) is expected.

type ShareSecureElementPassErrorCode added in v0.17.0

type ShareSecureElementPassErrorCode int64
const (
	ShareSecureElementPassUnknownError ShareSecureElementPassErrorCode = 0
	ShareSecureElementPassSetupError   ShareSecureElementPassErrorCode = 1
)

func (ShareSecureElementPassErrorCode) String added in v0.17.0

String returns the ShareSecureElementPassErrorCode constant's name, or its numeric form when the value is not a known constant.

type ShareablePassMetadata added in v0.17.0

type ShareablePassMetadata struct {
	objref.Handle
}

ShareablePassMetadata is an idiomatic wrapper over the Objective-C class PKShareablePassMetadata.

Information that you use to configure the sharing sheet for a pass.

func NewShareablePassMetadataWithProvisioningCredentialIdentifierCardConfigurationIdentifierSharingInstanceIdentifierPassThumbnailImageOwnerDisplayNameLocalizedDescription added in v0.17.0

func NewShareablePassMetadataWithProvisioningCredentialIdentifierCardConfigurationIdentifierSharingInstanceIdentifierPassThumbnailImageOwnerDisplayNameLocalizedDescription(credentialIdentifier string, cardConfigurationIdentifier string, sharingInstanceIdentifier string, passThumbnailImage coregraphics.CGImageRef, ownerDisplayName string, localizedDescription string) *ShareablePassMetadata

NewShareablePassMetadataWithProvisioningCredentialIdentifierCardConfigurationIdentifierSharingInstanceIdentifierPassThumbnailImageOwnerDisplayNameLocalizedDescription creates a shareable pass metadata object.

func NewShareablePassMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierCardConfigurationIdentifierPreview added in v0.17.0

func NewShareablePassMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierCardConfigurationIdentifierPreview(credentialIdentifier string, sharingInstanceIdentifier string, templateIdentifier string, preview *ShareablePassMetadataPreview) *ShareablePassMetadata

NewShareablePassMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierCardConfigurationIdentifierPreview creates a new ShareablePassMetadata.

func NewShareablePassMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierCardTemplateIdentifierPreview added in v0.17.0

func NewShareablePassMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierCardTemplateIdentifierPreview(credentialIdentifier string, sharingInstanceIdentifier string, templateIdentifier string, preview *ShareablePassMetadataPreview) *ShareablePassMetadata

NewShareablePassMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierCardTemplateIdentifierPreview creates a new ShareablePassMetadata.

func NewShareablePassMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierPassThumbnailImageOwnerDisplayNameLocalizedDescriptionAccountHashTemplateIdentifierRelyingPartyIdentifierRequiresUnifiedAccessCapableDevice added in v0.17.0

func NewShareablePassMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierPassThumbnailImageOwnerDisplayNameLocalizedDescriptionAccountHashTemplateIdentifierRelyingPartyIdentifierRequiresUnifiedAccessCapableDevice(credentialIdentifier string, sharingInstanceIdentifier string, passThumbnailImage coregraphics.CGImageRef, ownerDisplayName string, localizedDescription string, accountHash string, templateIdentifier string, relyingPartyIdentifier string, requiresUnifiedAccessCapableDevice bool) *ShareablePassMetadata

NewShareablePassMetadataWithProvisioningCredentialIdentifierSharingInstanceIdentifierPassThumbnailImageOwnerDisplayNameLocalizedDescriptionAccountHashTemplateIdentifierRelyingPartyIdentifierRequiresUnifiedAccessCapableDevice creates a new ShareablePassMetadata.

func ShareablePassMetadataFromID added in v0.17.0

func ShareablePassMetadataFromID(id objc.ID) *ShareablePassMetadata

ShareablePassMetadataFromID adopts an existing Objective-C object as a ShareablePassMetadata (nil for 0), retaining it and registering a release finalizer.

func (*ShareablePassMetadata) AccountHash added in v0.17.0

func (spm *ShareablePassMetadata) AccountHash() string

AccountHash returns the account hash.

func (*ShareablePassMetadata) CardConfigurationIdentifier added in v0.17.0

func (spm *ShareablePassMetadata) CardConfigurationIdentifier() string

CardConfigurationIdentifier returns the card configuration identifier.

func (*ShareablePassMetadata) CardTemplateIdentifier added in v0.17.0

func (spm *ShareablePassMetadata) CardTemplateIdentifier() string

CardTemplateIdentifier returns the card template identifier.

func (*ShareablePassMetadata) CredentialIdentifier added in v0.17.0

func (spm *ShareablePassMetadata) CredentialIdentifier() string

CredentialIdentifier returns the credential identifier.

func (*ShareablePassMetadata) Description added in v0.17.0

func (spm *ShareablePassMetadata) Description() string

Description returns the object's -description text.

func (*ShareablePassMetadata) IsEqual added in v0.17.0

func (spm *ShareablePassMetadata) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*ShareablePassMetadata) IsKind added in v0.17.0

func (spm *ShareablePassMetadata) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*ShareablePassMetadata) LocalizedDescription added in v0.17.0

func (spm *ShareablePassMetadata) LocalizedDescription() string

LocalizedDescription returns the localized description.

func (*ShareablePassMetadata) OwnerDisplayName added in v0.17.0

func (spm *ShareablePassMetadata) OwnerDisplayName() string

OwnerDisplayName returns the owner display name.

func (*ShareablePassMetadata) PassThumbnailImage added in v0.17.0

func (spm *ShareablePassMetadata) PassThumbnailImage() coregraphics.CGImageRef

PassThumbnailImage returns the pass thumbnail image.

func (*ShareablePassMetadata) Preview added in v0.17.0

Preview returns the preview.

func (*ShareablePassMetadata) RelyingPartyIdentifier added in v0.17.0

func (spm *ShareablePassMetadata) RelyingPartyIdentifier() string

RelyingPartyIdentifier returns the relying party identifier.

func (*ShareablePassMetadata) RequiresUnifiedAccessCapableDevice added in v0.17.0

func (spm *ShareablePassMetadata) RequiresUnifiedAccessCapableDevice() bool

RequiresUnifiedAccessCapableDevice wraps the corresponding Objective-C method.

func (*ShareablePassMetadata) ServerEnvironmentIdentifier added in v0.17.0

func (spm *ShareablePassMetadata) ServerEnvironmentIdentifier() string

ServerEnvironmentIdentifier returns the server environment identifier.

func (*ShareablePassMetadata) SharingInstanceIdentifier added in v0.17.0

func (spm *ShareablePassMetadata) SharingInstanceIdentifier() string

SharingInstanceIdentifier returns the sharing instance identifier.

func (*ShareablePassMetadata) String added in v0.17.0

func (spm *ShareablePassMetadata) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*ShareablePassMetadata) TemplateIdentifier added in v0.18.0

func (spm *ShareablePassMetadata) TemplateIdentifier() unsafe.Pointer

TemplateIdentifier returns the template identifier.

func (*ShareablePassMetadata) WithAccountHash added in v0.17.0

func (spm *ShareablePassMetadata) WithAccountHash(accountHash string) *ShareablePassMetadata

WithAccountHash sets an Apple Push Notification push token.

func (*ShareablePassMetadata) WithRelyingPartyIdentifier added in v0.17.0

func (spm *ShareablePassMetadata) WithRelyingPartyIdentifier(relyingPartyIdentifier string) *ShareablePassMetadata

WithRelyingPartyIdentifier sets an identifier used in push notifications.

func (*ShareablePassMetadata) WithRequiresUnifiedAccessCapableDevice added in v0.17.0

func (spm *ShareablePassMetadata) WithRequiresUnifiedAccessCapableDevice(requiresUnifiedAccessCapableDevice bool) *ShareablePassMetadata

WithRequiresUnifiedAccessCapableDevice sets the requires unified access capable device.

func (*ShareablePassMetadata) WithServerEnvironmentIdentifier added in v0.17.0

func (spm *ShareablePassMetadata) WithServerEnvironmentIdentifier(serverEnvironmentIdentifier string) *ShareablePassMetadata

WithServerEnvironmentIdentifier sets the server environment identifier.

type ShareablePassMetadataPreview added in v0.17.0

type ShareablePassMetadataPreview struct {
	AddPassMetadataPreview
}

ShareablePassMetadataPreview is an idiomatic wrapper over the Objective-C class PKShareablePassMetadataPreview.

It embeds AddPassMetadataPreview, promoting that type's methods.

func NewShareablePassMetadataPreviewWithTemplateIdentifier added in v0.17.0

func NewShareablePassMetadataPreviewWithTemplateIdentifier(templateIdentifier string) *ShareablePassMetadataPreview

NewShareablePassMetadataPreviewWithTemplateIdentifier creates a new ShareablePassMetadataPreview.

func PreviewWithTemplateIdentifier added in v0.17.0

func PreviewWithTemplateIdentifier(templateIdentifier string) *ShareablePassMetadataPreview

PreviewWithTemplateIdentifier wraps the corresponding Objective-C method.

func ShareablePassMetadataPreviewFromID added in v0.17.0

func ShareablePassMetadataPreviewFromID(id objc.ID) *ShareablePassMetadataPreview

ShareablePassMetadataPreviewFromID adopts an existing Objective-C object as a ShareablePassMetadataPreview (nil for 0), retaining it and registering a release finalizer.

func (*ShareablePassMetadataPreview) OwnerDisplayName added in v0.17.0

func (spmp *ShareablePassMetadataPreview) OwnerDisplayName() string

OwnerDisplayName returns the owner display name.

func (*ShareablePassMetadataPreview) ProvisioningTemplateIdentifier added in v0.17.0

func (spmp *ShareablePassMetadataPreview) ProvisioningTemplateIdentifier() string

ProvisioningTemplateIdentifier returns the provisioning template identifier.

func (*ShareablePassMetadataPreview) WithOwnerDisplayName added in v0.17.0

func (spmp *ShareablePassMetadataPreview) WithOwnerDisplayName(ownerDisplayName string) *ShareablePassMetadataPreview

WithOwnerDisplayName sets the owner display name.

type ShippingContactEditingMode added in v0.17.0

type ShippingContactEditingMode uint64

Constants that indicate whether the shipping mode prevents the user from editing fields of the shipping address.

const (
	// The value that indicates Apple Pay Later is available.
	ShippingContactEditingModeAvailable ShippingContactEditingMode = 1
	// The shipping contact on the payment sheet represents a pickup address and isn’t editable by the user.
	ShippingContactEditingModeStorePickup ShippingContactEditingMode = 2
	// All fields of the shipping contact on the payment sheet are editable by the user.
	ShippingContactEditingModeEnabled ShippingContactEditingMode = 1
)

func (ShippingContactEditingMode) String added in v0.17.0

String returns the ShippingContactEditingMode constant's name, or its numeric form when the value is not a known constant.

type ShippingMethod added in v0.17.0

type ShippingMethod struct {
	PaymentSummaryItem
}

ShippingMethod is an idiomatic wrapper over the Objective-C class PKShippingMethod.

It embeds PaymentSummaryItem, promoting that type's methods.

An object that defines a shipping method for delivering physical goods.

func NewShippingMethod added in v0.17.0

func NewShippingMethod() *ShippingMethod

NewShippingMethod creates a new ShippingMethod.

func ShippingMethodFromID added in v0.17.0

func ShippingMethodFromID(id objc.ID) *ShippingMethod

ShippingMethodFromID adopts an existing Objective-C object as a ShippingMethod (nil for 0), retaining it and registering a release finalizer.

func (*ShippingMethod) DateComponentsRange added in v0.17.0

func (sm *ShippingMethod) DateComponentsRange() *DateComponentsRange

DateComponentsRange returns the date components range.

func (*ShippingMethod) Detail added in v0.17.0

func (sm *ShippingMethod) Detail() string

Detail returns the detail.

func (*ShippingMethod) Identifier added in v0.17.0

func (sm *ShippingMethod) Identifier() string

Identifier returns the identifier.

func (*ShippingMethod) WithAmount added in v0.17.0

func (sm *ShippingMethod) WithAmount(amount obj.Object) *ShippingMethod

WithAmount sets the summary item’s amount.

func (*ShippingMethod) WithDateComponentsRange added in v0.17.0

func (sm *ShippingMethod) WithDateComponentsRange(dateComponentsRange *DateComponentsRange) *ShippingMethod

WithDateComponentsRange sets an expected range of delivery or shipping dates for a package, or the time range when an item is available for pickup.

func (*ShippingMethod) WithDetail added in v0.17.0

func (sm *ShippingMethod) WithDetail(detail string) *ShippingMethod

WithDetail sets a user-readable description of the shipping method.

func (*ShippingMethod) WithIdentifier added in v0.17.0

func (sm *ShippingMethod) WithIdentifier(identifier string) *ShippingMethod

WithIdentifier sets a unique identifier for the shipping method, used by the app.

func (*ShippingMethod) WithLabel added in v0.17.0

func (sm *ShippingMethod) WithLabel(label string) *ShippingMethod

WithLabel sets a short, localized description of the item.

func (*ShippingMethod) WithType added in v0.17.0

WithType sets the summary item’s type that indicates whether the amount is final.

type ShippingType added in v0.17.0

type ShippingType uint64

A complete list of valid shipping types.

const (
	// Shipping the purchase to the provided address using a third-party shipping company. This is the default shipping type.
	ShippingTypeShipping ShippingType = 0
	// Delivering the purchase by the seller (for example, pizza, flower, or furniture delivery).
	ShippingTypeDelivery ShippingType = 1
	// Store pickup of the purchase from the seller’s store.
	ShippingTypeStorePickup ShippingType = 2
	// Picking up an item from the provided address by the service (for example, transportation or shipping services that provide home pickup).
	ShippingTypeServicePickup ShippingType = 3
)

func (ShippingType) String added in v0.17.0

func (e ShippingType) String() string

String returns the ShippingType constant's name, or its numeric form when the value is not a known constant.

type StoredValuePassBalance added in v0.17.0

type StoredValuePassBalance struct {
	objref.Handle
}

StoredValuePassBalance is an idiomatic wrapper over the Objective-C class PKStoredValuePassBalance.

An object that represents a balance that’s available for transactions, such as points or money.

func NewStoredValuePassBalance added in v0.17.0

func NewStoredValuePassBalance() *StoredValuePassBalance

NewStoredValuePassBalance creates a new StoredValuePassBalance.

func StoredValuePassBalanceFromID added in v0.17.0

func StoredValuePassBalanceFromID(id objc.ID) *StoredValuePassBalance

StoredValuePassBalanceFromID adopts an existing Objective-C object as a StoredValuePassBalance (nil for 0), retaining it and registering a release finalizer.

func (*StoredValuePassBalance) Amount added in v0.17.0

Amount returns the amount.

func (*StoredValuePassBalance) BalanceType added in v0.17.0

func (svpb *StoredValuePassBalance) BalanceType() *foundation.String

BalanceType returns the balance type.

func (*StoredValuePassBalance) CurrencyCode added in v0.17.0

func (svpb *StoredValuePassBalance) CurrencyCode() string

CurrencyCode returns the currency code.

func (*StoredValuePassBalance) Description added in v0.17.0

func (svpb *StoredValuePassBalance) Description() string

Description returns the object's -description text.

func (*StoredValuePassBalance) ExpiryDate added in v0.17.0

func (svpb *StoredValuePassBalance) ExpiryDate() time.Time

ExpiryDate returns the expiry date.

func (*StoredValuePassBalance) IsEqual added in v0.17.0

func (svpb *StoredValuePassBalance) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*StoredValuePassBalance) IsEqualToBalance added in v0.17.0

func (svpb *StoredValuePassBalance) IsEqualToBalance(balance *StoredValuePassBalance) bool

IsEqualToBalance returns a Boolean value that indicates whether two pass balance objects contain the same values.

func (*StoredValuePassBalance) IsKind added in v0.17.0

func (svpb *StoredValuePassBalance) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*StoredValuePassBalance) String added in v0.17.0

func (svpb *StoredValuePassBalance) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type StoredValuePassProperties added in v0.17.0

type StoredValuePassProperties struct {
	objref.Handle
}

StoredValuePassProperties is an idiomatic wrapper over the Objective-C class PKStoredValuePassProperties.

StoredValuePassProperties is an abstract base — you do not construct it directly. Construct one of TransitPassProperties and pass it where a StoredValuePassProperties is accepted.

An object that represents the properties of a pass that contains a balance used for specific transactions, such as a transit pass or loyalty card.

func PassPropertiesForPass added in v0.17.0

func PassPropertiesForPass(pass *Pass) *StoredValuePassProperties

PassPropertiesForPass creates a stored-value pass properties object for the specified pass.

func StoredValuePassPropertiesFromID added in v0.17.0

func StoredValuePassPropertiesFromID(id objc.ID) *StoredValuePassProperties

StoredValuePassPropertiesFromID adopts an existing Objective-C object as a StoredValuePassProperties (nil for 0), retaining it and registering a release finalizer.

func (*StoredValuePassProperties) Balances added in v0.17.0

Balances returns the balances.

Balances returns the collection as a Go slice.

func (*StoredValuePassProperties) Description added in v0.17.0

func (svpp *StoredValuePassProperties) Description() string

Description returns the object's -description text.

func (*StoredValuePassProperties) ExpirationDate added in v0.17.0

func (svpp *StoredValuePassProperties) ExpirationDate() time.Time

ExpirationDate returns the expiration date.

func (*StoredValuePassProperties) IsBlacklisted added in v0.17.0

func (svpp *StoredValuePassProperties) IsBlacklisted() bool

IsBlacklisted reports whether the object is blacklisted.

func (*StoredValuePassProperties) IsBlocked added in v0.17.0

func (svpp *StoredValuePassProperties) IsBlocked() bool

IsBlocked reports whether the object is blocked.

func (*StoredValuePassProperties) IsEqual added in v0.17.0

func (svpp *StoredValuePassProperties) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*StoredValuePassProperties) IsKind added in v0.17.0

func (svpp *StoredValuePassProperties) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*StoredValuePassProperties) String added in v0.17.0

func (svpp *StoredValuePassProperties) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type StoredValuePassPropertiesProvider added in v0.17.0

type StoredValuePassPropertiesProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

StoredValuePassPropertiesProvider is accepted wherever a PKStoredValuePassProperties (or one of its subclasses) is expected.

type SuicaPassProperties added in v0.17.0

type SuicaPassProperties struct {
	TransitPassProperties
}

SuicaPassProperties is an idiomatic wrapper over the Objective-C class PKSuicaPassProperties.

It embeds TransitPassProperties, promoting that type's methods.

The properties of a pass used as a ticket for the Suica transportation system.

func NewSuicaPassProperties added in v0.17.0

func NewSuicaPassProperties() *SuicaPassProperties

NewSuicaPassProperties creates a new SuicaPassProperties.

func PKSuicaPassPropertiesPassPropertiesForPass

func PKSuicaPassPropertiesPassPropertiesForPass(pass *Pass) *SuicaPassProperties

PKSuicaPassPropertiesPassPropertiesForPass instantiates a Suica pass properties object that contains the properties supported in the specified pass.

func SuicaPassPropertiesFromID added in v0.17.0

func SuicaPassPropertiesFromID(id objc.ID) *SuicaPassProperties

SuicaPassPropertiesFromID adopts an existing Objective-C object as a SuicaPassProperties (nil for 0), retaining it and registering a release finalizer.

func (*SuicaPassProperties) IsBalanceAllowedForCommute added in v0.17.0

func (spp *SuicaPassProperties) IsBalanceAllowedForCommute() bool

IsBalanceAllowedForCommute reports whether the object is balance allowed for commute.

func (*SuicaPassProperties) IsGreenCarTicketUsed added in v0.17.0

func (spp *SuicaPassProperties) IsGreenCarTicketUsed() bool

IsGreenCarTicketUsed reports whether the object is green car ticket used.

func (*SuicaPassProperties) IsInShinkansenStation added in v0.17.0

func (spp *SuicaPassProperties) IsInShinkansenStation() bool

IsInShinkansenStation reports whether note: isInShinkansenStation is not a subset of isInStation.

func (*SuicaPassProperties) IsLowBalanceGateNotificationEnabled added in v0.17.0

func (spp *SuicaPassProperties) IsLowBalanceGateNotificationEnabled() bool

IsLowBalanceGateNotificationEnabled reports whether the object is low balance gate notification enabled.

type Tag added in v0.17.0

type Tag int32
const (
	TagUndefinedTag  Tag = 0
	TagExtendedAllow Tag = 1
	TagExtendedDeny  Tag = 2
)

func (Tag) String added in v0.17.0

func (e Tag) String() string

String returns the Tag constant's name, or its numeric form when the value is not a known constant.

type TransitPassProperties added in v0.17.0

type TransitPassProperties struct {
	StoredValuePassProperties
}

TransitPassProperties is an idiomatic wrapper over the Objective-C class PKTransitPassProperties.

TransitPassProperties is an abstract base — you do not construct it directly. Construct one of SuicaPassProperties and pass it where a TransitPassProperties is accepted.

The properties of a transit pass.

func TransitPassPropertiesFromID added in v0.17.0

func TransitPassPropertiesFromID(id objc.ID) *TransitPassProperties

TransitPassPropertiesFromID adopts an existing Objective-C object as a TransitPassProperties (nil for 0), retaining it and registering a release finalizer.

func (*TransitPassProperties) IsInStation added in v0.17.0

func (tpp *TransitPassProperties) IsInStation() bool

IsInStation reports whether the object is in station.

func (*TransitPassProperties) TransitBalance added in v0.17.0

func (tpp *TransitPassProperties) TransitBalance() *foundation.DecimalNumber

TransitBalance returns the transit balance.

func (*TransitPassProperties) TransitBalanceCurrencyCode added in v0.17.0

func (tpp *TransitPassProperties) TransitBalanceCurrencyCode() string

TransitBalanceCurrencyCode returns the transit balance currency code.

type TransitPassPropertiesProvider added in v0.17.0

type TransitPassPropertiesProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

TransitPassPropertiesProvider is accepted wherever a PKTransitPassProperties (or one of its subclasses) is expected.

type Type added in v0.17.0

type Type int32
const (
	TypeExtended Type = 256
	TypeAccess   Type = 0
	TypeDefault  Type = 1
	TypeAfs      Type = 2
	TypeCoda     Type = 3
	TypeNtfs     Type = 4
	TypeNwfs     Type = 5
)

func (Type) String added in v0.17.0

func (e Type) String() string

String returns the Type constant's name, or its numeric form when the value is not a known constant.

type VehicleConnectionDelegate added in v0.17.0

type VehicleConnectionDelegate interface {
	// SessionDidChangeConnectionState wraps the corresponding Objective-C method.
	SessionDidChangeConnectionState(newState VehicleConnectionSessionConnectionState)
	// SessionDidReceiveData wraps the corresponding Objective-C method.
	SessionDidReceiveData(data []byte)
}

VehicleConnectionDelegate receives the callbacks of the Objective-C protocol PKVehicleConnectionDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (VehicleConnectionDelegate…Handler): implement the ones you need on the same value and the framework will call them too.

type VehicleConnectionErrorCode added in v0.17.0

type VehicleConnectionErrorCode int64
const (
	VehicleConnectionErrorCodeUnknown              VehicleConnectionErrorCode = 0
	VehicleConnectionErrorCodeSessionUnableToStart VehicleConnectionErrorCode = 1
	VehicleConnectionErrorCodeSessionNotActive     VehicleConnectionErrorCode = 2
)

func (VehicleConnectionErrorCode) String added in v0.17.0

String returns the VehicleConnectionErrorCode constant's name, or its numeric form when the value is not a known constant.

type VehicleConnectionSession added in v0.17.0

type VehicleConnectionSession struct {
	objref.Handle
}

VehicleConnectionSession is an idiomatic wrapper over the Objective-C class PKVehicleConnectionSession.

func NewVehicleConnectionSession added in v0.17.0

func NewVehicleConnectionSession() *VehicleConnectionSession

NewVehicleConnectionSession creates a new VehicleConnectionSession.

func VehicleConnectionSessionFromID added in v0.17.0

func VehicleConnectionSessionFromID(id objc.ID) *VehicleConnectionSession

VehicleConnectionSessionFromID adopts an existing Objective-C object as a VehicleConnectionSession (nil for 0), retaining it and registering a release finalizer.

func (*VehicleConnectionSession) ConnectionStatus added in v0.17.0

ConnectionStatus returns the connection status.

func (*VehicleConnectionSession) Description added in v0.17.0

func (vcs *VehicleConnectionSession) Description() string

Description returns the object's -description text.

func (*VehicleConnectionSession) Invalidate added in v0.17.0

func (vcs *VehicleConnectionSession) Invalidate()

Invalidate wraps the corresponding Objective-C method.

func (*VehicleConnectionSession) IsEqual added in v0.17.0

func (vcs *VehicleConnectionSession) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*VehicleConnectionSession) IsKind added in v0.17.0

func (vcs *VehicleConnectionSession) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*VehicleConnectionSession) SendData added in v0.17.0

func (vcs *VehicleConnectionSession) SendData(message []byte) error

SendData sends data.

func (*VehicleConnectionSession) String added in v0.17.0

func (vcs *VehicleConnectionSession) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type VehicleConnectionSessionConnectionState added in v0.17.0

type VehicleConnectionSessionConnectionState int64
const (
	VehicleConnectionSessionConnectionStateDisconnected    VehicleConnectionSessionConnectionState = 0
	VehicleConnectionSessionConnectionStateConnected       VehicleConnectionSessionConnectionState = 1
	VehicleConnectionSessionConnectionStateConnecting      VehicleConnectionSessionConnectionState = 2
	VehicleConnectionSessionConnectionStateFailedToConnect VehicleConnectionSessionConnectionState = 3
)

func (VehicleConnectionSessionConnectionState) String added in v0.17.0

String returns the VehicleConnectionSessionConnectionState constant's name, or its numeric form when the value is not a known constant.

type VirtualMemoryGuardExceptionCode added in v0.17.0

type VirtualMemoryGuardExceptionCode uint32
const (
	KGUARD_EXC_DEALLOC_GAP                   VirtualMemoryGuardExceptionCode = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        VirtualMemoryGuardExceptionCode = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         VirtualMemoryGuardExceptionCode = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    VirtualMemoryGuardExceptionCode = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    VirtualMemoryGuardExceptionCode = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         VirtualMemoryGuardExceptionCode = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         VirtualMemoryGuardExceptionCode = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  VirtualMemoryGuardExceptionCode = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    VirtualMemoryGuardExceptionCode = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              VirtualMemoryGuardExceptionCode = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        VirtualMemoryGuardExceptionCode = 99
	KGUARD_EXC_SEC_COPY_DENIED               VirtualMemoryGuardExceptionCode = 100
	KGUARD_EXC_SEC_SHARING_DENIED            VirtualMemoryGuardExceptionCode = 101
	KGUARD_EXC_MTE_SYNC_FAULT                VirtualMemoryGuardExceptionCode = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          VirtualMemoryGuardExceptionCode = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          VirtualMemoryGuardExceptionCode = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204
)

func (VirtualMemoryGuardExceptionCode) String added in v0.17.0

String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.

type XpcListenerCreateFlags added in v0.17.0

type XpcListenerCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcListenerCreateFlagsNone            XpcListenerCreateFlags = 0
	XpcListenerCreateFlagsInactive        XpcListenerCreateFlags = 1
	XpcListenerCreateFlagsForceMach       XpcListenerCreateFlags = 2
	XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4
)

func (XpcListenerCreateFlags) String added in v0.17.0

func (e XpcListenerCreateFlags) String() string

String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.

type XpcSessionCreateFlags added in v0.17.0

type XpcSessionCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcSessionCreateFlagsNone           XpcSessionCreateFlags = 0
	XpcSessionCreateFlagsInactive       XpcSessionCreateFlags = 1
	XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2
)

func (XpcSessionCreateFlags) String added in v0.17.0

func (e XpcSessionCreateFlags) String() string

String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL