Documentation
¶
Index ¶
- func ChargeTokenCard()
- func CreditAcceptPaymentTransaction()
- func CreditBankAccount()
- func CurrentDate() string
- func DebitBankAccount()
- func GetAccessPaymentPage()
- func GetHostedPaymentPage()
- func GetProfileIds() ([]string, error)
- func IsConnected() (bool, error)
- func LastMonth() time.Time
- func LastWeek() time.Time
- func LastYear() time.Time
- func Now() time.Time
- func SendRequest(input []byte) ([]byte, error)
- func SetAPIInfo(name string, key string, mode string)
- func UpdateSplitTenderGround()
- type ARBCreateSubscriptionRequest
- type ARBGetSubscriptionListRequest
- type ARBGetSubscriptionRequest
- type ARBUpdateSubscriptionRequest
- type AVS
- type Address
- type BatchList
- type BatchListResponse
- type BatchStatisticsResponse
- type BatchTransaction
- type BillTo
- type CreateCustomerPaymentProfile
- type CreateCustomerPaymentProfileRequest
- type CreateCustomerProfile
- type CreateCustomerProfileRequest
- type CreateCustomerShippingAddress
- type CreateCustomerShippingAddressRequest
- type CreateCustomerShippingAddressResponse
- type CreatePayment
- type CreateSubscriptionRequest
- type CreateTransactionRequest
- type CreditCard
- type CustomProfileResponse
- type Customer
- func (customer Customer) DeletePaymentProfile() (*MessagesResponse, error)
- func (customer Customer) DeleteProfile() (*MessagesResponse, error)
- func (customer Customer) DeleteShippingProfile() (*MessagesResponse, error)
- func (customer Customer) Info() (*GetCustomerProfileResponse, error)
- func (customer Customer) Validate() (*ValidateCustomerPaymentProfileResponse, error)
- type CustomerPaymentProfile
- type CustomerPaymentProfileResponse
- type CustomerProfileIdsRequest
- type CustomerProfileIdsResponse
- type CustomerProfileRequest
- type CustomerProfiler
- type DeleteCustomerPaymentProfile
- type DeleteCustomerPaymentProfileRequest
- type DeleteCustomerProfile
- type DeleteCustomerProfileRequest
- type DeleteCustomerShippingProfile
- type DeleteCustomerShippingProfileRequest
- type Duty
- type FullTransaction
- type GetBatchStatistics
- type GetBatchStatisticsRequest
- type GetCustomerPaymentProfileList
- type GetCustomerPaymentProfileListRequest
- type GetCustomerPaymentProfileListResponse
- type GetCustomerProfile
- type GetCustomerProfileIdsRequest
- type GetCustomerProfileResponse
- type GetMerchantDetailsReq
- type GetMerchantDetailsRequest
- type GetPaymentProfiles
- type GetSettledBatchList
- type GetSettledBatchListRequest
- type GetShippingProfiles
- type GetSubscriptionCancelRequest
- type GetSubscriptionList
- type GetSubscriptionListRequest
- type GetSubscriptionRequest
- type GetSubscriptionResponse
- type GetSubscriptionStatusRequest
- type GetTransactionDetails
- type GetTransactionDetailsRequest
- type GetTransactionList
- type GetTransactionListRequest
- type GetTransactionListResponse
- type GetUnsettledBatchTransactionListRequest
- type GetUnsettledTransactionList
- type GetUnsettledTransactionListRequest
- type HeldTransactionRequest
- type Interval
- type LineItem
- type LineItems
- type MerchantAuthentication
- type MerchantDetailsResponse
- type Message
- type MessageResponse
- type MessagesResponse
- func DeletePaymentProfile(customer Customer) (*MessagesResponse, error)
- func DeleteProfile(customer Customer) (*MessagesResponse, error)
- func DeleteShippingProfile(customer Customer) (*MessagesResponse, error)
- func MessageResponder(d interface{}) (*MessagesResponse, error)
- func UpdatePaymentProfile(profile Profile) (*MessagesResponse, error)
- func UpdateProfile(profile Profile) (*MessagesResponse, error)
- func UpdateShippingProfile(profile Profile) (*MessagesResponse, error)
- type NewTransaction
- type Paging
- type Payment
- type PaymentProfile
- type PaymentProfiles
- type PaymentSchedule
- type PreviousTransaction
- func (t PreviousTransaction) Approve() (*TransactionResponse, error)
- func (tranx PreviousTransaction) Capture() (*TransactionResponse, error)
- func (t PreviousTransaction) Decline() (*TransactionResponse, error)
- func (tranx PreviousTransaction) Info() (*FullTransaction, error)
- func (tranx PreviousTransaction) Void() (*TransactionResponse, error)
- type Profile
- func (profile Profile) CreateProfile() (*CustomProfileResponse, error)
- func (profile Profile) CreateShipping() (*CreateCustomerShippingAddressResponse, error)
- func (profile Profile) UpdatePaymentProfile() (*MessagesResponse, error)
- func (profile Profile) UpdateProfile() (*MessagesResponse, error)
- func (profile Profile) UpdateShippingProfile() (*MessagesResponse, error)
- type Range
- type SetSubscription
- type Setting
- type Shipping
- type Sorting
- type Statistics
- type Subscription
- type SubscriptionCancel
- type SubscriptionResponse
- type SubscriptionStatus
- type Tax
- type Transaction
- type TransactionDetailsResponse
- type TransactionMessages
- type TransactionRequest
- type TransactionResponse
- type TransactionSettings
- type TransactionsList
- type TransxReponse
- type TranxResponse
- type UnsettledTransactionListResponse
- type UnsettledTransactionsRequest
- type UpPaymentProfile
- type UpdateCustomerPaymentProfile
- type UpdateCustomerPaymentProfileRequest
- type UpdateCustomerProfile
- type UpdateCustomerProfileRequest
- type UpdateCustomerShippingAddress
- type UpdateCustomerShippingAddressRequest
- type UpdateHeldTransaction
- type UpdateHeldTransactionRequest
- type UpdateSubscriptionRequest
- type UserField
- type UserFields
- type ValidateCustomerPaymentProfile
- type ValidateCustomerPaymentProfileRequest
- type ValidateCustomerPaymentProfileResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChargeTokenCard ¶
func ChargeTokenCard()
func CreditAcceptPaymentTransaction ¶
func CreditAcceptPaymentTransaction()
func CreditBankAccount ¶
func CreditBankAccount()
func CurrentDate ¶
func CurrentDate() string
func DebitBankAccount ¶
func DebitBankAccount()
func GetAccessPaymentPage ¶
func GetAccessPaymentPage()
func GetHostedPaymentPage ¶
func GetHostedPaymentPage()
func GetProfileIds ¶
func IsConnected ¶
func SendRequest ¶
func SetAPIInfo ¶
func UpdateSplitTenderGround ¶
func UpdateSplitTenderGround()
Types ¶
type ARBCreateSubscriptionRequest ¶
type ARBCreateSubscriptionRequest struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` RefID string `json:"refId,omitempty"` Subscription Subscription `json:"subscription"` }
type ARBGetSubscriptionListRequest ¶
type ARBGetSubscriptionListRequest struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` SearchType string `json:"searchType"` Sorting Sorting `json:"sorting"` Paging Paging `json:"paging"` }
type ARBGetSubscriptionRequest ¶
type ARBGetSubscriptionRequest struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` RefID string `json:"refId"` SubscriptionID string `json:"subscriptionId"` }
type ARBUpdateSubscriptionRequest ¶
type ARBUpdateSubscriptionRequest struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` RefID string `json:"refId,omitempty"` SubscriptionId string `json:"subscriptionId,omitempty"` Subscription Subscription `json:"subscription,omitempty"` }
type Address ¶
type Address struct { FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` Company string `json:"company,omitempty"` Address string `json:"address,omitempty"` City string `json:"city,omitempty"` State string `json:"state,omitempty"` Zip string `json:"zip,omitempty"` Country string `json:"country,omitempty"` PhoneNumber string `json:"phoneNumber,omitempty"` FaxNumber string `json:"faxNumber,omitempty"` CustomerAddressID string `json:"customerAddressId,omitempty"` }
type BatchList ¶
type BatchList struct { BatchID string `json:"batchId"` SettlementTimeUTC time.Time `json:"settlementTimeUTC"` SettlementTimeUTCSpecified bool `json:"settlementTimeUTCSpecified"` SettlementTimeLocal string `json:"settlementTimeLocal"` SettlementTimeLocalSpecified bool `json:"settlementTimeLocalSpecified"` SettlementState string `json:"settlementState"` PaymentMethod string `json:"paymentMethod"` }
type BatchListResponse ¶
type BatchListResponse struct { MessagesResponse BatchList []BatchList `json:"batchList,omitempty"` }
func (BatchListResponse) List ¶
func (r BatchListResponse) List() []BatchList
type BatchStatisticsResponse ¶
type BatchStatisticsResponse struct { Batch struct { BatchID string `json:"batchId"` SettlementTimeUTC time.Time `json:"settlementTimeUTC"` SettlementTimeUTCSpecified bool `json:"settlementTimeUTCSpecified"` SettlementTimeLocal string `json:"settlementTimeLocal"` SettlementTimeLocalSpecified bool `json:"settlementTimeLocalSpecified"` SettlementState string `json:"settlementState"` PaymentMethod string `json:"paymentMethod"` Statistics []Statistics `json:"statistics"` } `json:"batch"` MessagesResponse }
type BatchTransaction ¶
type BatchTransaction struct { TransID string `json:"transId"` SubmitTimeUTC time.Time `json:"submitTimeUTC"` SubmitTimeLocal string `json:"submitTimeLocal"` TransactionStatus string `json:"transactionStatus"` InvoiceNumber string `json:"invoiceNumber"` FirstName string `json:"firstName"` LastName string `json:"lastName"` AccountType string `json:"accountType"` AccountNumber string `json:"accountNumber"` SettleAmount float64 `json:"settleAmount"` MarketType string `json:"marketType"` Product string `json:"product"` FraudInformation struct { FraudFilterList []string `json:"fraudFilterList"` FraudAction string `json:"fraudAction"` } `json:"fraudInformation"` }
type BillTo ¶
type BillTo struct { FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` Address string `json:"address,omitempty"` City string `json:"city,omitempty"` State string `json:"state,omitempty"` Zip string `json:"zip,omitempty"` Country string `json:"country,omitempty"` PhoneNumber string `json:"phoneNumber,omitempty"` }
type CreateCustomerPaymentProfile ¶
type CreateCustomerPaymentProfile struct {
CreateCustomerPaymentProfileRequest CreateCustomerPaymentProfileRequest `json:"createCustomerPaymentProfileRequest"`
}
type CreateCustomerPaymentProfileRequest ¶
type CreateCustomerPaymentProfileRequest struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` CustomerProfileID string `json:"customerProfileId"` PaymentProfile PaymentProfile `json:"paymentProfile"` }
type CreateCustomerProfile ¶
type CreateCustomerProfile struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` Profile Profile `json:"profile"` ValidationMode string `json:"validationMode"` }
type CreateCustomerProfileRequest ¶
type CreateCustomerProfileRequest struct {
CreateCustomerProfile CreateCustomerProfile `json:"createCustomerProfileRequest"`
}
type CreateCustomerShippingAddress ¶
type CreateCustomerShippingAddress struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` CustomerProfileID string `json:"customerProfileId,omitempty"` Address *Address `json:"address,omitempty"` }
type CreateCustomerShippingAddressRequest ¶
type CreateCustomerShippingAddressRequest struct {
CreateCustomerShippingAddress CreateCustomerShippingAddress `json:"createCustomerShippingAddressRequest"`
}
type CreateCustomerShippingAddressResponse ¶
type CreateCustomerShippingAddressResponse struct { CustomerAddressID string `json:"customerAddressId,omitempty"` MessagesResponse }
func CreateShipping ¶
func CreateShipping(profile Profile) (*CreateCustomerShippingAddressResponse, error)
type CreatePayment ¶
type CreatePayment struct {
CreateTransactionRequest CreateTransactionRequest `json:"createTransactionRequest,omitempty"`
}
type CreateSubscriptionRequest ¶
type CreateSubscriptionRequest struct {
ARBCreateSubscriptionRequest ARBCreateSubscriptionRequest `json:"ARBCreateSubscriptionRequest"`
}
type CreateTransactionRequest ¶
type CreateTransactionRequest struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication,omitempty"` RefID string `json:"refId,omitempty"` TransactionRequest TransactionRequest `json:"transactionRequest,omitempty"` }
type CreditCard ¶
type CustomProfileResponse ¶
type CustomProfileResponse struct { CustomerProfileID string `json:"customerProfileId"` CustomerPaymentProfileIDList []string `json:"customerPaymentProfileIdList"` CustomerShippingAddressIDList []interface{} `json:"customerShippingAddressIdList"` ValidationDirectResponseList []string `json:"validationDirectResponseList"` MessagesResponse }
func CreateProfile ¶
func CreateProfile(profile Profile) (*CustomProfileResponse, error)
type Customer ¶
type Customer struct { ID string `json:"id,omitempty"` Email string `json:"email,omitempty"` PaymentID string `json:"paymentId,omitempty"` ShippingID string `json:"shippingId,omitempty"` PhoneNumber string `json:"phoneNumber,omitempty"` }
func (Customer) DeletePaymentProfile ¶
func (customer Customer) DeletePaymentProfile() (*MessagesResponse, error)
func (Customer) DeleteProfile ¶
func (customer Customer) DeleteProfile() (*MessagesResponse, error)
func (Customer) DeleteShippingProfile ¶
func (customer Customer) DeleteShippingProfile() (*MessagesResponse, error)
func (Customer) Info ¶
func (customer Customer) Info() (*GetCustomerProfileResponse, error)
func (Customer) Validate ¶
func (customer Customer) Validate() (*ValidateCustomerPaymentProfileResponse, error)
type CustomerPaymentProfile ¶
type CustomerPaymentProfile struct { CustomerProfileID string `json:"customerProfileId"` PaymentProfile PaymentProfile `json:"paymentProfile"` }
func (CustomerPaymentProfile) Add ¶
func (payment CustomerPaymentProfile) Add() (*CustomerPaymentProfileResponse, error)
type CustomerPaymentProfileResponse ¶
type CustomerPaymentProfileResponse struct { CustomerProfileId string `json:"customerProfileId"` CustomerPaymentProfileID string `json:"customerPaymentProfileId"` ValidationDirectResponse string `json:"validationDirectResponse"` MessagesResponse }
func CreatePaymentProfile ¶
func CreatePaymentProfile(profile CustomerPaymentProfile) (*CustomerPaymentProfileResponse, error)
type CustomerProfileIdsRequest ¶
type CustomerProfileIdsRequest struct {
MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"`
}
type CustomerProfileRequest ¶
type CustomerProfileRequest struct {
GetCustomerProfile GetCustomerProfile `json:"getCustomerProfileRequest"`
}
type CustomerProfiler ¶
type DeleteCustomerPaymentProfile ¶
type DeleteCustomerPaymentProfile struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` CustomerProfileID string `json:"customerProfileId"` CustomerPaymentProfileID string `json:"customerPaymentProfileId"` }
type DeleteCustomerPaymentProfileRequest ¶
type DeleteCustomerPaymentProfileRequest struct {
DeleteCustomerPaymentProfile DeleteCustomerPaymentProfile `json:"deleteCustomerPaymentProfileRequest"`
}
type DeleteCustomerProfile ¶
type DeleteCustomerProfile struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` CustomerProfileID string `json:"customerProfileId"` }
type DeleteCustomerProfileRequest ¶
type DeleteCustomerProfileRequest struct {
DeleteCustomerProfile DeleteCustomerProfile `json:"deleteCustomerProfileRequest"`
}
type DeleteCustomerShippingProfile ¶
type DeleteCustomerShippingProfile struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` CustomerProfileID string `json:"customerProfileId"` CustomerShippingID string `json:"customerAddressId"` }
type DeleteCustomerShippingProfileRequest ¶
type DeleteCustomerShippingProfileRequest struct {
DeleteCustomerShippingProfile DeleteCustomerShippingProfile `json:"deleteCustomerShippingAddressRequest"`
}
type FullTransaction ¶
type FullTransaction struct { //artificially introduced. Never filled by AuthNet PaymentType string TransID string `json:"transId"` SubmitTimeUTC time.Time `json:"submitTimeUTC"` SubmitTimeLocal string `json:"submitTimeLocal"` TransactionType string `json:"transactionType"` TransactionStatus string `json:"transactionStatus"` ResponseCode int `json:"responseCode"` ResponseReasonCode int `json:"responseReasonCode"` ResponseReasonDescription string `json:"responseReasonDescription"` AVSResponse string `json:"AVSResponse"` Batch struct { BatchID string `json:"batchId"` SettlementTimeUTC time.Time `json:"settlementTimeUTC"` SettlementTimeUTCSpecified bool `json:"settlementTimeUTCSpecified"` SettlementTimeLocal string `json:"settlementTimeLocal"` SettlementTimeLocalSpecified bool `json:"settlementTimeLocalSpecified"` SettlementState string `json:"settlementState"` } `json:"batch"` Order struct { InvoiceNumber string `json:"invoiceNumber"` InvoiceDescription string `json:"description"` } `json:"order"` RequestedAmountSpecified bool `json:"requestedAmountSpecified"` AuthAmount float64 `json:"authAmount"` SettleAmount float64 `json:"settleAmount"` PrepaidBalanceRemainingSpecified bool `json:"prepaidBalanceRemainingSpecified"` TaxExempt bool `json:"taxExempt"` TaxExemptSpecified bool `json:"taxExemptSpecified"` Payment struct { BankAccount struct { AccountType int `json:"accountType"` AccountTypeSpecified bool `json:"accountTypeSpecified"` RoutingNumber string `json:"routingNumber"` AccountNumber string `json:"accountNumber"` NameOnAccount string `json:"nameOnAccount"` EcheckType string `json:"echeckType"` EcheckTypeSpecified bool `json:"echeckTypeSpecified"` BankName interface{} `json:"bankName"` } `json:"bankAccount,omitempty"` CreditCard struct { CardNumber string `json:"cardNumber"` ExpirationDate string `json:"expirationDate"` CardType string `json:"cardType"` } `json:"creditCard,omitempty"` } `json:"payment"` RecurringBilling bool `json:"recurringBilling"` RecurringBillingSpecified bool `json:"recurringBillingSpecified"` ReturnedItems []struct { ID string `json:"id"` DateUTC time.Time `json:"dateUTC"` DateLocal string `json:"dateLocal"` Code string `json:"code"` Description string `json:"description"` } `json:"returnedItems"` Customer struct { Type string `json:"type"` Id string `json:"id"` Email string `json:"email"` } `json:"customer"` BillTo struct { Company string `json:"company,omitempty"` } `json:"billTo"` }
type GetBatchStatistics ¶
type GetBatchStatistics struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` BatchID string `json:"batchId"` }
type GetBatchStatisticsRequest ¶
type GetBatchStatisticsRequest struct {
GetBatchStatistics GetBatchStatistics `json:"getBatchStatisticsRequest"`
}
type GetCustomerPaymentProfileList ¶
type GetCustomerPaymentProfileList struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` SearchType string `json:"searchType"` Month string `json:"month"` Sorting Sorting `json:"sorting"` Paging Paging `json:"paging"` }
type GetCustomerPaymentProfileListRequest ¶
type GetCustomerPaymentProfileListRequest struct {
GetCustomerPaymentProfileList GetCustomerPaymentProfileList `json:"getCustomerPaymentProfileListRequest"`
}
type GetCustomerPaymentProfileListResponse ¶
type GetCustomerPaymentProfileListResponse struct { GetCustomerPaymentProfileList struct { MessagesResponse TotalNumInResultSet string `json:"totalNumInResultSet"` PaymentProfiles struct { PaymentProfile []PaymentProfile `json:"paymentProfile"` } `json:"paymentProfiles"` } `json:"getCustomerPaymentProfileListResponse"` }
func GetPaymentProfileIds ¶
func GetPaymentProfileIds(month string, method string) (*GetCustomerPaymentProfileListResponse, error)
type GetCustomerProfile ¶
type GetCustomerProfile struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` CustomerProfileID string `json:"customerProfileId"` }
type GetCustomerProfileIdsRequest ¶
type GetCustomerProfileIdsRequest struct {
CustomerProfileIdsRequest CustomerProfileIdsRequest `json:"getCustomerProfileIdsRequest"`
}
type GetCustomerProfileResponse ¶
type GetCustomerProfileResponse struct { Profile struct { PaymentProfiles []GetPaymentProfiles `json:"paymentProfiles,omitempty"` ShippingProfiles []GetShippingProfiles `json:"shipToList,omitempty"` CustomerProfileID string `json:"customerProfileId"` MerchantCustomerID string `json:"merchantCustomerId,omitempty"` Description string `json:"description,omitempty"` Email string `json:"email,omitempty"` } `json:"profile"` SubscriptionIds []string `json:"subscriptionIds"` MessagesResponse }
func GetProfile ¶
func GetProfile(customer Customer) (*GetCustomerProfileResponse, error)
func (GetCustomerProfileResponse) PaymentProfiles ¶
func (response GetCustomerProfileResponse) PaymentProfiles() []GetPaymentProfiles
func (GetCustomerProfileResponse) ShippingProfiles ¶
func (response GetCustomerProfileResponse) ShippingProfiles() []GetShippingProfiles
func (GetCustomerProfileResponse) Subscriptions ¶
func (response GetCustomerProfileResponse) Subscriptions() []string
type GetMerchantDetailsReq ¶
type GetMerchantDetailsReq struct {
MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"`
}
type GetMerchantDetailsRequest ¶
type GetMerchantDetailsRequest struct {
GetMerchantDetailsReq GetMerchantDetailsReq `json:"getMerchantDetailsRequest"`
}
type GetPaymentProfiles ¶
type GetPaymentProfiles struct { CustomerPaymentProfileID string `json:"customerPaymentProfileId"` Payment struct { CreditCard struct { CardNumber string `json:"cardNumber"` ExpirationDate string `json:"expirationDate"` } `json:"creditCard"` } `json:"payment"` CustomerType string `json:"customerType"` BillTo struct { FirstName string `json:"firstName"` LastName string `json:"lastName"` } `json:"billTo"` }
type GetSettledBatchList ¶
type GetSettledBatchListRequest ¶
type GetSettledBatchListRequest struct {
GetSettledBatchList GetSettledBatchList `json:"getSettledBatchListRequest"`
}
type GetShippingProfiles ¶
type GetShippingProfiles struct { CustomerAddressID string `json:"customerAddressId"` FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` Company string `json:"company,omitempty"` Address string `json:"address,omitempty"` City string `json:"city,omitempty"` State string `json:"state,omitempty"` Zip string `json:"zip,omitempty"` Country string `json:"country,omitempty"` PhoneNumber string `json:"phoneNumber,omitempty"` }
type GetSubscriptionCancelRequest ¶
type GetSubscriptionCancelRequest struct {
ARBCancelSubscriptionRequest ARBGetSubscriptionRequest `json:"ARBCancelSubscriptionRequest"`
}
type GetSubscriptionList ¶
type GetSubscriptionList struct { TotalNumInResultSet int `json:"totalNumInResultSet"` SubscriptionDetails []struct { ID int `json:"id"` Name string `json:"name"` Status string `json:"status"` CreateTimeStampUTC string `json:"createTimeStampUTC"` FirstName string `json:"firstName"` LastName string `json:"lastName"` TotalOccurrences int `json:"totalOccurrences"` PastOccurrences int `json:"pastOccurrences"` PaymentMethod string `json:"paymentMethod"` AccountNumber string `json:"accountNumber"` Invoice string `json:"invoice"` Amount float64 `json:"amount"` CurrencyCode string `json:"currencyCode"` CustomerProfileID int `json:"customerProfileId"` CustomerPaymentProfileID int `json:"customerPaymentProfileId,omitempty"` CustomerShippingProfileID int `json:"customerShippingProfileId,omitempty"` } `json:"subscriptionDetails"` MessagesResponse }
func SubscriptionList ¶
func SubscriptionList(search string) (*GetSubscriptionList, error)
func (GetSubscriptionList) Count ¶
func (sub GetSubscriptionList) Count() int
type GetSubscriptionListRequest ¶
type GetSubscriptionListRequest struct {
ARBGetSubscriptionListRequest ARBGetSubscriptionListRequest `json:"ARBGetSubscriptionListRequest"`
}
type GetSubscriptionRequest ¶
type GetSubscriptionRequest struct {
ARBGetSubscriptionRequest ARBGetSubscriptionRequest `json:"ARBGetSubscriptionRequest"`
}
type GetSubscriptionResponse ¶
type GetSubscriptionResponse struct { Subscription struct { Name string `json:"name"` PaymentSchedule struct { Interval struct { Length int `json:"length"` Unit string `json:"unit"` } `json:"interval"` StartDate string `json:"startDate"` TotalOccurrences int `json:"totalOccurrences"` TrialOccurrences int `json:"trialOccurrences"` } `json:"paymentSchedule"` Amount float64 `json:"amount"` TrialAmount float64 `json:"trialAmount"` Status string `json:"status"` Profile struct { PaymentProfile struct { CustomerPaymentProfileID string `json:"customerPaymentProfileId"` Payment struct { CreditCard struct { CardNumber string `json:"cardNumber"` ExpirationDate string `json:"expirationDate"` } `json:"creditCard"` } `json:"payment"` CustomerType string `json:"customerType"` BillTo struct { FirstName string `json:"firstName"` LastName string `json:"lastName"` } `json:"billTo"` } `json:"paymentProfile"` CustomerProfileID string `json:"customerProfileId"` Description string `json:"description"` } `json:"profile"` } `json:"subscription"` RefID string `json:"refId"` MessagesResponse }
func (GetSubscriptionResponse) ErrorMessage ¶
func (sub GetSubscriptionResponse) ErrorMessage() string
type GetSubscriptionStatusRequest ¶
type GetSubscriptionStatusRequest struct {
ARBGetSubscriptionStatusRequest ARBGetSubscriptionRequest `json:"ARBGetSubscriptionStatusRequest"`
}
type GetTransactionDetails ¶
type GetTransactionDetails struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` TransID string `json:"transId"` }
type GetTransactionDetailsRequest ¶
type GetTransactionDetailsRequest struct {
GetTransactionDetails GetTransactionDetails `json:"getTransactionDetailsRequest"`
}
type GetTransactionList ¶
type GetTransactionList struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` BatchID string `json:"batchId,omitempty"` Sorting *Sorting `json:"sorting,omitempty"` Paging *Paging `json:"paging,omitempty"` }
type GetTransactionListRequest ¶
type GetTransactionListRequest struct {
GetTransactionList GetTransactionList `json:"getTransactionListRequest"`
}
type GetTransactionListResponse ¶
type GetTransactionListResponse struct { MessagesResponse Transactions []Transaction `json:"transactions"` TotalNumInResultSet int `json:"totalNumInResultSet"` }
func (*GetTransactionListResponse) Count ¶
func (r *GetTransactionListResponse) Count() int
func (*GetTransactionListResponse) List ¶
func (r *GetTransactionListResponse) List() []Transaction
type GetUnsettledBatchTransactionListRequest ¶
type GetUnsettledBatchTransactionListRequest struct {
GetUnsettledTransactionList GetUnsettledTransactionList `json:"getUnsettledTransactionListRequest"`
}
type GetUnsettledTransactionList ¶
type GetUnsettledTransactionList struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` Sorting *Sorting `json:"sorting,omitempty"` Paging *Paging `json:"paging,omitempty"` }
type GetUnsettledTransactionListRequest ¶
type GetUnsettledTransactionListRequest struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication,omitempty"` Status string `json:"status,omitempty"` }
type HeldTransactionRequest ¶
type Interval ¶
type Interval struct { Length string `json:"length,omitempty"` Unit string `json:"unit,omitempty"` }
func IntervalDays ¶
func IntervalMonthly ¶
func IntervalMonthly() Interval
func IntervalMonths ¶
func IntervalQuarterly ¶
func IntervalQuarterly() Interval
func IntervalWeekly ¶
func IntervalWeekly() Interval
func IntervalYearly ¶
func IntervalYearly() Interval
type MerchantAuthentication ¶
type MerchantAuthentication struct { Name *string `json:"name,omitempty"` TransactionKey *string `json:"transactionKey,omitempty"` }
func GetAuthentication ¶
func GetAuthentication() MerchantAuthentication
type MerchantDetailsResponse ¶
type MerchantDetailsResponse struct { IsTestMode bool `json:"isTestMode"` Processors []struct { Name string `json:"name"` } `json:"processors"` MerchantName string `json:"merchantName"` GatewayID string `json:"gatewayId"` MarketTypes []string `json:"marketTypes"` ProductCodes []string `json:"productCodes"` PaymentMethods []string `json:"paymentMethods"` Currencies []string `json:"currencies"` MessagesResponse }
func GetMerchantDetails ¶
func GetMerchantDetails() (*MerchantDetailsResponse, error)
type MessageResponse ¶
type MessagesResponse ¶
type MessagesResponse struct { Messages struct { ResultCode string `json:"resultCode"` Message []struct { Code string `json:"code"` Text string `json:"text"` } `json:"message"` } `json:"messages"` }
func DeletePaymentProfile ¶
func DeletePaymentProfile(customer Customer) (*MessagesResponse, error)
func DeleteProfile ¶
func DeleteProfile(customer Customer) (*MessagesResponse, error)
func DeleteShippingProfile ¶
func DeleteShippingProfile(customer Customer) (*MessagesResponse, error)
func MessageResponder ¶
func MessageResponder(d interface{}) (*MessagesResponse, error)
func UpdatePaymentProfile ¶
func UpdatePaymentProfile(profile Profile) (*MessagesResponse, error)
func UpdateProfile ¶
func UpdateProfile(profile Profile) (*MessagesResponse, error)
func UpdateShippingProfile ¶
func UpdateShippingProfile(profile Profile) (*MessagesResponse, error)
func (MessagesResponse) ErrorMessage ¶
func (r MessagesResponse) ErrorMessage() string
func (MessagesResponse) Ok ¶
func (r MessagesResponse) Ok() bool
type NewTransaction ¶
type NewTransaction struct { Amount string `json:"amount,omitempty"` InvoiceId string `json:"invoiceId,omitempty"` RefTransId string `json:"refTransId,omitempty"` CreditCard CreditCard `json:"payment,omitempty"` AuthCode string `json:"authCode,omitempty"` BillTo *BillTo `json:"omitempty"` }
func (NewTransaction) AuthOnly ¶
func (tranx NewTransaction) AuthOnly() (*TransactionResponse, error)
func (NewTransaction) Charge ¶
func (tranx NewTransaction) Charge() (*TransactionResponse, error)
func (NewTransaction) ChargeProfile ¶
func (tranx NewTransaction) ChargeProfile(profile Customer) (*TransactionResponse, error)
func (NewTransaction) Refund ¶
func (tranx NewTransaction) Refund() (*TransactionResponse, error)
type Payment ¶
type Payment struct {
CreditCard CreditCard `json:"creditCard,omitempty"`
}
type PaymentProfile ¶
type PaymentProfiles ¶
type PaymentSchedule ¶
type PreviousTransaction ¶
type PreviousTransaction struct { RefId string `json:"refTransId,omitempty"` Amount string `json:"amount,omitempty"` }
func (PreviousTransaction) Approve ¶
func (t PreviousTransaction) Approve() (*TransactionResponse, error)
func (PreviousTransaction) Capture ¶
func (tranx PreviousTransaction) Capture() (*TransactionResponse, error)
func (PreviousTransaction) Decline ¶
func (t PreviousTransaction) Decline() (*TransactionResponse, error)
func (PreviousTransaction) Info ¶
func (tranx PreviousTransaction) Info() (*FullTransaction, error)
func (PreviousTransaction) Void ¶
func (tranx PreviousTransaction) Void() (*TransactionResponse, error)
type Profile ¶
type Profile struct { MerchantCustomerID string `json:"merchantCustomerId,omitempty"` Description string `json:"description,omitempty"` Email string `json:"email,omitempty"` CustomerProfileId string `json:"customerProfileId,omitempty"` PaymentProfiles *PaymentProfiles `json:"paymentProfiles,omitempty"` PaymentProfileId string `json:"customerPaymentProfileId,omitempty"` Shipping *Address `json:"address,omitempty"` CustomerAddressId string `json:"customerAddressId,omitempty"` PaymentProfile *PaymentProfile `json:"paymentProfile,omitempty"` }
func (Profile) CreateProfile ¶
func (profile Profile) CreateProfile() (*CustomProfileResponse, error)
func (Profile) CreateShipping ¶
func (profile Profile) CreateShipping() (*CreateCustomerShippingAddressResponse, error)
func (Profile) UpdatePaymentProfile ¶
func (profile Profile) UpdatePaymentProfile() (*MessagesResponse, error)
func (Profile) UpdateProfile ¶
func (profile Profile) UpdateProfile() (*MessagesResponse, error)
func (Profile) UpdateShippingProfile ¶
func (profile Profile) UpdateShippingProfile() (*MessagesResponse, error)
type Range ¶
type Range struct { Start time.Time `"omitempty"` End time.Time `"omitempty"` BatchId string `"omitempty"` Sorting Sorting `"omitempty"` Paging Paging `"omitempty"` }
func (Range) SettledBatch ¶
func (r Range) SettledBatch() (*BatchListResponse, error)
func (Range) Statistics ¶
func (r Range) Statistics() (*Statistics, error)
func (Range) Transactions ¶
func (r Range) Transactions() (*GetTransactionListResponse, error)
type SetSubscription ¶
type SetSubscription struct {
Id string `json:"subscriptionId"`
}
func (SetSubscription) Cancel ¶
func (sub SetSubscription) Cancel() (*SubscriptionCancel, error)
func (SetSubscription) Info ¶
func (sub SetSubscription) Info() (*GetSubscriptionResponse, error)
func (SetSubscription) Status ¶
func (sub SetSubscription) Status() (*SubscriptionStatus, error)
type Statistics ¶
type Statistics struct { AccountType string `json:"accountType"` ChargeAmount float64 `json:"chargeAmount"` ChargeCount int `json:"chargeCount"` RefundAmount float64 `json:"refundAmount"` RefundCount int `json:"refundCount"` VoidCount int `json:"voidCount"` DeclineCount int `json:"declineCount"` ErrorCount int `json:"errorCount"` ReturnedItemAmount int `json:"returnedItemAmount"` ReturnedItemAmountSpecified bool `json:"returnedItemAmountSpecified"` ReturnedItemCount int `json:"returnedItemCount"` ReturnedItemCountSpecified bool `json:"returnedItemCountSpecified"` ChargebackAmount int `json:"chargebackAmount"` ChargebackAmountSpecified bool `json:"chargebackAmountSpecified"` ChargebackCount int `json:"chargebackCount"` ChargebackCountSpecified bool `json:"chargebackCountSpecified"` CorrectionNoticeCount int `json:"correctionNoticeCount"` CorrectionNoticeCountSpecified bool `json:"correctionNoticeCountSpecified"` ChargeChargeBackAmount int `json:"chargeChargeBackAmount"` ChargeChargeBackAmountSpecified bool `json:"chargeChargeBackAmountSpecified"` ChargeChargeBackCount int `json:"chargeChargeBackCount"` ChargeChargeBackCountSpecified bool `json:"chargeChargeBackCountSpecified"` RefundChargeBackAmount int `json:"refundChargeBackAmount"` RefundChargeBackAmountSpecified bool `json:"refundChargeBackAmountSpecified"` RefundChargeBackCount int `json:"refundChargeBackCount"` RefundChargeBackCountSpecified bool `json:"refundChargeBackCountSpecified"` ChargeReturnedItemsAmount float64 `json:"chargeReturnedItemsAmount"` ChargeReturnedItemsAmountSpecified bool `json:"chargeReturnedItemsAmountSpecified"` ChargeReturnedItemsCount int `json:"chargeReturnedItemsCount"` ChargeReturnedItemsCountSpecified bool `json:"chargeReturnedItemsCountSpecified"` RefundReturnedItemsAmount int `json:"refundReturnedItemsAmount"` RefundReturnedItemsAmountSpecified bool `json:"refundReturnedItemsAmountSpecified"` RefundReturnedItemsCount int `json:"refundReturnedItemsCount"` RefundReturnedItemsCountSpecified bool `json:"refundReturnedItemsCountSpecified"` }
type Subscription ¶
type Subscription struct { Name string `json:"name,omitempty"` PaymentSchedule *PaymentSchedule `json:"paymentSchedule,omitempty"` Amount string `json:"amount,omitempty"` TrialAmount string `json:"trialAmount,omitempty"` Payment *Payment `json:"payment,omitempty"` BillTo *BillTo `json:"billTo,omitempty"` SubscriptionId string `json:"subscriptionId,omitempty"` Profile *CustomerProfiler `json:"profile,omitempty"` }
func (Subscription) Charge ¶
func (sub Subscription) Charge() (*SubscriptionResponse, error)
func (Subscription) Update ¶
func (sub Subscription) Update() (*SubscriptionResponse, error)
type SubscriptionCancel ¶
type SubscriptionCancel struct { RefID string `json:"refId"` MessagesResponse }
type SubscriptionResponse ¶
type SubscriptionResponse struct { SubscriptionID string `json:"subscriptionId"` Profile struct { CustomerProfileID string `json:"customerProfileId"` CustomerPaymentProfileID string `json:"customerPaymentProfileId"` } `json:"profile"` Messages struct { ResultCode string `json:"resultCode"` Message []struct { Code string `json:"code"` Text string `json:"text"` } `json:"message"` } `json:"messages"` }
func SendSubscription ¶
func SendSubscription(sub Subscription) (*SubscriptionResponse, error)
func UpdateSubscription ¶
func UpdateSubscription(sub Subscription) (*SubscriptionResponse, error)
func (SubscriptionResponse) Approved ¶
func (response SubscriptionResponse) Approved() bool
func (SubscriptionResponse) CustomerPaymentProfileId ¶
func (response SubscriptionResponse) CustomerPaymentProfileId() string
func (SubscriptionResponse) CustomerProfileId ¶
func (response SubscriptionResponse) CustomerProfileId() string
func (SubscriptionResponse) ErrorMessage ¶
func (response SubscriptionResponse) ErrorMessage() string
func (SubscriptionResponse) Info ¶
func (response SubscriptionResponse) Info() string
type SubscriptionStatus ¶
type SubscriptionStatus struct { Note string `json:"note"` Status string `json:"status"` StatusSpecified bool `json:"statusSpecified"` RefID string `json:"refId"` MessagesResponse }
func (SubscriptionStatus) Active ¶
func (s SubscriptionStatus) Active() bool
type Transaction ¶
type Transaction struct { TransID string `json:"transId"` SubmitTimeUTC string `json:"submitTimeUTC"` SubmitTimeLocal string `json:"submitTimeLocal"` TransactionStatus string `json:"transactionStatus"` Invoice string `json:"invoice,omitempty"` FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` Amount string `json:"amount,omitempty"` AccountType string `json:"accountType,omitempty"` AccountNumber string `json:"accountNumber,omitempty"` SettleAmount float64 `json:"settleAmount,omitempty"` Subscription struct { ID int `json:"id"` PayNum int `json:"payNum,omitempty"` } `json:"subscription,omitempty"` MarketType string `json:"marketType,omitempty"` Product string `json:"product,omitempty"` MobileDeviceID string `json:"mobileDeviceId,omitempty"` }
type TransactionDetailsResponse ¶
type TransactionDetailsResponse struct { Transaction FullTransaction `json:"transaction"` MessagesResponse }
type TransactionMessages ¶
type TransactionRequest ¶
type TransactionRequest struct { TransactionType string `json:"transactionType,omitempty"` Amount string `json:"amount,omitempty"` Payment *Payment `json:"payment,omitempty"` RefTransId string `json:"refTransId,omitempty"` AuthCode string `json:"authCode,omitempty"` Profile *Profile `json:"profile,omitempty"` LineItems *LineItems `json:"lineItems,omitempty"` //Tax Tax `json:"tax,omitempty"` //Duty Duty `json:"duty,omitempty"` //Shipping Shipping `json:"shipping,omitempty"` //PoNumber string `json:"poNumber,omitempty"` //Customer Customer `json:"customer,omitempty"` BillTo *BillTo `json:"billTo,omitempty"` ShipTo *Address `json:"shipTo,omitempty"` CustomerIP string `json:"customerIP,omitempty"` }
type TransactionResponse ¶
type TransactionResponse struct { Response TranxResponse `json:"transactionResponse"` MessagesResponse }
func SendTransactionRequest ¶
func SendTransactionRequest(input TransactionRequest) (*TransactionResponse, error)
func SendTransactionUpdate ¶
func SendTransactionUpdate(tranx PreviousTransaction, method string) (*TransactionResponse, error)
func (TransactionResponse) AVS ¶
func (transx TransactionResponse) AVS() AVS
func (TransactionResponse) Approved ¶
func (r TransactionResponse) Approved() bool
func (TransactionResponse) Held ¶
func (r TransactionResponse) Held() bool
func (TransactionResponse) Message ¶
func (transx TransactionResponse) Message() string
func (TransactionResponse) TransactionID ¶
func (transx TransactionResponse) TransactionID() string
type TransactionSettings ¶
type TransactionSettings struct {
Setting Setting `json:"setting,omitempty"`
}
type TransactionsList ¶
type TransactionsList struct { Transactions []BatchTransaction `json:"transactions"` TotalNumInResultSet int `json:"totalNumInResultSet"` MessagesResponse }
func SendGetUnsettled ¶
func SendGetUnsettled() (*TransactionsList, error)
func UnsettledBatchList ¶
func UnsettledBatchList() (*TransactionsList, error)
func (TransactionsList) Count ¶
func (input TransactionsList) Count() int
func (TransactionsList) List ¶
func (input TransactionsList) List() ([]BatchTransaction, error)
type TransxReponse ¶
type TransxReponse interface { ErrorMessage() Approved() }
type TranxResponse ¶
type TranxResponse struct { ResponseCode string `json:"responseCode"` AuthCode string `json:"authCode"` AvsResultCode string `json:"avsResultCode"` CvvResultCode string `json:"cvvResultCode"` CavvResultCode string `json:"cavvResultCode"` TransID string `json:"transId"` RefTransID string `json:"refTransID"` TransHash string `json:"transHash"` TestRequest string `json:"testRequest"` AccountNumber string `json:"accountNumber"` AccountType string `json:"accountType"` Errors []struct { ErrorCode string `json:"errorCode"` ErrorText string `json:"errorText"` } `json:"errors"` TransactionMessages TransHashSha2 string `json:"transHashSha2"` Message TransactionMessages }
type UnsettledTransactionListResponse ¶
type UnsettledTransactionListResponse struct { Transactions []Transaction `json:"transactions"` MessagesResponse }
func UnSettledBatch ¶
func UnSettledBatch() (*UnsettledTransactionListResponse, error)
func (UnsettledTransactionListResponse) List ¶
func (r UnsettledTransactionListResponse) List() []Transaction
type UnsettledTransactionsRequest ¶
type UnsettledTransactionsRequest struct {
GetUnsettledTransactionListRequest GetUnsettledTransactionListRequest `json:"getUnsettledTransactionListRequest"`
}
type UpPaymentProfile ¶
type UpdateCustomerPaymentProfile ¶
type UpdateCustomerPaymentProfile struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` CustomerProfileID string `json:"customerProfileId"` UpPaymentProfile UpPaymentProfile `json:"paymentProfile"` ValidationMode string `json:"validationMode"` }
type UpdateCustomerPaymentProfileRequest ¶
type UpdateCustomerPaymentProfileRequest struct {
UpdateCustomerPaymentProfile UpdateCustomerPaymentProfile `json:"updateCustomerPaymentProfileRequest"`
}
type UpdateCustomerProfile ¶
type UpdateCustomerProfile struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` Profile Profile `json:"profile"` }
type UpdateCustomerProfileRequest ¶
type UpdateCustomerProfileRequest struct {
UpdateCustomerProfile UpdateCustomerProfile `json:"updateCustomerProfileRequest"`
}
type UpdateCustomerShippingAddress ¶
type UpdateCustomerShippingAddress struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` CustomerProfileID string `json:"customerProfileId"` Address Address `json:"address"` }
type UpdateCustomerShippingAddressRequest ¶
type UpdateCustomerShippingAddressRequest struct {
UpdateCustomerShippingAddress UpdateCustomerShippingAddress `json:"updateCustomerShippingAddressRequest"`
}
type UpdateHeldTransaction ¶
type UpdateHeldTransaction struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` RefID string `json:"refId"` HeldTransactionRequest HeldTransactionRequest `json:"heldTransactionRequest"` }
type UpdateHeldTransactionRequest ¶
type UpdateHeldTransactionRequest struct {
UpdateHeldTransaction UpdateHeldTransaction `json:"updateHeldTransactionRequest"`
}
type UpdateSubscriptionRequest ¶
type UpdateSubscriptionRequest struct {
ARBUpdateSubscriptionRequest ARBUpdateSubscriptionRequest `json:"ARBUpdateSubscriptionRequest"`
}
type UserFields ¶
type UserFields struct {
UserField []UserField `json:"userField,omitempty"`
}
type ValidateCustomerPaymentProfile ¶
type ValidateCustomerPaymentProfile struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` CustomerProfileID string `json:"customerProfileId"` CustomerPaymentProfileID string `json:"customerPaymentProfileId"` ValidationMode string `json:"validationMode"` }
type ValidateCustomerPaymentProfileRequest ¶
type ValidateCustomerPaymentProfileRequest struct {
ValidateCustomerPaymentProfile ValidateCustomerPaymentProfile `json:"validateCustomerPaymentProfileRequest"`
}
type ValidateCustomerPaymentProfileResponse ¶
type ValidateCustomerPaymentProfileResponse struct { DirectResponse string `json:"directResponse"` MessagesResponse }
func ValidatePaymentProfile ¶
func ValidatePaymentProfile(customer Customer) (*ValidateCustomerPaymentProfileResponse, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.