public class BoardingUrlBuilderImpl extends java.lang.Object implements BoardingUrlBuilder
Modifier and Type | Field and Description |
---|---|
private SageoneConfig |
config |
Constructor and Description |
---|
BoardingUrlBuilderImpl(SageoneConfig config) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createAuthUrl(java.lang.String shopAlias,
java.lang.String restApiBaseUrl)
Creates the url to start the oAuth onboarding.
|
java.lang.String |
createoAuthCallbackUrl(java.lang.String shopAlias,
java.lang.String restApiBaseUrl)
Create the callback url that is invoked by sage once
the onboarding process was completed.
|
private SageoneConfig config
@Inject public BoardingUrlBuilderImpl(SageoneConfig config)
public java.lang.String createAuthUrl(java.lang.String shopAlias, java.lang.String restApiBaseUrl)
BoardingUrlBuilder
createAuthUrl
in interface BoardingUrlBuilder
shopAlias
- The public shop identifier.restApiBaseUrl
- The base url of the rest-api for the creation of the oAuth-callback.public java.lang.String createoAuthCallbackUrl(java.lang.String shopAlias, java.lang.String restApiBaseUrl)
BoardingUrlBuilder
createoAuthCallbackUrl
in interface BoardingUrlBuilder
shopAlias
- The public shop identifier.restApiBaseUrl
- The base url of the rest-api for the creation of the oAuth-callback.