From 307b4d8c8ebfd94dd2b427e9f0bd3d556e3891e0 Mon Sep 17 00:00:00 2001 From: Felipe Sueto Date: Fri, 12 Nov 2021 18:05:07 -0300 Subject: [PATCH] Add transactionIds property to UtilityPayment resource --- CHANGELOG.md | 2 ++ sdk/utilityPayment/utilityPayment.js | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd730e22..f41994b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/sdk/utilityPayment/utilityPayment.js b/sdk/utilityPayment/utilityPayment.js index 9f5b7d14..59d4a343 100644 --- a/sdk/utilityPayment/utilityPayment.js +++ b/sdk/utilityPayment/utilityPayment.js @@ -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); @@ -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); } }