<commit_before># Payoneer Ruby SDK

Payoneer Ruby SDK.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'payoneer_ruby_sdk'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install payoneer_ruby_sdk

## Configuration

```ruby
Payoneer.configure({
  partner_username: '<payoneer_username>',
  partner_api_password: '<<PASSWORD>>',
  partner_id: '<payoneer_partner_id>',
  program_id: '<payoneer_program_id>',
  env: 'production'
})
```

## Usage

### General APIs

#### Echo
```ruby
Payoneer::Api::Echo.request
```

#### GetVersion
```ruby
Payoneer::Api::GetVersion.request
```

### Payee Registration

#### Payee Sign-up
```ruby
Payoneer::Api::GetToken.request(payee_id: 1000011)
Payoneer::Api::GetToken.request(payee_id: 1000011, payout_methods: 'prepaidcard')
Payoneer::Api::GetToken.request(payee_id: 1000011, redirect_url: 'http://example.com', redirect_time: 5)
```

#### Payee Sign-up / Auto Population
```ruby<commit_msg>update read<commit_after># Payoneer Ruby SDK

Payoneer Ruby SDK.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'payoneer_ruby_sdk'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install payoneer_ruby_sdk

## Configuration

```ruby
Payoneer.configure({
  partner_username: '<payoneer_username>',
  partner_api_password: '<<PASSWORD>>',
  partner_id: '<payoneer_partner_id>',
  program_id: '<payoneer_program_id>',
  env: 'production',
  proxy: 'http://example.com' # optional
})
```

## Usage

### General APIs

#### Echo
```ruby
Payoneer::Api::Echo.request
```

#### GetVersion
```ruby
Payoneer::Api::GetVersion.request
```

### Payee Registration

#### Payee Sign-up
```ruby
Payoneer::Api::GetToken.request(payee_id: 1000011)
Payoneer::Api::GetToken.request(payee_id: 1000011, payout_methods: 'prepaidcard')
Payoneer::Api::GetToken.request(payee_id: 1000011, redirect_url: 'http://example.com', redirect_time: 5)
```

#### Payee Sign-up / Auto Population
```ruby
{'fraction_non_alphanumeric': 0.1631736526946108, 'fraction_numerical': 0.021956087824351298, 'mean_word_length': 5.937716262975779, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6549723', 'n_tokens_mistral': 791, 'n_tokens_neox': 706, 'n_words': 151}