Skip to content

marketpay/sdk-python

Repository files navigation

swagger-client

API for Smart Contracts and Payments

This Python package is automatically generated by the Swagger Codegen project:

  • API version: v2.01
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com//.git

(you may need to run pip with root permission: sudo pip install git+https://github.com//.git)

Then import the package:

import swagger_client 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import swagger_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.CardsApi()
card_id = 789 # int | The Id of a card

try:
    # View a Card
    api_response = api_instance.cards_get(card_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsApi->cards_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://localhost

Class Method HTTP request Description
CardsApi cards_get GET /v2.01/Cards/{CardId} View a Card
CardsApi cards_get_list GET /v2.01/Cards
CardsApi cards_put PUT /v2.01/Cards/{CardId} Deactivate a Card
PayInsAplazameApi pay_ins_aplazame_aplazame_get_payment GET /v2.01/PayInsAplazame/payments/{PayInId} -------
PayInsAplazameApi pay_ins_aplazame_aplazame_post_payment_by_web POST /v2.01/PayInsAplazame/payments/web --------
PayInsAplazameApi pay_ins_aplazame_refund POST /v2.01/PayInsAplazame/payments/{PayInId}/refunds
PayInsBankwireApi pay_ins_bankwire_bankwire_get_payment GET /v2.01/PayInsBankwire/payments/{PayInId} View a Bankwire PayIn
PayInsBankwireApi pay_ins_bankwire_bankwire_payment_by_direct POST /v2.01/PayInsBankwire/payments/direct Create a Bankwire PayIn
PayInsRedsysApi pay_ins_redsys_redsys_get_payment GET /v2.01/PayInsRedsys/payments/{PayInId} View a Redsys payment
PayInsRedsysApi pay_ins_redsys_redsys_get_preauthorization GET /v2.01/PayInsRedsys/preauthorizations/{PreauthorizationId} View a Redsys Preauthorization
PayInsRedsysApi pay_ins_redsys_redsys_post_payment_by_web POST /v2.01/PayInsRedsys/payments/web Create a Redsys PayIn Request
PayInsRedsysApi pay_ins_redsys_redsys_post_preauthorization_by_web POST /v2.01/PayInsRedsys/preauthorizations/web Create a Redsys Preauthorization Request
PayInsRedsysApi pay_ins_redsys_redsys_post_preauthorization_cancellation POST /v2.01/PayInsRedsys/preauthorizations/{PreauthorizationId}/cancellation Cancels a Preauthorization
PayInsRedsysApi pay_ins_redsys_redsys_post_preauthorization_confirmation POST /v2.01/PayInsRedsys/preauthorizations/{PreauthorizationId}/confirmation Confirms a Preauthorization
PayInsRedsysApi pay_ins_redsys_redsys_post_refund POST /v2.01/PayInsRedsys/payments/{PayInId}/refunds Create a Redsys Payment Refund
PayInsUniversalPayApi pay_ins_universal_pay_get_universal_pay_tokenization GET /v2.01/PayInsUniversalPay/token/{TokenId} View a UniversalPay card tokenization status
PayInsUniversalPayApi pay_ins_universal_pay_universal_pay_get_payment GET /v2.01/PayInsUniversalPay/payments/{PayInId} View a UniversalPay payment
PayInsUniversalPayApi pay_ins_universal_pay_universal_pay_post_payment_by_web POST /v2.01/PayInsUniversalPay/payments/web Create a UniversalPay PayIn Request
PayInsUniversalPayApi pay_ins_universal_pay_universal_pay_post_refund POST /v2.01/PayInsUniversalPay/payments/{PayInId}/refunds Create a UniversalPay Payment Refund
PayInsUniversalPayApi pay_ins_universal_pay_universal_pay_save_card POST /v2.01/PayInsUniversalPay/token/web
PayOutsBankwireApi pay_outs_bankwire_get GET /v2.01/PayOutsBankwire/payments/{PayOutId} View a Bankwire PayOut
PayOutsBankwireApi pay_outs_bankwire_post POST /v2.01/PayOutsBankwire/payments/direct Create a Bankwire PayOut
RefundsApi refunds_refund_get GET /v2.01/Refunds/{RefundId} View a Refund
ShipmentSeurApi shipment_seur_seur_cancel_shipment POST /v2.01/ShipmentSeur/shipments/{ShipmentId}/cancellation Cancels a shipment
ShipmentSeurApi shipment_seur_seur_create_shipment POST /v2.01/ShipmentSeur/shipments Creates a shipment
ShipmentSeurApi shipment_seur_seur_get_shipment GET /v2.01/ShipmentSeur/shipments/{ShipmentId} Cancels a shipment
TransactionsApi transactions_get_list GET /v2.01/Transactions View a Transaction
TransfersApi transfers_get GET /v2.01/Transfers/{TransferId} View a Transfer
TransfersApi transfers_get_list GET /v2.01/Transfers View a Transfer
TransfersApi transfers_post POST /v2.01/Transfers Create a Transfer
UsersApi users_get GET /v2.01/Users/{UserId} View a User
UsersApi users_get_bank_account GET /v2.01/Users/{UserId}/bankaccounts/{BankAccountId} View a Bank Account
UsersApi users_get_bank_account_list GET /v2.01/Users/{UserId}/bankaccounts List Bank Accounts for a User
UsersApi users_get_card_list GET /v2.01/Users/{UserId}/cards List Cards for a User
UsersApi users_get_legal GET /v2.01/Users/legal/{UserId} View a Legal User
UsersApi users_get_list GET /v2.01/Users List all Users
UsersApi users_get_natural GET /v2.01/Users/natural/{UserId} View a Natural User
UsersApi users_get_transaction_list GET /v2.01/Users/{UserId}/transactions List Transactions for a User
UsersApi users_get_wallet_list GET /v2.01/Users/{UserId}/wallets List Wallets for a User
UsersApi users_post_bank_account_ca POST /v2.01/Users/{UserId}/bankaccounts/CA Create a CA BankAccount
UsersApi users_post_bank_account_gb POST /v2.01/Users/{UserId}/bankaccounts/GB Create a GB BankAccount
UsersApi users_post_bank_account_iban POST /v2.01/Users/{UserId}/bankaccounts/IBAN Create an IBAN BankAccount
UsersApi users_post_bank_account_other POST /v2.01/Users/{UserId}/bankaccounts/OTHER Create an OTHER BankAccount
UsersApi users_post_bank_account_us POST /v2.01/Users/{UserId}/bankaccounts/US Create an US BankAccount
UsersApi users_post_legal POST /v2.01/Users/legal Create a Legal User
UsersApi users_post_natural POST /v2.01/Users/natural Create a Natural User
UsersApi users_put_legal PUT /v2.01/Users/legal/{UserId} Update a Legal User
UsersApi users_put_natural PUT /v2.01/Users/natural/{UserId} Update a Natural User
WalletsApi wallets_get GET /v2.01/Wallets/{WalletId} View a Wallet
WalletsApi wallets_get_list GET /v2.01/Wallets
WalletsApi wallets_get_transaction_list GET /v2.01/Wallets/{WalletId}/transactions List a Wallet's Transactions
WalletsApi wallets_post POST /v2.01/Wallets Create a Wallet
WalletsApi wallets_put PUT /v2.01/Wallets/{WalletId} Update a Wallet

Documentation For Models

Documentation For Authorization

oauth2

Author