Protocols
The following protocols are available globally.
-
Can be used to perform Administration functions on the API
See moreDeclaration
Swift
public protocol AdministrationApiRepository
-
Undocumented
See moreDeclaration
Swift
public protocol CustomerPaymentAgreementsApiRepository
-
Undocumented
See moreDeclaration
Swift
public protocol CustomerPaymentRequestsRepository
-
Undocumented
See moreDeclaration
Swift
public protocol CustomerPaymentSessionsRepository
-
Undocumented
See moreDeclaration
Swift
public protocol CustomerPreferencesRepository
-
Undocumented
See moreDeclaration
Swift
public protocol CustomerTermsAndConditionsApiRepository
-
Undocumented
See moreDeclaration
Swift
public protocol CustomerTransactionsRepository
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayRepository
-
Undocumented
See moreDeclaration
Swift
public protocol OpenPayApiRepository
-
Undocumented
See moreDeclaration
Swift
public protocol PaymentAgreementApiRepository
-
Undocumented
See moreDeclaration
Swift
public protocol PaymentApiRepository
-
Undocumented
See moreDeclaration
Swift
public protocol MerchantPaymentAgreementsRepository
-
Undocumented
See moreDeclaration
Swift
public protocol MerchantPaymentSessionsRepository
-
Undocumented
See moreDeclaration
Swift
public protocol MerchantPaymentsRepository
-
Undocumented
See moreDeclaration
Swift
public protocol MerchantPreferencesRepository
-
Undocumented
See moreDeclaration
Swift
public protocol MerchantTransactionsRepository
-
Undocumented
See moreDeclaration
Swift
public protocol PaymentInstrumentsRepository
-
Undocumented
See moreDeclaration
Swift
public protocol QRCodeRepository
-
Undocumented
See moreDeclaration
Swift
public protocol SchemasRepository
-
Undocumented
See moreDeclaration
Swift
public protocol AndroidPayApiRepository
-
Undocumented
See moreDeclaration
Swift
public protocol ApplePayApiRepository
-
Undocumented
See moreDeclaration
Swift
public protocol CardsApiRepository
-
Undocumented
See moreDeclaration
Swift
public protocol GiftcardsApiRepository
-
Undocumented
See moreDeclaration
Swift
public protocol GooglePayApiRepository
-
Undocumented
See moreDeclaration
Swift
public protocol InstrumentsApiRepository
-
Undocumented
See moreDeclaration
Swift
public protocol MerchantsApiRepository
-
Undocumented
See moreDeclaration
Swift
public protocol PayPalApiRepository
-
Undocumented
See moreDeclaration
Swift
public protocol TransactionsApiRepository
-
Undocumented
See moreDeclaration
Swift
public protocol WalletApiRepository
-
Abstracts how the SDK authenticates with the API.
If an application has an existing authentication/authorisation workflow then an Adapter class can be used to integrate that workflow into the SDK to provide the necessary authentication
See moreDeclaration
Swift
public protocol ApiAuthenticator
-
Abstracts how the SDK stores credentials obtained after authenticating with the API
See moreDeclaration
Swift
public protocol CredentialsStore
-
Indicates that a model has an access token that can be used to prove that SDK is authenticated
See moreDeclaration
Swift
public protocol HasAccessToken
-
Basket of items associated with a payment request.
See moreDeclaration
Swift
public protocol Basket
-
The response to a step up challenge
See moreDeclaration
Swift
public protocol ChallengeResponse
-
Data required to charge against a
See morePaymentAgreement
Declaration
Swift
public protocol ChargePaymentAgreementRequest
-
Common properties of the
See morePaymentAgreement
requestDeclaration
Swift
public protocol CommonPaymentAgreementRequest
-
Request containing the details of the
See morePaymentAgreement
to createDeclaration
Swift
public protocol CreatePaymentAgreementRequest : CommonPaymentAgreementRequest
-
Request containing the details of the
See morePaymentAgreement
to updateDeclaration
Swift
public protocol UpdatePaymentAgreementRequest : CommonPaymentAgreementRequest
-
The customer’s billing address
See moreDeclaration
Swift
public protocol PaymentAgreementBillingAddress
-
The result from creating a new Payment Request.
See moreDeclaration
Swift
public protocol CreatePaymentRequestResult
-
Request containing the details of the
See morePaymentSession
Declaration
Swift
public protocol CreatePaymentSessionRequest
-
The result of creating a
See morePaymentSession
Declaration
Swift
public protocol CreatePaymentSessionResult
-
List of customer transactions
See moreDeclaration
Swift
public protocol CustomerTransactionSummaries : CustomerTransactions
-
Summary information of a transaction performed by a customer
See moreDeclaration
Swift
public protocol CustomerTransactionSummary : TransactionSummary
-
Detailed information for a single transaction
See moreDeclaration
Swift
public protocol CustomerTransactionDetails : CustomerTransactionSummary
-
Request to update the customer messages to the merchant in the
See morePaymentSession
Declaration
Swift
public protocol CustomerUpdatePaymentSessionRequest
-
A customer’s address
See moreDeclaration
Swift
public protocol DigitalPayAddress
-
The JSON request structure of the Charge Payment Agreement endpoint.
See moreDeclaration
Swift
public protocol DigitalPayChargePaymentAgreementRequest
-
The JSON request structure of the Completions endpoint.
See moreDeclaration
Swift
public protocol DigitalPayCompletionRequest
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayCompletion
-
The JSON response structure of the Completions endpoint.
See moreDeclaration
Swift
public protocol DigitalPayCompletionResponse
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayTransactionCompletionResponse
-
The JSON request structure of the Create Payment Agreement endpoint.
See moreDeclaration
Swift
public protocol DigitalPayCreatePaymentAgreementRequest
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayRequestPaymentAgreement
-
Fraud check response
See moreDeclaration
Swift
public protocol DigitalPayFraudPayload
-
The JSON response structure of the Create and Update Payment Agreement endpoints.
See moreDeclaration
Swift
public protocol DigitalPayPaymentAgreementResponse
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayResponsePaymentAgreement
-
The JSON request structure of the Payments endpoint
See moreDeclaration
Swift
public protocol DigitalPayPaymentRequest
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayPayment
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayStoreData
-
Undocumented
See moreDeclaration
Swift
public protocol ExtendedMerchantData
-
The JSON success response structure of the Payments endpoint.
See moreDeclaration
Swift
public protocol DigitalPayPaymentResponse
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayFraudResponse
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayPaymentInstrument
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayCreditCard : DigitalPayPaymentInstrument
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayHandlingInstructions
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayGiftCard : DigitalPayPaymentInstrument
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayPayPal : DigitalPayPaymentInstrument
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayGooglePay : DigitalPayPaymentInstrument
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayApplePay : DigitalPayPaymentInstrument
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayRecieptData
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayExtendedTransactionData
-
The JSON request structure of the Refunds endpoint.
See moreDeclaration
Swift
public protocol DigitalPayRefundRequest
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayRefund
-
The JSON success response structure of the Refunds endpoint.
See moreDeclaration
Swift
public protocol DigitalPayRefundResponse
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayRefundTransactionResponse
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayTransactionType
-
Undocumented
See moreDeclaration
Swift
public protocol GooglePayTransactionDetail
-
Undocumented
See moreDeclaration
Swift
public protocol ApplePayTransactionDetail
-
The JSON request structure of the Update Payment Agreement endpoint.
See moreDeclaration
Swift
public protocol DigitalPayUpdatePaymentAgreementRequest
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayPaymentAgreementUpdate
-
The JSON request structure of the Voids endpoint.
See moreDeclaration
Swift
public protocol DigitalPayVoidRequest
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayVoid
-
The JSON success response structure of the Voids endpoint.
See moreDeclaration
Swift
public protocol DigitalPayVoidResponse
-
Undocumented
See moreDeclaration
Swift
public protocol DigitalPayVoidTransactionResponse
-
The JSON request structure of the OpenPay Completions endpoint.
See moreDeclaration
Swift
public protocol OpenPayCompletionRequest
-
Undocumented
See moreDeclaration
Swift
public protocol OpenPayCompletion
-
The JSON response structure of the OpenPay Completions endpoint.
See moreDeclaration
Swift
public protocol OpenPayCompletionResponse
-
Undocumented
See moreDeclaration
Swift
public protocol OpenPayTransactionCompletionResponse
-
Undocumented
See moreDeclaration
Swift
public protocol OpenPayPaymentRequestTransactionType
-
The JSON request structure of the Openpay Payments endpoint
See moreDeclaration
Swift
public protocol OpenPayPaymentRequest
-
Undocumented
See moreDeclaration
Swift
public protocol OpenPayStoreData
-
Undocumented
See moreDeclaration
Swift
public protocol OpenPayPayments
-
The JSON success response structure of the Payments endpoint.
See moreDeclaration
Swift
public protocol OpenPayPaymentTransactionResponse
-
Undocumented
See moreDeclaration
Swift
public protocol OpenPayPaymentResponse
-
Undocumented
See moreDeclaration
Swift
public protocol OpenPayExtendedTransactionData
-
The JSON request structure of the Openpay Refunds endpoint.
See moreDeclaration
Swift
public protocol OpenPayRefundRequest
-
Undocumented
See moreDeclaration
Swift
public protocol StoreData
-
Undocumented
See moreDeclaration
Swift
public protocol OpenPayRefund
-
The JSON success response structure of the Openpay Refunds endpoint.
See moreDeclaration
Swift
public protocol OpenPayRefundResponse
-
Undocumented
See moreDeclaration
Swift
public protocol OpenPayRefundTransactionResponse
-
The JSON request structure of the Openpay Voids endpoint.
See moreDeclaration
Swift
public protocol OpenPayVoidRequest
-
The JSON success response structure of the Openpay Voids endpoint.
See moreDeclaration
Swift
public protocol OpenPayVoidResponse
-
Undocumented
See moreDeclaration
Swift
public protocol OpenPayVoidTransactionResponse
-
A payload of key/value pairs that is can be validated by a schema.
See moreDeclaration
Swift
public protocol DynamicPayload
-
Result of checking the health of the API server
See moreDeclaration
Swift
public protocol HealthCheck
-
Payload provided by the merchant to support other types of messaging.
See moreDeclaration
Swift
public protocol MerchantPayload
-
List of payments made involving a merchant.
See moreDeclaration
Swift
public protocol MerchantPaymentSummaries : MerchantPayments
-
Detailed information for a single Payment Request
See moreDeclaration
Swift
public protocol MerchantPaymentDetails : MerchantPaymentSummary
-
List of merchant schemas
See moreDeclaration
Swift
public protocol MerchantSchemaSummaries : MerchantSchemas
-
Summary information about a
See moreMerchantSchema
Declaration
Swift
public protocol MerchantSchemaSummary
-
Details about a particular schema
See moreDeclaration
Swift
public protocol MerchantSchema
-
List of merchant transactions.
See moreDeclaration
Swift
public protocol MerchantTransactionSummaries : MerchantTransactions
-
Summary information of the resulting transaction
See moreDeclaration
Swift
public protocol MerchantTransactionSummary : TransactionSummary
-
Detailed information for a single transaction
See moreDeclaration
Swift
public protocol MerchantTransactionDetails : MerchantTransactionSummary
-
Request to update a
See morePaymentSession
for a merchant.Declaration
Swift
public protocol MerchantUpdatePaymentSessionRequest
-
The details of the payment to be created.
See moreDeclaration
Swift
public protocol NewPaymentRequest
-
Properties common to all Payments and Payment Requests
See moreDeclaration
Swift
public protocol Payment
-
Properties of a Payment Agreement
See moreDeclaration
Swift
public protocol PaymentAgreement
-
Undocumented
See moreDeclaration
Swift
public protocol PaymentAgreementStepUp
-
List of payments agreements.
See moreDeclaration
Swift
public protocol PaymentAgreements
-
Initiate the addition of a new payment instrument for this customer.
This API returns a URL to be used to access the DigiPay IFrame based interface to request the customer to enter a payment instrument details.
See moreDeclaration
Swift
public protocol PaymentInstrumentAddition
-
The result of trying to initiate the addition of a new
See morePaymentInstrument
Declaration
Swift
public protocol PaymentInstrumentAdditionResult
-
All the possible
See morePaymentInstrument
s that a customer might have in a wallet.Declaration
Swift
public protocol WalletContents : PaymentInstruments
-
List of grouped payment instruments.
See moreDeclaration
Swift
public protocol PaymentInstruments
-
Common properties to all
See morePaymentInstruments
Declaration
Swift
public protocol PaymentInstrument
-
Undocumented
See moreDeclaration
Swift
public protocol CardPaymentInstrument : PaymentInstrument
-
An added credit card
See moreDeclaration
Swift
public protocol CreditCard : CardPaymentInstrument
-
An added gift card.
See moreDeclaration
Swift
public protocol GiftCard : CardPaymentInstrument
-
Details of what step up is required to use a
See moreCreditCard
Declaration
Swift
public protocol CreditCardStepUp
-
Used to identify other
See morePaymentInstrument
s to be used as part of a payment.Declaration
Swift
public protocol SecondaryPaymentInstrument
-
Undocumented
See moreDeclaration
Swift
public protocol IndividualPaymentInstrument : PaymentInstrument
-
Undocumented
See moreDeclaration
Swift
public protocol IndividualPaymentInstrumentDetail
-
A session between a customer and a merchant
See moreDeclaration
Swift
public protocol PaymentSession
-
Payload describing the specific POS system.
See moreDeclaration
Swift
public protocol PosPayload
-
Available preference settings for a customer
See moreDeclaration
Swift
public protocol CustomerPreferences
-
Payment preferences for a customer
See moreDeclaration
Swift
public protocol PaymentPreferences
-
Undocumented
See moreDeclaration
Swift
public protocol SecondaryInstrumentPreferences
-
Detail of a QR code
See moreDeclaration
Swift
public protocol QRCode
-
List of terms and conditions acceptances
See moreDeclaration
Swift
public protocol TermsAndConditionsAcceptances
-
The Terms and Conditions the customer has accepted.
See moreDeclaration
Swift
public protocol TermsAndConditionsAcceptance
-
Undocumented
See moreDeclaration
Swift
public protocol AcceptTermsAndConditionsRequest
-
The JSON response structure of the Tokenize PayPalApi endpoint.
See moreDeclaration
Swift
public protocol TokenizePaypalResponse
-
Undocumented
See moreDeclaration
Swift
public protocol PaypalDetails
-
Request payload containing the refund reason and instructions
See moreDeclaration
Swift
public protocol TransactionRefundDetails
-
An instrument used for a transaction
See moreDeclaration
Swift
public protocol TransactionSummaryUsedPaymentInstrument
-
A subtransaction associated with a payment instrument
See moreDeclaration
Swift
public protocol UsedPaymentInstrumentTransaction
-
The JSON request structure of the GiftcardsApi Balance endpoint.
See moreDeclaration
Swift
public protocol GiftcardsBalanceRequest
-
Undocumented
See moreDeclaration
Swift
public protocol GiftCardBalenceGiftCard
-
Undocumented
See moreDeclaration
Swift
public protocol GiftCardInstrument
-
The JSON response structure of the GiftcardsApi Balance endpoint.
See moreDeclaration
Swift
public protocol GiftcardsBalanceResponse
-
Undocumented
See moreDeclaration
Swift
public protocol GiftCardBalance
-
The JSON request structure of the Import Payment InstrumentsApi endpoint.
See moreDeclaration
Swift
public protocol ImportPaymentInstrumentsRequest
-
Undocumented
See moreDeclaration
Swift
public protocol PayPalDetail
-
Undocumented
See moreDeclaration
Swift
public protocol PaymentInstrumentRequestCreditCard
-
The JSON response structure of the Import Payment InstrumentsApi endpoint.
See moreDeclaration
Swift
public protocol ImportPaymentInstrumentsResponse
-
Undocumented
See moreDeclaration
Swift
public protocol PayPal
-
Undocumented
See moreDeclaration
Swift
public protocol ErrorMessage
-
Undocumented
See moreDeclaration
Swift
public protocol CreditCardResult
-
The JSON request structure of the Initiate Card Capture endpoint.
See moreDeclaration
Swift
public protocol InitiateCardCaptureRequest
-
The JSON response structure of the Initiate Card Capture endpoint.
See moreDeclaration
Swift
public protocol InitiateCardCaptureResponse
-
The JSON request structure of the List Payment InstrumentsApi endpoint.
See moreDeclaration
Swift
public protocol ListPaymentInstrumentsRequest
-
The JSON response structure of the List Payment InstrumentsApi endpoint.
See moreDeclaration
Swift
public protocol ListPaymentInstrumentsResponse
-
Undocumented
See moreDeclaration
Swift
public protocol CreditCardDetails
-
Undocumented
See moreDeclaration
Swift
public protocol GiftCardDetails
-
Undocumented
See moreDeclaration
Swift
public protocol PayPalDetails
-
Undocumented
See moreDeclaration
Swift
public protocol PaymentAgreementDetails
-
Undocumented
See moreDeclaration
Swift
public protocol GooglePayDetails
-
Undocumented
See moreDeclaration
Swift
public protocol ApplePayDetails
-
Undocumented
See moreDeclaration
Swift
public protocol StepUp
-
Undocumented
See moreDeclaration
Swift
public protocol AllowedPaymentMethodsGiftCard
-
Undocumented
See moreDeclaration
Swift
public protocol AllowedPaymentMethodsCreditCard
-
Undocumented
See moreDeclaration
Swift
public protocol AllowedPaymentMethodsPaypal
-
Undocumented
See moreDeclaration
Swift
public protocol AllowedPaymentMethodsGooglePay
-
Undocumented
See moreDeclaration
Swift
public protocol AllowedPaymentMethodsApplePay
-
Undocumented
See moreDeclaration
Swift
public protocol Card
-
The JSON response structure of the Merchant Profile endpoint.
See moreDeclaration
Swift
public protocol MerchantProfileResponse
-
Undocumented
See moreDeclaration
Swift
public protocol AllowedPaymentMethods
-
The JSON request structure of the Tokenize Android Pay endpoint.
See moreDeclaration
Swift
public protocol TokenizeAndroidPayRequest
-
The JSON response structure of the Tokenize Android Pay endpoint.
See moreDeclaration
Swift
public protocol TokenizeAndroidPayResponse
-
The JSON request structure of the Tokenize Apple Pay endpoint.
See moreDeclaration
Swift
public protocol TokenizeApplePayRequest
-
The JSON response structure of the Tokenize Android Pay endpoint.
See moreDeclaration
Swift
public protocol TokenizeApplePayResponse
-
The JSON request structure of the Tokenize Giftcard endpoint.
See moreDeclaration
Swift
public protocol TokenizeGiftcardRequest
-
The JSON response structure of the Tokenize Giftcard endpoint.
See moreDeclaration
Swift
public protocol TokenizeGiftcardResponse
-
Undocumented
See moreDeclaration
Swift
public protocol TokenizedGiftCard
-
The JSON request structure of the Tokenize Google Pay endpoint.
See moreDeclaration
Swift
public protocol TokenizeGooglePayRequest
-
The JSON response structure of the Tokenize Google Pay endpoint.
See moreDeclaration
Swift
public protocol TokenizeGooglePayResponse
-
The JSON request structure of the Tokenize PayPalApi endpoint.
See moreDeclaration
Swift
public protocol TokenizePaypalRequest
-
The JSON request structure of the Transaction History endpoint.
See moreDeclaration
Swift
public protocol TransactionHistoryRequest
-
The JSON response structure of the Transaction History endpoint.
See moreDeclaration
Swift
public protocol TransactionHistoryResponse
-
Undocumented
See moreDeclaration
Swift
public protocol Transaction
-
The JSON request structure of the Verify Payment InstrumentsApi endpoint.
See moreDeclaration
Swift
public protocol VerifyPaymentInstrumentsRequest
-
Undocumented
See moreDeclaration
Swift
public protocol FraudPayload
-
Undocumented
See moreDeclaration
Swift
public protocol VerifyPaymentInstrumentsRequestInstrument
-
The JSON success response structure of the Verify Payment InstrumentsApi endpoint.
See moreDeclaration
Swift
public protocol VerifyPaymentInstrumentsSuccessResponse
-
Undocumented
See moreDeclaration
Swift
public protocol FraudResponse
-
Undocumented
See moreDeclaration
Swift
public protocol VerifyResponse
-
The JSON request structure of the Delete Wallet endpoint.
See moreDeclaration
Swift
public protocol WalletDeleteRequest
-
The JSON response structure of the Delete Wallet endpoint.
Declaration
Swift
public protocol WalletDeleteResponse
-
Abstracts how HTTP headers are added to a Dictionary.
See moreDeclaration
Swift
public protocol RequestHeaderFactory
-
Creates a Dictionary of headers to be added to HTTP requests
See moreDeclaration
Swift
public protocol RequestHeadersFactory
-
Defines the API operations that the SDK can use to call the Customer Village API
The SDK is technology agnostic with applications being able to choose an implementation that meets the needs and preexisting technology choices of the application.
Implementations of the protocol may provide additional constraints on the user.
See moreDeclaration
Swift
public protocol VillageCustomerApiRepository
-
Defines the API operations that the SDK can use to call the Merchant Village API
The SDK is technology agnostic with applications being able to choose an implementation that meets the needs and preexisting technology choices of the application.
Implementations of the protocol may provide additional constraints on the user.
See moreDeclaration
Swift
public protocol VillageMerchantApiRepository