Skip to content

Commit

Permalink
Update to 1.0.2
Browse files Browse the repository at this point in the history
* Add flag to prevent download:
  The `LockedForDownload` flag indicates whether a catalog can be
  downloaded by the API. If a client tries to download a locked
  catalog, HTTP status code 423 is returned.
* Add SAGE fields (SAGE number and contract)
  • Loading branch information
olivere committed Jul 24, 2016
1 parent 3be591f commit 0d7d0b5
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions src/main/java/com/meplato/mall/catalogs/Catalog.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,14 @@ public class Catalog {
private String language;
@SerializedName("lastSyncAt")
private Date lastSyncAt;
@SerializedName("lockedForDownload")
private boolean lockedForDownload;
@SerializedName("ociUrl")
private String ociUrl;
@SerializedName("sageContract")
private String sageContract;
@SerializedName("sageNumber")
private String sageNumber;
@SerializedName("selfLink")
private String selfLink;
@SerializedName("skipWorkArea")
Expand Down Expand Up @@ -210,6 +216,20 @@ public void setLastSyncAt(Date lastSyncAt) {
this.lastSyncAt = lastSyncAt;
}

/**
* LockedForDownload indicates whether a catalog is available for download.
*/
public boolean isLockedForDownload() {
return this.lockedForDownload;
}

/**
* LockedForDownload indicates whether a catalog is available for download.
*/
public void setLockedForDownload(boolean lockedForDownload) {
this.lockedForDownload = lockedForDownload;
}

/**
* OciURL represents the OCI endpoint the supplier specified for this catalog,
* including all mandatory parameters in the query string.
Expand All @@ -226,6 +246,36 @@ public void setOciUrl(String ociUrl) {
this.ociUrl = ociUrl;
}

/**
* SageContract represents the Meplato-internal contract number for the catalog.
*/
public String getSageContract() {
return this.sageContract;
}

/**
* SageContract represents the Meplato-internal contract number for the catalog.
*/
public void setSageContract(String sageContract) {
this.sageContract = sageContract;
}

/**
* SageNumber represents the Meplato-internal number for the vendor of the
* catalog.
*/
public String getSageNumber() {
return this.sageNumber;
}

/**
* SageNumber represents the Meplato-internal number for the vendor of the
* catalog.
*/
public void setSageNumber(String sageNumber) {
this.sageNumber = sageNumber;
}

/**
* URL to the catalog details.
*/
Expand Down

0 comments on commit 0d7d0b5

Please sign in to comment.