public class DefaultJetConfig extends Object implements JetConfig
Modifier and Type | Class and Description |
---|---|
static class |
DefaultJetConfig.Builder
A builder for creating a jet api configuration object.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAuthenticationData()
Reset any of the stored authentication tokens
|
String |
getAcceptHeaderValue()
Retrieve the request accept header value
|
String |
getAcceptLanguageHeaderValue()
Retrieve the request accept language header value
|
String |
getAddProductImageUrl(String sku)
Retrieve the URL for adding a product image url
|
String |
getAddProductInventoryUrl(String sku)
Retrieve the URL for adding a product inventory
|
String |
getAddProductPriceUrl(String sku)
Retrieve the URL for adding a product price
|
String |
getAddProductShipExceptionUrl(String sku)
Retrieve the URL for adding a product ship exception
|
String |
getAddProductURL(String sku)
Retrieve the URL for adding a product.
|
String |
getAddProductVariationUrl(String sku)
Retrieve the url for adding a product variation group
|
boolean |
getAllowUntrustedSSL()
Retrieve if self signed certificates are allowed
|
String |
getArchiveSkuURL(String sku)
Retrieve the url for archiving a sku
|
String |
getAuthenticationURL()
Retrieve the URL used for authenticating a username/password
|
String |
getAuthorizationHeaderValue()
Retrieve the authorization header value to send with each request.
|
String |
getAuthTestURL()
Retrieve the URL used for testing an authentication token
|
String |
getGetBulkJetFileIdUrl(String fileId) |
String |
getGetBulkUploadTokenUrl() |
String |
getGetOrderDetailUrl(String jetDefinedOrderId)
This endpoint will provide you with requisite fulfillment information for
the order denoted by the Jet Defined Order ID.
|
String |
getGetOrderDirectCancelUrl()
This provides a list of order url's that can be used to retrieve order
details I think.
|
String |
getGetOrdersUrl(String status)
URL for the endpoint for accessing the first 1000 orders in a certain status.
|
String |
getGetProductInventoryURL(String sku)
Retrieve the url for retrieving product inventory
|
String |
getGetProductPriceURL(String sku)
Retrieve the URL for retrieving a product price
|
String |
getGetProductURL(String sku)
Retrieve the URL for retrieving a product.
|
String |
getGetProductVariationURL(String sku)
Retrieve the url for retrieving product variations
|
String |
getGetRefundByStatusUrl(String status)
Poll for active refunds
|
String |
getGetRefundDetailUrl(String refundAuthId)
Get url to get refund details
|
String |
getGetReturnDetailUrl(String jetDefinedReturnId)
To check for a specific return you will the utilize the Get Returns Info
method.
|
String |
getGetReturnsExceptionURL(String sku)
Retrieve the url for retrieving product returns exceptions
|
String |
getGetReturnsUrl(String status)
To check for returns you will the utilize the Get Returns method.
|
String |
getGetSettlementDaysUrl(int days)
URL for retrieving a list of settlement id's by number of days from today.
|
String |
getGetSettlementReportUrl(String id)
URL for retrieving a settlement report
|
String |
getGetShippingExceptionURL(String sku)
Retrieve the url for retrieving product shipping exceptions
|
String |
getGetTaxonomyAttrUrl(String jetNodeId)
Get the url for querying for an attribute node detail
|
String |
getGetTaxonomyDetailUrl(String nodeId)
Get the url for querying node detail
|
String |
getGetTaxonomyNodesUrl(String version,
int offset,
int limit)
Retrieve the url to retrieve a list of node uri's to query.
|
String |
getHost()
Retrieve the Jet API host name
|
long |
getMaxDownloadSize()
Retrieve the max download size
|
String |
getMerchantId()
Retrieve the Jet API merchant id
|
String |
getPassword()
Retrieve the Jet.com API password
|
String |
getPostBulkUploadedFilesUrl() |
String |
getPostRefundUrl(String orderId,
String altRefundId)
Create a new refund
|
String |
getProductReturnsExceptionUrl(String sku)
Get the returns exception url
|
String |
getPutCompleteReturnUrl(String jetDefinedReturnId)
Get put complete return url
|
String |
getPutOrderAcknowledgeUrl(String jetDefinedOrderId)
The order acknowledge call is utilized to allow a retailer to accept or
reject an order.
|
String |
getPutOrderShipNotificationUrl(String jetDefinedOrderId)
The order shipped call is utilized to provide Jet with the SKUs that have
been shipped or cancelled in an order, the tracking information, carrier
information and any additional returns information for the order.
|
long |
getReadTimeout()
Retrieve the read timeout in milliseconds
|
String |
getSalesDataBySkuURL(String sku)
Retrieve the url for retrieving product sales data
|
String |
getSkuListURL(int start,
int limit)
Retrieve the url for retrieving product inventory
|
String |
getToken()
Retrieve the authentication token previously retrieved via the Jet.com API
if any.
|
Date |
getTokenExpires()
Return the date/time when the auth token expires
|
String |
getTokenType()
Retrieve the token type
|
String |
getUsername()
Retrieve the configured Jet.com API username
|
boolean |
isAuthenticated()
Detect if the authentication token has been specified within this object.
|
boolean |
isLockHost()
get lock host flag
|
void |
setAuthenticationData(String token,
String tokenType,
String expires)
Set the authentication data retrieved from Jet
|
void |
setToken(String token)
Set the authentication token after a successful login.
|
void |
testConfigurationData()
Throws a JetAuthException with a unique message based on different configuration states.
|
public long getMaxDownloadSize()
getMaxDownloadSize
in interface JetConfig
public boolean isLockHost()
isLockHost
in interface JetConfig
public String getProductReturnsExceptionUrl(String sku)
getProductReturnsExceptionUrl
in interface JetConfig
sku
- skupublic long getReadTimeout()
getReadTimeout
in interface JetConfig
public String getAcceptHeaderValue()
getAcceptHeaderValue
in interface JetConfig
public String getAcceptLanguageHeaderValue()
getAcceptLanguageHeaderValue
in interface JetConfig
public boolean getAllowUntrustedSSL()
getAllowUntrustedSSL
in interface JetConfig
public String getMerchantId()
getMerchantId
in interface JetConfig
public String getHost()
public String getUsername()
getUsername
in interface JetConfig
public String getPassword()
getPassword
in interface JetConfig
public String getAuthenticationURL()
getAuthenticationURL
in interface JetConfig
public String getAuthTestURL()
getAuthTestURL
in interface JetConfig
public String getGetProductURL(String sku)
getGetProductURL
in interface JetConfig
sku
- Unique product SKUpublic String getGetProductPriceURL(String sku)
getGetProductPriceURL
in interface JetConfig
sku
- Unique product SKUpublic String getArchiveSkuURL(String sku)
getArchiveSkuURL
in interface JetConfig
sku
- sku to archivepublic String getAddProductURL(String sku)
getAddProductURL
in interface JetConfig
sku
- Unique product SKUpublic String getAddProductImageUrl(String sku)
getAddProductImageUrl
in interface JetConfig
sku
- Unique product SKUpublic String getAddProductPriceUrl(String sku)
getAddProductPriceUrl
in interface JetConfig
sku
- Unique product SKUpublic String getAddProductInventoryUrl(String sku)
getAddProductInventoryUrl
in interface JetConfig
sku
- Unique product SKUpublic String getAddProductShipExceptionUrl(String sku)
getAddProductShipExceptionUrl
in interface JetConfig
sku
- Unique product SKUpublic String getAddProductVariationUrl(String sku)
getAddProductVariationUrl
in interface JetConfig
sku
- Parent sku for the grouppublic void setToken(String token)
public String getToken()
public String getTokenType()
getTokenType
in interface JetConfig
public Date getTokenExpires()
getTokenExpires
in interface JetConfig
public String getGetProductInventoryURL(String sku)
getGetProductInventoryURL
in interface JetConfig
sku
- product skupublic String getGetProductVariationURL(String sku)
getGetProductVariationURL
in interface JetConfig
sku
- product skupublic String getGetShippingExceptionURL(String sku)
getGetShippingExceptionURL
in interface JetConfig
sku
- product skupublic String getGetReturnsExceptionURL(String sku)
getGetReturnsExceptionURL
in interface JetConfig
sku
- product skupublic String getSkuListURL(int start, int limit)
getSkuListURL
in interface JetConfig
start
- The start product numberlimit
- the number of products per page (i think)public String getSalesDataBySkuURL(String sku)
getSalesDataBySkuURL
in interface JetConfig
sku
- product skupublic void setAuthenticationData(String token, String tokenType, String expires) throws IllegalArgumentException
setAuthenticationData
in interface JetConfig
token
- Auth token (id_token)tokenType
- Token type (token_type)expires
- Token expiration (expires_on)IllegalArgumentException
- If anything is empty or
expires cannot be convertedpublic void clearAuthenticationData()
clearAuthenticationData
in interface JetConfig
public String getAuthorizationHeaderValue()
getAuthorizationHeaderValue
in interface JetConfig
public boolean isAuthenticated()
isAuthenticated
in interface JetConfig
setToken(java.lang.String)
public void testConfigurationData() throws JetAuthException
testConfigurationData
in interface JetConfig
JetAuthException
- based on above descriptionpublic String getGetBulkJetFileIdUrl(String fileId)
getGetBulkJetFileIdUrl
in interface JetConfig
fileId
- The jet file idpublic String getGetBulkUploadTokenUrl()
getGetBulkUploadTokenUrl
in interface JetConfig
public String getPostBulkUploadedFilesUrl()
getPostBulkUploadedFilesUrl
in interface JetConfig
public String getGetOrdersUrl(String status)
getGetOrdersUrl
in interface JetConfig
status
- The order statuspublic String getGetOrderDirectCancelUrl()
getGetOrderDirectCancelUrl
in interface JetConfig
public String getGetOrderDetailUrl(String jetDefinedOrderId)
getGetOrderDetailUrl
in interface JetConfig
jetDefinedOrderId
- The jet order id defined by jet.compublic String getPutOrderAcknowledgeUrl(String jetDefinedOrderId)
getPutOrderAcknowledgeUrl
in interface JetConfig
jetDefinedOrderId
- The jet order idpublic String getPutOrderShipNotificationUrl(String jetDefinedOrderId)
getPutOrderShipNotificationUrl
in interface JetConfig
jetDefinedOrderId
- order id from jetpublic String getGetReturnsUrl(String status)
getGetReturnsUrl
in interface JetConfig
status
- statuspublic String getGetReturnDetailUrl(String jetDefinedReturnId)
getGetReturnDetailUrl
in interface JetConfig
jetDefinedReturnId
- return idpublic String getPutCompleteReturnUrl(String jetDefinedReturnId)
getPutCompleteReturnUrl
in interface JetConfig
jetDefinedReturnId
- return idpublic String getGetRefundDetailUrl(String refundAuthId)
getGetRefundDetailUrl
in interface JetConfig
refundAuthId
- refund authorization idpublic String getGetRefundByStatusUrl(String status)
getGetRefundByStatusUrl
in interface JetConfig
status
- Refund status to pollpublic String getPostRefundUrl(String orderId, String altRefundId)
getPostRefundUrl
in interface JetConfig
orderId
- The order id the refund is foraltRefundId
- Alt order id for the refund if it was specified in
the past.public String getGetTaxonomyNodesUrl(String version, int offset, int limit)
getGetTaxonomyNodesUrl
in interface JetConfig
version
- the jet taxonomy versionoffset
- startlimit
- limitpublic String getGetTaxonomyDetailUrl(String nodeId)
getGetTaxonomyDetailUrl
in interface JetConfig
nodeId
- node idpublic String getGetTaxonomyAttrUrl(String jetNodeId)
getGetTaxonomyAttrUrl
in interface JetConfig
jetNodeId
- node idpublic String getGetSettlementDaysUrl(int days)
getGetSettlementDaysUrl
in interface JetConfig
days
- The number of days from today that you'd like to retrieve
settlement reportspublic String getGetSettlementReportUrl(String id)
getGetSettlementReportUrl
in interface JetConfig
id
- The settlement ID associated with the payment periodCopyright © 2017. All rights reserved.