Inclui alguns construtores e métodos para tentar deixar a montagem dos objetos um pouco menos verbosa, por exemplo:
Ao invés de:
MerchantAccountInformationTemplate merchantAccountInformationOutro = new MerchantAccountInformationTemplate(); merchantAccountInformationOutro.setTag("27"); merchantAccountInformationOutro.setValue(new MerchantAccountInformation()); merchantAccountInformationOutro.getValue().setGloballyUniqueIdentifier("BR.COM.OUTRO"); merchantAccountInformationOutro.getValue().addPaymentNetworkSpecific(new TagLengthString("01", "0123456789"));
Usar:
MerchantAccountInformationTemplate merchantAccountInformationOutro = new MerchantAccountInformationTemplate("27", "BR.COM.OUTRO"); merchantAccountInformationOutro.addPaymentNetworkSpecific("01", "0123456789");
Outro exemplo, no lugar de:
UnreservedTemplate unreservedTemplateOutro = new UnreservedTemplate(); unreservedTemplateOutro.setTag("81"); unreservedTemplateOutro.setValue(new Unreserved()); unreservedTemplateOutro.getValue().setGloballyUniqueIdentifier("BR.COM.OUTRO"); unreservedTemplateOutro.getValue().addContextSpecificData(new TagLengthString("01", "0123.ABCD.3456.WXYZ"));
Usar:
UnreservedTemplate unreservedTemplateOutro = new UnreservedTemplate("81", "BR.COM.OUTRO"); unreservedTemplateOutro.addContextSpecificData("01", "0123.ABCD.3456.WXYZ");
Olá!
Inclui alguns construtores e métodos para tentar deixar a montagem dos objetos um pouco menos verbosa, por exemplo:
Ao invés de:
MerchantAccountInformationTemplate merchantAccountInformationOutro = new MerchantAccountInformationTemplate(); merchantAccountInformationOutro.setTag("27"); merchantAccountInformationOutro.setValue(new MerchantAccountInformation()); merchantAccountInformationOutro.getValue().setGloballyUniqueIdentifier("BR.COM.OUTRO"); merchantAccountInformationOutro.getValue().addPaymentNetworkSpecific(new TagLengthString("01", "0123456789"));
Usar:
MerchantAccountInformationTemplate merchantAccountInformationOutro = new MerchantAccountInformationTemplate("27", "BR.COM.OUTRO"); merchantAccountInformationOutro.addPaymentNetworkSpecific("01", "0123456789");
Outro exemplo, no lugar de:
UnreservedTemplate unreservedTemplateOutro = new UnreservedTemplate(); unreservedTemplateOutro.setTag("81"); unreservedTemplateOutro.setValue(new Unreserved()); unreservedTemplateOutro.getValue().setGloballyUniqueIdentifier("BR.COM.OUTRO"); unreservedTemplateOutro.getValue().addContextSpecificData(new TagLengthString("01", "0123.ABCD.3456.WXYZ"));
Usar:
UnreservedTemplate unreservedTemplateOutro = new UnreservedTemplate("81", "BR.COM.OUTRO"); unreservedTemplateOutro.addContextSpecificData("01", "0123.ABCD.3456.WXYZ");
Fiz essas mudanças para