• Home
  • API Documentation
Show / Hide Table of Contents
  • Yort.AfterPay.InStore
    • AfterPayApiError
      • ErrorCode
      • ErrorId
      • HttpStatusCode
      • Message
    • AfterPayApiException
      • AfterPayApiException
      • ErrorCode
      • ErrorId
      • HttpStatusCode
    • AfterPayCallContext
      • OperatorId
    • AfterPayClient
      • AfterPayClient
      • CreateOrder
      • DisposeManagedResources
      • Ping
      • PreapprovalEnquiry
      • RefundOrder
      • RegisterDevice
      • ReverseOrder
      • ReverseRefund
      • SendInvite
    • AfterPayConfiguration
      • AfterPayConfiguration
      • DefaultCurrency
      • DeviceId
      • DeviceKey
      • Environment
      • HttpClient
      • MerchantId
      • MinimumRetries
      • ProductName
      • ProductVendor
      • ProductVersion
      • RetryDelaySeconds
      • SystemClock
    • AfterPayConstants
      • JsonMediaType
      • ProductionRootUrl
      • SandboxRootUrl
    • AfterPayCreateOrderRequest
      • Amount
      • MerchantReference
      • OrderItems
      • PreapprovalCode
      • RequestedAt
      • RequestId
    • AfterPayCreateRefundRequest
      • Amount
      • MerchantReference
      • OrderId
      • OrderMerchantReference
      • RequestedAt
      • RequestId
    • AfterPayCurrencies
      • AustralianDollars
      • NewZealandDollars
    • AfterPayDeviceRegistration
      • DeviceId
      • Key
    • AfterPayDeviceRegistrationRequest
      • Attributes
      • Name
      • Secret
    • AfterPayEnvironment
      • Production
      • Sandbox
    • AfterPayInviteRequest
      • ExpectedAmount
      • MobileNumber
      • NormalizePhoneNumber
    • AfterPayMoney
      • AfterPayMoney
      • Amount
      • Currency
      • Equality
      • Equals
      • GetHashCode
      • Inequality
      • ToString
    • AfterPayMoneyJsonConverter
      • CanConvert
      • ReadJson
      • WriteJson
    • AfterPayOrder
      • Amount
      • MerchantReference
      • OrderedAt
      • OrderId
      • OrderItems
      • PreapprovalCode
      • RequestedAt
      • RequestId
    • AfterPayOrderItem
      • Name
      • Price
      • Quantity
      • Sku
    • AfterPayOrderReversal
      • RequestedAt
      • ReversedAt
      • ReverseId
      • ReversingRequestId
    • AfterPayPreapprovalRequest
      • PreapprovalCode
    • AfterPayPreapprovalResponse
      • Amount
      • ExpiresAt
      • Minimum
    • AfterPayRefund
      • Amount
      • MerchantReference
      • OrderId
      • OrderMerchantReference
      • RefundedAt
      • RefundId
      • RequestedAt
      • RequestId
    • AfterPayRefundReversal
      • RequestedAt
      • ReversedAt
      • ReverseId
      • ReversingRequestId
    • AfterPayReverseOrderRequest
      • RequestedAt
      • ReversingRequestId
    • AfterPayReverseRefundRequest
      • RequestedAt
      • ReversingRequestId
    • AfterPaySystemClock
      • DefaultInstance
      • Now
    • AfterPayToken
      • ExpiresAt
      • ExpiresIn
      • IsExpired
      • IssuedAt
      • Token
    • AfterPayTokenRequest
      • Key
    • IAfterPayClient
      • CreateOrder
      • Ping
      • PreapprovalEnquiry
      • RefundOrder
      • RegisterDevice
      • ReverseOrder
      • ReverseRefund
      • SendInvite
    • IAfterPaySystemClock
      • Now

Constructor AfterPayApiException

AfterPayApiException()

Default constructor, not recommended for use but supported due to framework requirements.

Declaration
public AfterPayApiException()

AfterPayApiException(AfterPayApiError)

Recommended constructor. Creates an exception from an AfterPayApiError response.

Declaration
public AfterPayApiException(AfterPayApiError error)
Parameters
Type Name Description
AfterPayApiError error

An AfterPayApiError response used to populate the exception details.

AfterPayApiException(AfterPayApiError, Exception)

Recommended constructor. Creates an exception from an AfterPayApiError response.

Declaration
public AfterPayApiException(AfterPayApiError error, Exception innerException)
Parameters
Type Name Description
AfterPayApiError error

An AfterPayApiError response used to populate the exception details.

Exception innerException

Another exception that is wrapped by this one.

AfterPayApiException(String)

Partial contructor, not recommended for use but supported due to framework requirements.

Declaration
public AfterPayApiException(string message)
Parameters
Type Name Description
System.String message

A custom error message to use.

AfterPayApiException(String, Exception)

Partial contructor, not recommended for use but supported due to framework requirements.

Declaration
public AfterPayApiException(string message, Exception innerException)
Parameters
Type Name Description
System.String message

A custom error message to use.

Exception innerException

Another exception that is wrapped by this one.

AfterPayApiException(SerializationInfo, StreamingContext)

Constructor required to support deserialisation of the exception.

Declaration
protected AfterPayApiException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

A System.Runtime.Serialization.SerializationInfo used to read serialised information.

System.Runtime.Serialization.StreamingContext context

A System.Runtime.Serialization.StreamingContext used to read serialised information.

Back to top Copyright (c) 2017 Troy Willmot