All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.camel.component.braintree.internal.SubscriptionGatewayApiMethod Maven / Gradle / Ivy

/*
 * Camel ApiMethod Enumeration generated by camel-api-component-maven-plugin
 * Generated on: Sun Jun 26 21:02:51 UTC 2016
 */
package org.apache.camel.component.braintree.internal;

import java.lang.reflect.Method;
import java.util.List;

import com.braintreegateway.SubscriptionGateway;

import org.apache.camel.util.component.ApiMethod;
import org.apache.camel.util.component.ApiMethodImpl;

/**
 * Camel {@link ApiMethod} Enumeration for com.braintreegateway.SubscriptionGateway
 */
public enum SubscriptionGatewayApiMethod implements ApiMethod {

    CANCEL(com.braintreegateway.Result.class, "cancel", String.class, "id"),
    CREATE(com.braintreegateway.Result.class, "create", com.braintreegateway.SubscriptionRequest.class, "request"),
    DELETE(com.braintreegateway.Result.class, "delete", String.class, "customerId", String.class, "id"),
    FIND(com.braintreegateway.Subscription.class, "find", String.class, "id"),
    RETRYCHARGE(com.braintreegateway.Result.class, "retryCharge", String.class, "subscriptionId"),
    RETRYCHARGE_1(com.braintreegateway.Result.class, "retryCharge", String.class, "subscriptionId", java.math.BigDecimal.class, "amount"),
    SEARCH(com.braintreegateway.ResourceCollection.class, "search", com.braintreegateway.SubscriptionSearchRequest.class, "searchRequest"),
    UPDATE(com.braintreegateway.Result.class, "update", String.class, "id", com.braintreegateway.SubscriptionRequest.class, "request");

    private final ApiMethod apiMethod;

    private SubscriptionGatewayApiMethod(Class resultType, String name, Object... args) {
        this.apiMethod = new ApiMethodImpl(SubscriptionGateway.class, resultType, name, args);
    }

    @Override
    public String getName() { return apiMethod.getName(); }

    @Override
    public Class getResultType() { return apiMethod.getResultType(); }

    @Override
    public List getArgNames() { return apiMethod.getArgNames(); }

    @Override
    public List> getArgTypes() { return apiMethod.getArgTypes(); }

    @Override
    public Method getMethod() { return apiMethod.getMethod(); }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy