use of com.axelor.apps.account.ebics.schema.h003.EbicsNoPubKeyDigestsRequestDocument.EbicsNoPubKeyDigestsRequest in project axelor-open-suite by axelor.
the class EbicsXmlFactory method createEbicsNoPubKeyDigestsRequestDocument.
/**
* Creates a new <code>EbicsNoPubKeyDigestsRequestDocument</code> XML object
*
* @param ebicsNoPubKeyDigestsRequest the <code>EbicsNoPubKeyDigestsRequest</code> element
* @return the <code>EbicsNoPubKeyDigestsRequestDocument</code> XML object
*/
public static EbicsNoPubKeyDigestsRequestDocument createEbicsNoPubKeyDigestsRequestDocument(EbicsNoPubKeyDigestsRequest ebicsNoPubKeyDigestsRequest) {
EbicsNoPubKeyDigestsRequestDocument newEbicsNoPubKeyDigestsRequestDocument = EbicsNoPubKeyDigestsRequestDocument.Factory.newInstance();
newEbicsNoPubKeyDigestsRequestDocument.setEbicsNoPubKeyDigestsRequest(ebicsNoPubKeyDigestsRequest);
return newEbicsNoPubKeyDigestsRequestDocument;
}
use of com.axelor.apps.account.ebics.schema.h003.EbicsNoPubKeyDigestsRequestDocument.EbicsNoPubKeyDigestsRequest in project axelor-open-suite by axelor.
the class EbicsXmlFactory method createEbicsNoPubKeyDigestsRequest.
// -----------------------------------------------------------------------------------------------------------------------------------------------
/**
* Creates a new <code>EbicsNoPubKeyDigestsRequest</code> XML object
*
* @param revision the default revision
* @param version the default version
* @param header the <code>
* com.axelor.apps.account.ebics.schema.h003.EbicsNoPubKeyDigestsRequestDocument.EbicsNoPubKeyDigestsRequest.Header
* </code> element
* @param body the <code>
* com.axelor.apps.account.ebics.schema.h003.EbicsNoPubKeyDigestsRequestDocument.EbicsNoPubKeyDigestsRequest.Body
* </code> element
* @return the <code>EbicsNoPubKeyDigestsRequest</code> XML object
*/
public static EbicsNoPubKeyDigestsRequest createEbicsNoPubKeyDigestsRequest(int revision, String version, com.axelor.apps.account.ebics.schema.h003.EbicsNoPubKeyDigestsRequestDocument.EbicsNoPubKeyDigestsRequest.Header header, com.axelor.apps.account.ebics.schema.h003.EbicsNoPubKeyDigestsRequestDocument.EbicsNoPubKeyDigestsRequest.Body body) {
EbicsNoPubKeyDigestsRequest newEbicsNoPubKeyDigestsRequest = EbicsNoPubKeyDigestsRequest.Factory.newInstance();
newEbicsNoPubKeyDigestsRequest.setRevision(revision);
newEbicsNoPubKeyDigestsRequest.setVersion(version);
newEbicsNoPubKeyDigestsRequest.setHeader(header);
newEbicsNoPubKeyDigestsRequest.setBody(body);
return newEbicsNoPubKeyDigestsRequest;
}
use of com.axelor.apps.account.ebics.schema.h003.EbicsNoPubKeyDigestsRequestDocument.EbicsNoPubKeyDigestsRequest in project axelor-open-suite by axelor.
the class NoPubKeyDigestsRequestElement method build.
@Override
public void build() throws AxelorException {
EbicsNoPubKeyDigestsRequest request;
Body body;
Header header;
EmptyMutableHeaderType mutable;
NoPubKeyDigestsRequestStaticHeaderType xstatic;
ProductElementType product;
OrderDetailsType orderDetails;
EbicsUser ebicsUser = session.getUser();
EbicsPartner ebicsPartner = ebicsUser.getEbicsPartner();
OrderAttribute orderAttribute = new OrderAttribute(OrderType.HPB, ebicsPartner.getEbicsTypeSelect());
orderAttribute.build();
product = EbicsXmlFactory.creatProductElementType(session.getProduct().getLanguage(), session.getProduct().getName());
orderDetails = EbicsXmlFactory.createOrderDetailsType(orderAttribute.getOrderAttributes(), null, OrderType.HPB.getOrderType());
xstatic = EbicsXmlFactory.createNoPubKeyDigestsRequestStaticHeaderType(session.getBankID(), EbicsUtils.generateNonce(), Calendar.getInstance(), ebicsPartner.getPartnerId(), ebicsUser.getUserId(), product, orderDetails, ebicsUser.getSecurityMedium());
mutable = EbicsXmlFactory.createEmptyMutableHeaderType();
header = EbicsXmlFactory.createDigestsRequestHeader(true, mutable, xstatic);
body = EbicsXmlFactory.createDigestsRequestBody();
request = EbicsXmlFactory.createEbicsNoPubKeyDigestsRequest(1, "H003", header, body);
document = EbicsXmlFactory.createEbicsNoPubKeyDigestsRequestDocument(request);
}
Aggregations