com.razorpay.Constants Maven / Gradle / Ivy
package com.razorpay;
import okhttp3.MediaType;
public class Constants {
// API constants
static final String SCHEME = "https";
static final String HOSTNAME = "api.razorpay.com";
static final Integer PORT = 443;
static final String VERSION = "v1";
static final String AUTH_HEADER_KEY = "Authorization";
static final String USER_AGENT = "User-Agent";
static final MediaType MEDIA_TYPE_JSON = MediaType.parse("application/json; charset=utf-8");
// API URI
static final String PAYMENT_GET = "payments/%s";
static final String PAYMENT_LIST = "payments";
static final String PAYMENT_CAPTURE = "payments/%s/capture";
static final String PAYMENT_REFUND = "payments/%s/refund";
static final String PAYMENT_TRANSFER_CREATE = "payments/%s/transfers";
static final String PAYMENT_TRANSFER_GET = "payments/%s/transfers";
static final String PAYMENT_BANK_TRANSFER_GET = "payments/%s/bank_transfer";
static final String PAYMENT_REFUND_LIST = "payments/%s/refunds";
static final String PAYMENT_REFUND_GET = "payments/%s/refunds/%s";
static final String REFUND_GET = "refunds/%s";
static final String REFUND_LIST = "refunds";
static final String REFUND_CREATE = "refunds";
static final String ORDER_CREATE = "orders";
static final String ORDER_GET = "orders/%s";
static final String ORDER_LIST = "orders";
static final String ORDER_PAYMENT_LIST = "orders/%s/payments";
static final String INVOICE_CREATE = "invoices";
static final String INVOICE_GET = "invoices/%s";
static final String INVOICE_LIST = "invoices";
static final String INVOICE_CANCEL = "invoices/%s/cancel";
static final String CARD_GET = "cards/%s";
static final String CUSTOMER_CREATE = "customers";
static final String CUSTOMER_GET = "customers/%s";
static final String CUSTOMER_EDIT = "customers/%s";
static final String TOKEN_LIST = "customers/%s/tokens";
static final String TOKEN_GET = "customers/%s/tokens/%s";
static final String TOKEN_DELETE = "customers/%s/tokens/%s";
static final String TRANSFER_CREATE = "transfers";
static final String TRANSFER_GET = "transfers/%s";
static final String TRANSFER_EDIT = "transfers/%s";
static final String TRANSFER_LIST = "transfers";
static final String TRANSFER_REVERSAL_CREATE = "transfers/%s/reversals";
static final String PLAN_CREATE = "plans";
static final String PLAN_GET = "plans/%s";
static final String PLAN_LIST = "plans";
static final String SUBSCRIPTION_CREATE = "subscriptions";
static final String SUBSCRIPTION_GET = "subscriptions/%s";
static final String SUBSCRIPTION_LIST = "subscriptions";
static final String SUBSCRIPTION_CANCEL = "subscriptions/%s/cancel";
static final String SUBSCRIPTION_ADDON_CREATE = "subscriptions/%s/addons";
static final String ADDON_GET = "addons/%s";
static final String ADDON_DELETE = "addons/%s";
static final String VIRTUAL_ACCOUNT_CREATE = "virtual_accounts";
static final String VIRTUAL_ACCOUNT_GET = "virtual_accounts/%s";
static final String VIRTUAL_ACCOUNT_LIST = "virtual_accounts";
static final String VIRTUAL_ACCOUNT_EDIT = "virtual_accounts/%s";
static final String VIRTUAL_ACCOUNT_PAYMENTS = "virtual_accounts/%s/payments";
}