payment-api

Swagger Java

Лицензия

Лицензия

Категории

Категории

Wire Данные Data Structures
Группа

Группа

com.swirepay
Идентификатор

Идентификатор

payment-api
Последняя версия

Последняя версия

1.1.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

payment-api
Swagger Java
Ссылка на сайт

Ссылка на сайт

https://github.com/swagger-api/swagger-codegen
Система контроля версий

Система контроля версий

https://github.com/swirepay/maven-payment-api

Скачать payment-api

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.swirepay/payment-api/ -->
<dependency>
    <groupId>com.swirepay</groupId>
    <artifactId>payment-api</artifactId>
    <version>1.1.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.swirepay/payment-api/
implementation 'com.swirepay:payment-api:1.1.5'
// https://jarcasting.com/artifacts/com.swirepay/payment-api/
implementation ("com.swirepay:payment-api:1.1.5")
'com.swirepay:payment-api:jar:1.1.5'
<dependency org="com.swirepay" name="payment-api" rev="1.1.5">
  <artifact name="payment-api" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.swirepay', module='payment-api', version='1.1.5')
)
libraryDependencies += "com.swirepay" % "payment-api" % "1.1.5"
[com.swirepay/payment-api "1.1.5"]

Зависимости

compile (6)

Идентификатор библиотеки Тип Версия
io.swagger.core.v3 : swagger-annotations jar 2.0.0
com.squareup.okhttp : okhttp jar 2.7.5
com.squareup.okhttp : logging-interceptor jar 2.7.5
com.google.code.gson : gson jar 2.8.1
io.gsonfire : gson-fire jar 1.8.3
org.threeten : threetenbp jar 1.3.5

provided (1)

Идентификатор библиотеки Тип Версия
javax.annotation : javax.annotation-api jar 1.3.2

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.13.1

Модули Проекта

Данный проект не имеет модулей.

payment-api

Swirepay

  • API version: 1.0.0
    • Build date: 2020-12-16T16:28:53.447+05:30[Asia/Kolkata]

Swirepay REST APIs' are resource-oriented URLs that accept JSON-encoded request bodies, return JSON-encoded responses, and use standard HTTP response codes, authentication, and verbs. You can use the Swirepay API in test mode, which does not affect your live data or interact with the banking networks. The API key you use to authenticate the request determines whether the request is live mode or test mode.

Automatically generated by the Swagger Codegen

Requirements

Building the API client library requires:

  1. Java 1.7+
  2. Maven/Gradle

Installation

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
  <groupId>com.swirepay</groupId>
  <artifactId>payment-api</artifactId>
  <version>1.0.0</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "com.swirepay:payment-api:1.0.0"

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/payment-api-1.0.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BalanceApi;

import java.io.File;
import java.util.*;

public class BalanceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");

        BalanceApi apiInstance = new BalanceApi();
        String xApiKey = "xApiKey_example"; // String | 
        try {
            InlineResponse200 result = apiInstance.getBalance(xApiKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BalanceApi#getBalance");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://api.swirepay.com/v1

Class Method HTTP request Description
BalanceApi getBalance GET /balance Get balance
CategoryApi getCategory GET /category Get category
CountryApi getCountry GET /country Get country
CurrencyApi getCurrency GET /currency Get currency
CustomerApi addCustomer POST /customer Add a customer
CustomerApi getCustomer GET /customer Get customers
DisputeApi getDispute GET /dispute Get dispute
EventApi getEvent GET /event Get event
InvoiceApi getInvoice GET /invoice Get invoice
MembershipApi getMembership GET /membership Get membership
PaymentApi getPayment GET /payment Get payment
PaymentButtonApi getPaymentButton GET /payment-button Get payment button
PaymentLinkApi getPaymentLink GET /payment-link Get payment link
PaymentMethodApi addPaymentMethod POST /payment-method Add a payment method
PaymentMethodApi getPaymentMethod GET /payment-method Get payment methods
PaymentSessionApi getPaymentSession GET /payment-session Get payment sessions
PayoutApi getPayout GET /payout Get payout
PlanApi getPlan GET /plan Get plan
ProductApi getProduct GET /product Get product
PublicKeyApi getPublicKey GET /public-key Get public key
RefundApi getRefund GET /refund Get refund
ReminderApi getReminder GET /reminder Get reminder
ReportApi getReport GET /report Get report
SetupSessionApi getSetupSession GET /setup-session Get setup session
SetupSubscriptionApi getSubscription GET /subscription Get subscription
TerminalApi getTerminal GET /terminal Get terminal
TransactionApi getTransaction GET /transaction Get transaction

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

api_key

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

apiteam@swirepay.com

com.swirepay

Swagger

Версии библиотеки

Версия
1.1.5
1.1.4
1.1.3
1.1.0
1.0.0