iyzipay

package
v0.0.0-...-d4472bd Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandString

func RandString(n int) string

Types

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 ApiTest

type ApiTest struct{}

func (ApiTest) Retrieve

func (apiTest ApiTest) Retrieve(options Options) string

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) string

type CheckoutFormInitialize

type CheckoutFormInitialize struct{}

func (CheckoutFormInitialize) Create

func (checkoutFormInitialize CheckoutFormInitialize) Create(request CreateCheckoutFormInitializeRequest, options Options) string

type CheckoutFormInitializePreAuth

type CheckoutFormInitializePreAuth struct{}

func (CheckoutFormInitializePreAuth) Create

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

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"`
	Installment     string       `json:"installment,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 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 Refund

type Refund struct{}

func (Refund) Create

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

type RefundChargedFromMerchant

type RefundChargedFromMerchant struct{}

func (RefundChargedFromMerchant) Create

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

type Request

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

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) string

func (SubMerchant) Retrieve

func (subMerchant SubMerchant) Retrieve(request RetrieveSubMerchantRequest, options Options) string

func (SubMerchant) Update

func (subMerchant SubMerchant) Update(request UpdateSubMerchantRequest, options Options) string

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"`
}

Jump to

Keyboard shortcuts

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