Skip to content

Commit

Permalink
Merge pull request #169 from getlago/ftr-wallet-improvements
Browse files Browse the repository at this point in the history
feat(wallet): Add transaction_status to wallet object
  • Loading branch information
rsempe authored Apr 22, 2024
2 parents 3f678d8 + 51545df commit ede0bdc
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions wallet_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ const (
WalletTransactionStatusSettled WalletTransactionStatus = "settled"
)

type TransactionStatus string

const (
Paid TransactionStatus = "paid"
Offered TransactionStatus = "offered"
Voided TransactionStatus = "voided"
)

type TransactionType string

const (
Expand All @@ -28,11 +36,12 @@ type WalletTransactionRequest struct {
}

type WalletTransactionListInput struct {
PerPage int `json:"per_page,omitempty,string"`
Page int `json:"page,omitempty,string"`
WalletID string `json:"wallet_id,omitempty"`
Status WalletTransactionStatus `json:"status,omitempty"`
TransactionType TransactionType `json:"transaction_type,omitempty"`
PerPage int `json:"per_page,omitempty,string"`
Page int `json:"page,omitempty,string"`
WalletID string `json:"wallet_id,omitempty"`
Status WalletTransactionStatus `json:"status,omitempty"`
TransactionStatus TransactionStatus `json:"transaction_status,omitempty"`
TransactionType TransactionType `json:"transaction_type,omitempty"`
}

type WalletTransactionParams struct {
Expand Down

0 comments on commit ede0bdc

Please sign in to comment.