Skip to content

Treize37/lemonway-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lemonway-ruby

LemonWayClient - the Ruby gem for the Lemonway DirectKit API 2.0

This SDK is automatically generated by the LemonWay Codegen project:

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

Installation

Build a gem

To build the Ruby code into a gem:

gem build lemonway-ruby.gemspec

Then either install the gem locally:

gem install ./lemonway-ruby-1.0.0.gem

(for development, run gem install --dev ./lemonway-ruby-1.0.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'lemonway-ruby', '~> 1.0.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO, then add the following in the Gemfile:

gem 'lemonway-ruby', :git => 'https://github.com/YOUR_GIT_USERNAME/YOUR_GIT_REPO.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'lemonway-ruby'

api_instance = LemonWayClient::AccountsApi.new

accountid = 'accountid_example' # String | Account ID

authorization = 'authorization_example' # String | Authorization bearer (OAuth 2)

psu_ip_address = 'psu_ip_address_example' # String | IP address of the final client (PSU).

opts = {
  psu_accept_language: 'psu_accept_language_example', # String | Response language accepted by final client (PSU). English by default
  psu_user_agent: 'psu_user_agent_example' # String | User-agent of the final client (PSU).
}

begin
  #Getting detailed payment account data
  result = api_instance.accounts_account_single_get(accountid, authorization, psu_ip_address, opts)
  p result
rescue LemonWayClient::ApiError => e
  puts "Exception when calling AccountsApi->accounts_account_single_get: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://localhost/webservice

Class Method HTTP request Description
LemonWayClient::AccountsApi accounts_account_single_get GET /v2/accounts/{accountid} Getting detailed payment account data
LemonWayClient::AccountsApi accounts_balances_get GET /v2/accounts/balances Getting all payments accounts balances
LemonWayClient::AccountsApi accounts_balances_history_get GET /v2/accounts/{accountId}/balances/history Getting payment account balance history
LemonWayClient::AccountsApi accounts_blocked_put PUT /v2/accounts/{accountid}/blocked Block, unblock account
LemonWayClient::AccountsApi accounts_document_get GET /v2/accounts/{accountid}/documents Get the document(s) associate to a payment account
LemonWayClient::AccountsApi accounts_documents_sign_init_post POST /v2/accounts/{accountid}/documents/{documentid}/signinit Initialize electronic signature of a document
LemonWayClient::AccountsApi accounts_documents_upload_post POST /v2/accounts/{accountid}/documents/upload document upload for KYC
LemonWayClient::AccountsApi accounts_individual_post POST /v2/accounts/individual Create a new individual account
LemonWayClient::AccountsApi accounts_individual_put PUT /v2/accounts/individual/{accountid} Update payment account data
LemonWayClient::AccountsApi accounts_kyc_status_get GET /v2/accounts/kycstatus Looking for user, document, IBAN, modified since an entry date
LemonWayClient::AccountsApi accounts_kycstatus_put PUT /v2/accounts/kycstatus/{accountid} Update payment account status
LemonWayClient::AccountsApi accounts_legal_post POST /v2/accounts/legal Create a new legal account
LemonWayClient::AccountsApi accounts_legal_single_put PUT /v2/accounts/legal/{accountid} Update payment account data
LemonWayClient::AccountsApi accounts_retrieve_post POST /v2/accounts/retrieve Getting detailed payments accounts data
LemonWayClient::AccountsApi accounts_transactions_get GET /v2/accounts/{accountId}/transactions Get list of all transactions of a payment account
LemonWayClient::DisputesApi disputes_disputes_get GET /v2/disputes Get list of disputes from a given date
LemonWayClient::MoneyInsApi money_ins_bankwire_get GET /v2/moneyins/bankwire looking for a MONEY-IN by fund transfer
LemonWayClient::MoneyInsApi money_ins_bankwire_iban_create_post POST /v2/moneyins/bankwire/iban/create Create a dedicated IBAN
LemonWayClient::MoneyInsApi money_ins_bankwire_iban_disable_post POST /v2/moneyins/bankwire/iban/{ibanid}/disable Disable a dedicated IBAN
LemonWayClient::MoneyInsApi money_ins_cancel_put PUT /v2/moneyins/{transactionid}/cancel Cancel a money in
LemonWayClient::MoneyInsApi money_ins_card_direct3_d_authenticate_post POST /v2/moneyins/card/direct/{transactionid}/3dauthenticate Check moneyin 3D-Secure status
LemonWayClient::MoneyInsApi money_ins_card_direct3_d_confirm_put PUT /v2/moneyins/card/direct/{transactionid}/3dconfirm Moneyin 3D Confirm
LemonWayClient::MoneyInsApi money_ins_card_direct_post POST /v2/moneyins/card/direct Credit an account with a non 3D Secure card payment
LemonWayClient::MoneyInsApi money_ins_card_get GET /v2/moneyins/{accountid}/card Get the card(s) associate to a payment account
LemonWayClient::MoneyInsApi money_ins_card_payment_form_post POST /v2/moneyins/card/paymentform Create payment form
LemonWayClient::MoneyInsApi money_ins_card_rebill POST /v2/moneyins/card/{cardid}/rebill Credit of a payment account with a tokenized card
LemonWayClient::MoneyInsApi money_ins_card_register_post POST /v2/moneyins/card/register Resgister a card
LemonWayClient::MoneyInsApi money_ins_card_subscription_post POST /v2/moneyins/card/{cardid}/subscription Payment account credited with monthly subscription by card
LemonWayClient::MoneyInsApi money_ins_card_unregister_put PUT /v2/moneyins/card/{cardid}/unregister Unregister a card token
LemonWayClient::MoneyInsApi money_ins_card_web_init_post POST /v2/moneyins/card/webinit Indirect mode MONEY-IN by card crediting a payment account
LemonWayClient::MoneyInsApi money_ins_cheque_get GET /v2/moneyins/cheque Search for MONEY-IN by cheque since a date
LemonWayClient::MoneyInsApi money_ins_cheque_init_post POST /v2/moneyins/cheque/init Register a money-in by cheque
LemonWayClient::MoneyInsApi money_ins_direct3_d_init_post POST /v2/moneyins/card/direct/3dinit Credit a account with a 3D Secure card payment
LemonWayClient::MoneyInsApi money_ins_i_deal_confirm_put PUT /v2/moneyins/ideal/{transactionid}/confirm Finalization of the iDeal payment
LemonWayClient::MoneyInsApi money_ins_i_deal_init_post POST /v2/moneyins/ideal/init Initialize iDeal payment
LemonWayClient::MoneyInsApi money_ins_mandate_get GET /v2/moneyins/{accountid}/mandate Get the mandate(s) associate to a payment account
LemonWayClient::MoneyInsApi money_ins_mbway_init_post POST /v2/moneyins/mbway/init Initialize MB WAY payment
LemonWayClient::MoneyInsApi money_ins_mobile_pay_init_post POST /v2/moneyins/mobilePay/init Initialize MobilePay payment
LemonWayClient::MoneyInsApi money_ins_money_in_get GET /v2/moneyins Get MoneyIn
LemonWayClient::MoneyInsApi money_ins_multibanco_init_post POST /v2/moneyins/multibanco/init Initialize Multibanco payment
LemonWayClient::MoneyInsApi money_ins_pay_trail_init_post POST /v2/moneyins/paytrail/init Initialize PayTrail payment
LemonWayClient::MoneyInsApi money_ins_payment_form_completed_get GET /v2/moneyins/paymentform/{formid}/completed Get details of a completed payment form
LemonWayClient::MoneyInsApi money_ins_payment_form_disable_put PUT /v2/moneyins/paymentform/{formid}/disable Disable a payment form
LemonWayClient::MoneyInsApi money_ins_payshop_init_post POST /v2/moneyins/payshop/init Initialize Payshop payment
LemonWayClient::MoneyInsApi money_ins_sdd_get GET /v2/moneyins/sdd List of money-in by SDD
LemonWayClient::MoneyInsApi money_ins_sdd_init_post POST /v2/moneyins/sdd/init Request a Direct Debit (SDD)
LemonWayClient::MoneyInsApi money_ins_sdd_mandate_post POST /v2/moneyins/sdd/mandate Pre-register an SDD mandate
LemonWayClient::MoneyInsApi money_ins_sdd_mandate_unregister_put PUT /v2/moneyins/sdd/mandate/{mandatid}/unregister Deactivate a mandate
LemonWayClient::MoneyInsApi money_ins_sofort_init_post POST /v2/moneyins/sofort/init Initialize Sofort payment
LemonWayClient::MoneyInsApi money_ins_trustly_init_post POST /v2/moneyins/trustly/init Initialize Trustly payment
LemonWayClient::MoneyInsApi money_ins_validate_put PUT /v2/moneyins/{transactionid}/validate Validation of a Money-In (deffered payment only)
LemonWayClient::MoneyOutsApi money_outs_cancel_put PUT /v2/moneyouts/{transactionid}/cancel Cancellation of a Money-Out
LemonWayClient::MoneyOutsApi money_outs_iban_extended_post POST /v2/moneyouts/iban/extended Link a non-SEPA IBAN to a payment account
LemonWayClient::MoneyOutsApi money_outs_iban_get GET /v2/moneyouts/{accountid}/iban Get the iban(s) associate to a payment account
LemonWayClient::MoneyOutsApi money_outs_iban_post POST /v2/moneyouts/iban Link an IBAN (SEPA area) to a payment account
LemonWayClient::MoneyOutsApi money_outs_iban_unregister_put PUT /v2/moneyouts/iban/{IbanId}/unregister Link a non-SEPA IBAN to a payment account
LemonWayClient::MoneyOutsApi money_outs_money_out_get GET /v2/moneyouts looking for a money-out
LemonWayClient::MoneyOutsApi money_outs_money_out_post POST /v2/moneyouts External fund transfer from a payment account to a bank account
LemonWayClient::P2PsApi p2_ps_p2p_get GET /v2/p2p/{transactionid} looking for payments between payments accounts
LemonWayClient::P2PsApi p2_ps_p2p_post POST /v2/p2p On-Us payment between payments accounts
LemonWayClient::RefundsApi refunds_refund_put PUT /v2/refund/{transactionid} Refund a money-in

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages