@@ -25,6 +25,7 @@ public partial class PaymentPreview
2525 /// <item>ReductionAmount [long]: Current value reduction value in cents that this payment is expecting. ex: 123 (= R$1,23)</item>
2626 /// <item>DiscountAmount [long]: Current discount value in cents that this payment is expecting. ex: 123 (= R$1,23)</item>
2727 /// <item>ReconciliationID [string]: Reconciliation ID linked to this payment. ex: "txId", "payment-123"</item>
28+ /// <item>KeyID [string]: Payment receiver Pix key. ex: "[email protected] ", "72246143004", "20018183000180", "+5511988887777", "b6295ee1-f054-47d1-9e90-ee57b74f60d9"</item> 2829 /// </list>
2930 /// </summary>
3031 public class BrcodePreview : StarkCore . Utils . SubResource
@@ -42,6 +43,7 @@ public class BrcodePreview : StarkCore.Utils.SubResource
4243 public long ReductionAmount { get ; }
4344 public long DiscountAmount { get ; }
4445 public string ReconciliationID { get ; }
46+ public string KeyID { get ; }
4547
4648 /// <summary>
4749 /// BrcodePreview object
@@ -65,10 +67,11 @@ public class BrcodePreview : StarkCore.Utils.SubResource
6567 /// <item>ReconciliationID [string]: Reconciliation ID linked to this payment. ex: "txId", "payment-123"</item>
6668 /// </list>
6769 /// </summary>
68- public BrcodePreview ( string status , string name , string taxID , string bankCode ,
70+ public BrcodePreview ( string status , string name , string taxID , string bankCode ,
6971 string accountType , bool allowChange , long amount , long nominalAmount , long interestAmount ,
70- long fineAmount , long reductionAmount , long discountAmount , string reconciliationID
71- ) {
72+ long fineAmount , long reductionAmount , long discountAmount , string reconciliationID , string keyID
73+ )
74+ {
7275 Status = status ;
7376 Name = name ;
7477 TaxID = taxID ;
@@ -82,6 +85,7 @@ public BrcodePreview(string status, string name, string taxID, string bankCode,
8285 ReductionAmount = reductionAmount ;
8386 DiscountAmount = discountAmount ;
8487 ReconciliationID = reconciliationID ;
88+ KeyID = keyID ;
8589 }
8690
8791 internal static ( string resourceName , StarkCore . Utils . Api . ResourceMaker resourceMaker ) SubResource ( )
@@ -104,12 +108,14 @@ public static StarkCore.Utils.SubResource ResourceMaker(dynamic json)
104108 long reductionAmount = json . reductionAmount ;
105109 long discountAmount = json . discountAmount ;
106110 string reconciliationID = json . reconciliationId ;
111+ string keyID = json . keyId ;
107112
108113 return new BrcodePreview (
109114 status : status , name : name , taxID : taxID , bankCode : bankCode ,
110115 accountType : accountType , allowChange : allowChange , amount : amount ,
111116 nominalAmount : nominalAmount , interestAmount : interestAmount , fineAmount : fineAmount ,
112- reductionAmount : reductionAmount , discountAmount : discountAmount , reconciliationID : reconciliationID
117+ reductionAmount : reductionAmount , discountAmount : discountAmount ,
118+ reconciliationID : reconciliationID , keyID : keyID
113119 ) ;
114120 }
115121 }
0 commit comments