Documentation ¶
Index ¶
- Constants
- func GetClient(c *Gr4vyClient) (*Client, error)
- func GetKeyFromFile(fileName string) ([]byte, error)
- func JWKThumbprint(pub ecdsa.PublicKey) (string, error)
- type Gr4vyAddBuyer
- type Gr4vyAddCardRule
- type Gr4vyAddPaymentService
- type Gr4vyAuthorizeNewTransaction
- type Gr4vyBuyer
- type Gr4vyCaptureTransaction
- type Gr4vyCardRuleNumberCondition
- type Gr4vyCardRuleTextCondition
- type Gr4vyClient
- func (c *Gr4vyClient) AddBuyer(body Gr4vyAddBuyer) (*http.Response, error)
- func (c *Gr4vyClient) AddCardRule(body Gr4vyAddCardRule) (*http.Response, error)
- func (c *Gr4vyClient) AddPaymentService(body Gr4vyAddPaymentService) (*http.Response, error)
- func (c *Gr4vyClient) AuthorizeNewTransaction(body Gr4vyAuthorizeNewTransaction, pm Gr4vyPaymentMethod) (*http.Response, error)
- func (c *Gr4vyClient) AuthorizeTransaction(transaction_id string) (*http.Response, error)
- func (c *Gr4vyClient) BaseUrl() string
- func (c *Gr4vyClient) CaptureTransaction(transaction_id string, body Gr4vyCaptureTransaction) (*http.Response, error)
- func (c *Gr4vyClient) DeleteBuyer(buyer_id string) (*http.Response, error)
- func (c *Gr4vyClient) DeleteCardRule(card_rule_id string) (*http.Response, error)
- func (c *Gr4vyClient) DeletePaymentMethod(payment_method_id string) (*http.Response, error)
- func (c *Gr4vyClient) DeletePaymentService(payment_service_id string) (*http.Response, error)
- func (c *Gr4vyClient) GetBuyer(buyer_id string) (*http.Response, error)
- func (c *Gr4vyClient) GetCardRule(card_rule_id string) (*http.Response, error)
- func (c *Gr4vyClient) GetEmbedToken(params map[string]string) (string, error)
- func (c *Gr4vyClient) GetPaymentMethod(payment_method_id string) (*http.Response, error)
- func (c *Gr4vyClient) GetPaymentService(payment_service_id string) (*http.Response, error)
- func (c *Gr4vyClient) GetPaymentServiceDefinition(payment_service_definition_id string) (*http.Response, error)
- func (c *Gr4vyClient) GetTransaction(transaction_id string) (*http.Response, error)
- func (c *Gr4vyClient) HandleResponse(response *http.Response, error error) (*http.Response, error)
- func (c *Gr4vyClient) ListBuyers(params Gr4vyListBuyersParams) (*http.Response, error)
- func (c *Gr4vyClient) ListCardsRules(params Gr4vyListCardsRulesParams) (*http.Response, error)
- func (c *Gr4vyClient) ListPaymentMethods(params Gr4vyListPaymentMethodsParams) (*http.Response, error)
- func (c *Gr4vyClient) ListPaymentOptions(params Gr4vyListPaymentOptionsParams) (*http.Response, error)
- func (c *Gr4vyClient) ListPaymentServiceDefinitions(params Gr4vyListPaymentServiceDefinitionsParams) (*http.Response, error)
- func (c *Gr4vyClient) ListPaymentServices(params Gr4vyListPaymentServicesParams) (*http.Response, error)
- func (c *Gr4vyClient) ListTransactions(params Gr4vyListTransactionsParams) (*http.Response, error)
- func (c *Gr4vyClient) RefundTransaction(transaction_id string) (*http.Response, error)
- func (c *Gr4vyClient) StorePaymentMethod(body Gr4vyStorePaymentMethod) (*http.Response, error)
- func (c *Gr4vyClient) UpdateBuyer(buyer_id string, body Gr4vyUpdateBuyer) (*http.Response, error)
- func (c *Gr4vyClient) UpdateCardRule(card_rule_id string, body Gr4vyUpdateCardRule) (*http.Response, error)
- func (c *Gr4vyClient) UpdatePaymentService(payment_service_id string, body Gr4vyUpdatePaymentService) (*http.Response, error)
- type Gr4vyListBuyersParams
- type Gr4vyListCardsRulesParams
- type Gr4vyListPaymentMethodsParams
- type Gr4vyListPaymentOptionsParams
- type Gr4vyListPaymentServiceDefinitionsParams
- type Gr4vyListPaymentServicesParams
- type Gr4vyListTransactionsParams
- type Gr4vyPaymentMethod
- type Gr4vyPaymentService
- type Gr4vyPaymentServiceDefinition
- type Gr4vyStorePaymentMethod
- type Gr4vyUpdateBuyer
- type Gr4vyUpdateCardRule
- type Gr4vyUpdatePaymentService
Constants ¶
View Source
const VERSION = "0.0.1"
Variables ¶
This section is empty.
Functions ¶
func GetClient ¶
func GetClient(c *Gr4vyClient) (*Client, error)
func GetKeyFromFile ¶
Types ¶
type Gr4vyAddBuyer ¶
type Gr4vyAddBuyer AddBuyerJSONRequestBody
type Gr4vyAddCardRule ¶
type Gr4vyAddCardRule AddCardRuleJSONRequestBody
type Gr4vyAddPaymentService ¶
type Gr4vyAddPaymentService AddPaymentServiceJSONRequestBody
type Gr4vyAuthorizeNewTransaction ¶
type Gr4vyAuthorizeNewTransaction AuthorizeNewTransactionJSONRequestBody
type Gr4vyBuyer ¶
type Gr4vyBuyer Buyer
type Gr4vyCaptureTransaction ¶
type Gr4vyCaptureTransaction CaptureTransactionJSONRequestBody
type Gr4vyCardRuleNumberCondition ¶
type Gr4vyCardRuleNumberCondition CardRuleNumberCondition
type Gr4vyCardRuleTextCondition ¶
type Gr4vyCardRuleTextCondition CardRuleTextCondition
type Gr4vyClient ¶
type Gr4vyClient struct { Debug bool // contains filtered or unexported fields }
func NewGr4vyClient ¶
func NewGr4vyClient(gr4vy_id string, private_key string) *Gr4vyClient
func NewGr4vyClientWithBaseUrl ¶
func NewGr4vyClientWithBaseUrl(base_url string, private_key string) *Gr4vyClient
func (*Gr4vyClient) AddBuyer ¶
func (c *Gr4vyClient) AddBuyer(body Gr4vyAddBuyer) (*http.Response, error)
func (*Gr4vyClient) AddCardRule ¶
func (c *Gr4vyClient) AddCardRule(body Gr4vyAddCardRule) (*http.Response, error)
func (*Gr4vyClient) AddPaymentService ¶
func (c *Gr4vyClient) AddPaymentService(body Gr4vyAddPaymentService) (*http.Response, error)
func (*Gr4vyClient) AuthorizeNewTransaction ¶
func (c *Gr4vyClient) AuthorizeNewTransaction(body Gr4vyAuthorizeNewTransaction, pm Gr4vyPaymentMethod) (*http.Response, error)
func (*Gr4vyClient) AuthorizeTransaction ¶
func (c *Gr4vyClient) AuthorizeTransaction(transaction_id string) (*http.Response, error)
func (*Gr4vyClient) BaseUrl ¶
func (c *Gr4vyClient) BaseUrl() string
func (*Gr4vyClient) CaptureTransaction ¶
func (c *Gr4vyClient) CaptureTransaction(transaction_id string, body Gr4vyCaptureTransaction) (*http.Response, error)
func (*Gr4vyClient) DeleteBuyer ¶
func (c *Gr4vyClient) DeleteBuyer(buyer_id string) (*http.Response, error)
func (*Gr4vyClient) DeleteCardRule ¶
func (c *Gr4vyClient) DeleteCardRule(card_rule_id string) (*http.Response, error)
func (*Gr4vyClient) DeletePaymentMethod ¶
func (c *Gr4vyClient) DeletePaymentMethod(payment_method_id string) (*http.Response, error)
func (*Gr4vyClient) DeletePaymentService ¶
func (c *Gr4vyClient) DeletePaymentService(payment_service_id string) (*http.Response, error)
func (*Gr4vyClient) GetBuyer ¶
func (c *Gr4vyClient) GetBuyer(buyer_id string) (*http.Response, error)
func (*Gr4vyClient) GetCardRule ¶
func (c *Gr4vyClient) GetCardRule(card_rule_id string) (*http.Response, error)
func (*Gr4vyClient) GetEmbedToken ¶
func (c *Gr4vyClient) GetEmbedToken(params map[string]string) (string, error)
func (*Gr4vyClient) GetPaymentMethod ¶
func (c *Gr4vyClient) GetPaymentMethod(payment_method_id string) (*http.Response, error)
func (*Gr4vyClient) GetPaymentService ¶
func (c *Gr4vyClient) GetPaymentService(payment_service_id string) (*http.Response, error)
func (*Gr4vyClient) GetPaymentServiceDefinition ¶
func (c *Gr4vyClient) GetPaymentServiceDefinition(payment_service_definition_id string) (*http.Response, error)
func (*Gr4vyClient) GetTransaction ¶
func (c *Gr4vyClient) GetTransaction(transaction_id string) (*http.Response, error)
func (*Gr4vyClient) HandleResponse ¶
func (*Gr4vyClient) ListBuyers ¶
func (c *Gr4vyClient) ListBuyers(params Gr4vyListBuyersParams) (*http.Response, error)
func (*Gr4vyClient) ListCardsRules ¶
func (c *Gr4vyClient) ListCardsRules(params Gr4vyListCardsRulesParams) (*http.Response, error)
func (*Gr4vyClient) ListPaymentMethods ¶
func (c *Gr4vyClient) ListPaymentMethods(params Gr4vyListPaymentMethodsParams) (*http.Response, error)
func (*Gr4vyClient) ListPaymentOptions ¶
func (c *Gr4vyClient) ListPaymentOptions(params Gr4vyListPaymentOptionsParams) (*http.Response, error)
func (*Gr4vyClient) ListPaymentServiceDefinitions ¶
func (c *Gr4vyClient) ListPaymentServiceDefinitions(params Gr4vyListPaymentServiceDefinitionsParams) (*http.Response, error)
func (*Gr4vyClient) ListPaymentServices ¶
func (c *Gr4vyClient) ListPaymentServices(params Gr4vyListPaymentServicesParams) (*http.Response, error)
func (*Gr4vyClient) ListTransactions ¶
func (c *Gr4vyClient) ListTransactions(params Gr4vyListTransactionsParams) (*http.Response, error)
func (*Gr4vyClient) RefundTransaction ¶
func (c *Gr4vyClient) RefundTransaction(transaction_id string) (*http.Response, error)
func (*Gr4vyClient) StorePaymentMethod ¶
func (c *Gr4vyClient) StorePaymentMethod(body Gr4vyStorePaymentMethod) (*http.Response, error)
func (*Gr4vyClient) UpdateBuyer ¶
func (c *Gr4vyClient) UpdateBuyer(buyer_id string, body Gr4vyUpdateBuyer) (*http.Response, error)
func (*Gr4vyClient) UpdateCardRule ¶
func (c *Gr4vyClient) UpdateCardRule(card_rule_id string, body Gr4vyUpdateCardRule) (*http.Response, error)
func (*Gr4vyClient) UpdatePaymentService ¶
func (c *Gr4vyClient) UpdatePaymentService(payment_service_id string, body Gr4vyUpdatePaymentService) (*http.Response, error)
type Gr4vyListBuyersParams ¶
type Gr4vyListBuyersParams ListBuyersParams
type Gr4vyListCardsRulesParams ¶
type Gr4vyListCardsRulesParams ListCardsRulesParams
type Gr4vyListPaymentMethodsParams ¶
type Gr4vyListPaymentMethodsParams ListPaymentMethodsParams
type Gr4vyListPaymentOptionsParams ¶
type Gr4vyListPaymentOptionsParams ListPaymentOptionsParams
type Gr4vyListPaymentServiceDefinitionsParams ¶
type Gr4vyListPaymentServiceDefinitionsParams ListPaymentServiceDefinitionsParams
type Gr4vyListPaymentServicesParams ¶
type Gr4vyListPaymentServicesParams ListPaymentServicesParams
type Gr4vyListTransactionsParams ¶
type Gr4vyListTransactionsParams ListTransactionsParams
type Gr4vyPaymentMethod ¶
type Gr4vyPaymentMethod CardRequest
type Gr4vyPaymentService ¶
type Gr4vyPaymentService PaymentService
type Gr4vyPaymentServiceDefinition ¶
type Gr4vyPaymentServiceDefinition PaymentServiceDefinition
type Gr4vyStorePaymentMethod ¶
type Gr4vyStorePaymentMethod StorePaymentMethodJSONRequestBody
type Gr4vyUpdateBuyer ¶
type Gr4vyUpdateBuyer UpdateBuyerJSONRequestBody
type Gr4vyUpdateCardRule ¶
type Gr4vyUpdateCardRule UpdateCardRuleJSONRequestBody
type Gr4vyUpdatePaymentService ¶
type Gr4vyUpdatePaymentService UpdatePaymentServiceJSONRequestBody
Source Files ¶
Click to show internal directories.
Click to hide internal directories.