treezor_client 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -7
- data/README.md +5 -5
- data/docs/BalanceApi.md +2 -2
- data/docs/BankaccountApi.md +8 -8
- data/docs/BeneficiariesApi.md +12 -12
- data/docs/Body.md +12 -3
- data/docs/Body1.md +3 -4
- data/docs/Body10.md +4 -5
- data/docs/Body2.md +2 -11
- data/docs/Body3.md +1 -1
- data/docs/Body4.md +5 -2
- data/docs/Body5.md +5 -4
- data/docs/Body6.md +3 -6
- data/docs/Body7.md +4 -4
- data/docs/Body8.md +5 -4
- data/docs/Body9.md +4 -4
- data/docs/BusinessApi.md +2 -2
- data/docs/CardApi.md +35 -35
- data/docs/CardDigitalizationsApi.md +8 -8
- data/docs/CardReserveApi.md +12 -12
- data/docs/CardtransactionApi.md +4 -4
- data/docs/CountryRestrictionGroupsApi.md +14 -14
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse20010Cardtransactions.md +3 -3
- data/docs/InlineResponse20011.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/InlineResponse20018.md +1 -1
- data/docs/InlineResponse20019.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse20020.md +1 -1
- data/docs/InlineResponse20021.md +1 -1
- data/docs/InlineResponse20027.md +1 -1
- data/docs/InlineResponse20028.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2004Businessinformations.md +26 -0
- data/docs/InlineResponse2004Users.md +12 -0
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2006Cardimages.md +10 -0
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +3 -1
- data/docs/InlineResponse2009.md +1 -3
- data/docs/InlineResponse2009Cardtransactions.md +58 -0
- data/docs/IssuerInitiatedDigitizationData.md +15 -0
- data/docs/IssuerInitiatedDigitizationDataApi.md +24 -24
- data/docs/MandateApi.md +15 -13
- data/docs/MccRestrictionGroupsApi.md +14 -14
- data/docs/MerchantIdRestrictionGroupsApi.md +14 -14
- data/docs/PayinrefundApi.md +8 -8
- data/docs/PayoutApi.md +8 -8
- data/docs/PayoutRefundsApi.md +2 -2
- data/docs/TaxResidenceApi.md +10 -10
- data/docs/VirtualibansApi.md +8 -8
- data/docs/WalletApi.md +12 -12
- data/lib/treezor_client/api/balance_api.rb +3 -3
- data/lib/treezor_client/api/bankaccount_api.rb +12 -12
- data/lib/treezor_client/api/beneficiaries_api.rb +16 -16
- data/lib/treezor_client/api/business_api.rb +3 -3
- data/lib/treezor_client/api/card_api.rb +53 -53
- data/lib/treezor_client/api/card_digitalizations_api.rb +12 -12
- data/lib/treezor_client/api/card_reserve_api.rb +13 -13
- data/lib/treezor_client/api/cardtransaction_api.rb +6 -6
- data/lib/treezor_client/api/country_restriction_groups_api.rb +19 -19
- data/lib/treezor_client/api/issuer_initiated_digitization_data_api.rb +26 -26
- data/lib/treezor_client/api/mandate_api.rb +21 -18
- data/lib/treezor_client/api/mcc_restriction_groups_api.rb +19 -19
- data/lib/treezor_client/api/merchant_id_restriction_groups_api.rb +19 -19
- data/lib/treezor_client/api/payinrefund_api.rb +12 -12
- data/lib/treezor_client/api/payout_api.rb +12 -12
- data/lib/treezor_client/api/payout_refunds_api.rb +3 -3
- data/lib/treezor_client/api/tax_residence_api.rb +15 -15
- data/lib/treezor_client/api/virtualibans_api.rb +12 -12
- data/lib/treezor_client/api/wallet_api.rb +17 -17
- data/lib/treezor_client/models/body.rb +127 -62
- data/lib/treezor_client/models/body_1.rb +3 -23
- data/lib/treezor_client/models/body_10.rb +15 -27
- data/lib/treezor_client/models/body_2.rb +25 -113
- data/lib/treezor_client/models/body_3.rb +1 -1
- data/lib/treezor_client/models/body_4.rb +89 -21
- data/lib/treezor_client/models/body_5.rb +27 -25
- data/lib/treezor_client/models/body_6.rb +39 -66
- data/lib/treezor_client/models/body_7.rb +15 -15
- data/lib/treezor_client/models/body_8.rb +27 -15
- data/lib/treezor_client/models/body_9.rb +15 -15
- data/lib/treezor_client/models/inline_response_200.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_1.rb +8 -8
- 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_13.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_14.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_15.rb +1 -1
- data/lib/treezor_client/models/inline_response_200_16.rb +1 -1
- 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_2.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_27.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_28.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_3.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_4.rb +1 -1
- data/lib/treezor_client/models/inline_response_200_4_businessinformations.rb +447 -0
- data/lib/treezor_client/models/inline_response_200_4_users.rb +258 -0
- data/lib/treezor_client/models/inline_response_200_5.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_6.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_6_cardimages.rb +219 -0
- data/lib/treezor_client/models/inline_response_200_7.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_8.rb +28 -9
- data/lib/treezor_client/models/inline_response_200_9.rb +9 -28
- data/lib/treezor_client/models/inline_response_200_9_cardtransactions.rb +637 -0
- data/lib/treezor_client/models/issuer_initiated_digitization_data.rb +253 -0
- data/lib/treezor_client/version.rb +1 -1
- data/lib/treezor_client.rb +5 -5
- data/original_treezor_api_spec.yaml +13154 -0
- data/pkg/treezor_client-1.5.0.gem +0 -0
- data/spec/models/inline_response_200_4_businessinformations_spec.rb +169 -0
- data/spec/models/inline_response_200_4_users_spec.rb +69 -0
- data/spec/models/inline_response_200_6_cardimages_spec.rb +53 -0
- data/spec/models/inline_response_200_9_cardtransactions_spec.rb +341 -0
- data/spec/models/issuer_initiated_digitization_data_spec.rb +83 -0
- data/treezor_api_spec.yaml +2582 -2570
- metadata +25 -4
@@ -14,19 +14,30 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class InlineResponse2008
|
17
|
-
|
17
|
+
# ID of the card
|
18
|
+
attr_accessor :card_id
|
19
|
+
|
20
|
+
# reserved amount of the card
|
21
|
+
attr_accessor :amount
|
22
|
+
|
23
|
+
# last calculation date
|
24
|
+
attr_accessor :calculation_date
|
18
25
|
|
19
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
27
|
def self.attribute_map
|
21
28
|
{
|
22
|
-
:'
|
29
|
+
:'card_id' => :'cardId',
|
30
|
+
:'amount' => :'amount',
|
31
|
+
:'calculation_date' => :'calculationDate'
|
23
32
|
}
|
24
33
|
end
|
25
34
|
|
26
35
|
# Attribute type mapping.
|
27
36
|
def self.swagger_types
|
28
37
|
{
|
29
|
-
:'
|
38
|
+
:'card_id' => :'Integer',
|
39
|
+
:'amount' => :'Float',
|
40
|
+
:'calculation_date' => :'DateTime'
|
30
41
|
}
|
31
42
|
end
|
32
43
|
|
@@ -38,10 +49,16 @@ module TreezorClient
|
|
38
49
|
# convert string to symbol for hash key
|
39
50
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
51
|
|
41
|
-
if attributes.has_key?(:'
|
42
|
-
|
43
|
-
|
44
|
-
|
52
|
+
if attributes.has_key?(:'cardId')
|
53
|
+
self.card_id = attributes[:'cardId']
|
54
|
+
end
|
55
|
+
|
56
|
+
if attributes.has_key?(:'amount')
|
57
|
+
self.amount = attributes[:'amount']
|
58
|
+
end
|
59
|
+
|
60
|
+
if attributes.has_key?(:'calculationDate')
|
61
|
+
self.calculation_date = attributes[:'calculationDate']
|
45
62
|
end
|
46
63
|
end
|
47
64
|
|
@@ -63,7 +80,9 @@ module TreezorClient
|
|
63
80
|
def ==(o)
|
64
81
|
return true if self.equal?(o)
|
65
82
|
self.class == o.class &&
|
66
|
-
|
83
|
+
card_id == o.card_id &&
|
84
|
+
amount == o.amount &&
|
85
|
+
calculation_date == o.calculation_date
|
67
86
|
end
|
68
87
|
|
69
88
|
# @see the `==` method
|
@@ -75,7 +94,7 @@ module TreezorClient
|
|
75
94
|
# Calculates hash code according to all attributes.
|
76
95
|
# @return [Fixnum] Hash code
|
77
96
|
def hash
|
78
|
-
[
|
97
|
+
[card_id, amount, calculation_date].hash
|
79
98
|
end
|
80
99
|
|
81
100
|
# Builds the object from hash
|
@@ -14,30 +14,19 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class InlineResponse2009
|
17
|
-
|
18
|
-
attr_accessor :card_id
|
19
|
-
|
20
|
-
# reserved amount of the card
|
21
|
-
attr_accessor :amount
|
22
|
-
|
23
|
-
# last calculation date
|
24
|
-
attr_accessor :calculation_date
|
17
|
+
attr_accessor :cardtransactions
|
25
18
|
|
26
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
20
|
def self.attribute_map
|
28
21
|
{
|
29
|
-
:'
|
30
|
-
:'amount' => :'amount',
|
31
|
-
:'calculation_date' => :'calculationDate'
|
22
|
+
:'cardtransactions' => :'cardtransactions'
|
32
23
|
}
|
33
24
|
end
|
34
25
|
|
35
26
|
# Attribute type mapping.
|
36
27
|
def self.swagger_types
|
37
28
|
{
|
38
|
-
:'
|
39
|
-
:'amount' => :'Float',
|
40
|
-
:'calculation_date' => :'DateTime'
|
29
|
+
:'cardtransactions' => :'Array<InlineResponse2009Cardtransactions>'
|
41
30
|
}
|
42
31
|
end
|
43
32
|
|
@@ -49,16 +38,10 @@ module TreezorClient
|
|
49
38
|
# convert string to symbol for hash key
|
50
39
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
51
40
|
|
52
|
-
if attributes.has_key?(:'
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
if attributes.has_key?(:'amount')
|
57
|
-
self.amount = attributes[:'amount']
|
58
|
-
end
|
59
|
-
|
60
|
-
if attributes.has_key?(:'calculationDate')
|
61
|
-
self.calculation_date = attributes[:'calculationDate']
|
41
|
+
if attributes.has_key?(:'cardtransactions')
|
42
|
+
if (value = attributes[:'cardtransactions']).is_a?(Array)
|
43
|
+
self.cardtransactions = value
|
44
|
+
end
|
62
45
|
end
|
63
46
|
end
|
64
47
|
|
@@ -80,9 +63,7 @@ module TreezorClient
|
|
80
63
|
def ==(o)
|
81
64
|
return true if self.equal?(o)
|
82
65
|
self.class == o.class &&
|
83
|
-
|
84
|
-
amount == o.amount &&
|
85
|
-
calculation_date == o.calculation_date
|
66
|
+
cardtransactions == o.cardtransactions
|
86
67
|
end
|
87
68
|
|
88
69
|
# @see the `==` method
|
@@ -94,7 +75,7 @@ module TreezorClient
|
|
94
75
|
# Calculates hash code according to all attributes.
|
95
76
|
# @return [Fixnum] Hash code
|
96
77
|
def hash
|
97
|
-
[
|
78
|
+
[cardtransactions].hash
|
98
79
|
end
|
99
80
|
|
100
81
|
# Builds the object from hash
|