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.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +7 -7
  3. data/README.md +5 -5
  4. data/docs/BalanceApi.md +2 -2
  5. data/docs/BankaccountApi.md +8 -8
  6. data/docs/BeneficiariesApi.md +12 -12
  7. data/docs/Body.md +12 -3
  8. data/docs/Body1.md +3 -4
  9. data/docs/Body10.md +4 -5
  10. data/docs/Body2.md +2 -11
  11. data/docs/Body3.md +1 -1
  12. data/docs/Body4.md +5 -2
  13. data/docs/Body5.md +5 -4
  14. data/docs/Body6.md +3 -6
  15. data/docs/Body7.md +4 -4
  16. data/docs/Body8.md +5 -4
  17. data/docs/Body9.md +4 -4
  18. data/docs/BusinessApi.md +2 -2
  19. data/docs/CardApi.md +35 -35
  20. data/docs/CardDigitalizationsApi.md +8 -8
  21. data/docs/CardReserveApi.md +12 -12
  22. data/docs/CardtransactionApi.md +4 -4
  23. data/docs/CountryRestrictionGroupsApi.md +14 -14
  24. data/docs/InlineResponse200.md +1 -1
  25. data/docs/InlineResponse2001.md +1 -1
  26. data/docs/InlineResponse20010Cardtransactions.md +3 -3
  27. data/docs/InlineResponse20011.md +1 -1
  28. data/docs/InlineResponse20013.md +1 -1
  29. data/docs/InlineResponse20014.md +1 -1
  30. data/docs/InlineResponse20015.md +1 -1
  31. data/docs/InlineResponse20016.md +1 -1
  32. data/docs/InlineResponse20018.md +1 -1
  33. data/docs/InlineResponse20019.md +1 -1
  34. data/docs/InlineResponse2002.md +1 -1
  35. data/docs/InlineResponse20020.md +1 -1
  36. data/docs/InlineResponse20021.md +1 -1
  37. data/docs/InlineResponse20027.md +1 -1
  38. data/docs/InlineResponse20028.md +1 -1
  39. data/docs/InlineResponse2003.md +1 -1
  40. data/docs/InlineResponse2004.md +1 -1
  41. data/docs/InlineResponse2004Businessinformations.md +26 -0
  42. data/docs/InlineResponse2004Users.md +12 -0
  43. data/docs/InlineResponse2005.md +1 -1
  44. data/docs/InlineResponse2006.md +1 -1
  45. data/docs/InlineResponse2006Cardimages.md +10 -0
  46. data/docs/InlineResponse2007.md +1 -1
  47. data/docs/InlineResponse2008.md +3 -1
  48. data/docs/InlineResponse2009.md +1 -3
  49. data/docs/InlineResponse2009Cardtransactions.md +58 -0
  50. data/docs/IssuerInitiatedDigitizationData.md +15 -0
  51. data/docs/IssuerInitiatedDigitizationDataApi.md +24 -24
  52. data/docs/MandateApi.md +15 -13
  53. data/docs/MccRestrictionGroupsApi.md +14 -14
  54. data/docs/MerchantIdRestrictionGroupsApi.md +14 -14
  55. data/docs/PayinrefundApi.md +8 -8
  56. data/docs/PayoutApi.md +8 -8
  57. data/docs/PayoutRefundsApi.md +2 -2
  58. data/docs/TaxResidenceApi.md +10 -10
  59. data/docs/VirtualibansApi.md +8 -8
  60. data/docs/WalletApi.md +12 -12
  61. data/lib/treezor_client/api/balance_api.rb +3 -3
  62. data/lib/treezor_client/api/bankaccount_api.rb +12 -12
  63. data/lib/treezor_client/api/beneficiaries_api.rb +16 -16
  64. data/lib/treezor_client/api/business_api.rb +3 -3
  65. data/lib/treezor_client/api/card_api.rb +53 -53
  66. data/lib/treezor_client/api/card_digitalizations_api.rb +12 -12
  67. data/lib/treezor_client/api/card_reserve_api.rb +13 -13
  68. data/lib/treezor_client/api/cardtransaction_api.rb +6 -6
  69. data/lib/treezor_client/api/country_restriction_groups_api.rb +19 -19
  70. data/lib/treezor_client/api/issuer_initiated_digitization_data_api.rb +26 -26
  71. data/lib/treezor_client/api/mandate_api.rb +21 -18
  72. data/lib/treezor_client/api/mcc_restriction_groups_api.rb +19 -19
  73. data/lib/treezor_client/api/merchant_id_restriction_groups_api.rb +19 -19
  74. data/lib/treezor_client/api/payinrefund_api.rb +12 -12
  75. data/lib/treezor_client/api/payout_api.rb +12 -12
  76. data/lib/treezor_client/api/payout_refunds_api.rb +3 -3
  77. data/lib/treezor_client/api/tax_residence_api.rb +15 -15
  78. data/lib/treezor_client/api/virtualibans_api.rb +12 -12
  79. data/lib/treezor_client/api/wallet_api.rb +17 -17
  80. data/lib/treezor_client/models/body.rb +127 -62
  81. data/lib/treezor_client/models/body_1.rb +3 -23
  82. data/lib/treezor_client/models/body_10.rb +15 -27
  83. data/lib/treezor_client/models/body_2.rb +25 -113
  84. data/lib/treezor_client/models/body_3.rb +1 -1
  85. data/lib/treezor_client/models/body_4.rb +89 -21
  86. data/lib/treezor_client/models/body_5.rb +27 -25
  87. data/lib/treezor_client/models/body_6.rb +39 -66
  88. data/lib/treezor_client/models/body_7.rb +15 -15
  89. data/lib/treezor_client/models/body_8.rb +27 -15
  90. data/lib/treezor_client/models/body_9.rb +15 -15
  91. data/lib/treezor_client/models/inline_response_200.rb +8 -8
  92. data/lib/treezor_client/models/inline_response_200_1.rb +8 -8
  93. data/lib/treezor_client/models/inline_response_200_10_cardtransactions.rb +3 -3
  94. data/lib/treezor_client/models/inline_response_200_11.rb +8 -8
  95. data/lib/treezor_client/models/inline_response_200_13.rb +8 -8
  96. data/lib/treezor_client/models/inline_response_200_14.rb +8 -8
  97. data/lib/treezor_client/models/inline_response_200_15.rb +1 -1
  98. data/lib/treezor_client/models/inline_response_200_16.rb +1 -1
  99. data/lib/treezor_client/models/inline_response_200_18.rb +8 -8
  100. data/lib/treezor_client/models/inline_response_200_19.rb +8 -8
  101. data/lib/treezor_client/models/inline_response_200_2.rb +8 -8
  102. data/lib/treezor_client/models/inline_response_200_20.rb +8 -8
  103. data/lib/treezor_client/models/inline_response_200_21.rb +8 -8
  104. data/lib/treezor_client/models/inline_response_200_27.rb +8 -8
  105. data/lib/treezor_client/models/inline_response_200_28.rb +8 -8
  106. data/lib/treezor_client/models/inline_response_200_3.rb +8 -8
  107. data/lib/treezor_client/models/inline_response_200_4.rb +1 -1
  108. data/lib/treezor_client/models/inline_response_200_4_businessinformations.rb +447 -0
  109. data/lib/treezor_client/models/inline_response_200_4_users.rb +258 -0
  110. data/lib/treezor_client/models/inline_response_200_5.rb +8 -8
  111. data/lib/treezor_client/models/inline_response_200_6.rb +8 -8
  112. data/lib/treezor_client/models/inline_response_200_6_cardimages.rb +219 -0
  113. data/lib/treezor_client/models/inline_response_200_7.rb +8 -8
  114. data/lib/treezor_client/models/inline_response_200_8.rb +28 -9
  115. data/lib/treezor_client/models/inline_response_200_9.rb +9 -28
  116. data/lib/treezor_client/models/inline_response_200_9_cardtransactions.rb +637 -0
  117. data/lib/treezor_client/models/issuer_initiated_digitization_data.rb +253 -0
  118. data/lib/treezor_client/version.rb +1 -1
  119. data/lib/treezor_client.rb +5 -5
  120. data/original_treezor_api_spec.yaml +13154 -0
  121. data/pkg/treezor_client-1.5.0.gem +0 -0
  122. data/spec/models/inline_response_200_4_businessinformations_spec.rb +169 -0
  123. data/spec/models/inline_response_200_4_users_spec.rb +69 -0
  124. data/spec/models/inline_response_200_6_cardimages_spec.rb +53 -0
  125. data/spec/models/inline_response_200_9_cardtransactions_spec.rb +341 -0
  126. data/spec/models/issuer_initiated_digitization_data_spec.rb +83 -0
  127. data/treezor_api_spec.yaml +2582 -2570
  128. metadata +25 -4
@@ -14,23 +14,13 @@ require 'date'
14
14
 
15
15
  module TreezorClient
16
16
  class Body6
17
- # Name of the MCC restriction group
18
- attr_accessor :name
17
+ # The id of the card on which to create an issuerInitiatedDigitizationData request
18
+ attr_accessor :card_id
19
19
 
20
- # Status of the MCC group
21
- attr_accessor :status
20
+ # The Token Requestor also named wallet provider.
21
+ attr_accessor :token_requestor
22
22
 
23
- # determines whether it will be a black or a white list
24
- attr_accessor :is_whitelist
25
-
26
- # Array of MCC
27
- attr_accessor :mcc
28
-
29
- # The date at which the MCC restriction group will be take into account. Format YYYY-MM-DD HH:MM:SS
30
- attr_accessor :start_date
31
-
32
- # List of the object's properties you want to pick up.
33
- attr_accessor :fields
23
+ attr_accessor :additionnal_data
34
24
 
35
25
  class EnumAttributeValidator
36
26
  attr_reader :datatype
@@ -57,24 +47,18 @@ module TreezorClient
57
47
  # Attribute mapping from ruby-style variable name to JSON key.
58
48
  def self.attribute_map
59
49
  {
60
- :'name' => :'name',
61
- :'status' => :'status',
62
- :'is_whitelist' => :'isWhitelist',
63
- :'mcc' => :'mcc',
64
- :'start_date' => :'startDate',
65
- :'fields' => :'fields'
50
+ :'card_id' => :'cardId',
51
+ :'token_requestor' => :'tokenRequestor',
52
+ :'additionnal_data' => :'additionnalData'
66
53
  }
67
54
  end
68
55
 
69
56
  # Attribute type mapping.
70
57
  def self.swagger_types
71
58
  {
72
- :'name' => :'String',
73
- :'status' => :'String',
74
- :'is_whitelist' => :'BOOLEAN',
75
- :'mcc' => :'Array<Integer>',
76
- :'start_date' => :'String',
77
- :'fields' => :'Array<String>'
59
+ :'card_id' => :'Integer',
60
+ :'token_requestor' => :'String',
61
+ :'additionnal_data' => :'IssuerInitiatedDigitizationDatasAdditionnalData'
78
62
  }
79
63
  end
80
64
 
@@ -86,34 +70,16 @@ module TreezorClient
86
70
  # convert string to symbol for hash key
87
71
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
88
72
 
89
- if attributes.has_key?(:'name')
90
- self.name = attributes[:'name']
91
- end
92
-
93
- if attributes.has_key?(:'status')
94
- self.status = attributes[:'status']
95
- end
96
-
97
- if attributes.has_key?(:'isWhitelist')
98
- self.is_whitelist = attributes[:'isWhitelist']
99
- else
100
- self.is_whitelist = true
101
- end
102
-
103
- if attributes.has_key?(:'mcc')
104
- if (value = attributes[:'mcc']).is_a?(Array)
105
- self.mcc = value
106
- end
73
+ if attributes.has_key?(:'cardId')
74
+ self.card_id = attributes[:'cardId']
107
75
  end
108
76
 
109
- if attributes.has_key?(:'startDate')
110
- self.start_date = attributes[:'startDate']
77
+ if attributes.has_key?(:'tokenRequestor')
78
+ self.token_requestor = attributes[:'tokenRequestor']
111
79
  end
112
80
 
113
- if attributes.has_key?(:'fields')
114
- if (value = attributes[:'fields']).is_a?(Array)
115
- self.fields = value
116
- end
81
+ if attributes.has_key?(:'additionnalData')
82
+ self.additionnal_data = attributes[:'additionnalData']
117
83
  end
118
84
  end
119
85
 
@@ -121,25 +87,35 @@ module TreezorClient
121
87
  # @return Array for valid properties with the reasons
122
88
  def list_invalid_properties
123
89
  invalid_properties = Array.new
90
+ if @card_id.nil?
91
+ invalid_properties.push('invalid value for "card_id", card_id cannot be nil.')
92
+ end
93
+
94
+ if @token_requestor.nil?
95
+ invalid_properties.push('invalid value for "token_requestor", token_requestor cannot be nil.')
96
+ end
97
+
124
98
  invalid_properties
125
99
  end
126
100
 
127
101
  # Check to see if the all the properties in the model are valid
128
102
  # @return true if the model is valid
129
103
  def valid?
130
- status_validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
131
- return false unless status_validator.valid?(@status)
104
+ return false if @card_id.nil?
105
+ return false if @token_requestor.nil?
106
+ token_requestor_validator = EnumAttributeValidator.new('String', ['APPLE', 'SAMSUNG', 'GOOGLE'])
107
+ return false unless token_requestor_validator.valid?(@token_requestor)
132
108
  true
133
109
  end
134
110
 
135
111
  # Custom attribute writer method checking allowed values (enum).
136
- # @param [Object] status Object to be assigned
137
- def status=(status)
138
- validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
139
- unless validator.valid?(status)
140
- fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
112
+ # @param [Object] token_requestor Object to be assigned
113
+ def token_requestor=(token_requestor)
114
+ validator = EnumAttributeValidator.new('String', ['APPLE', 'SAMSUNG', 'GOOGLE'])
115
+ unless validator.valid?(token_requestor)
116
+ fail ArgumentError, 'invalid value for "token_requestor", must be one of #{validator.allowable_values}.'
141
117
  end
142
- @status = status
118
+ @token_requestor = token_requestor
143
119
  end
144
120
 
145
121
  # Checks equality by comparing each attribute.
@@ -147,12 +123,9 @@ module TreezorClient
147
123
  def ==(o)
148
124
  return true if self.equal?(o)
149
125
  self.class == o.class &&
150
- name == o.name &&
151
- status == o.status &&
152
- is_whitelist == o.is_whitelist &&
153
- mcc == o.mcc &&
154
- start_date == o.start_date &&
155
- fields == o.fields
126
+ card_id == o.card_id &&
127
+ token_requestor == o.token_requestor &&
128
+ additionnal_data == o.additionnal_data
156
129
  end
157
130
 
158
131
  # @see the `==` method
@@ -164,7 +137,7 @@ module TreezorClient
164
137
  # Calculates hash code according to all attributes.
165
138
  # @return [Fixnum] Hash code
166
139
  def hash
167
- [name, status, is_whitelist, mcc, start_date, fields].hash
140
+ [card_id, token_requestor, additionnal_data].hash
168
141
  end
169
142
 
170
143
  # Builds the object from hash
@@ -14,19 +14,19 @@ require 'date'
14
14
 
15
15
  module TreezorClient
16
16
  class Body7
17
- # Name of the Merchant ID group
17
+ # Name of the MCC restriction group
18
18
  attr_accessor :name
19
19
 
20
- # Status of the Merchant ID group
20
+ # Status of the MCC group
21
21
  attr_accessor :status
22
22
 
23
23
  # determines whether it will be a black or a white list
24
24
  attr_accessor :is_whitelist
25
25
 
26
- # Array of Merchant ID
27
- attr_accessor :merchants
26
+ # Array of MCC
27
+ attr_accessor :mcc
28
28
 
29
- # The date at which the Merchant ID restriction group will be take into account. Format YYYY-MM-DD HH:MM:SS
29
+ # The date at which the MCC restriction group will be take into account. Format YYYY-MM-DD HH:MM:SS
30
30
  attr_accessor :start_date
31
31
 
32
32
  class EnumAttributeValidator
@@ -57,7 +57,7 @@ module TreezorClient
57
57
  :'name' => :'name',
58
58
  :'status' => :'status',
59
59
  :'is_whitelist' => :'isWhitelist',
60
- :'merchants' => :'merchants',
60
+ :'mcc' => :'mcc',
61
61
  :'start_date' => :'startDate'
62
62
  }
63
63
  end
@@ -68,7 +68,7 @@ module TreezorClient
68
68
  :'name' => :'String',
69
69
  :'status' => :'String',
70
70
  :'is_whitelist' => :'BOOLEAN',
71
- :'merchants' => :'Array<String>',
71
+ :'mcc' => :'Array<Integer>',
72
72
  :'start_date' => :'String'
73
73
  }
74
74
  end
@@ -95,9 +95,9 @@ module TreezorClient
95
95
  self.is_whitelist = true
96
96
  end
97
97
 
98
- if attributes.has_key?(:'merchants')
99
- if (value = attributes[:'merchants']).is_a?(Array)
100
- self.merchants = value
98
+ if attributes.has_key?(:'mcc')
99
+ if (value = attributes[:'mcc']).is_a?(Array)
100
+ self.mcc = value
101
101
  end
102
102
  end
103
103
 
@@ -114,8 +114,8 @@ module TreezorClient
114
114
  invalid_properties.push('invalid value for "name", name cannot be nil.')
115
115
  end
116
116
 
117
- if @merchants.nil?
118
- invalid_properties.push('invalid value for "merchants", merchants cannot be nil.')
117
+ if @mcc.nil?
118
+ invalid_properties.push('invalid value for "mcc", mcc cannot be nil.')
119
119
  end
120
120
 
121
121
  invalid_properties
@@ -127,7 +127,7 @@ module TreezorClient
127
127
  return false if @name.nil?
128
128
  status_validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
129
129
  return false unless status_validator.valid?(@status)
130
- return false if @merchants.nil?
130
+ return false if @mcc.nil?
131
131
  true
132
132
  end
133
133
 
@@ -149,7 +149,7 @@ module TreezorClient
149
149
  name == o.name &&
150
150
  status == o.status &&
151
151
  is_whitelist == o.is_whitelist &&
152
- merchants == o.merchants &&
152
+ mcc == o.mcc &&
153
153
  start_date == o.start_date
154
154
  end
155
155
 
@@ -162,7 +162,7 @@ module TreezorClient
162
162
  # Calculates hash code according to all attributes.
163
163
  # @return [Fixnum] Hash code
164
164
  def hash
165
- [name, status, is_whitelist, merchants, start_date].hash
165
+ [name, status, is_whitelist, mcc, start_date].hash
166
166
  end
167
167
 
168
168
  # Builds the object from hash
@@ -14,21 +14,24 @@ require 'date'
14
14
 
15
15
  module TreezorClient
16
16
  class Body8
17
- # Name of the merchant ID restriction group
17
+ # Name of the MCC restriction group
18
18
  attr_accessor :name
19
19
 
20
- # Status of the merchant ID restriction group
20
+ # Status of the MCC group
21
21
  attr_accessor :status
22
22
 
23
23
  # determines whether it will be a black or a white list
24
24
  attr_accessor :is_whitelist
25
25
 
26
- # Array of merchant ID
27
- attr_accessor :merchants
26
+ # Array of MCC
27
+ attr_accessor :mcc
28
28
 
29
- # The date at which the merchant ID group will be take into account. Format YYYY-MM-DD HH:MM:SS
29
+ # The date at which the MCC restriction group will be take into account. Format YYYY-MM-DD HH:MM:SS
30
30
  attr_accessor :start_date
31
31
 
32
+ # List of the object's properties you want to pick up.
33
+ attr_accessor :fields
34
+
32
35
  class EnumAttributeValidator
33
36
  attr_reader :datatype
34
37
  attr_reader :allowable_values
@@ -57,8 +60,9 @@ module TreezorClient
57
60
  :'name' => :'name',
58
61
  :'status' => :'status',
59
62
  :'is_whitelist' => :'isWhitelist',
60
- :'merchants' => :'merchants',
61
- :'start_date' => :'startDate'
63
+ :'mcc' => :'mcc',
64
+ :'start_date' => :'startDate',
65
+ :'fields' => :'fields'
62
66
  }
63
67
  end
64
68
 
@@ -68,8 +72,9 @@ module TreezorClient
68
72
  :'name' => :'String',
69
73
  :'status' => :'String',
70
74
  :'is_whitelist' => :'BOOLEAN',
71
- :'merchants' => :'Array<String>',
72
- :'start_date' => :'String'
75
+ :'mcc' => :'Array<Integer>',
76
+ :'start_date' => :'String',
77
+ :'fields' => :'Array<String>'
73
78
  }
74
79
  end
75
80
 
@@ -95,15 +100,21 @@ module TreezorClient
95
100
  self.is_whitelist = true
96
101
  end
97
102
 
98
- if attributes.has_key?(:'merchants')
99
- if (value = attributes[:'merchants']).is_a?(Array)
100
- self.merchants = value
103
+ if attributes.has_key?(:'mcc')
104
+ if (value = attributes[:'mcc']).is_a?(Array)
105
+ self.mcc = value
101
106
  end
102
107
  end
103
108
 
104
109
  if attributes.has_key?(:'startDate')
105
110
  self.start_date = attributes[:'startDate']
106
111
  end
112
+
113
+ if attributes.has_key?(:'fields')
114
+ if (value = attributes[:'fields']).is_a?(Array)
115
+ self.fields = value
116
+ end
117
+ end
107
118
  end
108
119
 
109
120
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -139,8 +150,9 @@ module TreezorClient
139
150
  name == o.name &&
140
151
  status == o.status &&
141
152
  is_whitelist == o.is_whitelist &&
142
- merchants == o.merchants &&
143
- start_date == o.start_date
153
+ mcc == o.mcc &&
154
+ start_date == o.start_date &&
155
+ fields == o.fields
144
156
  end
145
157
 
146
158
  # @see the `==` method
@@ -152,7 +164,7 @@ module TreezorClient
152
164
  # Calculates hash code according to all attributes.
153
165
  # @return [Fixnum] Hash code
154
166
  def hash
155
- [name, status, is_whitelist, merchants, start_date].hash
167
+ [name, status, is_whitelist, mcc, start_date, fields].hash
156
168
  end
157
169
 
158
170
  # Builds the object from hash
@@ -14,19 +14,19 @@ require 'date'
14
14
 
15
15
  module TreezorClient
16
16
  class Body9
17
- # Name of the country restriction group
17
+ # Name of the Merchant ID group
18
18
  attr_accessor :name
19
19
 
20
- # Status of the country group
20
+ # Status of the Merchant ID group
21
21
  attr_accessor :status
22
22
 
23
23
  # determines whether it will be a black or a white list
24
24
  attr_accessor :is_whitelist
25
25
 
26
- # Array of countries
27
- attr_accessor :countries
26
+ # Array of Merchant ID
27
+ attr_accessor :merchants
28
28
 
29
- # The date at which the country restriction group will be take into account. Format YYYY-MM-DD HH:MM:SS
29
+ # The date at which the Merchant ID restriction group will be take into account. Format YYYY-MM-DD HH:MM:SS
30
30
  attr_accessor :start_date
31
31
 
32
32
  class EnumAttributeValidator
@@ -57,7 +57,7 @@ module TreezorClient
57
57
  :'name' => :'name',
58
58
  :'status' => :'status',
59
59
  :'is_whitelist' => :'isWhitelist',
60
- :'countries' => :'countries',
60
+ :'merchants' => :'merchants',
61
61
  :'start_date' => :'startDate'
62
62
  }
63
63
  end
@@ -68,7 +68,7 @@ module TreezorClient
68
68
  :'name' => :'String',
69
69
  :'status' => :'String',
70
70
  :'is_whitelist' => :'BOOLEAN',
71
- :'countries' => :'Array<Integer>',
71
+ :'merchants' => :'Array<String>',
72
72
  :'start_date' => :'String'
73
73
  }
74
74
  end
@@ -95,9 +95,9 @@ module TreezorClient
95
95
  self.is_whitelist = true
96
96
  end
97
97
 
98
- if attributes.has_key?(:'countries')
99
- if (value = attributes[:'countries']).is_a?(Array)
100
- self.countries = value
98
+ if attributes.has_key?(:'merchants')
99
+ if (value = attributes[:'merchants']).is_a?(Array)
100
+ self.merchants = value
101
101
  end
102
102
  end
103
103
 
@@ -114,8 +114,8 @@ module TreezorClient
114
114
  invalid_properties.push('invalid value for "name", name cannot be nil.')
115
115
  end
116
116
 
117
- if @countries.nil?
118
- invalid_properties.push('invalid value for "countries", countries cannot be nil.')
117
+ if @merchants.nil?
118
+ invalid_properties.push('invalid value for "merchants", merchants cannot be nil.')
119
119
  end
120
120
 
121
121
  invalid_properties
@@ -127,7 +127,7 @@ module TreezorClient
127
127
  return false if @name.nil?
128
128
  status_validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
129
129
  return false unless status_validator.valid?(@status)
130
- return false if @countries.nil?
130
+ return false if @merchants.nil?
131
131
  true
132
132
  end
133
133
 
@@ -149,7 +149,7 @@ module TreezorClient
149
149
  name == o.name &&
150
150
  status == o.status &&
151
151
  is_whitelist == o.is_whitelist &&
152
- countries == o.countries &&
152
+ merchants == o.merchants &&
153
153
  start_date == o.start_date
154
154
  end
155
155
 
@@ -162,7 +162,7 @@ module TreezorClient
162
162
  # Calculates hash code according to all attributes.
163
163
  # @return [Fixnum] Hash code
164
164
  def hash
165
- [name, status, is_whitelist, countries, start_date].hash
165
+ [name, status, is_whitelist, merchants, start_date].hash
166
166
  end
167
167
 
168
168
  # Builds the object from hash
@@ -14,19 +14,19 @@ require 'date'
14
14
 
15
15
  module TreezorClient
16
16
  class InlineResponse200
17
- attr_accessor :tavs
17
+ attr_accessor :balances
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
- :'tavs' => :'tavs'
22
+ :'balances' => :'balances'
23
23
  }
24
24
  end
25
25
 
26
26
  # Attribute type mapping.
27
27
  def self.swagger_types
28
28
  {
29
- :'tavs' => :'Array<Tav>'
29
+ :'balances' => :'Array<Balance>'
30
30
  }
31
31
  end
32
32
 
@@ -38,9 +38,9 @@ module TreezorClient
38
38
  # convert string to symbol for hash key
39
39
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
40
 
41
- if attributes.has_key?(:'tavs')
42
- if (value = attributes[:'tavs']).is_a?(Array)
43
- self.tavs = value
41
+ if attributes.has_key?(:'balances')
42
+ if (value = attributes[:'balances']).is_a?(Array)
43
+ self.balances = value
44
44
  end
45
45
  end
46
46
  end
@@ -63,7 +63,7 @@ module TreezorClient
63
63
  def ==(o)
64
64
  return true if self.equal?(o)
65
65
  self.class == o.class &&
66
- tavs == o.tavs
66
+ balances == o.balances
67
67
  end
68
68
 
69
69
  # @see the `==` method
@@ -75,7 +75,7 @@ module TreezorClient
75
75
  # Calculates hash code according to all attributes.
76
76
  # @return [Fixnum] Hash code
77
77
  def hash
78
- [tavs].hash
78
+ [balances].hash
79
79
  end
80
80
 
81
81
  # Builds the object from hash
@@ -14,19 +14,19 @@ require 'date'
14
14
 
15
15
  module TreezorClient
16
16
  class InlineResponse2001
17
- attr_accessor :beneficiaries
17
+ attr_accessor :bankaccounts
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
- :'beneficiaries' => :'beneficiaries'
22
+ :'bankaccounts' => :'bankaccounts'
23
23
  }
24
24
  end
25
25
 
26
26
  # Attribute type mapping.
27
27
  def self.swagger_types
28
28
  {
29
- :'beneficiaries' => :'Array<Beneficiary>'
29
+ :'bankaccounts' => :'Array<Bankaccount>'
30
30
  }
31
31
  end
32
32
 
@@ -38,9 +38,9 @@ module TreezorClient
38
38
  # convert string to symbol for hash key
39
39
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
40
 
41
- if attributes.has_key?(:'beneficiaries')
42
- if (value = attributes[:'beneficiaries']).is_a?(Array)
43
- self.beneficiaries = value
41
+ if attributes.has_key?(:'bankaccounts')
42
+ if (value = attributes[:'bankaccounts']).is_a?(Array)
43
+ self.bankaccounts = value
44
44
  end
45
45
  end
46
46
  end
@@ -63,7 +63,7 @@ module TreezorClient
63
63
  def ==(o)
64
64
  return true if self.equal?(o)
65
65
  self.class == o.class &&
66
- beneficiaries == o.beneficiaries
66
+ bankaccounts == o.bankaccounts
67
67
  end
68
68
 
69
69
  # @see the `==` method
@@ -75,7 +75,7 @@ module TreezorClient
75
75
  # Calculates hash code according to all attributes.
76
76
  # @return [Fixnum] Hash code
77
77
  def hash
78
- [beneficiaries].hash
78
+ [bankaccounts].hash
79
79
  end
80
80
 
81
81
  # Builds the object from hash
@@ -180,9 +180,9 @@ module TreezorClient
180
180
  # Attribute type mapping.
181
181
  def self.swagger_types
182
182
  {
183
- :'cardtransaction_id' => :'Integer',
184
- :'card_id' => :'Integer',
185
- :'wallet_id' => :'Integer',
183
+ :'cardtransaction_id' => :'String',
184
+ :'card_id' => :'String',
185
+ :'wallet_id' => :'String',
186
186
  :'wallet_currency' => :'String',
187
187
  :'merchant_id' => :'String',
188
188
  :'merchant_name' => :'String',
@@ -14,19 +14,19 @@ require 'date'
14
14
 
15
15
  module TreezorClient
16
16
  class InlineResponse20011
17
- attr_accessor :cardtransactions
17
+ attr_accessor :bankaccounts
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
- :'cardtransactions' => :'cardtransactions'
22
+ :'bankaccounts' => :'bankaccounts'
23
23
  }
24
24
  end
25
25
 
26
26
  # Attribute type mapping.
27
27
  def self.swagger_types
28
28
  {
29
- :'cardtransactions' => :'Array<InlineResponse20011Cardtransactions>'
29
+ :'bankaccounts' => :'Array<CountryRestrictionGroup>'
30
30
  }
31
31
  end
32
32
 
@@ -38,9 +38,9 @@ module TreezorClient
38
38
  # convert string to symbol for hash key
39
39
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
40
 
41
- if attributes.has_key?(:'cardtransactions')
42
- if (value = attributes[:'cardtransactions']).is_a?(Array)
43
- self.cardtransactions = value
41
+ if attributes.has_key?(:'bankaccounts')
42
+ if (value = attributes[:'bankaccounts']).is_a?(Array)
43
+ self.bankaccounts = value
44
44
  end
45
45
  end
46
46
  end
@@ -63,7 +63,7 @@ module TreezorClient
63
63
  def ==(o)
64
64
  return true if self.equal?(o)
65
65
  self.class == o.class &&
66
- cardtransactions == o.cardtransactions
66
+ bankaccounts == o.bankaccounts
67
67
  end
68
68
 
69
69
  # @see the `==` method
@@ -75,7 +75,7 @@ module TreezorClient
75
75
  # Calculates hash code according to all attributes.
76
76
  # @return [Fixnum] Hash code
77
77
  def hash
78
- [cardtransactions].hash
78
+ [bankaccounts].hash
79
79
  end
80
80
 
81
81
  # Builds the object from hash
@@ -14,19 +14,19 @@ require 'date'
14
14
 
15
15
  module TreezorClient
16
16
  class InlineResponse20013
17
- attr_accessor :mandates
17
+ attr_accessor :issuer_initiated_digitization_datas
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
- :'mandates' => :'mandates'
22
+ :'issuer_initiated_digitization_datas' => :'issuerInitiatedDigitizationDatas'
23
23
  }
24
24
  end
25
25
 
26
26
  # Attribute type mapping.
27
27
  def self.swagger_types
28
28
  {
29
- :'mandates' => :'Array<Mandate>'
29
+ :'issuer_initiated_digitization_datas' => :'Array<IssuerInitiatedDigitizationData>'
30
30
  }
31
31
  end
32
32
 
@@ -38,9 +38,9 @@ module TreezorClient
38
38
  # convert string to symbol for hash key
39
39
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
40
 
41
- if attributes.has_key?(:'mandates')
42
- if (value = attributes[:'mandates']).is_a?(Array)
43
- self.mandates = value
41
+ if attributes.has_key?(:'issuerInitiatedDigitizationDatas')
42
+ if (value = attributes[:'issuerInitiatedDigitizationDatas']).is_a?(Array)
43
+ self.issuer_initiated_digitization_datas = value
44
44
  end
45
45
  end
46
46
  end
@@ -63,7 +63,7 @@ module TreezorClient
63
63
  def ==(o)
64
64
  return true if self.equal?(o)
65
65
  self.class == o.class &&
66
- mandates == o.mandates
66
+ issuer_initiated_digitization_datas == o.issuer_initiated_digitization_datas
67
67
  end
68
68
 
69
69
  # @see the `==` method
@@ -75,7 +75,7 @@ module TreezorClient
75
75
  # Calculates hash code according to all attributes.
76
76
  # @return [Fixnum] Hash code
77
77
  def hash
78
- [mandates].hash
78
+ [issuer_initiated_digitization_datas].hash
79
79
  end
80
80
 
81
81
  # Builds the object from hash