Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add agreement type to EuCtp Message Builder #246

Merged
merged 3 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ protected AbstractEuCtpUserMessageBuilder ()
conversationID (UUID.randomUUID ().toString ());

agreementRef (EuCtpPMode.DEFAULT_AGREEMENT_ID);
agreementType(EuCtpPMode.DEFAULT_AGREEMENT_TYPE);

forceMimeMessage (true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import com.helger.phase4.crypto.ECryptoAlgorithmC14N;
import com.helger.phase4.crypto.ECryptoKeyEncryptionAlgorithm;
import com.helger.phase4.crypto.ECryptoKeyIdentifierType;
import com.helger.phase4.sender.AbstractAS4PullRequestBuilder;

public class EuCtpPullRequestBuilder extends AbstractAS4PullRequestBuilder <EuCtpPullRequestBuilder>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ private Phase4EuCtpSender ()
* Never <code>null</code>.
*/
@Nonnull
public static EuctpUserMessageBuilder builder ()
public static EuCtpUserMessageBuilder builder ()
{
return new EuctpUserMessageBuilder ();
return new EuCtpUserMessageBuilder();
}

/**
Expand All @@ -52,9 +52,9 @@ public static EuctpUserMessageBuilder builder ()
*
* @author Ulrik Stehling
*/
public static class EuctpUserMessageBuilder extends AbstractEuCtpUserMessageBuilder <EuctpUserMessageBuilder>
public static class EuCtpUserMessageBuilder extends AbstractEuCtpUserMessageBuilder <EuCtpUserMessageBuilder>
{
public EuctpUserMessageBuilder ()
public EuCtpUserMessageBuilder()
{
super ();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
public final class EuCtpPMode
{
public static final String DEFAULT_AGREEMENT_ID = "EU-ICS2-TI-V2.0";
public static final String DEFAULT_AGREEMENT_TYPE = "ics2-interface-version";
public static final String DEFAULT_PARTY_TYPE_ID = "urn:oasis:names:tc:ebcore:partyid-type:unregistered:eu-customs:EORI";
public static final String DEFAULT_CUSTOMS_PARTY_TYPE_ID = "urn:oasis:names:tc:ebcore:partyid-type:unregistered:eu-customs:auth";

Expand Down