
com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultTreasuryPositionFlowService Maven / Gradle / Ivy
/*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*/
package com.sap.cloud.sdk.s4hana.datamodel.odata.services;
import java.util.UUID;
import javax.annotation.Nonnull;
import javax.inject.Named;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.treasurypositionflow.TrsyPosFlowByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.treasurypositionflow.TrsyPosFlowFluentHelper;
/**
*
* This inbound service enables you to read treasury position flows to get detailed information about the treasury
* positions flows. It is based on the OData protocol and can be consumed in Fiori apps and on other user interfaces.
*
*
*
* Reference: SAP API
* Business Hub
*
* Details:
*
*
* OData Service:
* API_TRSYPOSFLOW_SRV
*
*
* API Version:
* 1
*
*
* Communication Scenario:
* Treasury Position Flow Integration (SAP_COM_0332)
*
*
* Scope Items:
* Market Data for Treasury and Risk Management (1XN)
*
*
* Authentication Methods:
* Basic, x509, OAuth2
*
*
*
*/
@Named( "com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultTreasuryPositionFlowService" )
public class DefaultTreasuryPositionFlowService implements TreasuryPositionFlowService
{
@Nonnull
private final String servicePath;
/**
* Creates a service using {@link TreasuryPositionFlowService#DEFAULT_SERVICE_PATH} to send the requests.
*
*/
public DefaultTreasuryPositionFlowService()
{
servicePath = TreasuryPositionFlowService.DEFAULT_SERVICE_PATH;
}
/**
* Creates a service using the provided service path to send the requests.
*
* Used by the fluent {@link #withServicePath(String)} method.
*
*/
private DefaultTreasuryPositionFlowService( @Nonnull final String servicePath )
{
this.servicePath = servicePath;
}
@Override
@Nonnull
public DefaultTreasuryPositionFlowService withServicePath( @Nonnull final String servicePath )
{
return new DefaultTreasuryPositionFlowService(servicePath);
}
@Override
@Nonnull
public TrsyPosFlowFluentHelper getAllTrsyPosFlow()
{
return new TrsyPosFlowFluentHelper(servicePath);
}
@Override
@Nonnull
public
TrsyPosFlowByKeyFluentHelper
getTrsyPosFlowByKey( final Integer treasuryTransactionFlow, final UUID businessTransactionDocUUID )
{
return new TrsyPosFlowByKeyFluentHelper(servicePath, treasuryTransactionFlow, businessTransactionDocUUID);
}
}