Skip to content

Commit

Permalink
Merge pull request #4 from sendlovebox/rockstar-280
Browse files Browse the repository at this point in the history
Add Recipient and Transactions endpoint
  • Loading branch information
odetolataiwo authored Jun 5, 2024
2 parents 81eb17d + 98bae2c commit 48db51b
Show file tree
Hide file tree
Showing 6 changed files with 602 additions and 4 deletions.
9 changes: 9 additions & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ type RemoteCalls interface {
GetBillByID(ctx context.Context, id string) (*model.BillData, error)
GetBillByReference(ctx context.Context, reference string) (*model.BillData, error)
GetAllBills(ctx context.Context, request model.GetAllBillsRequest) ([]model.BillData, error)

CreateRecipient(ctx context.Context, request model.CreateRecipientRequest) (*model.RecipientResponse, error)
GetRecipient(ctx context.Context, id string) (*model.RecipientResponse, error)
GetRecipients(ctx context.Context) (*model.RecipientsResponse, error)

CreateTransaction(ctx context.Context, request model.CreateTransactionRequest) (*model.TransactionResponse, error)
GetTransactionByID(ctx context.Context, id string) (*model.TransactionResponse, error)
GetTransactionByReference(ctx context.Context, reference string) (*model.TransactionResponse, error)
GetTransactions(ctx context.Context) (*model.TransactionsResponse, error)
}

// Call object
Expand Down
348 changes: 348 additions & 0 deletions api/mock/mock_remote_calls.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 48db51b

Please sign in to comment.