@@ -24,19 +24,23 @@ public class MerchantSession extends Resource {
2424 public List <AllowedInstallment > allowedInstallments ;
2525 public List <String > allowedIps ;
2626 public String challengeMode ;
27+ public String holderId ;
28+ public String softDescriptor ;
2729 public String created ;
2830 public Number expiration ;
2931 public String status ;
3032 public String [] tags ;
3133 public String updated ;
3234 public String uuid ;
3335
34- public MerchantSession (String id , List <String > allowedFundingTypes , List <AllowedInstallment > allowedInstallments , List <String > allowedIps , String challengeMode , String created , Number expiration , String status , String [] tags , String updated , String uuid ) {
36+ public MerchantSession (String id , List <String > allowedFundingTypes , List <AllowedInstallment > allowedInstallments , List <String > allowedIps , String challengeMode , String holderId , String softDescriptor , String created , Number expiration , String status , String [] tags , String updated , String uuid ) {
3537 super (id );
3638 this .allowedFundingTypes = allowedFundingTypes ;
3739 this .allowedInstallments = allowedInstallments ;
3840 this .allowedIps = allowedIps ;
3941 this .challengeMode = challengeMode ;
42+ this .holderId = holderId ;
43+ this .softDescriptor = softDescriptor ;
4044 this .created = created ;
4145 this .expiration = expiration ;
4246 this .status = status ;
@@ -53,6 +57,8 @@ public MerchantSession(Map<String, Object> data) throws Exception {
5357 this .allowedFundingTypes = (List <String >) dataCopy .remove ("allowedFundingTypes" );
5458 this .allowedInstallments = parseAllowedInstallments ((List <Object >) dataCopy .remove ("allowedInstallments" ));
5559 this .challengeMode = (String ) dataCopy .remove ("challengeMode" );
60+ this .holderId = (String ) dataCopy .remove ("holderId" );
61+ this .softDescriptor = (String ) dataCopy .remove ("softDescriptor" );
5662 this .expiration = (Number ) dataCopy .remove ("expiration" );
5763 this .tags = (String []) dataCopy .remove ("tags" );
5864 this .uuid = null ;
@@ -186,6 +192,8 @@ public final static class Purchase extends Resource {
186192 public String holderName ;
187193 public String holderEmail ;
188194 public String holderPhone ;
195+ public String holderId ;
196+ public String softDescriptor ;
189197 public String fundingType ;
190198 public String billingCountryCode ;
191199 public String billingCity ;
@@ -201,7 +209,7 @@ public final static class Purchase extends Resource {
201209 public String [] tags ;
202210 public String update ;
203211
204- public Purchase (String id , Long amount , Integer installmentCount , String cardId , String cardExpiration , String cardNumber , String cardSecurityCode , String holderName , String holderEmail , String holderPhone , String fundingType , String billingCountryCode , String billingCity , String billingStateCode , String billingStreetLine1 , String billingStreetLine2 , String billingZipCode , String challengeMode , Map <String , Object > metadata ) {
212+ public Purchase (String id , Long amount , Integer installmentCount , String cardId , String cardExpiration , String cardNumber , String cardSecurityCode , String holderName , String holderEmail , String holderPhone , String holderId , String softDescriptor , String fundingType , String billingCountryCode , String billingCity , String billingStateCode , String billingStreetLine1 , String billingStreetLine2 , String billingZipCode , String challengeMode , Map <String , Object > metadata ) {
205213 super (id );
206214 this .amount = amount ;
207215 this .installmentCount = installmentCount ;
@@ -212,6 +220,8 @@ public Purchase(String id, Long amount, Integer installmentCount, String cardId,
212220 this .holderName = holderName ;
213221 this .holderEmail = holderEmail ;
214222 this .holderPhone = holderPhone ;
223+ this .holderId = holderId ;
224+ this .softDescriptor = softDescriptor ;
215225 this .fundingType = fundingType ;
216226 this .billingCountryCode = billingCountryCode ;
217227 this .billingCity = billingCity ;
@@ -246,6 +256,8 @@ public Purchase(Map<String, Object> data) throws Exception {
246256 this .billingZipCode = (String ) dataCopy .remove ("billingZipCode" );
247257 this .metadata = (Map <String , Object >) dataCopy .remove ("metadata" );
248258 this .tags = (String []) dataCopy .remove ("tags" );
259+ this .holderId = (String ) dataCopy .remove ("holderId" );
260+ this .softDescriptor = (String ) dataCopy .remove ("softDescriptor" );
249261 this .challengeMode = null ;
250262 this .network = null ;
251263 this .source = null ;
0 commit comments