treezor_client 1.1.0 → 1.2.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/Gemfile +1 -5
- data/Gemfile.lock +4 -6
- data/README.md +19 -5
- data/config.json +10 -0
- data/docs/BalanceApi.md +8 -8
- data/docs/BankaccountApi.md +30 -30
- data/docs/BeneficiariesApi.md +30 -30
- data/docs/Beneficiary.md +1 -0
- data/docs/BusinessApi.md +26 -26
- data/docs/Card.md +2 -2
- data/docs/CardApi.md +209 -150
- data/docs/CardDigitalization.md +1 -3
- data/docs/CardDigitalizationsApi.md +73 -16
- data/docs/CardReserveApi.md +24 -24
- data/docs/CardtransactionApi.md +16 -14
- data/docs/CountryRestrictionGroup.md +14 -0
- data/docs/CountryRestrictionGroupsApi.md +40 -40
- data/docs/Document.md +1 -0
- data/docs/DocumentApi.md +46 -44
- data/docs/HeartbeatApi.md +8 -8
- data/docs/InlineResponse20010Cardtransactions.md +3 -3
- data/docs/InlineResponse20011.md +1 -1
- data/docs/InlineResponse20011Cardtransactions.md +58 -0
- data/docs/InlineResponse20012.md +1 -1
- data/docs/InlineResponse20013.md +1 -1
- data/docs/InlineResponse20014.md +1 -1
- data/docs/InlineResponse20015.md +1 -1
- data/docs/InlineResponse20016.md +1 -1
- data/docs/InlineResponse20017.md +1 -1
- data/docs/InlineResponse20018.md +1 -1
- data/docs/InlineResponse20019.md +1 -1
- data/docs/InlineResponse20020.md +1 -1
- data/docs/InlineResponse20021.md +1 -1
- data/docs/InlineResponse20022.md +1 -1
- data/docs/InlineResponse20023.md +1 -1
- data/docs/InlineResponse20024.md +1 -1
- data/docs/InlineResponse20025.md +1 -1
- data/docs/InlineResponse20026.md +8 -0
- data/docs/InlineResponse20027.md +8 -0
- data/docs/InlineResponse20028.md +8 -0
- data/docs/InlineResponse2005Businessinformations.md +2 -2
- data/docs/IssuerInitiatedDigitizationDataApi.md +22 -22
- data/docs/MandateApi.md +50 -50
- data/docs/MccRestrictionGroupsApi.md +40 -40
- data/docs/MerchantIdRestrictionGroupsApi.md +40 -40
- data/docs/PayinApi.md +38 -38
- data/docs/PayinrefundApi.md +38 -38
- data/docs/PayoutApi.md +38 -38
- data/docs/PayoutRefund.md +22 -0
- data/docs/PayoutRefundsApi.md +82 -0
- data/docs/TaxResidence.md +15 -0
- data/docs/TaxResidenceApi.md +319 -0
- data/docs/TransactionApi.md +22 -22
- data/docs/TransferApi.md +42 -42
- data/docs/TransferrefundApi.md +42 -42
- data/docs/User.md +3 -0
- data/docs/UserApi.md +104 -85
- data/docs/VirtualibansApi.md +46 -46
- data/docs/WalletApi.md +84 -84
- data/lib/treezor_client/api/balance_api.rb +8 -8
- data/lib/treezor_client/api/bankaccount_api.rb +30 -30
- data/lib/treezor_client/api/beneficiaries_api.rb +30 -30
- data/lib/treezor_client/api/business_api.rb +26 -26
- data/lib/treezor_client/api/card_api.rb +209 -154
- data/lib/treezor_client/api/card_digitalizations_api.rb +82 -16
- data/lib/treezor_client/api/card_reserve_api.rb +24 -24
- data/lib/treezor_client/api/cardtransaction_api.rb +18 -15
- data/lib/treezor_client/api/country_restriction_groups_api.rb +45 -45
- data/lib/treezor_client/api/document_api.rb +64 -57
- data/lib/treezor_client/api/heartbeat_api.rb +8 -8
- data/lib/treezor_client/api/issuer_initiated_digitization_data_api.rb +22 -22
- data/lib/treezor_client/api/mandate_api.rb +58 -58
- data/lib/treezor_client/api/mcc_restriction_groups_api.rb +45 -45
- data/lib/treezor_client/api/merchant_id_restriction_groups_api.rb +45 -45
- data/lib/treezor_client/api/payin_api.rb +42 -42
- data/lib/treezor_client/api/payinrefund_api.rb +42 -42
- data/lib/treezor_client/api/payout_api.rb +42 -42
- data/lib/treezor_client/api/payout_refunds_api.rb +102 -0
- data/lib/treezor_client/api/tax_residence_api.rb +319 -0
- data/lib/treezor_client/api/transaction_api.rb +24 -24
- data/lib/treezor_client/api/transfer_api.rb +46 -46
- data/lib/treezor_client/api/transferrefund_api.rb +46 -46
- data/lib/treezor_client/api/user_api.rb +124 -93
- data/lib/treezor_client/api/virtualibans_api.rb +50 -50
- data/lib/treezor_client/api/wallet_api.rb +89 -89
- data/lib/treezor_client/models/beneficiary.rb +11 -1
- data/lib/treezor_client/models/card.rb +2 -2
- data/lib/treezor_client/models/card_digitalization.rb +3 -20
- data/lib/treezor_client/models/country_restriction_group.rb +284 -0
- data/lib/treezor_client/models/document.rb +10 -1
- data/lib/treezor_client/models/inline_response_200_10_cardtransactions.rb +3 -3
- data/lib/treezor_client/models/inline_response_200_11.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_11_cardtransactions.rb +642 -0
- data/lib/treezor_client/models/inline_response_200_12.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_13.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_14.rb +1 -1
- data/lib/treezor_client/models/inline_response_200_15.rb +1 -1
- data/lib/treezor_client/models/inline_response_200_16.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_17.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_18.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_19.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_20.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_21.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_22.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_23.rb +1 -1
- data/lib/treezor_client/models/inline_response_200_24.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_25.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_26.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_27.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_28.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_5_businessinformations.rb +2 -2
- data/lib/treezor_client/models/payout_refund.rb +347 -0
- data/lib/treezor_client/models/tax_residence.rb +259 -0
- data/lib/treezor_client/models/user.rb +28 -1
- data/lib/treezor_client/version.rb +1 -1
- data/lib/treezor_client.rb +9 -1
- data/pkg/treezor_client-1.0.0.gem +0 -0
- data/pkg/treezor_client-1.1.0.gem +0 -0
- data/pkg/treezor_client-1.2.0.gem +0 -0
- data/spec/api/balance_api_spec.rb +4 -4
- data/spec/api/bankaccount_api_spec.rb +15 -15
- data/spec/api/beneficiaries_api_spec.rb +15 -15
- data/spec/api/business_api_spec.rb +13 -13
- data/spec/api/card_api_spec.rb +93 -75
- data/spec/api/card_digitalizations_api_spec.rb +19 -6
- data/spec/api/card_reserve_api_spec.rb +12 -12
- data/spec/api/cardtransaction_api_spec.rb +8 -7
- data/spec/api/country_restriction_groups_api_spec.rb +20 -20
- data/spec/api/document_api_spec.rb +22 -21
- data/spec/api/heartbeat_api_spec.rb +4 -4
- data/spec/api/issuer_initiated_digitization_data_api_spec.rb +11 -11
- data/spec/api/mandate_api_spec.rb +26 -26
- data/spec/api/mcc_restriction_groups_api_spec.rb +20 -20
- data/spec/api/merchant_id_restriction_groups_api_spec.rb +20 -22
- data/spec/api/payin_api_spec.rb +19 -19
- data/spec/api/payinrefund_api_spec.rb +19 -19
- data/spec/api/payout_api_spec.rb +19 -19
- data/spec/api/payout_refunds_api_spec.rb +56 -0
- data/spec/api/tax_residence_api_spec.rb +108 -0
- data/spec/api/transaction_api_spec.rb +11 -11
- data/spec/api/transfer_api_spec.rb +21 -21
- data/spec/api/transferrefund_api_spec.rb +21 -21
- data/spec/api/user_api_spec.rb +58 -41
- data/spec/api/virtualibans_api_spec.rb +23 -23
- data/spec/api/wallet_api_spec.rb +42 -42
- data/spec/models/beneficiary_spec.rb +6 -0
- data/spec/models/card_digitalization_spec.rb +0 -12
- data/spec/models/card_spec.rb +6 -0
- data/spec/models/country_restriction_group_spec.rb +82 -0
- data/spec/models/document_spec.rb +6 -0
- data/spec/models/inline_response_200_11_cardtransactions_spec.rb +342 -0
- data/spec/models/inline_response_200_11_spec.rb +1 -1
- data/spec/models/inline_response_200_12_spec.rb +1 -1
- data/spec/models/inline_response_200_13_spec.rb +1 -1
- data/spec/models/inline_response_200_16_spec.rb +1 -1
- data/spec/models/inline_response_200_17_spec.rb +1 -1
- data/spec/models/inline_response_200_18_spec.rb +1 -1
- data/spec/models/inline_response_200_19_spec.rb +1 -1
- data/spec/models/inline_response_200_20_spec.rb +1 -1
- data/spec/models/inline_response_200_21_spec.rb +1 -1
- data/spec/models/inline_response_200_22_spec.rb +1 -1
- data/spec/models/inline_response_200_24_spec.rb +1 -1
- data/spec/models/inline_response_200_25_spec.rb +1 -1
- data/spec/models/inline_response_200_26_spec.rb +42 -0
- data/spec/models/inline_response_200_27_spec.rb +42 -0
- data/spec/models/inline_response_200_28_spec.rb +42 -0
- data/spec/models/issuer_initiated_digitization_datas_additionnal_data_spec.rb +1 -1
- data/spec/models/merchant_id_restriction_group_spec.rb +1 -1
- data/spec/models/payout_refund_spec.rb +130 -0
- data/spec/models/tax_residence_spec.rb +84 -0
- data/spec/models/user_spec.rb +42 -0
- data/treezor_api_spec.yaml +1841 -1207
- data/treezor_client.gemspec +1 -3
- metadata +45 -9
- data/spec/models/card_digitalization_details_from_gps_spec.rb +0 -234
- data/spec/models/issuer_initiated_digitization_datas_additionnal_data_ecc_public_certificates_spec.rb +0 -54
|
@@ -38,7 +38,7 @@ describe 'MerchantIdRestrictionGroupsApi' do
|
|
|
38
38
|
# @param id Merchant ID restriction Group internal id.
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
40
|
# @option opts [Array<String>] :fields List of the object's properties you want to pick up.
|
|
41
|
-
# @return [
|
|
41
|
+
# @return [InlineResponse20015]
|
|
42
42
|
describe 'delete_merchant_id_restriction_groups test' do
|
|
43
43
|
it "should work" do
|
|
44
44
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -49,17 +49,17 @@ describe 'MerchantIdRestrictionGroupsApi' do
|
|
|
49
49
|
# search merchant id restriction groups
|
|
50
50
|
# Get merchant ID restriction groups that match search criteria.
|
|
51
51
|
# @param [Hash] opts the optional parameters
|
|
52
|
-
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
53
|
-
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
54
|
-
# @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).
|
|
55
|
-
# @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).
|
|
52
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
53
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
54
|
+
# @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).
|
|
55
|
+
# @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).
|
|
56
56
|
# @option opts [Array<String>] :fields List of the object's properties you want to pick up.
|
|
57
57
|
# @option opts [String] :filter You can filter the API response by using filter(s). Filterable fields are : - id - name - isWhitelist - status - startDate - createdDate Filters should be separated by a \";\". Example for 3 filters : FILTER1;FILTER2;FILTER3. A single filter has the following syntax : \"fieldName criterion expression\". Where : - fieldName : the name of a filterable field of this object. - expression : the values to be included or excluded (see the table below for more information) - criterion : a filter criterion. Here are the possible values for criterion : | Criteria | Description | Type | Expression Example | |----------|------------------------|------------------------------------------|--------------------| | > | greater than | alphanumeric string | 100 | | >= | greater or equal than | alphanumeric string | 100 | | < | less than | alphanumeric string | 100 | | <= | less or equal than | alphanumeric string | 100 | | != | not equal to | alphanumeric string | 100 | | like | like | alphanumeric string | 100 | | in | in | alphanumeric strings separated by commas | 100,30,25 | | == | equals | alphanumeric string | 100 |
|
|
58
|
-
# @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
|
|
59
|
-
# @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
|
|
60
|
-
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
|
|
58
|
+
# @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
|
|
59
|
+
# @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
|
|
60
|
+
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
|
|
61
61
|
# @option opts [String] :sort_order The order you want to sort the list. * **DESC** for a descending sort * **ASC** for a ascending sort. Default value : DESC. More info [here](https://agent.treezor.com/lists).
|
|
62
|
-
# @return [
|
|
62
|
+
# @return [InlineResponse20015]
|
|
63
63
|
describe 'get_merchant_id_restriction_group test' do
|
|
64
64
|
it "should work" do
|
|
65
65
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -72,7 +72,7 @@ describe 'MerchantIdRestrictionGroupsApi' do
|
|
|
72
72
|
# @param id Merchant ID restriction Group internal id.
|
|
73
73
|
# @param [Hash] opts the optional parameters
|
|
74
74
|
# @option opts [Array<String>] :fields List of the object's properties you want to pick up.
|
|
75
|
-
# @return [
|
|
75
|
+
# @return [InlineResponse20015]
|
|
76
76
|
describe 'get_merchant_id_restriction_groups_id test' do
|
|
77
77
|
it "should work" do
|
|
78
78
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -83,13 +83,12 @@ describe 'MerchantIdRestrictionGroupsApi' do
|
|
|
83
83
|
# create a merchantIdRestrictionGroup
|
|
84
84
|
# Create a new merchant ID restriction group in the system.
|
|
85
85
|
# @param [Hash] opts the optional parameters
|
|
86
|
-
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
87
|
-
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
88
|
-
# @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).
|
|
89
|
-
# @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).
|
|
90
|
-
# @option opts [Array<String>] :fields List of the object's properties you want to pick up.
|
|
86
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
87
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
88
|
+
# @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).
|
|
89
|
+
# @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).
|
|
91
90
|
# @option opts [Body7] :body
|
|
92
|
-
# @return [
|
|
91
|
+
# @return [InlineResponse20015]
|
|
93
92
|
describe 'post_merchant_id_restriction_group test' do
|
|
94
93
|
it "should work" do
|
|
95
94
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -101,13 +100,12 @@ describe 'MerchantIdRestrictionGroupsApi' do
|
|
|
101
100
|
# Edit a merchant id restriction group in the system.
|
|
102
101
|
# @param id Merchant ID restriction group's id.
|
|
103
102
|
# @param [Hash] opts the optional parameters
|
|
104
|
-
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
105
|
-
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
106
|
-
# @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).
|
|
107
|
-
# @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).
|
|
108
|
-
# @option opts [Array<String>] :fields List of the object's properties you want to pick up.
|
|
103
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
104
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
105
|
+
# @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).
|
|
106
|
+
# @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).
|
|
109
107
|
# @option opts [Body8] :body
|
|
110
|
-
# @return [
|
|
108
|
+
# @return [InlineResponse20015]
|
|
111
109
|
describe 'put_merchant_id_restriction_groups test' do
|
|
112
110
|
it "should work" do
|
|
113
111
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/api/payin_api_spec.rb
CHANGED
|
@@ -37,7 +37,7 @@ describe 'PayinApi' do
|
|
|
37
37
|
# Deactivate a payin in the system.
|
|
38
38
|
# @param id Payin's id.
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @return [
|
|
40
|
+
# @return [InlineResponse20017]
|
|
41
41
|
describe 'delete_payin test' do
|
|
42
42
|
it "should work" do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -49,7 +49,7 @@ describe 'PayinApi' do
|
|
|
49
49
|
# Get a payin from the system by its id.
|
|
50
50
|
# @param id Payin's id.
|
|
51
51
|
# @param [Hash] opts the optional parameters
|
|
52
|
-
# @return [
|
|
52
|
+
# @return [InlineResponse20017]
|
|
53
53
|
describe 'get_payin test' do
|
|
54
54
|
it "should work" do
|
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -60,10 +60,10 @@ describe 'PayinApi' do
|
|
|
60
60
|
# search pay ins
|
|
61
61
|
# Get payins that match search criteria.
|
|
62
62
|
# @param [Hash] opts the optional parameters
|
|
63
|
-
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
64
|
-
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
65
|
-
# @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).
|
|
66
|
-
# @option opts [Integer] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
|
63
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
64
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
65
|
+
# @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).
|
|
66
|
+
# @option opts [Integer] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
|
67
67
|
# @option opts [Integer] :payin_id Payin's id.
|
|
68
68
|
# @option opts [Integer] :wallet_id Payin's wallet id.
|
|
69
69
|
# @option opts [String] :payin_tag Client custom data.
|
|
@@ -75,15 +75,15 @@ describe 'PayinApi' do
|
|
|
75
75
|
# @option opts [String] :event_alias Wallet eventAlias of the payin (credited wallet).
|
|
76
76
|
# @option opts [Integer] :wallet_type_id Payin's wallet type id.
|
|
77
77
|
# @option opts [String] :payment_method_id Payin's payment method id.
|
|
78
|
-
# @option opts [DateTime] :created_date_from The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
79
|
-
# @option opts [DateTime] :created_date_to The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
80
|
-
# @option opts [DateTime] :updated_date_from The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
81
|
-
# @option opts [DateTime] :updated_date_to The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
82
|
-
# @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
|
|
83
|
-
# @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
|
|
84
|
-
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : createdDate. More info [here](https://agent.treezor.com/lists).
|
|
78
|
+
# @option opts [DateTime] :created_date_from The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
79
|
+
# @option opts [DateTime] :created_date_to The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
80
|
+
# @option opts [DateTime] :updated_date_from The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
81
|
+
# @option opts [DateTime] :updated_date_to The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
82
|
+
# @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
|
|
83
|
+
# @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
|
|
84
|
+
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : createdDate. More info [here](https://agent.treezor.com/lists).
|
|
85
85
|
# @option opts [String] :sort_order The order you want to sort the list. * **DESC** for a descending sort * **ASC** for a ascending sort. Default value : DESC. More info [here](https://agent.treezor.com/lists).
|
|
86
|
-
# @return [
|
|
86
|
+
# @return [InlineResponse20017]
|
|
87
87
|
describe 'get_payins test' do
|
|
88
88
|
it "should work" do
|
|
89
89
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -99,10 +99,10 @@ describe 'PayinApi' do
|
|
|
99
99
|
# @param amount Pay in amount.
|
|
100
100
|
# @param currency Payin currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217). Must be the same as the wallet's.
|
|
101
101
|
# @param [Hash] opts the optional parameters
|
|
102
|
-
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
103
|
-
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
104
|
-
# @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).
|
|
105
|
-
# @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).
|
|
102
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
103
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
104
|
+
# @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).
|
|
105
|
+
# @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).
|
|
106
106
|
# @option opts [String] :payin_tag Client custom data.
|
|
107
107
|
# @option opts [Integer] :oneclickcard_id Oneclick card's id. Mandatory if payment method is 14. Useless otherwise.
|
|
108
108
|
# @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.
|
|
@@ -116,7 +116,7 @@ describe 'PayinApi' do
|
|
|
116
116
|
# @option opts [String] :created_ip User's IP address
|
|
117
117
|
# @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
|
|
118
118
|
# @option opts [Integer] :mandate_id The id of the mandate. This parameter is mandatory when performing a payin with method SDD Core.
|
|
119
|
-
# @return [
|
|
119
|
+
# @return [InlineResponse20017]
|
|
120
120
|
describe 'post_payin test' do
|
|
121
121
|
it "should work" do
|
|
122
122
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -37,7 +37,7 @@ describe 'PayinrefundApi' do
|
|
|
37
37
|
# Change payin refund's status to CANCELED. A validated payin refund can't be cancelled.
|
|
38
38
|
# @param id Payinrefund's internal id.
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @return [
|
|
40
|
+
# @return [InlineResponse20019]
|
|
41
41
|
describe 'delete_payinrefund test' do
|
|
42
42
|
it "should work" do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -49,7 +49,7 @@ describe 'PayinrefundApi' do
|
|
|
49
49
|
# Get a payin refund from the system.
|
|
50
50
|
# @param id Payinrefund's internal id.
|
|
51
51
|
# @param [Hash] opts the optional parameters
|
|
52
|
-
# @return [
|
|
52
|
+
# @return [InlineResponse20019]
|
|
53
53
|
describe 'get_payinrefund test' do
|
|
54
54
|
it "should work" do
|
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -60,10 +60,10 @@ describe 'PayinrefundApi' do
|
|
|
60
60
|
# search pay in refunds
|
|
61
61
|
# Search for payinrefunds in the system.
|
|
62
62
|
# @param [Hash] opts the optional parameters
|
|
63
|
-
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
64
|
-
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
65
|
-
# @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).
|
|
66
|
-
# @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).
|
|
63
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
64
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
65
|
+
# @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).
|
|
66
|
+
# @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).
|
|
67
67
|
# @option opts [Integer] :payin_id Payin's id.
|
|
68
68
|
# @option opts [Integer] :payinrefund_id Payinrefund's id.
|
|
69
69
|
# @option opts [String] :payinrefund_tag Custom data.
|
|
@@ -73,15 +73,15 @@ describe 'PayinrefundApi' do
|
|
|
73
73
|
# @option opts [Integer] :user_id User's id who made refunds.
|
|
74
74
|
# @option opts [String] :amount Refund's amount.
|
|
75
75
|
# @option opts [String] :currency Transfert amount currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217).
|
|
76
|
-
# @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
|
|
77
|
-
# @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
|
|
78
|
-
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
|
|
76
|
+
# @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
|
|
77
|
+
# @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
|
|
78
|
+
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
|
|
79
79
|
# @option opts [String] :sort_order The order you want to sort the list. * **DESC** for a descending sort * **ASC** for a ascending sort. Default value : DESC. More info [here](https://agent.treezor.com/lists).
|
|
80
|
-
# @option opts [DateTime] :created_date_from The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
81
|
-
# @option opts [DateTime] :created_date_to The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
82
|
-
# @option opts [DateTime] :updated_date_from The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
83
|
-
# @option opts [DateTime] :updated_date_to The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
84
|
-
# @return [
|
|
80
|
+
# @option opts [DateTime] :created_date_from The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
81
|
+
# @option opts [DateTime] :created_date_to The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
82
|
+
# @option opts [DateTime] :updated_date_from The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
83
|
+
# @option opts [DateTime] :updated_date_to The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
84
|
+
# @return [InlineResponse20019]
|
|
85
85
|
describe 'get_payinrefunds test' do
|
|
86
86
|
it "should work" do
|
|
87
87
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -95,13 +95,13 @@ describe 'PayinrefundApi' do
|
|
|
95
95
|
# @param amount Refund amount.
|
|
96
96
|
# @param currency Refund currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217).
|
|
97
97
|
# @param [Hash] opts the optional parameters
|
|
98
|
-
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
99
|
-
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
100
|
-
# @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).
|
|
101
|
-
# @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).
|
|
98
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
99
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
100
|
+
# @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).
|
|
101
|
+
# @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).
|
|
102
102
|
# @option opts [String] :payinrefund_tag Custom data.
|
|
103
103
|
# @option opts [String] :comment End user, client or issuer comment.
|
|
104
|
-
# @return [
|
|
104
|
+
# @return [InlineResponse20019]
|
|
105
105
|
describe 'post_payinrefunds test' do
|
|
106
106
|
it "should work" do
|
|
107
107
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/api/payout_api_spec.rb
CHANGED
|
@@ -37,7 +37,7 @@ describe 'PayoutApi' do
|
|
|
37
37
|
# Change pay out status to CANCELED. A VALIDATED pay out can't be canceled.
|
|
38
38
|
# @param id Payouts internal id.
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @return [
|
|
40
|
+
# @return [InlineResponse20020]
|
|
41
41
|
describe 'delete_payout test' do
|
|
42
42
|
it "should work" do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -49,7 +49,7 @@ describe 'PayoutApi' do
|
|
|
49
49
|
# Get a pay out from the system.
|
|
50
50
|
# @param id Payouts internal id.
|
|
51
51
|
# @param [Hash] opts the optional parameters
|
|
52
|
-
# @return [
|
|
52
|
+
# @return [InlineResponse20020]
|
|
53
53
|
describe 'get_payout test' do
|
|
54
54
|
it "should work" do
|
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -60,10 +60,10 @@ describe 'PayoutApi' do
|
|
|
60
60
|
# search pay outs
|
|
61
61
|
# Get pay out that match search criteria.
|
|
62
62
|
# @param [Hash] opts the optional parameters
|
|
63
|
-
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
64
|
-
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
65
|
-
# @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).
|
|
66
|
-
# @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).
|
|
63
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
64
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
65
|
+
# @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).
|
|
66
|
+
# @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).
|
|
67
67
|
# @option opts [Integer] :payout_id Payout's Id
|
|
68
68
|
# @option opts [String] :payout_tag Custom data.
|
|
69
69
|
# @option opts [String] :payout_status pay out status; Possible values: * CANCELED * PENDING * VALIDATED
|
|
@@ -80,15 +80,15 @@ describe 'PayoutApi' do
|
|
|
80
80
|
# @option opts [String] :label Pay out label that will be displayed in the receiver's account.
|
|
81
81
|
# @option opts [String] :amount Pay out amount.
|
|
82
82
|
# @option opts [String] :currency Transfert amount currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217).
|
|
83
|
-
# @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
|
|
84
|
-
# @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
|
|
85
|
-
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
|
|
83
|
+
# @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
|
|
84
|
+
# @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
|
|
85
|
+
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
|
|
86
86
|
# @option opts [String] :sort_order The order you want to sort the list. * **DESC** for a descending sort * **ASC** for a ascending sort. Default value : DESC. More info [here](https://agent.treezor.com/lists).
|
|
87
|
-
# @option opts [DateTime] :created_date_from The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
88
|
-
# @option opts [DateTime] :created_date_to The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
89
|
-
# @option opts [DateTime] :updated_date_from The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
90
|
-
# @option opts [DateTime] :updated_date_to The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
91
|
-
# @return [
|
|
87
|
+
# @option opts [DateTime] :created_date_from The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
88
|
+
# @option opts [DateTime] :created_date_to The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
89
|
+
# @option opts [DateTime] :updated_date_from The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
90
|
+
# @option opts [DateTime] :updated_date_to The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
91
|
+
# @return [InlineResponse20020]
|
|
92
92
|
describe 'get_payouts test' do
|
|
93
93
|
it "should work" do
|
|
94
94
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -102,16 +102,16 @@ describe 'PayoutApi' do
|
|
|
102
102
|
# @param amount Pay out amount.
|
|
103
103
|
# @param currency Transfert amount currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217).
|
|
104
104
|
# @param [Hash] opts the optional parameters
|
|
105
|
-
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
106
|
-
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
107
|
-
# @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).
|
|
108
|
-
# @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).
|
|
105
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
106
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
107
|
+
# @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).
|
|
108
|
+
# @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).
|
|
109
109
|
# @option opts [String] :payout_tag Custom data.
|
|
110
110
|
# @option opts [Integer] :bankaccount_id Pay out bank account's id. Mandatory id beneficiaryId is not provided. If bankaccountId and beneficiaryId are both provided, the beneficiaryId will be used.
|
|
111
111
|
# @option opts [Integer] :beneficiary_id Pay out beneficiary's id. Mandatory id bankaccountId is not provided. If bankaccountId and beneficiaryId are both provided, the beneficiaryId will be used.
|
|
112
112
|
# @option opts [String] :label Pay out label that will be displayed in the receiver's account (140 chars max).
|
|
113
113
|
# @option opts [String] :supporting_file_link Support file link
|
|
114
|
-
# @return [
|
|
114
|
+
# @return [InlineResponse20020]
|
|
115
115
|
describe 'post_payout test' do
|
|
116
116
|
it "should work" do
|
|
117
117
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Treezor
|
|
3
|
+
|
|
4
|
+
#Treezor API. more info [here](https://www.treezor.com).
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 0.1.1
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.3.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for TreezorClient::PayoutRefundsApi
|
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'PayoutRefundsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@instance = TreezorClient::PayoutRefundsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of PayoutRefundsApi' do
|
|
30
|
+
it 'should create an instance of PayoutRefundsApi' do
|
|
31
|
+
expect(@instance).to be_instance_of(TreezorClient::PayoutRefundsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for get_payout_refunds
|
|
36
|
+
# search pay outs refund
|
|
37
|
+
# Get pay out refund that match search criteria.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
40
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
41
|
+
# @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).
|
|
42
|
+
# @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).
|
|
43
|
+
# @option opts [Integer] :id PayoutRefund id
|
|
44
|
+
# @option opts [String] :tag PayoutRefund tag
|
|
45
|
+
# @option opts [String] :code_status PayoutRefund Code Status
|
|
46
|
+
# @option opts [String] :information_status PayoutRefund Information Status
|
|
47
|
+
# @option opts [Integer] :payout_id Payout Id
|
|
48
|
+
# @option opts [Integer] :page_number The page number
|
|
49
|
+
# @return [InlineResponse20021]
|
|
50
|
+
describe 'get_payout_refunds test' do
|
|
51
|
+
it "should work" do
|
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
end
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Treezor
|
|
3
|
+
|
|
4
|
+
#Treezor API. more info [here](https://www.treezor.com).
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 0.1.1
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.3.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for TreezorClient::TaxResidenceApi
|
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'TaxResidenceApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@instance = TreezorClient::TaxResidenceApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of TaxResidenceApi' do
|
|
30
|
+
it 'should create an instance of TaxResidenceApi' do
|
|
31
|
+
expect(@instance).to be_instance_of(TreezorClient::TaxResidenceApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for tax_residences_get
|
|
36
|
+
# search a residence
|
|
37
|
+
# Search a residence that match search criteria
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
40
|
+
# @option opts [Integer] :id id of the residence
|
|
41
|
+
# @option opts [Integer] :user_id User's id residence
|
|
42
|
+
# @return [InlineResponse20028]
|
|
43
|
+
describe 'tax_residences_get test' do
|
|
44
|
+
it "should work" do
|
|
45
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# unit tests for tax_residences_id_delete
|
|
50
|
+
# delete a residence
|
|
51
|
+
# Delete a residence that match id
|
|
52
|
+
# @param id id of the residence
|
|
53
|
+
# @param [Hash] opts the optional parameters
|
|
54
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
55
|
+
# @return [InlineResponse20028]
|
|
56
|
+
describe 'tax_residences_id_delete test' do
|
|
57
|
+
it "should work" do
|
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# unit tests for tax_residences_id_get
|
|
63
|
+
# read the informations of a residence
|
|
64
|
+
# Read the informations of a residence that match with id
|
|
65
|
+
# @param id id of the residence
|
|
66
|
+
# @param [Hash] opts the optional parameters
|
|
67
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
68
|
+
# @return [InlineResponse20028]
|
|
69
|
+
describe 'tax_residences_id_get test' do
|
|
70
|
+
it "should work" do
|
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# unit tests for tax_residences_id_put
|
|
76
|
+
# update the residence
|
|
77
|
+
# Update a residence already created.
|
|
78
|
+
# @param id residence id
|
|
79
|
+
# @param [Hash] opts the optional parameters
|
|
80
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
81
|
+
# @option opts [Integer] :user_id User's id residence
|
|
82
|
+
# @option opts [String] :country country of the resident
|
|
83
|
+
# @option opts [String] :tax_payer_id Tax payer's id
|
|
84
|
+
# @option opts [BOOLEAN] :liability_waiver Tax declaration
|
|
85
|
+
# @return [InlineResponse20028]
|
|
86
|
+
describe 'tax_residences_id_put test' do
|
|
87
|
+
it "should work" do
|
|
88
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# unit tests for tax_residences_post
|
|
93
|
+
# create a residence
|
|
94
|
+
# Create a new tax residence.
|
|
95
|
+
# @param user_id User's id residence
|
|
96
|
+
# @param country country of the resident
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
99
|
+
# @option opts [String] :tax_payer_id Tax payer's id
|
|
100
|
+
# @option opts [BOOLEAN] :liability_waiver When there is no taxPayerId for a residence, this field shall be set to true.
|
|
101
|
+
# @return [InlineResponse20028]
|
|
102
|
+
describe 'tax_residences_post test' do
|
|
103
|
+
it "should work" do
|
|
104
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
end
|
|
@@ -37,7 +37,7 @@ describe 'TransactionApi' do
|
|
|
37
37
|
# Get a transaction from the system.
|
|
38
38
|
# @param id Transaction's internal id.
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @return [
|
|
40
|
+
# @return [InlineResponse20022]
|
|
41
41
|
describe 'get_transaction test' do
|
|
42
42
|
it "should work" do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -48,10 +48,10 @@ describe 'TransactionApi' do
|
|
|
48
48
|
# search transactions
|
|
49
49
|
# Get transactions that match search criteria.
|
|
50
50
|
# @param [Hash] opts the optional parameters
|
|
51
|
-
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
52
|
-
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
53
|
-
# @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).
|
|
54
|
-
# @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).
|
|
51
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
|
52
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
53
|
+
# @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).
|
|
54
|
+
# @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).
|
|
55
55
|
# @option opts [Integer] :transaction_id Transaction's Id
|
|
56
56
|
# @option opts [String] :transaction_type Transaction types. Possible values: * Payin * Payout * Transfer * Transfer Refund * Payin Refund * Discount * Bill
|
|
57
57
|
# @option opts [Integer] :wallet_id Transactions' wallet id.
|
|
@@ -62,13 +62,13 @@ describe 'TransactionApi' do
|
|
|
62
62
|
# @option opts [String] :currency Transfert amount currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217).
|
|
63
63
|
# @option opts [DateTime] :value_date The value date of the transaction (date applied for the payment) Format : YYYY-MM-DD HH:MM:SS
|
|
64
64
|
# @option opts [DateTime] :execution_date Date of the execution of the transaction Format : YYYY-MM-DD HH:MM:SS
|
|
65
|
-
# @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
|
|
66
|
-
# @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
|
|
67
|
-
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
|
|
65
|
+
# @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
|
|
66
|
+
# @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
|
|
67
|
+
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
|
|
68
68
|
# @option opts [String] :sort_order The order you want to sort the list. * **DESC** for a descending sort * **ASC** for a ascending sort. Default value : DESC. More info [here](https://agent.treezor.com/lists).
|
|
69
|
-
# @option opts [DateTime] :created_date_from The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
70
|
-
# @option opts [DateTime] :created_date_to The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
71
|
-
# @return [
|
|
69
|
+
# @option opts [DateTime] :created_date_from The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
70
|
+
# @option opts [DateTime] :created_date_to The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
|
71
|
+
# @return [InlineResponse20022]
|
|
72
72
|
describe 'get_transactions test' do
|
|
73
73
|
it "should work" do
|
|
74
74
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|