Skip to content

Commit

Permalink
Merge pull request #2 from automotechnologies/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kervinch authored Oct 31, 2023
2 parents de84f3e + 932d67e commit 8beb111
Show file tree
Hide file tree
Showing 9 changed files with 1,126 additions and 1,345 deletions.
433 changes: 22 additions & 411 deletions README.md

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions docs/balance/BalanceAPI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# doitpay\BalanceAPI

All URIs are relative to *https://api.doitpay.co*

Method | HTTP request | Description
------------- | ------------- | -------------
[**GetBalance**](BalanceAPI.md#GetBalance) | **Get** /merchant/v1/balance | Obtains the balances for a business.



## GetBalance

Obtains the balances for a business.



### Example

```go
package main

import (
"context"
"fmt"
"os"

doitpay "github.com/automotechnologies/doitpay-go"
)

func main() {
doitpayClient := doitpay.NewAPIClient("API-KEY")

resp, r, err := doitpayClient.BalanceAPI.GetBalance(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BalanceAPI.GetBalance``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}

// response from `GetBalance`
fmt.Fprintf(os.Stdout, "Response from `BalanceAPI.GetBalance`: %v\n", resp)
}
```

### Path Parameters

This endpoint does not need any path parameters

### Other Parameters

Other parameters are passed through a pointer to a apiGetBalanceRequest struct via the builder pattern

### Return type

[**Balance**](InternalWebControllersMerchantApiv1BalanceStandardResponse.md)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#)
[[Back to README]](../../README.md)

70 changes: 0 additions & 70 deletions docs/balance/PublicBalanceAPI.md

This file was deleted.

Loading

0 comments on commit 8beb111

Please sign in to comment.