masspay_ruby_sdk 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/CODE_OF_CONDUCT.md +43 -0
- data/CONTRIBUTING.md +48 -9
- data/LICENSE.md +21 -0
- data/README.md +141 -176
- data/assets/logo.webp +0 -0
- data/lib/masspay_ruby_sdk/api/account_service.rb +35 -0
- data/lib/masspay_ruby_sdk/api/attribute_service.rb +41 -0
- data/lib/masspay_ruby_sdk/api/card_service.rb +35 -0
- data/lib/masspay_ruby_sdk/api/catalog_service.rb +74 -0
- data/lib/masspay_ruby_sdk/api/kyc_service.rb +56 -0
- data/lib/masspay_ruby_sdk/api/load_service.rb +62 -0
- data/lib/masspay_ruby_sdk/api/payout_service.rb +61 -0
- data/lib/masspay_ruby_sdk/api/spend_back_service.rb +35 -0
- data/lib/masspay_ruby_sdk/api/subaccount_service.rb +47 -0
- data/lib/masspay_ruby_sdk/api/tax_service.rb +38 -0
- data/lib/masspay_ruby_sdk/api/user_service.rb +71 -0
- data/lib/masspay_ruby_sdk/api/wallet_service.rb +50 -0
- data/lib/masspay_ruby_sdk/client.rb +93 -0
- data/lib/masspay_ruby_sdk/constants.rb +20 -0
- data/lib/masspay_ruby_sdk/version.rb +6 -8
- data/lib/masspay_ruby_sdk.rb +23 -75
- data/masspay_ruby_sdk.gemspec +9 -13
- metadata +24 -120
- data/Rakefile +0 -10
- data/docs/AccountApi.md +0 -150
- data/docs/ApiResponse.md +0 -22
- data/docs/AttrTxn.md +0 -20
- data/docs/AttrValue.md +0 -20
- data/docs/AttrVelocityRequestInner.md +0 -20
- data/docs/AttributeApi.md +0 -168
- data/docs/AttrsRequirement.md +0 -36
- data/docs/AutopayResp.md +0 -22
- data/docs/AutopayRule.md +0 -20
- data/docs/AvailableBalanceTxnResp.md +0 -22
- data/docs/CardApi.md +0 -160
- data/docs/CatalogApi.md +0 -469
- data/docs/CompaniesResp.md +0 -18
- data/docs/Company.md +0 -26
- data/docs/Country.md +0 -22
- data/docs/Exception.md +0 -20
- data/docs/FoundUser.md +0 -24
- data/docs/GetAccountStatement200Response.md +0 -18
- data/docs/GetTransactionConfirmationDetails200Response.md +0 -18
- data/docs/GetUserAgreement200Response.md +0 -26
- data/docs/GetUserAgreementsNames200ResponseInner.md +0 -24
- data/docs/GetUserUserTokenKycAu10tix200Response.md +0 -18
- data/docs/GetUserUserTokenKycVeriff200Response.md +0 -18
- data/docs/GetWalletCardInfo200Response.md +0 -30
- data/docs/IDUpload.md +0 -20
- data/docs/KYCApi.md +0 -305
- data/docs/LoadApi.md +0 -621
- data/docs/LoadTxn.md +0 -32
- data/docs/LoadTxnResp.md +0 -20
- data/docs/Loads.md +0 -36
- data/docs/PayoutApi.md +0 -403
- data/docs/PayoutTxn.md +0 -36
- data/docs/PayoutTxnCommitResp.md +0 -24
- data/docs/PayoutTxnResp.md +0 -60
- data/docs/ResendBalanceNotification200Response.md +0 -18
- data/docs/Service.md +0 -22
- data/docs/ServicePayersInner.md +0 -38
- data/docs/ServicePayersInnerExchangeRateInner.md +0 -20
- data/docs/SpendBackApi.md +0 -161
- data/docs/SpendBackTxn.md +0 -28
- data/docs/SpendBackTxnResp.md +0 -22
- data/docs/SpendBacks.md +0 -34
- data/docs/StoredUser.md +0 -56
- data/docs/TaxApi.md +0 -81
- data/docs/TaxYearUserResp.md +0 -48
- data/docs/TxnHistoryResp.md +0 -52
- data/docs/UpdateUser.md +0 -52
- data/docs/User.md +0 -50
- data/docs/UserApi.md +0 -403
- data/docs/WalletApi.md +0 -463
- data/docs/WalletTxnResp.md +0 -34
- data/docs/logo.webp +0 -0
- data/lib/masspay_ruby_sdk/api/account_api.rb +0 -149
- data/lib/masspay_ruby_sdk/api/attribute_api.rb +0 -214
- data/lib/masspay_ruby_sdk/api/card_api.rb +0 -174
- data/lib/masspay_ruby_sdk/api/catalog_api.rb +0 -443
- data/lib/masspay_ruby_sdk/api/kyc_api.rb +0 -290
- data/lib/masspay_ruby_sdk/api/load_api.rb +0 -598
- data/lib/masspay_ruby_sdk/api/payout_api.rb +0 -397
- data/lib/masspay_ruby_sdk/api/spend_back_api.rb +0 -160
- data/lib/masspay_ruby_sdk/api/tax_api.rb +0 -82
- data/lib/masspay_ruby_sdk/api/user_api.rb +0 -418
- data/lib/masspay_ruby_sdk/api/wallet_api.rb +0 -461
- data/lib/masspay_ruby_sdk/api_client.rb +0 -391
- data/lib/masspay_ruby_sdk/api_error.rb +0 -57
- data/lib/masspay_ruby_sdk/configuration.rb +0 -315
- data/lib/masspay_ruby_sdk/models/api_response.rb +0 -236
- data/lib/masspay_ruby_sdk/models/attr_txn.rb +0 -235
- data/lib/masspay_ruby_sdk/models/attr_value.rb +0 -239
- data/lib/masspay_ruby_sdk/models/attr_velocity_request_inner.rb +0 -273
- data/lib/masspay_ruby_sdk/models/attrs_requirement.rb +0 -372
- data/lib/masspay_ruby_sdk/models/autopay_resp.rb +0 -256
- data/lib/masspay_ruby_sdk/models/autopay_rule.rb +0 -241
- data/lib/masspay_ruby_sdk/models/available_balance_txn_resp.rb +0 -254
- data/lib/masspay_ruby_sdk/models/companies_resp.rb +0 -225
- data/lib/masspay_ruby_sdk/models/company.rb +0 -285
- data/lib/masspay_ruby_sdk/models/country.rb +0 -296
- data/lib/masspay_ruby_sdk/models/exception.rb +0 -241
- data/lib/masspay_ruby_sdk/models/found_user.rb +0 -270
- data/lib/masspay_ruby_sdk/models/get_account_statement200_response.rb +0 -225
- data/lib/masspay_ruby_sdk/models/get_transaction_confirmation_details200_response.rb +0 -218
- data/lib/masspay_ruby_sdk/models/get_user_agreement200_response.rb +0 -280
- data/lib/masspay_ruby_sdk/models/get_user_agreements_names200_response_inner.rb +0 -270
- data/lib/masspay_ruby_sdk/models/get_user_user_token_kyc_au10tix200_response.rb +0 -224
- data/lib/masspay_ruby_sdk/models/get_user_user_token_kyc_veriff200_response.rb +0 -224
- data/lib/masspay_ruby_sdk/models/get_wallet_card_info200_response.rb +0 -460
- data/lib/masspay_ruby_sdk/models/id_upload.rb +0 -273
- data/lib/masspay_ruby_sdk/models/load_txn.rb +0 -321
- data/lib/masspay_ruby_sdk/models/load_txn_resp.rb +0 -273
- data/lib/masspay_ruby_sdk/models/loads.rb +0 -388
- data/lib/masspay_ruby_sdk/models/payout_txn.rb +0 -328
- data/lib/masspay_ruby_sdk/models/payout_txn_commit_resp.rb +0 -293
- data/lib/masspay_ruby_sdk/models/payout_txn_resp.rb +0 -613
- data/lib/masspay_ruby_sdk/models/resend_balance_notification200_response.rb +0 -225
- data/lib/masspay_ruby_sdk/models/service.rb +0 -318
- data/lib/masspay_ruby_sdk/models/service_payers_inner.rb +0 -373
- data/lib/masspay_ruby_sdk/models/service_payers_inner_exchange_rate_inner.rb +0 -239
- data/lib/masspay_ruby_sdk/models/spend_back_txn.rb +0 -325
- data/lib/masspay_ruby_sdk/models/spend_back_txn_resp.rb +0 -307
- data/lib/masspay_ruby_sdk/models/spend_backs.rb +0 -340
- data/lib/masspay_ruby_sdk/models/stored_user.rb +0 -500
- data/lib/masspay_ruby_sdk/models/tax_year_user_resp.rb +0 -388
- data/lib/masspay_ruby_sdk/models/txn_history_resp.rb +0 -571
- data/lib/masspay_ruby_sdk/models/update_user.rb +0 -490
- data/lib/masspay_ruby_sdk/models/user.rb +0 -423
- data/lib/masspay_ruby_sdk/models/wallet_txn_resp.rb +0 -375
- data/spec/api_client_spec.rb +0 -227
- data/spec/configuration_spec.rb +0 -41
- data/spec/spec_helper.rb +0 -110
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5f9fbf20daf1b90af82c5a9a52677812fafc0ff003d526794b4ecaec8340038
|
4
|
+
data.tar.gz: 401cfc228b0e4bbb5b5778749cc0cb60b3d0087ae386495079dfca25b66cce2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0466c493f9a6084648d58133e50ddf33f70fa39f1a9d9a5b38440814369ac278e2864abb71a5c4e6fd39d8cba16712ffa7bf9b7146b235d9724aa3fddbdb2673
|
7
|
+
data.tar.gz: 741a599da95aac3c94d45e6e0311b469115e5df67d573316d45bf36772c37fb1f05d0af399a9c524d67b4fef63e8d8880acdf393dc8d9551447896a7f8e06dff
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [2.0.0](https://github.com/masspayio/masspay-ruby-sdk/compare/v1.0.0...v2.0.0) (2024-07-19)
|
4
|
+
|
5
|
+
|
6
|
+
### ⚠ BREAKING CHANGES
|
7
|
+
|
8
|
+
* new version of Ruby SDK with new OAS endpoints
|
9
|
+
|
10
|
+
### Features
|
11
|
+
|
12
|
+
* new version of Ruby SDK with new OAS endpoints ([573281d](https://github.com/masspayio/masspay-ruby-sdk/commit/573281db7ef6f357bd4427b3af70bc74bb8a7170))
|
13
|
+
* upgrade to OAS v1.0.0 ([4ba1edb](https://github.com/masspayio/masspay-ruby-sdk/commit/4ba1edb7574fa29d45cae363474074f3e9451f30))
|
14
|
+
|
15
|
+
## 2.0.0 (2024-04-15)
|
16
|
+
|
17
|
+
* BREAKING CHANGE: update SDK according to newest OAS and completetly new architecture that suits better for developers
|
18
|
+
|
3
19
|
## 1.0.0 (2023-11-15)
|
4
20
|
|
5
21
|
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
+
|
7
|
+
## Our Standards
|
8
|
+
|
9
|
+
Examples of behavior that contributes to creating a positive environment include:
|
10
|
+
|
11
|
+
- Using welcoming and inclusive language
|
12
|
+
- Being respectful of differing viewpoints and experiences
|
13
|
+
- Gracefully accepting constructive criticism
|
14
|
+
- Focusing on what is best for the community
|
15
|
+
- Showing empathy towards other community members
|
16
|
+
|
17
|
+
Examples of unacceptable behavior by participants include:
|
18
|
+
|
19
|
+
- The use of sexualized language or imagery and unwelcome sexual attention or advances
|
20
|
+
- Trolling, insulting/derogatory comments, and personal or political attacks
|
21
|
+
- Public or private harassment
|
22
|
+
- Publishing others' private information, such as a physical or electronic address, without explicit permission
|
23
|
+
- Other conduct which could reasonably be considered inappropriate in a professional setting
|
24
|
+
|
25
|
+
## Our Responsibilities
|
26
|
+
|
27
|
+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
|
28
|
+
|
29
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned with this Code of Conduct or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
|
30
|
+
|
31
|
+
## Scope
|
32
|
+
|
33
|
+
This Code of Conduct applies within all project spaces, and it also applies when an individual is representing the project or its community in public spaces. Examples of representing a project or community include using an official project email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
34
|
+
|
35
|
+
## Enforcement
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [info@masspay.io](mailto:info@masspay.io). All complaints will be reviewed and investigated promptly and fairly.
|
38
|
+
|
39
|
+
All project team members are obligated to respect the privacy and security of the reporter of any incident.
|
40
|
+
|
41
|
+
## Attribution
|
42
|
+
|
43
|
+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.0, available at [https://www.contributor-covenant.org/version/2/0/code_of_conduct.html](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).
|
data/CONTRIBUTING.md
CHANGED
@@ -1,13 +1,52 @@
|
|
1
|
-
# Contributing
|
1
|
+
# Contributing to masspay_ruby_sdk
|
2
2
|
|
3
|
-
|
3
|
+
Thank you for considering contributing to masspay_ruby_sdk! We appreciate your efforts in helping to improve our project. Please take a moment to review this document for guidelines on how to contribute.
|
4
4
|
|
5
|
-
|
5
|
+
## Ways to Contribute
|
6
6
|
|
7
|
-
|
8
|
-
2. Make sure you have committed everything and your code is working.
|
9
|
-
3. Run `npx standard-version`
|
10
|
-
4. Push your changes to the repository and the `main` branch.
|
11
|
-
5. The Github Action will automatically release a new version to rubygems.org (https://rubygems.org/gems/masspay_ruby_sdk).
|
7
|
+
There are several ways you can contribute to this project:
|
12
8
|
|
13
|
-
|
9
|
+
- Reporting issues
|
10
|
+
- Suggesting enhancements
|
11
|
+
- Submitting pull requests for bug fixes or new features
|
12
|
+
|
13
|
+
## How to Contribute
|
14
|
+
|
15
|
+
### Reporting Issues
|
16
|
+
|
17
|
+
If you encounter any issues or bugs, please use the GitHub issue tracker to report them. When reporting issues, please provide as much detail as possible, including:
|
18
|
+
|
19
|
+
- A clear and descriptive title
|
20
|
+
- A detailed description of the issue
|
21
|
+
- Steps to reproduce the issue, if applicable
|
22
|
+
- Any relevant error messages or screenshots
|
23
|
+
|
24
|
+
### Suggesting Enhancements
|
25
|
+
|
26
|
+
If you have suggestions for enhancements or new features, please feel free to open an issue on GitHub. Please provide a clear and detailed description of your suggestion, including why you think it would be beneficial for the project.
|
27
|
+
|
28
|
+
### Submitting Pull Requests
|
29
|
+
|
30
|
+
We welcome pull requests for bug fixes, improvements, and new features. Before submitting a pull request, please ensure the following:
|
31
|
+
|
32
|
+
- Fork the repository and create a new branch for your changes.
|
33
|
+
- Make your changes, and provide clear and descriptive commit messages.
|
34
|
+
- Test your changes thoroughly.
|
35
|
+
- Ensure that your code follows the existing coding style and guidelines.
|
36
|
+
- Update any relevant documentation or examples to reflect your changes.
|
37
|
+
|
38
|
+
## Testing
|
39
|
+
|
40
|
+
Run the IRB console to test the SDK:
|
41
|
+
|
42
|
+
```bash
|
43
|
+
irb -I lib -r masspay_ruby_sdk
|
44
|
+
```
|
45
|
+
|
46
|
+
Now you can use the MasspayRubySdk class to interact with the API in the console.
|
47
|
+
|
48
|
+
## Contact
|
49
|
+
|
50
|
+
If you have any further questions or need assistance, please feel free to reach out to us at [info@masspay.io](mailto:info@masspay.io).
|
51
|
+
|
52
|
+
Thank you again for your interest in contributing to masspay_ruby_sdk
|
data/LICENSE.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2024 MassPay Inc.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -1,197 +1,162 @@
|
|
1
|
-
<
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
-
|
11
|
-
|
12
|
-
|
1
|
+
<div align='center' class='text-center'>
|
2
|
+
<img alt='' src='./assets/logo.webp' width='200' />
|
3
|
+
<h1 align='center' class='text-center'>masspay_ruby_sdk</h1>
|
4
|
+
</div>
|
5
|
+
|
6
|
+
<div align='center' class='text-center'>
|
7
|
+
<a aria-label='Version' href='#'>
|
8
|
+
<img alt='' src='https://img.shields.io/badge/version-2.0.0-blue' />
|
9
|
+
</a>
|
10
|
+
<a aria-label='License' href='https://opensource.org/licenses/MIT'>
|
11
|
+
<img alt='' src='https://img.shields.io/badge/License-MIT-blue.svg' />
|
12
|
+
</a>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<!---
|
16
|
+
Repository badges to consider: (https://github.com/aleen42/badges)
|
17
|
+
a. [](https://travis-ci.com/)
|
18
|
+
b. [](https://opensource.org/licenses/MIT)
|
19
|
+
c. []()
|
20
|
+
d. []()
|
21
|
+
e. []()
|
22
|
+
--->
|
23
|
+
|
24
|
+
Welcome to our masspay_ruby_sdk. We are committed to providing you with the best SDK services experience possible. Please use our step-by-step instructions to become familiar with how to use our SDK.
|
25
|
+
|
26
|
+
- Current API version: 1.0.0
|
27
|
+
- Current package version: 2.0.0
|
28
|
+
|
29
|
+
## Table of Contents
|
30
|
+
|
31
|
+
- [Requirements](#requirements)
|
32
|
+
- [Installation](#installation)
|
33
|
+
- [Usage](#usage)
|
34
|
+
- [Features](#features)
|
35
|
+
- [Contributing](#contributing)
|
36
|
+
- [License](#license)
|
37
|
+
- [Contact](#contact)
|
38
|
+
- [Frequently Asked Questions (FAQ)](#frequently-asked-questions-faq)
|
39
|
+
|
40
|
+
## Requirements
|
41
|
+
|
42
|
+
<!--- Instructions on what the user must do before using the SDK. --->
|
43
|
+
|
44
|
+
- Ruby version >= 2.7.
|
45
|
+
- MassPay.io API credentials.
|
13
46
|
|
14
47
|
## Installation
|
15
48
|
|
16
|
-
|
49
|
+
<!--- Instructions on how to install and set up the SDK.--->
|
17
50
|
|
18
|
-
|
19
|
-
bundle add masspay_ruby_sdk
|
20
|
-
```
|
51
|
+
Use this command to install masspay_ruby_sdk in your terminal.
|
21
52
|
|
22
|
-
|
23
|
-
|
24
|
-
```shell
|
53
|
+
```bash
|
25
54
|
gem install masspay_ruby_sdk
|
26
55
|
```
|
27
56
|
|
28
|
-
##
|
57
|
+
## Usage
|
29
58
|
|
30
|
-
|
59
|
+
<!--- Description how users can use the SDK.--->
|
31
60
|
|
32
|
-
|
61
|
+
In case that you successfully installed our masspay_ruby_sdk please execute this code:
|
33
62
|
|
34
63
|
```ruby
|
35
|
-
# Load the gem
|
36
64
|
require 'masspay_ruby_sdk'
|
37
65
|
|
38
|
-
|
39
|
-
|
40
|
-
# Configure API key authorization: AUTHORIZER_NAME
|
41
|
-
config.api_key['AUTHORIZER_NAME'] = 'YOUR API KEY'
|
42
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
43
|
-
config.api_key_prefix['AUTHORIZER_NAME'] = 'Bearer'
|
44
|
-
end
|
45
|
-
|
46
|
-
api_instance = MassPayRubySdk::AccountApi.new
|
47
|
-
|
48
|
-
begin
|
49
|
-
#Get current available balance
|
50
|
-
result = api_instance.get_account_balance
|
51
|
-
p result
|
52
|
-
rescue MassPayRubySdk::ApiError => e
|
53
|
-
puts "Exception when calling AccountApi->get_account_balance: #{e}"
|
54
|
-
end
|
55
|
-
|
66
|
+
client = MasspayRubySdk.client({ bearer_auth: 'YOUR_BEARER_TOKEN' })
|
67
|
+
client.account_service.get_account_balance
|
56
68
|
```
|
57
69
|
|
58
|
-
|
70
|
+
## Features
|
59
71
|
|
60
|
-
|
72
|
+
<!--- Highlighting the key features and capabilities of the SDK. --->
|
61
73
|
|
62
|
-
|
74
|
+
Kindly note that every URI is relative to _https://api.masspay.io/v1.0.0_.
|
63
75
|
|
64
|
-
|
65
|
-
MassPayRubySdk.configure do |config|
|
66
|
-
# Configure API key authorization: AUTHORIZER_NAME
|
67
|
-
config.api_key['AUTHORIZER_NAME'] = 'YOUR API KEY'
|
68
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
69
|
-
config.api_key_prefix['AUTHORIZER_NAME'] = 'Bearer'
|
70
|
-
end
|
71
|
-
```
|
72
|
-
|
73
|
-
Then call the API:
|
74
|
-
|
75
|
-
```ruby
|
76
|
-
api_instance = MassPayRubySdk::AccountApi.new
|
77
|
-
|
78
|
-
begin
|
79
|
-
#Get current available balance
|
80
|
-
result = api_instance.get_account_balance
|
81
|
-
p result
|
82
|
-
rescue MassPayRubySdk::ApiError => e
|
83
|
-
puts "Exception when calling AccountApi->get_account_balance: #{e}"
|
84
|
-
end
|
85
|
-
|
86
|
-
```
|
87
|
-
|
88
|
-
## Documentation for API Endpoints
|
89
|
-
|
90
|
-
All URIs are relative to *https://api.masspay.io/v0.1.4*
|
76
|
+
The table displays all features categorized based on their specific purposes.
|
91
77
|
|
92
78
|
Class | Method | HTTP request | Description
|
93
|
-
------------ | ------------- | ------------- | -------------
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
- [MassPayRubySdk::TxnHistoryResp](docs/TxnHistoryResp.md)
|
178
|
-
- [MassPayRubySdk::UpdateUser](docs/UpdateUser.md)
|
179
|
-
- [MassPayRubySdk::User](docs/User.md)
|
180
|
-
- [MassPayRubySdk::WalletTxnResp](docs/WalletTxnResp.md)
|
181
|
-
|
182
|
-
|
183
|
-
## Documentation for Authorization
|
184
|
-
|
185
|
-
|
186
|
-
### AUTHORIZER_NAME
|
187
|
-
|
188
|
-
|
189
|
-
- **Type**: API key
|
190
|
-
- **API key parameter name**: Authorization
|
191
|
-
- **Location**: HTTP header
|
192
|
-
|
193
|
-
|
194
|
-
## Author
|
195
|
-
|
196
|
-
info@masspay.io
|
197
|
-
|
79
|
+
------------ | ------------- | ------------- | -------------
|
80
|
+
_MasspayRubySdk.account_service_ | **get_account_balance** | **GET** /payout/account/balance | Get current available balance
|
81
|
+
_MasspayRubySdk.account_service_ | **get_account_statement** | **GET** /payout/account/statement | Get certified account statement
|
82
|
+
_MasspayRubySdk.attribute_service_ | **get_all_attrs** | **GET** /payout/attribute/{user_token} | Get all stored user attributes
|
83
|
+
_MasspayRubySdk.attribute_service_ | **store_attrs** | **POST** /payout/attribute/{user_token}/{destination_token}/{currency} | Store user attributes
|
84
|
+
_MasspayRubySdk.attribute_service_ | **get_attrs** | **GET** /payout/attribute/{user_token}/{destination_token}/{currency} | Get user attributes for destination_token
|
85
|
+
_MasspayRubySdk.card_service_ | **get_wallet_card_info** | **GET** /payout/wallet/{user_token}/{wallet_token}/card | Get MassPay card information
|
86
|
+
_MasspayRubySdk.card_service_ | **update_wallet_card_info** | **PUT** /payout/wallet/{user_token}/{wallet_token}/card | Update MassPay card information
|
87
|
+
_MasspayRubySdk.catalog_service_ | **get_country_list** | **GET** /payout/country/list | Gets a list of countries where services offered.
|
88
|
+
_MasspayRubySdk.catalog_service_ | **get_country_services** | **GET** /payout/country/{country_code} | Gets a list of Companies and their service offerings for the given country code.
|
89
|
+
_MasspayRubySdk.catalog_service_ | **get_cheapest_country_services** | **GET** /payout/country/{country_code}/cheapest | Gets a list of Companies and their cheapest service offerings for the given country code.
|
90
|
+
_MasspayRubySdk.catalog_service_ | **get_destination_token_alternatives** | **GET** /payout/service/{destination_token}/alternatives | Returns list of alternative service to a provided service
|
91
|
+
_MasspayRubySdk.catalog_service_ | **get_destination_token** | **GET** /payout/service/{destination_token} | Returns provided service
|
92
|
+
_MasspayRubySdk.catalog_service_ | **get_user_agreement** | **GET** /payout/user-agreements | Get user agreement
|
93
|
+
_MasspayRubySdk.catalog_service_ | **get_user_agreements_names** | **OPTIONS** /payout/user-agreements | Get available user agreements
|
94
|
+
_MasspayRubySdk.kyc_service_ | **find_attributes_velocity** | **POST** /payout/attribute/{user_token}/velocity | Attributes velocity check
|
95
|
+
_MasspayRubySdk.kyc_service_ | **get_user_user_token_kyc_au_10_tix** | **GET** /payout/user/{user_token}/kyc/au10tix | Get an Au10tix session link
|
96
|
+
_MasspayRubySdk.kyc_service_ | **upload_id_photos** | **POST** /payout/user/{user_token}/kyc/id | Upload ID photos
|
97
|
+
_MasspayRubySdk.kyc_service_ | **get_user_user_token_kyc_attempts** | **GET** /payout/user/{user_token}/kyc/id | Get all KYC sessions
|
98
|
+
_MasspayRubySdk.kyc_service_ | **get_user_user_token_kyc_veriff** | **GET** /payout/user/{user_token}/kyc/veriff | Get a Veriff session link
|
99
|
+
_MasspayRubySdk.load_service_ | **resend_balance_notification** | **PUT** /payout/wallet/{user_token} | Resend balance notification
|
100
|
+
_MasspayRubySdk.load_service_ | **load_user** | **POST** /payout/load/{user_token} | Initiate a load transaction
|
101
|
+
_MasspayRubySdk.load_service_ | **get_user_loads_by_token** | **GET** /payout/load/{user_token} | Get history of loads by user token
|
102
|
+
_MasspayRubySdk.load_service_ | **resend_load_notification** | **PUT** /payout/load/{user_token} | Resend load notification
|
103
|
+
_MasspayRubySdk.load_service_ | **cancel_user_load** | **DELETE** /payout/load/{user_token} | Reverse a user load
|
104
|
+
_MasspayRubySdk.payout_service_ | **initiate_payout** | **POST** /payout/{user_token} | Initiate a payout transaction
|
105
|
+
_MasspayRubySdk.payout_service_ | **get_user_payouts_by_token** | **GET** /payout/{user_token} | Get history of payouts by user token
|
106
|
+
_MasspayRubySdk.payout_service_ | **commit_payout_txn** | **PUT** /payout/{user_token}/{payout_token} | Commit payout transaction
|
107
|
+
_MasspayRubySdk.payout_service_ | **get_payout_status** | **GET** /payout/{user_token}/{payout_token} | Get status of a payout by payout token
|
108
|
+
_MasspayRubySdk.payout_service_ | **get_transaction_confirmation_details** | **PATCH** /payout/{user_token}/{payout_token} | Get transaction confirmation details
|
109
|
+
_MasspayRubySdk.spend_back_service_ | **get_user_spendbacks_by_token** | **GET** /payout/spendback/{user_token} | Get history of spend backs by user token
|
110
|
+
_MasspayRubySdk.spend_back_service_ | **initiate_spendback** | **POST** /payout/spendback/{user_token} | Initiate a spend back transaction
|
111
|
+
_MasspayRubySdk.subaccount_service_ | **create_subaccount** | **POST** /subaccount | Create a subaccount
|
112
|
+
_MasspayRubySdk.subaccount_service_ | **get_subaccount_subaccount_token_ubo** | **POST** /subaccount/{subaccount_token}/ubo | Add UBOs to subaccount
|
113
|
+
_MasspayRubySdk.subaccount_service_ | **upload_subaccount_ubo_id** | **POST** /subaccount/{subaccount_token}/ubo/{ubo_token}/id | Upload UBO ID photos
|
114
|
+
_MasspayRubySdk.tax_service_ | **get_tax_users** | **GET** /payout/tax | Get list of users' annual balance
|
115
|
+
_MasspayRubySdk.tax_service_ | **get_tax_interview_link** | **GET** /payout/{user_token}/tax | Get link for tax interview
|
116
|
+
_MasspayRubySdk.user_service_ | **create_user** | **POST** /payout/user | Create a user
|
117
|
+
_MasspayRubySdk.user_service_ | **get_user_by_token** | **GET** /payout/user/{user_token} | Get user by user token
|
118
|
+
_MasspayRubySdk.user_service_ | **update_user** | **PUT** /payout/user/{user_token} | Updated user
|
119
|
+
_MasspayRubySdk.user_service_ | **user_lookup** | **GET** /payout/user/lookup | Lookup an existing user
|
120
|
+
_MasspayRubySdk.user_service_ | **get_user_history** | **GET** /payout/user/{user_token}/history | Transactions history
|
121
|
+
_MasspayRubySdk.user_service_ | **get_all_users_history** | **GET** /payout/user/history | All Users' Transactions history
|
122
|
+
_MasspayRubySdk.wallet_service_ | **get_wallet** | **GET** /payout/wallet/{user_token} | Retrieve all available wallets for a user
|
123
|
+
_MasspayRubySdk.wallet_service_ | **get_autopayout_rules** | **GET** /payout/wallet/{user_token}/{wallet_token}/autopayout | Get all AutoPayout rules
|
124
|
+
_MasspayRubySdk.wallet_service_ | **create_autopayout_rule** | **POST** /payout/wallet/{user_token}/{wallet_token}/autopayout | Add AutoPayout rule
|
125
|
+
_MasspayRubySdk.wallet_service_ | **delete_autopayout_rule** | **DELETE** /payout/wallet/{user_token}/{wallet_token}/autopayout | Delete AutoPayout rule
|
126
|
+
|
127
|
+
|
128
|
+
## Contributing
|
129
|
+
|
130
|
+
<!--- Explaining how users can contribute to the project. Include guidelines for bug reports, feature requests, and pull requests.--->
|
131
|
+
|
132
|
+
To learn more about the possibility of contributing to the subsequent development of this SDK, please visit our [contributing page](./CONTRIBUTING.md). Kindly note that contributions are limited by a unique set of rules in order to ensure clarity.
|
133
|
+
|
134
|
+
## License
|
135
|
+
|
136
|
+
<!--- Including the license information for your project and the specification of the license type (e.g., MIT, Apache 2.0). --->
|
137
|
+
|
138
|
+
Please refer to the [license page](./LICENSE) for more information about the license type and the corresponding terms of use.
|
139
|
+
|
140
|
+
## Contact
|
141
|
+
|
142
|
+
<!--- Providing contact information or links to relevant communication channels (e.g., email, Slack, Gitter).--->
|
143
|
+
|
144
|
+
We kindly request that you direct all questions to our support email:
|
145
|
+
|
146
|
+
- [info@masspay.io](mailto:info@masspay.io)
|
147
|
+
|
148
|
+
## Frequently Asked Questions (FAQ)
|
149
|
+
|
150
|
+
<!--- Including a section addressing frequently asked questions about the SDK.--->
|
151
|
+
|
152
|
+
**Q: Where may I obtain an API key?**
|
153
|
+
A: Please visit our [registration page](https://developers.masspay.io/) if you do not have your unique API key.
|
154
|
+
|
155
|
+
<!--- Questions that can be prefilled
|
156
|
+
What are the main functions or features supported by the SDK?
|
157
|
+
Are there any examples or tutorials to help me understand how to use the SDK effectively?
|
158
|
+
How can I get help or assistance if I encounter issues while using the SDK?
|
159
|
+
How often is the SDK updated, and how can users stay informed about updates?
|
160
|
+
Are there any best practices recommended for maintaining security while using the SDK?
|
161
|
+
What are the licensing terms for using the SDK?
|
162
|
+
--->
|
data/assets/logo.webp
ADDED
Binary file
|
@@ -0,0 +1,35 @@
|
|
1
|
+
=begin
|
2
|
+
MassPay API
|
3
|
+
|
4
|
+
The version of the OpenAPI document: 1.0.0
|
5
|
+
Contact: info@masspay.io
|
6
|
+
|
7
|
+
NOTE: This file is auto generated. Do not edit the file manually.
|
8
|
+
=end
|
9
|
+
|
10
|
+
require 'cgi'
|
11
|
+
|
12
|
+
module MasspayRubySdk
|
13
|
+
class AccountService
|
14
|
+
|
15
|
+
def initialize(client)
|
16
|
+
@client = client ||= Client.new
|
17
|
+
end
|
18
|
+
|
19
|
+
# Get current available balance
|
20
|
+
# GET /payout/account/balance
|
21
|
+
def get_account_balance
|
22
|
+
@client.get("payout/account/balance")
|
23
|
+
end
|
24
|
+
|
25
|
+
# Get certified account statement
|
26
|
+
# GET /payout/account/statement
|
27
|
+
# @param query_params The query parameters
|
28
|
+
def get_account_statement query_params={}
|
29
|
+
@client.get("payout/account/statement") do |req|
|
30
|
+
req.params = query_params
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
MassPay API
|
3
|
+
|
4
|
+
The version of the OpenAPI document: 1.0.0
|
5
|
+
Contact: info@masspay.io
|
6
|
+
|
7
|
+
NOTE: This file is auto generated. Do not edit the file manually.
|
8
|
+
=end
|
9
|
+
|
10
|
+
require 'cgi'
|
11
|
+
|
12
|
+
module MasspayRubySdk
|
13
|
+
class AttributeService
|
14
|
+
|
15
|
+
def initialize(client)
|
16
|
+
@client = client ||= Client.new
|
17
|
+
end
|
18
|
+
|
19
|
+
# Get all stored user attributes
|
20
|
+
# GET /payout/attribute/{user_token}
|
21
|
+
def get_all_attrs user_token
|
22
|
+
@client.get("payout/attribute/#{user_token}")
|
23
|
+
end
|
24
|
+
|
25
|
+
# Store user attributes
|
26
|
+
# POST /payout/attribute/{user_token}/{destination_token}/{currency}
|
27
|
+
# @param body The body of the request
|
28
|
+
def store_attrs user_token, destination_token, currency, body
|
29
|
+
@client.post("payout/attribute/#{user_token}/#{destination_token}/#{currency}") do |req|
|
30
|
+
req.body = body
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# Get user attributes for destination_token
|
35
|
+
# GET /payout/attribute/{user_token}/{destination_token}/{currency}
|
36
|
+
def get_attrs user_token, destination_token, currency
|
37
|
+
@client.get("payout/attribute/#{user_token}/#{destination_token}/#{currency}")
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
end
|