Skip to content

Commit

Permalink
Add tax_id to transfer query parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
cdottori-stark committed Jun 5, 2020
1 parent 24a720f commit 72551c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Given a version number MAJOR.MINOR.PATCH, increment:
- Travis CI integration
- Boleto PDF layout option
- Global error language config
- Transfer tax_id query parameter
### Change
- Test user credentials to environment variable instead of hard-code

Expand Down
3 changes: 3 additions & 0 deletions lib/transfer/transfer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ defmodule StarkBank.Transfer do
- `:before` [Date, DateTime or string, default nil]: date filter for structs created or updated only before specified date. ex: ~D[2020-03-25]
- `:transaction_ids` [list of strings, default nil]: list of transaction IDs linked to the desired transfers. ex: ["5656565656565656", "4545454545454545"]
- `:status` [string, default nil]: filter for status of retrieved structs. ex: "paid" or "registered"
- `:tax_id` [string, default nil]: filter for transfers sent to the specified tax ID. ex: "012.345.678-90"
- `:sort` [string, default "-created"]: sort order considered in response. Valid options are "created", "-created", "updated" or "-updated".
- `:tags` [list of strings, default nil]: tags to filter retrieved structs. ex: ["tony", "stark"]
- `:user` [Project]: Project struct returned from StarkBank.project(). Only necessary if default project has not been set in configs.
Expand All @@ -159,6 +160,7 @@ defmodule StarkBank.Transfer do
before: Date.t() | DateTime.t() | binary,
transaction_ids: [binary],
status: binary,
tax_id: binary,
sort: binary,
tags: [binary],
user: Project.t()
Expand All @@ -182,6 +184,7 @@ defmodule StarkBank.Transfer do
before: Date.t() | DateTime.t() | binary,
transaction_ids: [binary],
status: binary,
tax_id: binary,
sort: binary,
tags: [binary],
user: Project.t()
Expand Down

0 comments on commit 72551c3

Please sign in to comment.