Examples of AlternateTaxTable


Examples of com.google.checkout.schema._2.AlternateTaxTable

   * added to the AlternateTaxTable
   * @return AlternateTaxTable object
   */
  public AlternateTaxTable addAlternateTaxRule(AlternateTaxTable taxTable,
      AlternateTaxRule rule) throws ProtocolException {
    AlternateTaxTable returnTaxTable = taxTable;
    if (returnTaxTable == null) {
      returnTaxTable = _objectFact.createAlternateTaxTable();
    }
   
    AlternateTaxRules aRules
        = _objectFact.createAlternateTaxTableAlternateTaxRules();
    List<AlternateTaxRule> taxRuleList = aRules.getAlternateTaxRule();
    if (!taxRuleList.contains(rule) && rule != null) {
      taxRuleList.add(rule);
    }

    returnTaxTable.setAlternateTaxRules(aRules);
    return returnTaxTable;
  }
View Full Code Here

Examples of com.google.checkout.schema._2.AlternateTaxTable

    List<AlternateTaxRule> ruleList = taxRules.getAlternateTaxRule();
    for (AlternateTaxRule rule : rules) {
      ruleList.add(rule);
    }
   
    AlternateTaxTable aTaxTable = _objectFact.createAlternateTaxTable();
    aTaxTable.setAlternateTaxRules(taxRules);
    aTaxTable.setName(taxTableName);
    aTaxTable.setStandalone(isTaxRulesStandAlone);
    return aTaxTable;
  }
View Full Code Here

Examples of com.google.checkout.schema._2.AlternateTaxTable

   * @return AlternateTaxTable object
   */
  public AlternateTaxTable addAlternateTaxRule(AlternateTaxTable taxTable,
      AlternateTaxRule rule) throws ProtocolException {
    try {
      AlternateTaxTable returnTaxTable = taxTable;
      if (returnTaxTable == null) {
        returnTaxTable = _objectFact.createAlternateTaxTable();
      }
     
      AlternateTaxRulesType aRules
          = _objectFact.createAlternateTaxTableAlternateTaxRulesType();
      List taxRuleList = aRules.getAlternateTaxRule();
      if (!taxRuleList.contains(rule) && rule != null) {
        taxRuleList.add(rule);
      }
 
      returnTaxTable.setAlternateTaxRules(aRules);
      return returnTaxTable;
    } catch (JAXBException jaxbEx) {
      throw new ProtocolException(jaxbEx.getMessage());
    }
  }
View Full Code Here

Examples of com.google.checkout.schema._2.AlternateTaxTable

      List ruleList = taxRules.getAlternateTaxRule();
      for (int i = 0; i < rules.size(); i++) {
        ruleList.add(rules.get(i));
      }
     
      AlternateTaxTable aTaxTable = _objectFact.createAlternateTaxTable();
      aTaxTable.setAlternateTaxRules(taxRules);
      aTaxTable.setName(taxTableName);
      aTaxTable.setStandalone(isTaxRulesStandAlone);
      return aTaxTable;
    } catch (JAXBException jaxbEx) {
      throw new ProtocolException(jaxbEx.getMessage());
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.