treezor_client 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62e4359e2d0539561e3f44e0ee43b712be753cc62087a0146b787daa209431ed
4
- data.tar.gz: 9e9216fc6d410d1c00b5ac6f2b2cf5da111746158ec96150b456752850925c90
3
+ metadata.gz: da3fb795f712d18177a7dd18a30e41422e9e964e39f15b94ff7f1cf4ef33c0f2
4
+ data.tar.gz: d923d6c494c02b6e68fd5f75fb0aa7b295852da27e684a446ff877ee4fcd91e6
5
5
  SHA512:
6
- metadata.gz: 789af877e9ce6dc175625cda6705dde7e820860900bafa36157eb61d1c9c84abae8e8cbcbdc70caea142debacc279fcea29cbfb7cb6bd3fec28190afbc04d31f
7
- data.tar.gz: ab65409710ef74b4eee541eb13803fbb821d688cd6b55b453c6cedacdfceb0a4049819ef29f5b356acff69b03efb27c2ae73eb730808d51aefbd83d9114c7f70
6
+ metadata.gz: a01a0afe2cd2a4b95d46075c66305b445f5fac343cc9d0b8f5ac0cb8522ac87bd737170836d8631e8a466f8ae49d625505ae5f97c2aa4b2bba4dadd20b00b4a6
7
+ data.tar.gz: 89a0113d72331e0a87e2e2915961cca18083c25bbf562ca1da6c904d658faf654c129ef7a847ce0187d2831a4c54355efc08470d10e276cdb3372156bbe86bd7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- treezor_client (1.2.0)
4
+ treezor_client (1.3.0)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
data/docs/PayinApi.md CHANGED
@@ -218,7 +218,7 @@ Name | Type | Description | Notes
218
218
 
219
219
 
220
220
  # **post_payin**
221
- > InlineResponse20017 post_payin(wallet_id, user_id, payment_method_id, amount, currency, opts)
221
+ > InlineResponse20017 post_payin(wallet_id, payment_method_id, amount, currency, opts)
222
222
 
223
223
  create a pay in
224
224
 
@@ -240,8 +240,6 @@ api_instance = TreezorClient::PayinApi.new
240
240
 
241
241
  wallet_id = 56 # Integer | Credited wallet's ID
242
242
 
243
- user_id = 56 # Integer | User's id who makes the pay in. NB : this parameter should should not be transmitted in the case of payin of method Sepa Direct Debit Core (21). It will be set automatically by the system.
244
-
245
243
  payment_method_id = 56 # Integer | | Id | Payment by | | ---| --- | | 3 | Check | | 11 | Card | | 14 | Oneclick card (without payment form) | | 21 | Sepa Direct Debit Core | | 23 | Full Hosted HTML Payment Form. Please note that if you use this paymentMethodId the flieds paymentAcceptedUrl, paymentRefusedUrl, paymentWaitingUrl, paymentCanceledUrl and paymentExceptionUrl are mandatory. CSS of the payment page can be customized | | 24 | IFrame Payment Form. Please note that if you use this paymentMethodId the flieds paymentAcceptedUrl, paymentRefusedUrl, paymentWaitingUrl, paymentCanceledUrl and paymentExceptionUrl are mandatory. CSS of the payment page can be customized| | 25 | Payment made through an SDK - You cannot directly create a payin directly with this method id. The payin will be automatically created by the system. |
246
244
 
247
245
  amount = 3.4 # Float | Pay in amount.
@@ -254,6 +252,7 @@ opts = {
254
252
  access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
255
253
  access_user_ip: "access_user_ip_example", # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
256
254
  payin_tag: "payin_tag_example", # String | Client custom data.
255
+ user_id: 56, # Integer | User's id who makes the pay in. Required unless paymentMethodId = 21. NB : this parameter should should not be transmitted in the case of payin of method Sepa Direct Debit Core (21). It will be set automatically by the system.
257
256
  oneclickcard_id: 56, # Integer | Oneclick card's id. Mandatory if payment method is 14. Useless otherwise.
258
257
  payment_accepted_url: "payment_accepted_url_example", # String | Url where cardholder is redirected if payment is successful. When using paymentMethodId 23 and 24 an HTTPS URL is mandatory.
259
258
  payment_waiting_url: "payment_waiting_url_example", # String | Url where cardholder is redirected to wait payment processing. When using paymentMethodId 23 and 24 an HTTPS URL is mandatory.
@@ -270,7 +269,7 @@ opts = {
270
269
 
271
270
  begin
272
271
  #create a pay in
273
- result = api_instance.post_payin(wallet_id, user_id, payment_method_id, amount, currency, opts)
272
+ result = api_instance.post_payin(wallet_id, payment_method_id, amount, currency, opts)
274
273
  p result
275
274
  rescue TreezorClient::ApiError => e
276
275
  puts "Exception when calling PayinApi->post_payin: #{e}"
@@ -282,7 +281,6 @@ end
282
281
  Name | Type | Description | Notes
283
282
  ------------- | ------------- | ------------- | -------------
284
283
  **wallet_id** | **Integer**| Credited wallet's ID |
285
- **user_id** | **Integer**| User's id who makes the pay in. NB : this parameter should should not be transmitted in the case of payin of method Sepa Direct Debit Core (21). It will be set automatically by the system. |
286
284
  **payment_method_id** | **Integer**| | Id | Payment by | | ---| --- | | 3 | Check | | 11 | Card | | 14 | Oneclick card (without payment form) | | 21 | Sepa Direct Debit Core | | 23 | Full Hosted HTML Payment Form. Please note that if you use this paymentMethodId the flieds paymentAcceptedUrl, paymentRefusedUrl, paymentWaitingUrl, paymentCanceledUrl and paymentExceptionUrl are mandatory. CSS of the payment page can be customized | | 24 | IFrame Payment Form. Please note that if you use this paymentMethodId the flieds paymentAcceptedUrl, paymentRefusedUrl, paymentWaitingUrl, paymentCanceledUrl and paymentExceptionUrl are mandatory. CSS of the payment page can be customized| | 25 | Payment made through an SDK - You cannot directly create a payin directly with this method id. The payin will be automatically created by the system. | |
287
285
  **amount** | **Float**| Pay in amount. |
288
286
  **currency** | **String**| Payin currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217). Must be the same as the wallet's. |
@@ -291,6 +289,7 @@ Name | Type | Description | Notes
291
289
  **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
292
290
  **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
293
291
  **payin_tag** | **String**| Client custom data. | [optional]
292
+ **user_id** | **Integer**| User's id who makes the pay in. Required unless paymentMethodId = 21. NB : this parameter should should not be transmitted in the case of payin of method Sepa Direct Debit Core (21). It will be set automatically by the system. | [optional]
294
293
  **oneclickcard_id** | **Integer**| Oneclick card's id. Mandatory if payment method is 14. Useless otherwise. | [optional]
295
294
  **payment_accepted_url** | **String**| Url where cardholder is redirected if payment is successful. When using paymentMethodId 23 and 24 an HTTPS URL is mandatory. | [optional]
296
295
  **payment_waiting_url** | **String**| Url where cardholder is redirected to wait payment processing. When using paymentMethodId 23 and 24 an HTTPS URL is mandatory. | [optional]
@@ -251,7 +251,6 @@ module TreezorClient
251
251
  # create a pay in
252
252
  # Create a new pay in in the system.
253
253
  # @param wallet_id Credited wallet's ID
254
- # @param user_id User's id who makes the pay in. NB : this parameter should should not be transmitted in the case of payin of method Sepa Direct Debit Core (21). It will be set automatically by the system.
255
254
  # @param payment_method_id | Id | Payment by | | ---| --- | | 3 | Check | | 11 | Card | | 14 | Oneclick card (without payment form) | | 21 | Sepa Direct Debit Core | | 23 | Full Hosted HTML Payment Form. Please note that if you use this paymentMethodId the flieds paymentAcceptedUrl, paymentRefusedUrl, paymentWaitingUrl, paymentCanceledUrl and paymentExceptionUrl are mandatory. CSS of the payment page can be customized | | 24 | IFrame Payment Form. Please note that if you use this paymentMethodId the flieds paymentAcceptedUrl, paymentRefusedUrl, paymentWaitingUrl, paymentCanceledUrl and paymentExceptionUrl are mandatory. CSS of the payment page can be customized| | 25 | Payment made through an SDK - You cannot directly create a payin directly with this method id. The payin will be automatically created by the system. |
256
255
  # @param amount Pay in amount.
257
256
  # @param currency Payin currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217). Must be the same as the wallet's.
@@ -261,6 +260,7 @@ module TreezorClient
261
260
  # @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
262
261
  # @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
263
262
  # @option opts [String] :payin_tag Client custom data.
263
+ # @option opts [Integer] :user_id User's id who makes the pay in. Required unless paymentMethodId = 21. NB : this parameter should should not be transmitted in the case of payin of method Sepa Direct Debit Core (21). It will be set automatically by the system.
264
264
  # @option opts [Integer] :oneclickcard_id Oneclick card's id. Mandatory if payment method is 14. Useless otherwise.
265
265
  # @option opts [String] :payment_accepted_url Url where cardholder is redirected if payment is successful. When using paymentMethodId 23 and 24 an HTTPS URL is mandatory.
266
266
  # @option opts [String] :payment_waiting_url Url where cardholder is redirected to wait payment processing. When using paymentMethodId 23 and 24 an HTTPS URL is mandatory.
@@ -274,15 +274,14 @@ module TreezorClient
274
274
  # @option opts [String] :payin_date The date at which the SDD should be presented. This parameter is mandatory when performing a payin of method SDD Core. Format is YYYY-MM-DD The date should follow some requirements (Traget 2 working day) : - Be a weekday (Monday to Friday) - January 1st is excluded - May 1st is excluded - December 25 is excluded - December 26th is excluded - Easter day is excluded - Easter Monday is excluded - Good Friday is excluded
275
275
  # @option opts [Integer] :mandate_id The id of the mandate. This parameter is mandatory when performing a payin with method SDD Core.
276
276
  # @return [InlineResponse20017]
277
- def post_payin(wallet_id, user_id, payment_method_id, amount, currency, opts = {})
278
- data, _status_code, _headers = post_payin_with_http_info(wallet_id, user_id, payment_method_id, amount, currency, opts)
277
+ def post_payin(wallet_id, payment_method_id, amount, currency, opts = {})
278
+ data, _status_code, _headers = post_payin_with_http_info(wallet_id, payment_method_id, amount, currency, opts)
279
279
  return data
280
280
  end
281
281
 
282
282
  # create a pay in
283
283
  # Create a new pay in in the system.
284
284
  # @param wallet_id Credited wallet's ID
285
- # @param user_id User's id who makes the pay in. NB : this parameter should should not be transmitted in the case of payin of method Sepa Direct Debit Core (21). It will be set automatically by the system.
286
285
  # @param payment_method_id | Id | Payment by | | ---| --- | | 3 | Check | | 11 | Card | | 14 | Oneclick card (without payment form) | | 21 | Sepa Direct Debit Core | | 23 | Full Hosted HTML Payment Form. Please note that if you use this paymentMethodId the flieds paymentAcceptedUrl, paymentRefusedUrl, paymentWaitingUrl, paymentCanceledUrl and paymentExceptionUrl are mandatory. CSS of the payment page can be customized | | 24 | IFrame Payment Form. Please note that if you use this paymentMethodId the flieds paymentAcceptedUrl, paymentRefusedUrl, paymentWaitingUrl, paymentCanceledUrl and paymentExceptionUrl are mandatory. CSS of the payment page can be customized| | 25 | Payment made through an SDK - You cannot directly create a payin directly with this method id. The payin will be automatically created by the system. |
287
286
  # @param amount Pay in amount.
288
287
  # @param currency Payin currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217). Must be the same as the wallet's.
@@ -292,6 +291,7 @@ module TreezorClient
292
291
  # @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
293
292
  # @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
294
293
  # @option opts [String] :payin_tag Client custom data.
294
+ # @option opts [Integer] :user_id User's id who makes the pay in. Required unless paymentMethodId = 21. NB : this parameter should should not be transmitted in the case of payin of method Sepa Direct Debit Core (21). It will be set automatically by the system.
295
295
  # @option opts [Integer] :oneclickcard_id Oneclick card's id. Mandatory if payment method is 14. Useless otherwise.
296
296
  # @option opts [String] :payment_accepted_url Url where cardholder is redirected if payment is successful. When using paymentMethodId 23 and 24 an HTTPS URL is mandatory.
297
297
  # @option opts [String] :payment_waiting_url Url where cardholder is redirected to wait payment processing. When using paymentMethodId 23 and 24 an HTTPS URL is mandatory.
@@ -305,7 +305,7 @@ module TreezorClient
305
305
  # @option opts [String] :payin_date The date at which the SDD should be presented. This parameter is mandatory when performing a payin of method SDD Core. Format is YYYY-MM-DD The date should follow some requirements (Traget 2 working day) : - Be a weekday (Monday to Friday) - January 1st is excluded - May 1st is excluded - December 25 is excluded - December 26th is excluded - Easter day is excluded - Easter Monday is excluded - Good Friday is excluded
306
306
  # @option opts [Integer] :mandate_id The id of the mandate. This parameter is mandatory when performing a payin with method SDD Core.
307
307
  # @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
308
- def post_payin_with_http_info(wallet_id, user_id, payment_method_id, amount, currency, opts = {})
308
+ def post_payin_with_http_info(wallet_id, payment_method_id, amount, currency, opts = {})
309
309
  if @api_client.config.debugging
310
310
  @api_client.config.logger.debug "Calling API: PayinApi.post_payin ..."
311
311
  end
@@ -313,10 +313,6 @@ module TreezorClient
313
313
  if @api_client.config.client_side_validation && wallet_id.nil?
314
314
  fail ArgumentError, "Missing the required parameter 'wallet_id' when calling PayinApi.post_payin"
315
315
  end
316
- # verify the required parameter 'user_id' is set
317
- if @api_client.config.client_side_validation && user_id.nil?
318
- fail ArgumentError, "Missing the required parameter 'user_id' when calling PayinApi.post_payin"
319
- end
320
316
  # verify the required parameter 'payment_method_id' is set
321
317
  if @api_client.config.client_side_validation && payment_method_id.nil?
322
318
  fail ArgumentError, "Missing the required parameter 'payment_method_id' when calling PayinApi.post_payin"
@@ -338,7 +334,6 @@ module TreezorClient
338
334
  # query parameters
339
335
  query_params = {}
340
336
  query_params[:'walletId'] = wallet_id
341
- query_params[:'userId'] = user_id
342
337
  query_params[:'paymentMethodId'] = payment_method_id
343
338
  query_params[:'amount'] = amount
344
339
  query_params[:'currency'] = currency
@@ -347,6 +342,7 @@ module TreezorClient
347
342
  query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
348
343
  query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
349
344
  query_params[:'payinTag'] = opts[:'payin_tag'] if !opts[:'payin_tag'].nil?
345
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
350
346
  query_params[:'oneclickcardId'] = opts[:'oneclickcard_id'] if !opts[:'oneclickcard_id'].nil?
351
347
  query_params[:'paymentAcceptedUrl'] = opts[:'payment_accepted_url'] if !opts[:'payment_accepted_url'].nil?
352
348
  query_params[:'paymentWaitingUrl'] = opts[:'payment_waiting_url'] if !opts[:'payment_waiting_url'].nil?
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.3.1
11
11
  =end
12
12
 
13
13
  module TreezorClient
14
- VERSION = "1.2.0"
14
+ VERSION = "1.3.0"
15
15
  end
Binary file
@@ -6826,9 +6826,9 @@ paths:
6826
6826
  - name: userId
6827
6827
  in: query
6828
6828
  description: >
6829
- User's id who makes the pay in.
6829
+ User's id who makes the pay in. Required unless paymentMethodId = 21.
6830
6830
  NB : this parameter should should not be transmitted in the case of payin of method Sepa Direct Debit Core (21). It will be set automatically by the system.
6831
- required: true
6831
+ required: false
6832
6832
  type: integer
6833
6833
  - name: paymentMethodId
6834
6834
  in: query
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: treezor_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chaker Nakhli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-18 00:00:00.000000000 Z
11
+ date: 2019-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus