public class Product extends MutableEntity<Product>
| Modifier and Type | Class and Description |
|---|---|
static class |
Product.DurationPeriod |
static class |
Product.ProductPeriod |
static class |
Product.ProductType |
| Modifier and Type | Field and Description |
|---|---|
protected String |
accountID |
protected String |
changedBy |
protected Date |
created |
protected Boolean |
deleted |
protected String |
description |
protected int |
duration |
protected String |
durationPeriod |
protected String |
id |
protected String |
name |
protected String |
organizationID |
protected String |
productType |
protected static ResourcePath |
resourcePath |
protected Date |
startDate |
protected String |
state |
protected int |
trial |
protected String |
trialPeriod |
protected Date |
updated |
m_client, PRETTY_PRINT_GSON| Constructor and Description |
|---|
Product() |
Product(BillForwardClient client_) |
savecreate, create, createExplicitPath, retire, retire, retire, retireExplicitPathprotected String id
protected String accountID
protected String organizationID
protected String name
protected String description
protected String durationPeriod
protected int duration
protected int trial
protected String trialPeriod
protected String productType
protected String state
protected Boolean deleted
protected Date startDate
protected Date updated
protected String changedBy
protected Date created
protected static ResourcePath resourcePath
public Product(BillForwardClient client_)
public Product()
public String getID()
public String getAccountID()
public void setAccountID(String accountID)
public String getOrganizationID()
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public Product.ProductPeriod getDurationPeriod()
public String getDurationPeriodAsString()
public void setDurationPeriod(Product.ProductPeriod durationPeriod)
public int getDuration()
public void setDuration(int duration)
public int getTrial()
public void setTrial(int trial)
public String getTrialPeriod()
public void setTrialPeriod(String trialPeriod)
public Product.ProductType getProductType()
public String getProductTypeAsString()
public void setProductType(Product.ProductType productType)
public String getState()
public Boolean getDeleted()
public Date getStartDate()
public void setStartDate(Date startDate)
public Date getUpdated()
public String getChangedBy()
public Date getCreated()
public Product retire() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Product create(Product product) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Product getByID(String ID) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Product[] getAll() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
protected ResourcePath getResourcePath()
getResourcePath in class BillingEntityprotected static ResourcePath ResourcePath()
Copyright © 2015 BillForward. All rights reserved.