Skip to content

Commit

Permalink
Merge pull request #131 from sanjaymandadi/master
Browse files Browse the repository at this point in the history
Regen SDK for 1.17
  • Loading branch information
Bob Hewett committed May 15, 2015
2 parents 16f6169 + 99679ba commit f3ba801
Show file tree
Hide file tree
Showing 31 changed files with 1,849 additions and 1,128 deletions.
245 changes: 137 additions & 108 deletions mozu-java-core/ChangeLog.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mozu-java-core/src/main/java/com/mozu/api/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@

public class Version
{
public final static String API_VERSION = "1.17.15118.0";
public final static String API_VERSION = "1.17.15134.1";
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,33 @@ public static MozuClient<List<com.mozu.api.contracts.productadmin.ProductReserva

}

/**
*
* <p><pre><code>
* MozuClient<List<com.mozu.api.contracts.productadmin.SoftAllocation>> mozuClient=RenewSoftAllocationsClient( softAllocationRenew);
* client.setBaseAddress(url);
* client.executeRequest();
* SoftAllocation softAllocation = client.Result();
* </code></pre></p>
* @param dataViewMode DataViewMode
* @param softAllocationRenew
* @return Mozu.Api.MozuClient <List<com.mozu.api.contracts.productadmin.SoftAllocation>>
* @see com.mozu.api.contracts.productadmin.SoftAllocation
* @see com.mozu.api.contracts.productadmin.SoftAllocationRenew
*/
public static MozuClient<List<com.mozu.api.contracts.productadmin.SoftAllocation>> renewSoftAllocationsClient(com.mozu.api.contracts.productadmin.SoftAllocationRenew softAllocationRenew) throws Exception
{
MozuUrl url = com.mozu.api.urls.commerce.catalog.admin.SoftAllocationUrl.renewSoftAllocationsUrl();
String verb = "POST";
Class<?> clz = new ArrayList<com.mozu.api.contracts.productadmin.SoftAllocation>(){}.getClass();
MozuClient<List<com.mozu.api.contracts.productadmin.SoftAllocation>> mozuClient = (MozuClient<List<com.mozu.api.contracts.productadmin.SoftAllocation>>) MozuClientFactory.getInstance(clz);
mozuClient.setVerb(verb);
mozuClient.setResourceUrl(url);
mozuClient.setBody(softAllocationRenew);
return mozuClient;

}

/**
*
* <p><pre><code>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
/**
* This code was auto-generated by a Codezu.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.api.clients.commerce.payments;

import java.util.List;
import java.util.ArrayList;
import com.mozu.api.MozuClient;
import com.mozu.api.MozuClientFactory;
import com.mozu.api.MozuUrl;
import com.mozu.api.Headers;
import com.mozu.api.security.AuthTicket;
import org.apache.commons.lang.StringUtils;
/** <summary>
*
* </summary>
*/
public class PublicCardClient {

/**
*
* <p><pre><code>
* MozuClient<com.mozu.api.contracts.paymentservice.response.SyncResponse> mozuClient=CreateClient( request);
* client.setBaseAddress(url);
* client.executeRequest();
* SyncResponse syncResponse = client.Result();
* </code></pre></p>
* @param request
* @return Mozu.Api.MozuClient <com.mozu.api.contracts.paymentservice.response.SyncResponse>
* @see com.mozu.api.contracts.paymentservice.response.SyncResponse
* @see com.mozu.api.contracts.paymentservice.PublicCard
*/
public static MozuClient<com.mozu.api.contracts.paymentservice.response.SyncResponse> createClient(com.mozu.api.contracts.paymentservice.PublicCard request) throws Exception
{
MozuUrl url = com.mozu.api.urls.commerce.payments.PublicCardUrl.createUrl();
String verb = "POST";
Class<?> clz = com.mozu.api.contracts.paymentservice.response.SyncResponse.class;
MozuClient<com.mozu.api.contracts.paymentservice.response.SyncResponse> mozuClient = (MozuClient<com.mozu.api.contracts.paymentservice.response.SyncResponse>) MozuClientFactory.getInstance(clz);
mozuClient.setVerb(verb);
mozuClient.setResourceUrl(url);
mozuClient.setBody(request);
return mozuClient;

}

/**
*
* <p><pre><code>
* MozuClient<com.mozu.api.contracts.paymentservice.response.SyncResponse> mozuClient=UpdateClient( request, cardId);
* client.setBaseAddress(url);
* client.executeRequest();
* SyncResponse syncResponse = client.Result();
* </code></pre></p>
* @param cardId
* @param request
* @return Mozu.Api.MozuClient <com.mozu.api.contracts.paymentservice.response.SyncResponse>
* @see com.mozu.api.contracts.paymentservice.response.SyncResponse
* @see com.mozu.api.contracts.paymentservice.PublicCard
*/
public static MozuClient<com.mozu.api.contracts.paymentservice.response.SyncResponse> updateClient(com.mozu.api.contracts.paymentservice.PublicCard request, String cardId) throws Exception
{
MozuUrl url = com.mozu.api.urls.commerce.payments.PublicCardUrl.updateUrl(cardId);
String verb = "PUT";
Class<?> clz = com.mozu.api.contracts.paymentservice.response.SyncResponse.class;
MozuClient<com.mozu.api.contracts.paymentservice.response.SyncResponse> mozuClient = (MozuClient<com.mozu.api.contracts.paymentservice.response.SyncResponse>) MozuClientFactory.getInstance(clz);
mozuClient.setVerb(verb);
mozuClient.setResourceUrl(url);
mozuClient.setBody(request);
return mozuClient;

}

/**
*
* <p><pre><code>
* MozuClient mozuClient=DeleteClient( cardId);
* client.setBaseAddress(url);
* client.executeRequest();
* </code></pre></p>
* @param cardId
* @return Mozu.Api.MozuClient
*/
public static MozuClient deleteClient(String cardId) throws Exception
{
MozuUrl url = com.mozu.api.urls.commerce.payments.PublicCardUrl.deleteUrl(cardId);
String verb = "DELETE";
MozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance();
mozuClient.setVerb(verb);
mozuClient.setResourceUrl(url);
return mozuClient;

}

}



Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ public void setAuditInfo(AuditInfo auditInfo) {
this.auditInfo = auditInfo;
}

protected com.fasterxml.jackson.databind.JsonNode data;

public com.fasterxml.jackson.databind.JsonNode getData() {
return this.data;
}

public void setData(com.fasterxml.jackson.databind.JsonNode data) {
this.data = data;
}

/**
* The contact information of the person receiving the shipment or performing the pickup.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.joda.time.DateTime;
import com.mozu.api.contracts.commerceruntime.orders.OrderItem;
import com.mozu.api.contracts.commerceruntime.commerce.Adjustment;
import com.mozu.api.contracts.commerceruntime.orders.OrderAttribute;
import com.mozu.api.contracts.core.AuditInfo;
Expand All @@ -20,7 +21,6 @@
import com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentInfo;
import com.mozu.api.contracts.commerceruntime.discounts.AppliedDiscount;
import com.mozu.api.contracts.commerceruntime.discounts.InvalidCoupon;
import com.mozu.api.contracts.commerceruntime.orders.OrderItem;
import com.mozu.api.contracts.commerceruntime.orders.OrderNote;
import com.mozu.api.contracts.commerceruntime.fulfillment.Package;
import com.mozu.api.contracts.commerceruntime.payments.Payment;
Expand Down Expand Up @@ -823,6 +823,17 @@ public void setWebSessionId(String webSessionId) {
this.webSessionId = webSessionId;
}

/**
* An array list of objects in the returned collection.
*/
protected List<OrderItem> items;
public List<OrderItem> getItems() {
return this.items;
}
public void setItems(List<OrderItem> items) {
this.items = items;
}

/**
* Properties of an ad-hoc price adjustment for an order.
*/
Expand Down Expand Up @@ -948,17 +959,6 @@ public void setInvalidCoupons(List<InvalidCoupon> invalidCoupons) {
this.invalidCoupons = invalidCoupons;
}

/**
* An array list of objects in the returned collection.
*/
protected List<OrderItem> items;
public List<OrderItem> getItems() {
return this.items;
}
public void setItems(List<OrderItem> items) {
this.items = items;
}

/**
* Paged list collection of note content for objects including customers, orders, and returns.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,55 +24,6 @@ public class ReturnItem implements Serializable
// Default Serial Version UID
private static final long serialVersionUID = 1L;

/**
* Unique identifier of the source product property. For a product field it will be the name of the field. For a product attribute it will be the Attribute FQN.
*/
protected String id;

public String getId() {
return this.id;
}

public void setId(String id) {
this.id = id;
}

/**
* Unique identifier of the order item associated with a validation message, order, or return.
*/
protected String orderItemId;

public String getOrderItemId() {
return this.orderItemId;
}

public void setOrderItemId(String orderItemId) {
this.orderItemId = orderItemId;
}

protected Integer orderLineId;

public Integer getOrderLineId() {
return this.orderLineId;
}

public void setOrderLineId(Integer orderLineId) {
this.orderLineId = orderLineId;
}

/**
* The total value of the product returned to the merchant for accounting purposes, calculated by multiplying the cost of the item by its quantity returned.
*/
protected Double productLossAmount;

public Double getProductLossAmount() {
return this.productLossAmount;
}

public void setProductLossAmount(Double productLossAmount) {
this.productLossAmount = productLossAmount;
}

/**
* The total tax amount levied on the product loss amount.
*/
Expand Down Expand Up @@ -151,6 +102,55 @@ public void setShippingLossTaxAmount(Double shippingLossTaxAmount) {
this.shippingLossTaxAmount = shippingLossTaxAmount;
}

/**
* Unique identifier of the source product property. For a product field it will be the name of the field. For a product attribute it will be the Attribute FQN.
*/
protected String id;

public String getId() {
return this.id;
}

public void setId(String id) {
this.id = id;
}

/**
* Unique identifier of the order item associated with a validation message, order, or return.
*/
protected String orderItemId;

public String getOrderItemId() {
return this.orderItemId;
}

public void setOrderItemId(String orderItemId) {
this.orderItemId = orderItemId;
}

protected Integer orderLineId;

public Integer getOrderLineId() {
return this.orderLineId;
}

public void setOrderLineId(Integer orderLineId) {
this.orderLineId = orderLineId;
}

/**
* The total value of the product returned to the merchant for accounting purposes, calculated by multiplying the cost of the item by its quantity returned.
*/
protected Double productLossAmount;

public Double getProductLossAmount() {
return this.productLossAmount;
}

public void setProductLossAmount(Double productLossAmount) {
this.productLossAmount = productLossAmount;
}

/**
* Properties of a collection of component products that make up a single product bundle with its own product code. Tenants can define product bundles for any product type that supports the Bundle product usage.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,6 @@ public class View implements Serializable
// Default Serial Version UID
private static final long serialVersionUID = 1L;

/**
* List description of usages for content within a view and scope.
*/
protected List<String> usages;
public List<String> getUsages() {
return this.usages;
}
public void setUsages(List<String> usages) {
this.usages = usages;
}

/**
* The isVisibleInStorefront field indicates whether documents in the view can be accessed from the Mozu storefront application. If true, the storefront application and storefront client application (javascript tier) can GET documents from the view.
*/
Expand All @@ -58,6 +47,17 @@ public void setName(String name) {
this.name = name;
}

/**
* List description of usages for content within a view and scope.
*/
protected List<String> usages;
public List<String> getUsages() {
return this.usages;
}
public void setUsages(List<String> usages) {
this.usages = usages;
}

/**
* The list of fields to display for a view or an associated schema. For example, the address schema would display fields for postal addresses.
*/
Expand Down
Loading

0 comments on commit f3ba801

Please sign in to comment.