iyzipay

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SubscriptionInitialStatusActive  = "ACTIVE"
	SubscriptionInitialStatusPending = "PENDING"
)
View Source
const (
	PricingPlanIntervalDaily   = "DAILY"
	PricingPlanIntervalWeekly  = "WEEKLY"
	PricingPlanIntervalMonthly = "MONTHLY"
	PricingPlanIntervalYearly  = "YEARLY"

	PricingPlanTypeRecurring = "RECURRING"
)

Variables

This section is empty.

Functions

func RandString

func RandString(n int) string

Types

type APITest

type APITest struct{}

func (APITest) Retrieve

func (apiTest APITest) Retrieve(options Options) string

type Address

type Address struct {
	ContactName string `json:"contactName,omitempty"`
	City        string `json:"city,omitempty"`
	Country     string `json:"country,omitempty"`
	Address     string `json:"address,omitempty"`
	ZipCode     string `json:"zipCode,omitempty"`
}

type Approval

type Approval struct{}

func (Approval) Create

func (approval Approval) Create(request CreateApprovalRequest, options Options) string

type BasketItem

type BasketItem struct {
	ID               string `json:"id,omitempty"`
	Price            string `json:"price,omitempty"`
	Name             string `json:"name,omitempty"`
	Category1        string `json:"category1,omitempty"`
	Category2        string `json:"category2,omitempty"`
	ItemType         string `json:"itemType,omitempty"`
	SubMerchantKey   string `json:"subMerchantKey,omitempty"`
	SubMerchantPrice string `json:"subMerchantPrice,omitempty"`
}

type BinNumber

type BinNumber struct{}

func (BinNumber) Retrieve

func (binNumber BinNumber) Retrieve(request RetrieveBinNumberRequest, options Options) string

type Bkm

type Bkm struct{}

func (Bkm) Retrieve

func (bkm Bkm) Retrieve(request RetrieveBkmRequest, options Options) string

type BkmInitialize

type BkmInitialize struct{}

func (BkmInitialize) Create

func (bkmInitialize BkmInitialize) Create(request CreateBkmInitializeRequest, options Options) string

type BouncedBankTransferList

type BouncedBankTransferList struct{}

func (BouncedBankTransferList) Retrieve

func (bouncedBankTransferList BouncedBankTransferList) Retrieve(request RetrieveTransactionListRequest, options Options) string

type Buyer

type Buyer struct {
	ID                  string `json:"id,omitempty"`
	Name                string `json:"name,omitempty"`
	Surname             string `json:"surname,omitempty"`
	IdentityNumber      string `json:"identityNumber,omitempty"`
	Email               string `json:"email,omitempty"`
	GsmNumber           string `json:"gsmNumber,omitempty"`
	RegistrationDate    string `json:"registrationDate,omitempty"`
	LastLoginDate       string `json:"lastLoginDate,omitempty"`
	RegistrationAddress string `json:"registrationAddress,omitempty"`
	City                string `json:"city,omitempty"`
	Country             string `json:"country,omitempty"`
	ZipCode             string `json:"zipCode,omitempty"`
	IP                  string `json:"ip,omitempty"`
}

type Cancel

type Cancel struct{}

func (Cancel) Create

func (cancel Cancel) Create(request CreateCancelRequest, options Options) string

type Card

type Card struct{}

func (Card) Create

func (card Card) Create(request CreateCardRequest, options Options) string

func (Card) Delete

func (card Card) Delete(request DeleteCardRequest, options Options) string

type CardInformation

type CardInformation struct {
	CardAlias      string `json:"cardAlias,omitempty"`
	CardNumber     string `json:"cardNumber,omitempty"`
	ExpireYear     string `json:"expireYear,omitempty"`
	ExpireMonth    string `json:"expireMonth,omitempty"`
	CardHolderName string `json:"cardHolderName,omitempty"`
}

type CardList

type CardList struct{}

func (CardList) Retrieve

func (cardList CardList) Retrieve(request RetrieveCardListRequest, options Options) string

type CheckoutForm

type CheckoutForm struct{}

func (CheckoutForm) Retrieve

func (checkoutForm CheckoutForm) Retrieve(request RetrieveCheckoutFormRequest, options Options) *CheckoutFormResponse

type CheckoutFormInitialize

type CheckoutFormInitialize struct{}

func (CheckoutFormInitialize) Create

func (checkoutFormInitialize CheckoutFormInitialize) Create(
	request CreateCheckoutFormInitializeRequest,
	options Options,
) *CheckoutFormInitializeResource

type CheckoutFormInitializePreAuth

type CheckoutFormInitializePreAuth struct{}

func (CheckoutFormInitializePreAuth) Create

func (checkoutFormInitializePreAuth CheckoutFormInitializePreAuth) Create(request CreateCheckoutFormInitializeRequest, options Options) string

type CheckoutFormInitializeResource

type CheckoutFormInitializeResource struct {
	Resource
	Token               string `json:"token"`
	CheckoutFormContent string `json:"checkoutFormContent"`
	TokenExpireTime     int64  `json:"tokenExpireTime"`
	PaymentPageURL      string `json:"paymentPageUrl"`
}

type CheckoutFormResponse

type CheckoutFormResponse struct {
	Status                       string  `json:"status"`
	Locale                       string  `json:"locale"`
	SystemTime                   int64   `json:"systemTime"`
	Price                        float64 `json:"price"`
	PaidPrice                    float64 `json:"paidPrice"`
	Installment                  int     `json:"installment"`
	PaymentID                    string  `json:"paymentId"`
	FraudStatus                  int     `json:"fraudStatus"`
	MerchantCommissionRate       float64 `json:"merchantCommissionRate"`
	MerchantCommissionRateAmount float64 `json:"merchantCommissionRateAmount"`
	IyziCommissionRateAmount     float64 `json:"iyziCommissionRateAmount"`
	IyziCommissionFee            float64 `json:"iyziCommissionFee"`
	CardType                     string  `json:"cardType"`
	CardAssociation              string  `json:"cardAssociation"`
	CardFamily                   string  `json:"cardFamily"`
	BinNumber                    string  `json:"binNumber"`
	LastFourDigits               string  `json:"lastFourDigits"`
	BasketID                     string  `json:"basketId"`
	Currency                     string  `json:"currency"`
	ItemTransactions             []struct {
		ItemID                        string  `json:"itemId"`
		PaymentTransactionID          string  `json:"paymentTransactionId"`
		TransactionStatus             int     `json:"transactionStatus"`
		Price                         float64 `json:"price"`
		PaidPrice                     float64 `json:"paidPrice"`
		MerchantCommissionRate        float64 `json:"merchantCommissionRate"`
		MerchantCommissionRateAmount  float64 `json:"merchantCommissionRateAmount"`
		IyziCommissionRateAmount      float64 `json:"iyziCommissionRateAmount"`
		IyziCommissionFee             float64 `json:"iyziCommissionFee"`
		BlockageRate                  float64 `json:"blockageRate"`
		BlockageRateAmountMerchant    float64 `json:"blockageRateAmountMerchant"`
		BlockageRateAmountSubMerchant float64 `json:"blockageRateAmountSubMerchant"`
		BlockageResolvedDate          string  `json:"blockageResolvedDate"`
		SubMerchantKey                string  `json:"subMerchantKey"`
		SubMerchantPrice              float64 `json:"subMerchantPrice"`
		SubMerchantPayoutRate         float64 `json:"subMerchantPayoutRate"`
		SubMerchantPayoutAmount       float64 `json:"subMerchantPayoutAmount"`
		MerchantPayoutAmount          float64 `json:"merchantPayoutAmount"`
		ConvertedPayout               struct {
			PaidPrice                     float64 `json:"paidPrice"`
			IyziCommissionRateAmount      float64 `json:"iyziCommissionRateAmount"`
			IyziCommissionFee             float64 `json:"iyziCommissionFee"`
			BlockageRateAmountMerchant    float64 `json:"blockageRateAmountMerchant"`
			BlockageRateAmountSubMerchant float64 `json:"blockageRateAmountSubMerchant"`
			SubMerchantPayoutAmount       float64 `json:"subMerchantPayoutAmount"`
			MerchantPayoutAmount          float64 `json:"merchantPayoutAmount"`
			IyziConversionRate            float64 `json:"iyziConversionRate"`
			IyziConversionRateAmount      float64 `json:"iyziConversionRateAmount"`
			Currency                      string  `json:"currency"`
		} `json:"convertedPayout"`
	} `json:"itemTransactions"`
	AuthCode      string `json:"authCode"`
	Phase         string `json:"phase"`
	MdStatus      int    `json:"mdStatus"`
	HostReference string `json:"hostReference"`
	Token         string `json:"token"`
	CallbackURL   string `json:"callbackUrl"`
	PaymentStatus string `json:"paymentStatus"`
}

type CreateApprovalRequest

type CreateApprovalRequest struct {
	Locale               string `json:"locale,omitempty"`
	ConversationID       string `json:"conversationId,omitempty"`
	PaymentTransactionID string `json:"paymentTransactionId,omitempty"`
}

type CreateBkmInitializeRequest

type CreateBkmInitializeRequest struct {
	Locale              string       `json:"locale,omitempty"`
	ConversationID      string       `json:"conversationId,omitempty"`
	Price               string       `json:"price,omitempty"`
	BasketID            string       `json:"basketId,omitempty"`
	PaymentGroup        string       `json:"paymentGroup,omitempty"`
	Buyer               Buyer        `json:"buyer,omitempty"`
	ShippingAddress     Address      `json:"billingAddress,omitempty"`
	BillingAddress      Address      `json:"shippingAddress,omitempty"`
	BasketItems         []BasketItem `json:"basketItems,omitempty"`
	CallbackURL         string       `json:"callbackUrl,omitempty"`
	PaymentSource       string       `json:"paymentSource,omitempty"`
	EnabledInstallments []string     `json:"enabledInstallments,omitempty"`
}

type CreateCancelRequest

type CreateCancelRequest struct {
	Locale         string `json:"locale,omitempty"`
	ConversationID string `json:"conversationId,omitempty"`
	PaymentID      string `json:"paymentId,omitempty"`
	IP             string `json:"ip,omitempty"`
}

type CreateCardRequest

type CreateCardRequest struct {
	Locale         string          `json:"locale,omitempty"`
	ConversationID string          `json:"conversationId,omitempty"`
	ExternalID     string          `json:"externalId,omitempty"`
	Email          string          `json:"email,omitempty"`
	CardUserKey    string          `json:"cardUserKey,omitempty"`
	Card           CardInformation `json:"card,omitempty"`
}

type CreateCheckoutFormInitializeRequest

type CreateCheckoutFormInitializeRequest struct {
	Locale              string       `json:"locale,omitempty"`
	ConversationID      string       `json:"conversationId,omitempty"`
	Price               string       `json:"price,omitempty"`
	BasketID            string       `json:"basketId,omitempty"`
	PaymentGroup        string       `json:"paymentGroup,omitempty"`
	Buyer               Buyer        `json:"buyer,omitempty"`
	ShippingAddress     Address      `json:"billingAddress,omitempty"`
	BillingAddress      Address      `json:"shippingAddress,omitempty"`
	BasketItems         []BasketItem `json:"basketItems,omitempty"`
	CallbackURL         string       `json:"callbackUrl,omitempty"`
	PaymentSource       string       `json:"paymentSource,omitempty"`
	Currency            string       `json:"currency,omitempty"`
	PosOrderID          string       `json:"posOrderId,omitempty"`
	PaidPrice           string       `json:"paidPrice,omitempty"`
	ForceThreeDS        string       `json:"forceThreeDS,omitempty"`
	CardUserKey         string       `json:"cardUserKey,omitempty"`
	EnabledInstallments []string     `json:"enabledInstallments,omitempty"`
}

type CreateCrossBookingRequest

type CreateCrossBookingRequest struct {
	Locale         string `json:"locale,omitempty"`
	ConversationID string `json:"conversationId,omitempty"`
	SubmerchantKey string `json:"submerchantkey,omitempty"`
	Price          string `json:"price,omitempty"`
	Reason         string `json:"reason,omitempty"`
	Currency       string `json:"currency,omitempty"`
}

type CreateDisapprovalRequest

type CreateDisapprovalRequest struct {
	Locale               string `json:"locale,omitempty"`
	ConversationID       string `json:"conversationId,omitempty"`
	PaymentTransactionID string `json:"paymentTransactionId,omitempty"`
}

type CreatePaymentPostAuthRequest

type CreatePaymentPostAuthRequest struct {
	Locale         string `json:"locale,omitempty"`
	ConversationID string `json:"conversationId,omitempty"`
	PaymentID      string `json:"paymentId,omitempty"`
	IP             string `json:"ip,omitempty"`
	PaidPrice      string `json:"paidPrice,omitempty"`
	Currency       string `json:"currency,omitempty"`
}

type CreatePaymentRequest

type CreatePaymentRequest struct {
	Locale          string       `json:"locale,omitempty"`
	ConversationID  string       `json:"conversationId,omitempty"`
	Price           string       `json:"price,omitempty"`
	PaidPrice       string       `json:"paidPrice,omitempty"`
	BasketID        string       `json:"basketId,omitempty"`
	PaymentGroup    string       `json:"paymentGroup,omitempty"`
	PaymentCard     PaymentCard  `json:"paymentCard,omitempty"`
	Buyer           Buyer        `json:"buyer,omitempty"`
	ShippingAddress Address      `json:"billingAddress,omitempty"`
	BillingAddress  Address      `json:"shippingAddress,omitempty"`
	BasketItems     []BasketItem `json:"basketItems,omitempty"`
	PaymentSource   string       `json:"paymentSource,omitempty"`
	Currency        string       `json:"currency,omitempty"`
	PosOrderID      string       `json:"posOrderId,omitempty"`
	ConnectorName   string       `json:"connectorName,omitempty"`
	CallbackURL     string       `json:"callbackUrl,omitempty"`
}

type CreatePeccoInitializeRequest

type CreatePeccoInitializeRequest struct {
	Locale          string       `json:"locale,omitempty"`
	ConversationID  string       `json:"conversationId,omitempty"`
	Price           string       `json:"price,omitempty"`
	BasketID        string       `json:"basketId,omitempty"`
	PaymentGroup    string       `json:"paymentGroup,omitempty"`
	Buyer           Buyer        `json:"buyer,omitempty"`
	ShippingAddress Address      `json:"billingAddress,omitempty"`
	BillingAddress  Address      `json:"shippingAddress,omitempty"`
	BasketItems     []BasketItem `json:"basketItems,omitempty"`
	CallbackURL     string       `json:"callbackUrl,omitempty"`
	PaymentSource   string       `json:"paymentSource,omitempty"`
	PaidPrice       string       `json:"paidPrice,omitempty"`
}

type CreatePeccoPaymentRequest

type CreatePeccoPaymentRequest struct {
	Locale         string `json:"locale,omitempty"`
	ConversationID string `json:"conversationId,omitempty"`
	Token          string `json:"token,omitempty"`
}

type CreateRefundRequest

type CreateRefundRequest struct {
	Locale               string `json:"locale,omitempty"`
	ConversationID       string `json:"conversationId,omitempty"`
	PaymentTransactionID string `json:"paymentTransactionId,omitempty"`
	Price                string `json:"price,omitempty"`
	IP                   string `json:"ip,omitempty"`
	Currency             string `json:"currency,omitempty"`
}

type CreateSubMerchantRequest

type CreateSubMerchantRequest struct {
	Locale                string `json:"locale,omitempty"`
	ConversationID        string `json:"conversationId,omitempty"`
	Name                  string `json:"name,omitempty"`
	Email                 string `json:"email,omitempty"`
	GsmNumber             string `json:"gsmNumber,omitempty"`
	Address               string `json:"address,omitempty"`
	Iban                  string `json:"iban,omitempty"`
	TaxOffice             string `json:"taxOffice,omitempty"`
	ContactName           string `json:"contactName,omitempty"`
	ContactSurname        string `json:"contactSurname,omitempty"`
	LegalCompanyTitle     string `json:"legalCompanyTitle,omitempty"`
	SwiftCode             string `json:"swiftCode,omitempty"`
	Currency              string `json:"currency,omitempty"`
	SubMerchantExternalID string `json:"subMerchantExternalId,omitempty"`
	IdentityNumber        string `json:"identityNumber,omitempty"`
	TaxNumber             string `json:"taxNumber,omitempty"`
	SubMerchantType       string `json:"subMerchantType,omitempty"`
}

type CreateThreedsPaymentRequest

type CreateThreedsPaymentRequest struct {
	Locale           string `json:"locale,omitempty"`
	ConversationID   string `json:"conversationId,omitempty"`
	PaymentID        string `json:"paymentId,omitempty"`
	ConversationData string `json:"conversationData,omitempty"`
}

type CrossBookingFromSubMerchant

type CrossBookingFromSubMerchant struct{}

func (CrossBookingFromSubMerchant) Create

func (crossBookingFromSubMerchant CrossBookingFromSubMerchant) Create(request CreateCrossBookingRequest, options Options) string

type CrossBookingToSubMerchant

type CrossBookingToSubMerchant struct{}

func (CrossBookingToSubMerchant) Create

func (crossBookingToSubMerchant CrossBookingToSubMerchant) Create(request CreateCrossBookingRequest, options Options) string

type DeleteCardRequest

type DeleteCardRequest struct {
	Locale         string `json:"locale,omitempty"`
	ConversationID string `json:"conversationId,omitempty"`
	CardUserKey    string `json:"cardUserKey,omitempty"`
	CardToken      string `json:"cardToken,omitempty"`
}

type Disapproval

type Disapproval struct{}

func (Disapproval) Create

func (approval Disapproval) Create(request CreateDisapprovalRequest, options Options) string

type Errors

type Errors struct {
	ErrorCode    string `json:"errorCode"`
	ErrorMessage string `json:"errorMessage"`
	ErrorGroup   string `json:"errorGroup"`
}

type InstallmentInfo

type InstallmentInfo struct{}

func (InstallmentInfo) Retrieve

func (installmentInfo InstallmentInfo) Retrieve(request RetrieveInstallmentInfoRequest, options Options) string

type Options

type Options struct {
	// contains filtered or unexported fields
}

func (*Options) New

func (options *Options) New(apiKey string, secretKey string, baseURL string)

type Payment

type Payment struct{}

func (Payment) Create

func (payment Payment) Create(request CreatePaymentRequest, options Options) string

func (Payment) Retrieve

func (payment Payment) Retrieve(request RetrievePaymentRequest, options Options) string

type PaymentCard

type PaymentCard struct {
	CardHolderName string `json:"cardHolderName,omitempty"`
	CardNumber     string `json:"cardNumber,omitempty"`
	ExpireYear     string `json:"expireYear,omitempty"`
	ExpireMonth    string `json:"expireMonth,omitempty"`
	Cvc            string `json:"cvc,omitempty"`
	RegisterCard   string `json:"registerCard,omitempty"`
	CardAlias      string `json:"cardAlias,omitempty"`
	CardToken      string `json:"cardToken,omitempty"`
	CardUserKey    string `json:"cardUserKey,omitempty"`
}

type PaymentPostAuth

type PaymentPostAuth struct{}

func (PaymentPostAuth) Create

func (paymentPostAuth PaymentPostAuth) Create(request CreatePaymentPostAuthRequest, options Options) string

type PaymentPreAuth

type PaymentPreAuth struct{}

func (PaymentPreAuth) Create

func (paymentPreAuth PaymentPreAuth) Create(request CreatePaymentRequest, options Options) string

func (PaymentPreAuth) Retrieve

func (paymentPreAuth PaymentPreAuth) Retrieve(request RetrievePaymentRequest, options Options) string

type PayoutCompletedTransactionList

type PayoutCompletedTransactionList struct{}

func (PayoutCompletedTransactionList) Retrieve

func (payoutCompletedTransactionList PayoutCompletedTransactionList) Retrieve(request RetrieveTransactionListRequest, options Options) string

type PeccoInitialize

type PeccoInitialize struct{}

func (PeccoInitialize) Create

func (peccoInitialize PeccoInitialize) Create(request CreatePeccoInitializeRequest, options Options) string

type PeccoPayment

type PeccoPayment struct{}

func (PeccoPayment) Create

func (peccoPayment PeccoPayment) Create(request CreatePeccoPaymentRequest, options Options) string

type PkiBuilder

type PkiBuilder struct {
	// contains filtered or unexported fields
}

type PricingPlan

type PricingPlan struct {
	Locale               string  `json:"locale,omitempty"`
	ConversationID       string  `json:"conversationId,omitempty"`
	ProductReferenceCode string  `json:"productReferenceCode,omitempty"`
	Name                 string  `json:"name,omitempty"`
	Price                float64 `json:"price,omitempty"`
	CurrencyCode         string  `json:"currencyCode,omitempty"`
	PaymentInterval      string  `json:"paymentInterval,omitempty"`
	PaymentIntervalCount string  `json:"paymentIntervalCount,omitempty"`
	TrialPeriodDays      string  `json:"trialPeriodDays,omitempty"`
	PlanPaymentType      string  `json:"planPaymentType,omitempty"`
	RecurrenceCount      string  `json:"recurrenceCount,omitempty"`
}

func (*PricingPlan) Create

func (p *PricingPlan) Create(options *Options) (*PricingPlanResponse, error)

type PricingPlanResponse

type PricingPlanResponse struct {
	Errors
	Status     string                   `json:"status"` // success / failure
	SystemTime int64                    `json:"systemTime"`
	Data       *PricingPlanResponseData `json:"data"`
}

type PricingPlanResponseData

type PricingPlanResponseData struct {
	ReferenceCode string `json:"referenceCode"`
	Status        string `json:"status"` // RECURRING
}

type Refund

type Refund struct{}

func (Refund) Create

func (refund Refund) Create(request CreateRefundRequest, options Options) *RefundResponse

type RefundChargedFromMerchant

type RefundChargedFromMerchant struct{}

func (RefundChargedFromMerchant) Create

func (refund RefundChargedFromMerchant) Create(request CreateRefundRequest, options Options) string

type RefundResponse

type RefundResponse struct {
	Resource
	PaymentID            string  `json:"paymentId"`
	PaymentTransactionID string  `json:"paymentTransactionId"`
	Price                float64 `json:"price"`
	Currency             string  `json:"currency"`
	ConnectorName        string  `json:"connectorName"`
}

type Request

type Request interface {
	// contains filtered or unexported methods
}

type Resource

type Resource struct {
	Status         string `json:"status"`
	ErrorCode      string `json:"errorCode"`
	ErrorMessage   string `json:"errorMessage"`
	ErrorGroup     string `json:"errorGroup"`
	Locale         string `json:"locale"`
	SystemTime     int64  `json:"systemTime"`
	ConversationID string `json:"conversationId"`
}

type RetrieveBinNumberRequest

type RetrieveBinNumberRequest struct {
	Locale         string `json:"locale,omitempty"`
	ConversationID string `json:"conversationId,omitempty"`
	BinNumber      string `json:"binNumber,omitempty"`
}

type RetrieveBkmRequest

type RetrieveBkmRequest struct {
	Locale         string `json:"locale,omitempty"`
	ConversationID string `json:"conversationId,omitempty"`
	Token          string `json:"token,omitempty"`
}

type RetrieveCardListRequest

type RetrieveCardListRequest struct {
	Locale         string `json:"locale,omitempty"`
	ConversationID string `json:"conversationId,omitempty"`
	CardUserKey    string `json:"cardUserKey,omitempty"`
}

type RetrieveCheckoutFormRequest

type RetrieveCheckoutFormRequest struct {
	Locale         string `json:"locale,omitempty"`
	ConversationID string `json:"conversationId,omitempty"`
	Token          string `json:"token,omitempty"`
}

type RetrieveInstallmentInfoRequest

type RetrieveInstallmentInfoRequest struct {
	Locale         string `json:"locale,omitempty"`
	ConversationID string `json:"conversationId,omitempty"`
	BinNumber      string `json:"binNumber,omitempty"`
	Price          string `json:"price,omitempty"`
}

type RetrievePaymentRequest

type RetrievePaymentRequest struct {
	Locale                string `json:"locale,omitempty"`
	ConversationID        string `json:"conversationId,omitempty"`
	PaymentID             string `json:"paymentId,omitempty"`
	PaymentConversationID string `json:"paymentConversationId,omitempty"`
}

type RetrieveSubMerchantRequest

type RetrieveSubMerchantRequest struct {
	Locale                string `json:"locale,omitempty"`
	ConversationID        string `json:"conversationId,omitempty"`
	SubMerchantExternalID string `json:"subMerchantExternalId,omitempty"`
}

type RetrieveTransactionListRequest

type RetrieveTransactionListRequest struct {
	Locale         string `json:"locale,omitempty"`
	ConversationID string `json:"conversationId,omitempty"`
	Date           string `json:"date,omitempty"`
}

type SubMerchant

type SubMerchant struct{}

func (SubMerchant) Create

func (subMerchant SubMerchant) Create(request CreateSubMerchantRequest, options Options) *SubMerchantResponse

func (SubMerchant) Retrieve

func (subMerchant SubMerchant) Retrieve(request RetrieveSubMerchantRequest, options Options) *SubMerchantResponse

func (SubMerchant) Update

func (subMerchant SubMerchant) Update(request UpdateSubMerchantRequest, options Options) *SubMerchantResponse

type SubMerchantResponse

type SubMerchantResponse struct {
	Resource
	Name                  string `json:"name"`
	Email                 string `json:"email"`
	GsmNumber             string `json:"gsmNumber"`
	Address               string `json:"address"`
	Iban                  string `json:"iban"`
	SwiftCode             string `json:"swiftCode"`
	Currency              string `json:"currency"`
	TaxOffice             string `json:"taxOffice"`
	ContactName           string `json:"contactName"`
	ContactSurname        string `json:"contactSurname"`
	LegalCompanyTitle     string `json:"legalCompanyTitle"`
	SubMerchantExternalID string `json:"subMerchantExternalId"`
	IdentityNumber        string `json:"identityNumber"`
	TaxNumber             string `json:"taxNumber"`
	SubMerchantType       string `json:"subMerchantType"`
	SubMerchantKey        string `json:"subMerchantKey"`
}

type Subscription

type Subscription struct {
	Locale                    string                `json:"locale,omitempty"`
	ConversationID            string                `json:"conversationId,omitempty"`
	CallbackURL               string                `json:"callbackUrl,omitempty"`
	PricingPlanReferenceCode  string                `json:"pricingPlanReferenceCode,omitempty"`
	SubscriptionInitialStatus string                `json:"subscriptionInitialStatus,omitempty"` // PENDING or ACTIVE
	SubscriptionCustomer      *SubscriptionCustomer `json:"customer,omitempty"`
}

func (*Subscription) Create

func (p *Subscription) Create(options *Options) (*SubscriptionResponse, error)

type SubscriptionAddress

type SubscriptionAddress struct {
	ContactName string `json:"contactName,omitempty"`
	City        string `json:"city,omitempty"`
	Country     string `json:"country,omitempty"`
	Address     string `json:"address,omitempty"`
	ZipCode     string `json:"zipCode,omitempty"`
}

type SubscriptionCancel

type SubscriptionCancel struct {
	Locale                    string `json:"locale,omitempty"`
	ConversationID            string `json:"conversationId,omitempty"`
	SubscriptionReferenceCode string `json:"subscriptionReferenceCode,omitempty"`
}

func (*SubscriptionCancel) Cancel

type SubscriptionCancelResponse

type SubscriptionCancelResponse struct {
	Errors
	Status     string `json:"status"` // success / failure
	SystemTime int64  `json:"systemTime"`
}

type SubscriptionCheckoutFormResponse

type SubscriptionCheckoutFormResponse struct {
	Errors
	Status     string                                `json:"status"` // success / failure
	SystemTime int64                                 `json:"systemTime"`
	Data       *SubscriptionCheckoutFormResponseData `json:"data"`
}

type SubscriptionCheckoutFormResponseData

type SubscriptionCheckoutFormResponseData struct {
	ReferenceCode         string `json:"referenceCode"`
	CustomerReferenceCode string `json:"customerReferenceCode"`
	SubscriptionStatus    string `json:"subscriptionStatus"` // ACTIVE or PENDING
	TrialDays             int16  `json:"trialDays"`
	TrialStartDate        int64  `json:"trialStartDate"`
	TrialEndDate          int64  `json:"trialEndDate"`
	CreatedDate           int64  `json:"createdDate"`
	StartDate             int64  `json:"startDate"`
}

type SubscriptionCheckoutFormResult

type SubscriptionCheckoutFormResult struct {
	Token string `json:"token,omitempty"`
}

func (*SubscriptionCheckoutFormResult) Get

type SubscriptionCustomer

type SubscriptionCustomer struct {
	Locale          string               `json:"locale,omitempty"`
	ConversationID  string               `json:"conversationId,omitempty"`
	Name            string               `json:"name,omitempty"`
	Surname         string               `json:"surname,omitempty"`
	IdentityNumber  string               `json:"identityNumber,omitempty"`
	Email           string               `json:"email,omitempty"`
	GSMNumber       string               `json:"gsmNumber,omitempty"`
	BillingAddress  *SubscriptionAddress `json:"billingAddress,omitempty"`
	ShippingAddress *SubscriptionAddress `json:"shippingAddress,omitempty"`
}

func (*SubscriptionCustomer) Create

type SubscriptionCustomerResponse

type SubscriptionCustomerResponse struct {
	Status     string                            `json:"status"` // success / failure
	SystemTime int64                             `json:"systemTime"`
	Data       *SubscriptionCustomerResponseData `json:"data"`
}

type SubscriptionCustomerResponseData

type SubscriptionCustomerResponseData struct {
	ReferenceCode string `json:"referenceCode"`
	Status        string `json:"status"` // ACTIVE
}

type SubscriptionProduct

type SubscriptionProduct struct {
	Locale         string `json:"locale,omitempty"`
	ConversationID string `json:"conversationId,omitempty"`
	Name           string `json:"name,omitempty"`
	Description    string `json:"description,omitempty"`
}

func (*SubscriptionProduct) Create

type SubscriptionProductResponse

type SubscriptionProductResponse struct {
	Errors
	Status     string                           `json:"status"` // success / failure
	SystemTime int64                            `json:"systemTime"`
	Data       *SubscriptionProductResponseData `json:"data"`
}

type SubscriptionProductResponseData

type SubscriptionProductResponseData struct {
	ReferenceCode string `json:"referenceCode"`
}

type SubscriptionResponse

type SubscriptionResponse struct {
	Errors
	Status              string `json:"status"` // success / failure
	SystemTime          int64  `json:"systemTime"`
	CheckoutFormContent string `json:"checkoutFormContent"`
	Token               string `json:"token"`
	TokenExpireTime     int64  `json:"tokenExpireTime"`
}

type SubscriptionUpdateCardInformation

type SubscriptionUpdateCardInformation struct {
	Locale                    string `json:"locale,omitempty"`
	ConversationID            string `json:"conversationId,omitempty"`
	SubscriptionReferenceCode string `json:"subscriptionReferenceCode,omitempty"`
	CustomerReferenceCode     string `json:"customerReferenceCode,omitempty"`
	CallBackURL               string `json:"callbackUrl,omitempty"`
}

func (*SubscriptionUpdateCardInformation) UpdateCustomerCardInformation

func (p *SubscriptionUpdateCardInformation) UpdateCustomerCardInformation(options *Options) (*SubscriptionUpdateCardInformationResponse, error)

func (*SubscriptionUpdateCardInformation) UpdateSubscriptionCardInformation

func (p *SubscriptionUpdateCardInformation) UpdateSubscriptionCardInformation(options *Options) (*SubscriptionUpdateCardInformationResponse, error)

type SubscriptionUpdateCardInformationResponse

type SubscriptionUpdateCardInformationResponse struct {
	Errors
	Status              string `json:"status"` // success / failure
	SystemTime          int64  `json:"systemTime"`
	TokenExpireTime     int64  `json:"tokenExpireTime"`
	Token               string `json:"token"`
	CheckoutFormContent string `json:"checkoutFormContent"`
}

type SubscriptionUpgrade

type SubscriptionUpgrade struct {
	SubscriptionReferenceCode   string `json:"subscriptionReferenceCode,omitempty"`
	NewPricingPlanReferenceCode string `json:"newPricingPlanReferenceCode,omitempty"`
	UpgradePeriod               string `json:"upgradePeriod,omitempty"`
	UseTrial                    bool   `json:"useTrial,omitempty"`
	ResetRecurrenceCount        bool   `json:"resetRecurrenceCount,omitempty"`
}

func (*SubscriptionUpgrade) Upgrade

type SubscriptionUpgradeResponse

type SubscriptionUpgradeResponse struct {
	Errors
	Status     string                                `json:"status"` // success / failure
	SystemTime int64                                 `json:"systemTime"`
	Data       *SubscriptionCheckoutFormResponseData `json:"data"`
}

type ThreedsInitialize

type ThreedsInitialize struct{}

func (ThreedsInitialize) Create

func (threedsInitialize ThreedsInitialize) Create(request CreatePaymentRequest, options Options) string

type ThreedsInitializePreAuth

type ThreedsInitializePreAuth struct{}

func (ThreedsInitializePreAuth) Create

func (threedsInitializePreAuth ThreedsInitializePreAuth) Create(request CreatePaymentRequest, options Options) string

type ThreedsPayment

type ThreedsPayment struct{}

func (ThreedsPayment) Create

func (threedsPayment ThreedsPayment) Create(request CreateThreedsPaymentRequest, options Options) string

func (ThreedsPayment) Retrieve

func (threedsPayment ThreedsPayment) Retrieve(request RetrievePaymentRequest, options Options) string

type UpdateSubMerchantRequest

type UpdateSubMerchantRequest struct {
	Locale            string `json:"locale,omitempty"`
	ConversationID    string `json:"conversationId,omitempty"`
	Name              string `json:"name,omitempty"`
	Email             string `json:"email,omitempty"`
	GsmNumber         string `json:"gsmNumber,omitempty"`
	Address           string `json:"address,omitempty"`
	Iban              string `json:"iban,omitempty"`
	TaxOffice         string `json:"taxOffice,omitempty"`
	ContactName       string `json:"contactName,omitempty"`
	ContactSurname    string `json:"contactSurname,omitempty"`
	LegalCompanyTitle string `json:"legalCompanyTitle,omitempty"`
	SwiftCode         string `json:"swiftCode,omitempty"`
	Currency          string `json:"currency,omitempty"`
	SubMerchantKey    string `json:"subMerchantKey,omitempty"`
	IdentityNumber    string `json:"identityNumber,omitempty"`
	TaxNumber         string `json:"taxNumber,omitempty"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL