Skip to content

Commit

Permalink
Add transactionIds property to UtilityPayment resource
Browse files Browse the repository at this point in the history
  • Loading branch information
massaru-stark committed Nov 12, 2021
1 parent d8128b4 commit 307b4d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Given a version number MAJOR.MINOR.PATCH, increment:


## [Unreleased]
### Added
- 'transactionIds' property to UtilityPayment resource

## [2.10.0] - 2021-11-12
### Added
Expand Down
6 changes: 4 additions & 2 deletions sdk/utilityPayment/utilityPayment.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ class UtilityPayment extends Resource {
* @param status [string, default null]: current payment status. ex: 'success' or 'failed'
* @param amount [int, default null]: amount automatically calculated from line or bar_code. ex: 23456 (= R$ 234.56)
* @param fee [integer, default null]: fee charged when the utility payment is created. ex: 200 (= R$ 2.00)
* @param transactionIds [list of strings, default null]: ledger transaction ids linked to this UtilityPayment. ex: ['19827356981273']
* @param created [string, default null]: creation datetime for the payment. ex: '2020-03-10 10:30:00.000'
*
*/
constructor({
description, scheduled, line, barCode,
tags, amount, status, created,
tags, amount, status, transactionIds, created,
fee, id,
}) {
super(id);
Expand All @@ -44,8 +45,9 @@ class UtilityPayment extends Resource {
this.tags = tags;
this.amount = amount;
this.status = status;
this.created = check.datetime(created);
this.fee = fee;
this.transactionIds = transactionIds;
this.created = check.datetime(created);
}
}

Expand Down

0 comments on commit 307b4d8

Please sign in to comment.