univapay-client-sdk 1.0.1 → 1.0.2
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/README.md +6 -3
- data/lib/univapay_client_sdk/apis/base_api.rb +1 -1
- data/lib/univapay_client_sdk/apis/direct_debit_api.rb +954 -0
- data/lib/univapay_client_sdk/client.rb +24 -8
- data/lib/univapay_client_sdk/configuration.rb +29 -7
- data/lib/univapay_client_sdk/extensions.rb +62 -12
- data/lib/univapay_client_sdk/models/direct_debit_bank_account.rb +237 -0
- data/lib/univapay_client_sdk/models/direct_debit_bank_account_create_request.rb +135 -0
- data/lib/univapay_client_sdk/models/direct_debit_bank_account_list.rb +94 -0
- data/lib/univapay_client_sdk/models/direct_debit_bank_account_status.rb +42 -0
- data/lib/univapay_client_sdk/models/direct_debit_bank_account_type.rb +45 -0
- data/lib/univapay_client_sdk/models/direct_debit_bank_account_update_request.rb +145 -0
- data/lib/univapay_client_sdk/models/direct_debit_bank_transfer.rb +294 -0
- data/lib/univapay_client_sdk/models/direct_debit_bank_transfer_create_request.rb +73 -0
- data/lib/univapay_client_sdk/models/direct_debit_bank_transfer_error.rb +64 -0
- data/lib/univapay_client_sdk/models/direct_debit_bank_transfer_list.rb +94 -0
- data/lib/univapay_client_sdk/models/direct_debit_bank_transfer_lock.rb +38 -0
- data/lib/univapay_client_sdk/models/direct_debit_bank_transfer_patch_request.rb +74 -0
- data/lib/univapay_client_sdk/models/direct_debit_bank_transfer_status.rb +41 -0
- data/lib/univapay_client_sdk/models/direct_debit_debit_date.rb +36 -0
- data/lib/univapay_client_sdk/models/direct_debit_merchant_configuration.rb +128 -0
- data/lib/univapay_client_sdk/models/direct_debit_notification_configuration.rb +101 -0
- data/lib/univapay_client_sdk/models/direct_debit_registration_origin.rb +37 -0
- data/lib/univapay_client_sdk/models/direct_debit_schedule.rb +153 -0
- data/lib/univapay_client_sdk/models/transaction_token_create_request.rb +2 -1
- data/lib/univapay_client_sdk.rb +25 -4
- data/test/apis/test_direct_debit_api.rb +514 -0
- metadata +22 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 60bb87fb05403484609586399d911107d01d8375c21bde02a4a815c97e129fcc
|
|
4
|
+
data.tar.gz: 720da5f2d2dcd82ae63787f450ff9eb9b194fd316249ff7b8c9a64033b887e51
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bdb9e959c262b21e07263734d985a1e7dc5824de8faee747106571d769e79aa6b72dfcabd14af976f36d1f6d90d4ecd93410e82e7ce1e0838f7c40456ac89f21
|
|
7
|
+
data.tar.gz: 184f32bc88f3c96fce994276cf357f70eb876a4793b278b3d5618c19c8164e390e3b54aba03da08a8592ca4de5cfa257bfc9cca448eca6fa9c22f27834a12f4f
|
data/README.md
CHANGED
|
@@ -36,16 +36,16 @@ We will assume that all requests are going to originate from a backend server th
|
|
|
36
36
|
Install the gem from the command line:
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
gem install univapay-client-sdk -v 1.0.
|
|
39
|
+
gem install univapay-client-sdk -v 1.0.2
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
Or add the gem to your Gemfile and run `bundle`:
|
|
43
43
|
|
|
44
44
|
```ruby
|
|
45
|
-
gem 'univapay-client-sdk', '1.0.
|
|
45
|
+
gem 'univapay-client-sdk', '1.0.2'
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
For additional gem details, see the [RubyGems page for the univapay-client-sdk gem](https://rubygems.org/gems/univapay-client-sdk/versions/1.0.
|
|
48
|
+
For additional gem details, see the [RubyGems page for the univapay-client-sdk gem](https://rubygems.org/gems/univapay-client-sdk/versions/1.0.2).
|
|
49
49
|
|
|
50
50
|
## IRB Console Usage
|
|
51
51
|
|
|
@@ -99,6 +99,7 @@ The following parameters are configurable for the API Client:
|
|
|
99
99
|
| Parameter | Type | Description |
|
|
100
100
|
| --- | --- | --- |
|
|
101
101
|
| base_url | `String` | Base URL for the API<br>*Default*: `'https://api.univapay.com'` |
|
|
102
|
+
| direct_debit_base_url | `String` | Base URL for the Direct Debit API<br>*Default*: `'https://direct-debit.gopay-services.com'` |
|
|
102
103
|
| environment | [`Environment`](README.md#environments) | The API environment. <br> **Default: `Environment.PRODUCTION`** |
|
|
103
104
|
| connection | `Faraday::Connection` | The Faraday connection object passed by the SDK user for making requests |
|
|
104
105
|
| adapter | `Faraday::Adapter` | The Faraday adapter object passed by the SDK user for performing http requests |
|
|
@@ -127,6 +128,7 @@ client = Client.new(
|
|
|
127
128
|
),
|
|
128
129
|
environment: Environment::PRODUCTION,
|
|
129
130
|
base_url: 'https://api.univapay.com',
|
|
131
|
+
direct_debit_base_url: 'https://direct-debit.gopay-services.com',
|
|
130
132
|
logging_configuration: LoggingConfiguration.new(
|
|
131
133
|
log_level: Logger::INFO,
|
|
132
134
|
request_logging_config: RequestLoggingConfiguration.new(
|
|
@@ -170,6 +172,7 @@ This API uses the following authentication schemes.
|
|
|
170
172
|
## List of APIs
|
|
171
173
|
|
|
172
174
|
* [Transaction Tokens](doc/controllers/transaction-tokens.md)
|
|
175
|
+
* [Direct Debit](doc/controllers/direct-debit.md)
|
|
173
176
|
* [Charges](doc/controllers/charges.md)
|
|
174
177
|
* [Refunds](doc/controllers/refunds.md)
|
|
175
178
|
* [Subscriptions](doc/controllers/subscriptions.md)
|
|
@@ -10,7 +10,7 @@ module UnivapayClientSdk
|
|
|
10
10
|
attr_accessor :config, :http_call_back
|
|
11
11
|
|
|
12
12
|
def self.user_agent
|
|
13
|
-
'Ruby-SDK/1.0.
|
|
13
|
+
'Ruby-SDK/1.0.2 (OS: {os-info}, Engine: {engine}/{engine-version})'
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def self.user_agent_parameters
|