| Line 624... |
Line 624... |
| 624 |
|
624 |
|
| 625 |
public StateGstRates getGstRatesByState(long stateId) throws CatalogServiceException, org.apache.thrift.TException;
|
625 |
public StateGstRates getGstRatesByState(long stateId) throws CatalogServiceException, org.apache.thrift.TException;
|
| 626 |
|
626 |
|
| 627 |
public Map<String,GstRate> getInterStateGstRates() throws CatalogServiceException, org.apache.thrift.TException;
|
627 |
public Map<String,GstRate> getInterStateGstRates() throws CatalogServiceException, org.apache.thrift.TException;
|
| 628 |
|
628 |
|
| 629 |
public List<String> getHsnCodesByCategory(long categoryId) throws CatalogServiceException, org.apache.thrift.TException;
|
629 |
public List<CategoryHsnCode> getHsnCodesByCategory(long categoryId) throws CatalogServiceException, org.apache.thrift.TException;
|
| 630 |
|
630 |
|
| 631 |
}
|
631 |
}
|
| 632 |
|
632 |
|
| 633 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
633 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
| 634 |
|
634 |
|
| Line 5832... |
Line 5832... |
| 5832 |
throw result.cex;
|
5832 |
throw result.cex;
|
| 5833 |
}
|
5833 |
}
|
| 5834 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInterStateGstRates failed: unknown result");
|
5834 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInterStateGstRates failed: unknown result");
|
| 5835 |
}
|
5835 |
}
|
| 5836 |
|
5836 |
|
| 5837 |
public List<String> getHsnCodesByCategory(long categoryId) throws CatalogServiceException, org.apache.thrift.TException
|
5837 |
public List<CategoryHsnCode> getHsnCodesByCategory(long categoryId) throws CatalogServiceException, org.apache.thrift.TException
|
| 5838 |
{
|
5838 |
{
|
| 5839 |
send_getHsnCodesByCategory(categoryId);
|
5839 |
send_getHsnCodesByCategory(categoryId);
|
| 5840 |
return recv_getHsnCodesByCategory();
|
5840 |
return recv_getHsnCodesByCategory();
|
| 5841 |
}
|
5841 |
}
|
| 5842 |
|
5842 |
|
| Line 5845... |
Line 5845... |
| 5845 |
getHsnCodesByCategory_args args = new getHsnCodesByCategory_args();
|
5845 |
getHsnCodesByCategory_args args = new getHsnCodesByCategory_args();
|
| 5846 |
args.setCategoryId(categoryId);
|
5846 |
args.setCategoryId(categoryId);
|
| 5847 |
sendBase("getHsnCodesByCategory", args);
|
5847 |
sendBase("getHsnCodesByCategory", args);
|
| 5848 |
}
|
5848 |
}
|
| 5849 |
|
5849 |
|
| 5850 |
public List<String> recv_getHsnCodesByCategory() throws CatalogServiceException, org.apache.thrift.TException
|
5850 |
public List<CategoryHsnCode> recv_getHsnCodesByCategory() throws CatalogServiceException, org.apache.thrift.TException
|
| 5851 |
{
|
5851 |
{
|
| 5852 |
getHsnCodesByCategory_result result = new getHsnCodesByCategory_result();
|
5852 |
getHsnCodesByCategory_result result = new getHsnCodesByCategory_result();
|
| 5853 |
receiveBase(result, "getHsnCodesByCategory");
|
5853 |
receiveBase(result, "getHsnCodesByCategory");
|
| 5854 |
if (result.isSetSuccess()) {
|
5854 |
if (result.isSetSuccess()) {
|
| 5855 |
return result.success;
|
5855 |
return result.success;
|
| Line 12512... |
Line 12512... |
| 12512 |
args.setCategoryId(categoryId);
|
12512 |
args.setCategoryId(categoryId);
|
| 12513 |
args.write(prot);
|
12513 |
args.write(prot);
|
| 12514 |
prot.writeMessageEnd();
|
12514 |
prot.writeMessageEnd();
|
| 12515 |
}
|
12515 |
}
|
| 12516 |
|
12516 |
|
| 12517 |
public List<String> getResult() throws CatalogServiceException, org.apache.thrift.TException {
|
12517 |
public List<CategoryHsnCode> getResult() throws CatalogServiceException, org.apache.thrift.TException {
|
| 12518 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
12518 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
| 12519 |
throw new IllegalStateException("Method call not finished!");
|
12519 |
throw new IllegalStateException("Method call not finished!");
|
| 12520 |
}
|
12520 |
}
|
| 12521 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
12521 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
| 12522 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
12522 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| Line 146168... |
Line 146168... |
| 146168 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHsnCodesByCategory_result");
|
146168 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHsnCodesByCategory_result");
|
| 146169 |
|
146169 |
|
| 146170 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
146170 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
| 146171 |
private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
146171 |
private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| 146172 |
|
146172 |
|
| 146173 |
private List<String> success; // required
|
146173 |
private List<CategoryHsnCode> success; // required
|
| 146174 |
private CatalogServiceException cex; // required
|
146174 |
private CatalogServiceException cex; // required
|
| 146175 |
|
146175 |
|
| 146176 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
146176 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 146177 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
146177 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 146178 |
SUCCESS((short)0, "success"),
|
146178 |
SUCCESS((short)0, "success"),
|
| Line 146239... |
Line 146239... |
| 146239 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
146239 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 146240 |
static {
|
146240 |
static {
|
| 146241 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
146241 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 146242 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
146242 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 146243 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
146243 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
| 146244 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
|
146244 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CategoryHsnCode.class))));
|
| 146245 |
tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
146245 |
tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 146246 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
146246 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
| 146247 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
146247 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 146248 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHsnCodesByCategory_result.class, metaDataMap);
|
146248 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHsnCodesByCategory_result.class, metaDataMap);
|
| 146249 |
}
|
146249 |
}
|
| 146250 |
|
146250 |
|
| 146251 |
public getHsnCodesByCategory_result() {
|
146251 |
public getHsnCodesByCategory_result() {
|
| 146252 |
}
|
146252 |
}
|
| 146253 |
|
146253 |
|
| 146254 |
public getHsnCodesByCategory_result(
|
146254 |
public getHsnCodesByCategory_result(
|
| 146255 |
List<String> success,
|
146255 |
List<CategoryHsnCode> success,
|
| 146256 |
CatalogServiceException cex)
|
146256 |
CatalogServiceException cex)
|
| 146257 |
{
|
146257 |
{
|
| 146258 |
this();
|
146258 |
this();
|
| 146259 |
this.success = success;
|
146259 |
this.success = success;
|
| 146260 |
this.cex = cex;
|
146260 |
this.cex = cex;
|
| Line 146263... |
Line 146263... |
| 146263 |
/**
|
146263 |
/**
|
| 146264 |
* Performs a deep copy on <i>other</i>.
|
146264 |
* Performs a deep copy on <i>other</i>.
|
| 146265 |
*/
|
146265 |
*/
|
| 146266 |
public getHsnCodesByCategory_result(getHsnCodesByCategory_result other) {
|
146266 |
public getHsnCodesByCategory_result(getHsnCodesByCategory_result other) {
|
| 146267 |
if (other.isSetSuccess()) {
|
146267 |
if (other.isSetSuccess()) {
|
| 146268 |
List<String> __this__success = new ArrayList<String>();
|
146268 |
List<CategoryHsnCode> __this__success = new ArrayList<CategoryHsnCode>();
|
| 146269 |
for (String other_element : other.success) {
|
146269 |
for (CategoryHsnCode other_element : other.success) {
|
| 146270 |
__this__success.add(other_element);
|
146270 |
__this__success.add(new CategoryHsnCode(other_element));
|
| 146271 |
}
|
146271 |
}
|
| 146272 |
this.success = __this__success;
|
146272 |
this.success = __this__success;
|
| 146273 |
}
|
146273 |
}
|
| 146274 |
if (other.isSetCex()) {
|
146274 |
if (other.isSetCex()) {
|
| 146275 |
this.cex = new CatalogServiceException(other.cex);
|
146275 |
this.cex = new CatalogServiceException(other.cex);
|
| Line 146288... |
Line 146288... |
| 146288 |
|
146288 |
|
| 146289 |
public int getSuccessSize() {
|
146289 |
public int getSuccessSize() {
|
| 146290 |
return (this.success == null) ? 0 : this.success.size();
|
146290 |
return (this.success == null) ? 0 : this.success.size();
|
| 146291 |
}
|
146291 |
}
|
| 146292 |
|
146292 |
|
| 146293 |
public java.util.Iterator<String> getSuccessIterator() {
|
146293 |
public java.util.Iterator<CategoryHsnCode> getSuccessIterator() {
|
| 146294 |
return (this.success == null) ? null : this.success.iterator();
|
146294 |
return (this.success == null) ? null : this.success.iterator();
|
| 146295 |
}
|
146295 |
}
|
| 146296 |
|
146296 |
|
| 146297 |
public void addToSuccess(String elem) {
|
146297 |
public void addToSuccess(CategoryHsnCode elem) {
|
| 146298 |
if (this.success == null) {
|
146298 |
if (this.success == null) {
|
| 146299 |
this.success = new ArrayList<String>();
|
146299 |
this.success = new ArrayList<CategoryHsnCode>();
|
| 146300 |
}
|
146300 |
}
|
| 146301 |
this.success.add(elem);
|
146301 |
this.success.add(elem);
|
| 146302 |
}
|
146302 |
}
|
| 146303 |
|
146303 |
|
| 146304 |
public List<String> getSuccess() {
|
146304 |
public List<CategoryHsnCode> getSuccess() {
|
| 146305 |
return this.success;
|
146305 |
return this.success;
|
| 146306 |
}
|
146306 |
}
|
| 146307 |
|
146307 |
|
| 146308 |
public void setSuccess(List<String> success) {
|
146308 |
public void setSuccess(List<CategoryHsnCode> success) {
|
| 146309 |
this.success = success;
|
146309 |
this.success = success;
|
| 146310 |
}
|
146310 |
}
|
| 146311 |
|
146311 |
|
| 146312 |
public void unsetSuccess() {
|
146312 |
public void unsetSuccess() {
|
| 146313 |
this.success = null;
|
146313 |
this.success = null;
|
| Line 146351... |
Line 146351... |
| 146351 |
switch (field) {
|
146351 |
switch (field) {
|
| 146352 |
case SUCCESS:
|
146352 |
case SUCCESS:
|
| 146353 |
if (value == null) {
|
146353 |
if (value == null) {
|
| 146354 |
unsetSuccess();
|
146354 |
unsetSuccess();
|
| 146355 |
} else {
|
146355 |
} else {
|
| 146356 |
setSuccess((List<String>)value);
|
146356 |
setSuccess((List<CategoryHsnCode>)value);
|
| 146357 |
}
|
146357 |
}
|
| 146358 |
break;
|
146358 |
break;
|
| 146359 |
|
146359 |
|
| 146360 |
case CEX:
|
146360 |
case CEX:
|
| 146361 |
if (value == null) {
|
146361 |
if (value == null) {
|
| Line 146481... |
Line 146481... |
| 146481 |
switch (field.id) {
|
146481 |
switch (field.id) {
|
| 146482 |
case 0: // SUCCESS
|
146482 |
case 0: // SUCCESS
|
| 146483 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
146483 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
| 146484 |
{
|
146484 |
{
|
| 146485 |
org.apache.thrift.protocol.TList _list563 = iprot.readListBegin();
|
146485 |
org.apache.thrift.protocol.TList _list563 = iprot.readListBegin();
|
| 146486 |
this.success = new ArrayList<String>(_list563.size);
|
146486 |
this.success = new ArrayList<CategoryHsnCode>(_list563.size);
|
| 146487 |
for (int _i564 = 0; _i564 < _list563.size; ++_i564)
|
146487 |
for (int _i564 = 0; _i564 < _list563.size; ++_i564)
|
| 146488 |
{
|
146488 |
{
|
| 146489 |
String _elem565; // required
|
146489 |
CategoryHsnCode _elem565; // required
|
| - |
|
146490 |
_elem565 = new CategoryHsnCode();
|
| 146490 |
_elem565 = iprot.readString();
|
146491 |
_elem565.read(iprot);
|
| 146491 |
this.success.add(_elem565);
|
146492 |
this.success.add(_elem565);
|
| 146492 |
}
|
146493 |
}
|
| 146493 |
iprot.readListEnd();
|
146494 |
iprot.readListEnd();
|
| 146494 |
}
|
146495 |
}
|
| 146495 |
} else {
|
146496 |
} else {
|
| Line 146517... |
Line 146518... |
| 146517 |
oprot.writeStructBegin(STRUCT_DESC);
|
146518 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 146518 |
|
146519 |
|
| 146519 |
if (this.isSetSuccess()) {
|
146520 |
if (this.isSetSuccess()) {
|
| 146520 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
146521 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 146521 |
{
|
146522 |
{
|
| 146522 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
|
146523 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 146523 |
for (String _iter566 : this.success)
|
146524 |
for (CategoryHsnCode _iter566 : this.success)
|
| 146524 |
{
|
146525 |
{
|
| 146525 |
oprot.writeString(_iter566);
|
146526 |
_iter566.write(oprot);
|
| 146526 |
}
|
146527 |
}
|
| 146527 |
oprot.writeListEnd();
|
146528 |
oprot.writeListEnd();
|
| 146528 |
}
|
146529 |
}
|
| 146529 |
oprot.writeFieldEnd();
|
146530 |
oprot.writeFieldEnd();
|
| 146530 |
} else if (this.isSetCex()) {
|
146531 |
} else if (this.isSetCex()) {
|