Skip to content

Commit

Permalink
Merge pull request #261 from peek-travel/release/v0.10.0
Browse files Browse the repository at this point in the history
Release v0.10.0
  • Loading branch information
vanvoljg authored Jan 25, 2023
2 parents faecd39 + 129d8a4 commit d2a8d66
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 8 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased][]

- No changes

## [0.10.0][]

### Fixed

- Make `can_approve` and `is_paid_manually` fields from Payer API required to match Tipalti specification

### Updated

- Updates on Tipalti documentation urls
## [0.9.0][] - 2021-05-20

### Updated
Expand Down Expand Up @@ -121,7 +132,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Initial release

[Unreleased]: https://github.com/peek-travel/tipalti-elixir/compare/0.9.0...HEAD
[Unreleased]: https://github.com/peek-travel/tipalti-elixir/compare/0.10.0...HEAD

[0.10.0]: https://github.com/peek-travel/tipalti-elixir/compare/0.9.0...0.10.0

[0.9.0]: https://github.com/peek-travel/tipalti-elixir/compare/0.8.6...0.9.0

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

[![CI Status](https://github.com/peek-travel/tipalti-elixir/workflows/CI/badge.svg)](https://github.com/peek-travel/tipalti-elixir/actions)
[![codecov](https://codecov.io/gh/peek-travel/tipalti-elixir/branch/master/graph/badge.svg)](https://codecov.io/gh/peek-travel/tipalti-elixir)
[![SourceLevel](https://app.sourcelevel.io/github/peek-travel/tipalti-elixir.svg)](https://app.sourcelevel.io/github/peek-travel/tipalti-elixir)
[![Hex.pm Version](https://img.shields.io/hexpm/v/tipalti.svg?style=flat)](https://hex.pm/packages/tipalti)
[![Inline docs](http://inch-ci.org/github/peek-travel/tipalti-elixir.svg)](http://inch-ci.org/github/peek-travel/tipalti-elixir)
[![License](https://img.shields.io/hexpm/l/tipalti.svg)](LICENSE.md)
Expand Down
10 changes: 5 additions & 5 deletions lib/tipalti/api/payer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ defmodule Tipalti.API.Payer do
required(:date) => String.t(),
required(:idap) => Tipalti.idap(),
required(:subject) => String.t(),
optional(:can_approve) => boolean(),
optional(:is_paid_manually) => boolean(),
required(:can_approve) => boolean(),
required(:is_paid_manually) => boolean(),
optional(:ap_account_number) => String.t(),
optional(:approvers) => [invoice_approver()],
optional(:currency) => String.t(),
Expand All @@ -107,7 +107,7 @@ defmodule Tipalti.API.Payer do
Returns a list of invoice responses for each invoice,
indicating if it succeeded and what the errors were if it didn't.
See <https://support.tipalti.com/Content/Topics/Development/APIs/PayerApi.htm> for details.
See <https://support.tipalti.com/Content/Topics/Development/APIs/PayeeAPI/Intro.htm> for details.
## Parameters
Expand Down Expand Up @@ -155,7 +155,7 @@ defmodule Tipalti.API.Payer do
## Examples
iex> create_or_update_invoices([%{idap: "somepayee", ref_code: "testinvoice1", due_date: "2018-05-01", date: "2018-06-01", subject: "test invoice 1", currency: "USD", line_items: [%{amount: "100.00", description: "test line item"}]}, %{idap: "somepayee", ref_code: "testinvoice2", due_date: "2018-06-01", date: "2018-05-01", subject: "test invoice 2", currency: "USD", line_items: [%{amount: "100.00", description: "test line item"}]}])
iex> create_or_update_invoices([%{idap: "somepayee", can_approve: false, is_paid_manually: false, ref_code: "testinvoice1", due_date: "2018-05-01", date: "2018-06-01", subject: "test invoice 1", currency: "USD", line_items: [%{amount: "100.00", description: "test line item"}]}, %{idap: "somepayee", ref_code: "testinvoice2", due_date: "2018-06-01", date: "2018-05-01", subject: "test invoice 2", currency: "USD", line_items: [%{amount: "100.00", description: "test line item"}]}])
{:ok,
[
%{
Expand All @@ -173,7 +173,7 @@ defmodule Tipalti.API.Payer do
iex> custom_fields = [%{key: "foo", value: "bar"}]
...> line_items = [%{amount: "100.00", description: "test line item", custom_fields: custom_fields}]
...> approvers = [%{name: "Mr. Approver", email: "[email protected]", order: 1}]
...> invoice = %{idap: "somepayee", ref_code: "testinvoice", due_date: "2018-06-01", date: "2018-05-01", subject: "test invoice", currency: "USD", line_items: line_items, custom_fields: custom_fields, approvers: approvers}
...> invoice = %{idap: "somepayee", can_approve: false, is_paid_manually: false, ref_code: "testinvoice", due_date: "2018-06-01", date: "2018-05-01", subject: "test invoice", currency: "USD", line_items: line_items, custom_fields: custom_fields, approvers: approvers}
...> create_or_update_invoices([invoice])
{:ok, [%{error_message: nil, ref_code: "testinvoice", succeeded: true}]}
"""
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Tipalti.MixProject do
use Mix.Project

@version "0.9.0"
@version "0.10.0"

def project do
[
Expand Down
2 changes: 2 additions & 0 deletions test/requests/create_or_update_invoices_custom_req.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@
</CustomFields>
</InvoiceLine>
</InvoiceLines>
<CanApprove>false</CanApprove>
<CustomFields>
<KeyValuePair>
<Key>foo</Key>
<Value>bar</Value>
</KeyValuePair>
</CustomFields>
<IsPaidManually>false</IsPaidManually>
<Currency>USD</Currency>
<Approvers>
<TipaltiInvoiceApprover>
Expand Down
2 changes: 2 additions & 0 deletions test/requests/create_or_update_invoices_req.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<Description>test line item</Description>
</InvoiceLine>
</InvoiceLines>
<CanApprove>false</CanApprove>
<IsPaidManually>false</IsPaidManually>
<Currency>USD</Currency>
<InvoiceSubject>test invoice 1</InvoiceSubject>
</TipaltiInvoiceItemRequest>
Expand Down

0 comments on commit d2a8d66

Please sign in to comment.