Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BILL-3438 add docs for getting account Lob Credits balance #464

Merged
merged 5 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ node_modules
docs/chunks/
docs/js/bundle.js
docs/index.html
README.md
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we really want this, but the README was failing the prettier check for some reason. If there's a way around this please let me know.


.github/ISSUE_TEMPLATE
.github/pull_request_template.md
Expand Down
33 changes: 33 additions & 0 deletions dist/lob-api-bundled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13033,6 +13033,39 @@ x-webhooks:
'200':
$ref: '#/components/responses/tracking_events'
paths:
/accounts:
get:
operationId: get_lob_credits_balance
summary: Get Lob Credits Balance
description: Returns the account's current balance of Lob Credits.
tags:
- Accounts
- Lob Credits
responses:
'200':
description: Returns a lob_credits_balance object.
content:
description: Account's current balance of Lob Credits
content:
application/json:
schema:
$ref: ../models/lob_credits_balance.yml
examples:
empty:
value:
balance: 0
negative:
value:
balance: -1234.56
positive:
value:
balance: 1000
x-codeSamples:
- lang: Shell
source: |
curl https://api.lob.com/v1/accounts/credits_balance \
-u <YOUR API KEY>:
label: CURL
/addresses:
get:
operationId: addresses_list
Expand Down
26 changes: 13 additions & 13 deletions docs/index.html

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions lob-api-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2493,6 +2493,9 @@ x-webhooks:
$ref: shared/resources/tracking_events/responses/tracking_events.yml

paths:
/accounts:
$ref: resources/accounts/accounts.yml

/addresses:
$ref: resources/addresses/addresses.yml

Expand Down
24 changes: 24 additions & 0 deletions resources/accounts/accounts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
get:
operationId: get_lob_credits_balance

summary: Get Lob Credits Balance

description: >-
Returns the account's current balance of Lob Credits.

tags:
- Accounts
- Lob Credits

responses:
"200":
description: Returns a lob_credits_balance object.
content:
$ref: responses/lob_credits_balance.yml

x-codeSamples:
- lang: Shell
source: |
curl https://api.lob.com/v1/accounts/credits_balance \
-u <YOUR API KEY>:
label: CURL
8 changes: 8 additions & 0 deletions resources/accounts/models/lob_credits_balance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type: object
required:
- balance
properties:
balance:
type: number
description: Account's current balance of Lob Credits. Can be positive, negative, or zero.
example: 1000.00
17 changes: 17 additions & 0 deletions resources/accounts/responses/lob_credits_balance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
description: Account's current balance of Lob Credits

content:
application/json:
schema:
$ref: "../models/lob_credits_balance.yml"

examples:
empty:
value:
balance: 0
negative:
value:
balance: -1234.56
positive:
value:
balance: 1000.00