Examples of refund()


Examples of com.globant.google.mendoza.malbec.Order.refund()

            + " current financial order state.");
      }
      setRequestParameters();
      Order order = this.getMendozaState().getOrder();
      if (amountToRefund < 0) {
        order.refund(reason, comment);
      } else {
        order.refund(new BigDecimal(amountToRefund), reason, comment);
      }
      result.setSuccess(commandResultMsg);
    } catch (RuntimeException e) {
View Full Code Here

Examples of com.globant.google.mendoza.malbec.Order.refund()

      setRequestParameters();
      Order order = this.getMendozaState().getOrder();
      if (amountToRefund < 0) {
        order.refund(reason, comment);
      } else {
        order.refund(new BigDecimal(amountToRefund), reason, comment);
      }
      result.setSuccess(commandResultMsg);
    } catch (RuntimeException e) {
      commandResultMsg = e.getMessage();
      result.setError(commandResultMsg);
View Full Code Here

Examples of com.stripe.model.Charge.refund()

  }

  @Test
  public void testChargeRefundUpdateApiKey() throws StripeException {
    Charge createdCharge = Charge.create(defaultChargeParams);
    ChargeRefundCollection refunds = createdCharge.refund().getRefunds();
    Refund refund = refunds.getData().get(0);

    Map<String, String> metadata = new HashMap<String, String>();
    metadata.put("foo", "bar");
View Full Code Here

Examples of com.stripe.model.Charge.refund()

  @Test
  public void testChargeRefundListAndRetrieve()
      throws StripeException {
    Charge ch = Charge.create(defaultChargeParams);
    ch = ch.refund();
    Map<String, Object> listParams = new HashMap<String, Object>();
    listParams.put("count", 1);
    Refund created = ch.getRefunds().all(listParams).getData().get(0);
    Refund retrieved = ch.getRefunds().retrieve(created.getId());
    assertEquals(created.getId(), retrieved.getId());
View Full Code Here

Examples of com.stripe.model.Charge.refund()

  @Test
  public void testChargeRefundListAndRetrievePerCallAPIKey()
      throws StripeException {
    Charge ch = Charge.create(defaultChargeParams);
    ch = ch.refund();
    Map<String, Object> listParams = new HashMap<String, Object>();
    listParams.put("count", 1);
    Refund created = ch.getRefunds().all(listParams,
        Stripe.apiKey).getData().get(0);
    Refund retrieved = ch.getRefunds().retrieve(created.getId(), Stripe.apiKey);
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.