requests

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestMpesaPayment

type RequestMpesaPayment struct {
	//External identifier for the transfer which can be used for reconciliation. Need not be unique
	TransactionID string `json:"transaction_id" validate:"required"`
	//Unique idempotency identifier. Duplicates are rejected
	IdempotencyID string `json:"idempotency_id" validate:"required"`
	// payment amount
	Amount string `json:"amount" validate:"required,numeric,min=10"`
	// (optional) but required for transfers, this can be till or paybill
	ExternalAccountType string `json:"external_account_type" validate:"oneof=till paybill"`
	// customer account that will be charged
	ExternalAccountID string `json:"external_account_id" validate:"required"`
	// account number or name of the payment beneficiary
	Beneficiary string `json:"beneficiary"`
	// payment description
	Description string `json:"description"`
}

type RequestMpesaPaymentStatus

type RequestMpesaPaymentStatus struct {
	PaymentID        string `json:"payment_id"`
	TransactionID    string `json:"transaction_id"`
	PaymentReference string `json:"payment_reference"`
}

Jump to

Keyboard shortcuts

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