vrpayment-ruby-sdk 6.4.0 → 7.0.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.
Files changed (168) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +38 -31
  3. data/README.md +354 -129
  4. data/lib/vrpayment-ruby-sdk/api_client.rb +1 -1
  5. data/lib/vrpayment-ruby-sdk/models/abstract_role_update.rb +13 -1
  6. data/lib/vrpayment-ruby-sdk/models/abstract_walleejoin_partnership.rb +330 -0
  7. data/lib/vrpayment-ruby-sdk/models/{payment_terminal_preparing.rb → account_create_with_owner.rb} +63 -34
  8. data/lib/vrpayment-ruby-sdk/models/analytics_query_execution_request.rb +279 -0
  9. data/lib/vrpayment-ruby-sdk/models/{express_checkout_shipping_method_change_request.rb → analytics_query_execution_response.rb} +11 -11
  10. data/lib/vrpayment-ruby-sdk/models/authenticated_card_data_create.rb +30 -1
  11. data/lib/vrpayment-ruby-sdk/models/bank_payment_type.rb +50 -0
  12. data/lib/vrpayment-ruby-sdk/models/{express_checkout_shipping_address_change_request.rb → boarding_strategy_information_request.rb} +22 -14
  13. data/lib/vrpayment-ruby-sdk/models/{bogus_express_checkout_payment_data.rb → charge_attempt_lookup_result.rb} +16 -18
  14. data/lib/vrpayment-ruby-sdk/models/charge_attempt_projection.rb +560 -0
  15. data/lib/vrpayment-ruby-sdk/models/dunning_case_level.rb +403 -0
  16. data/lib/vrpayment-ruby-sdk/models/{user_account_role_list_response.rb → dunning_case_level_list_response.rb} +4 -4
  17. data/lib/vrpayment-ruby-sdk/models/dunning_case_level_search_response.rb +263 -0
  18. data/lib/vrpayment-ruby-sdk/models/dunning_case_level_state.rb +53 -0
  19. data/lib/vrpayment-ruby-sdk/models/{express_checkout_session_state.rb → facade_user_friendly_query_status_model.rb} +6 -7
  20. data/lib/vrpayment-ruby-sdk/models/invoice_processor.rb +51 -0
  21. data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record.rb +633 -0
  22. data/lib/vrpayment-ruby-sdk/models/{user_account_role.rb → invoice_reconciliation_record_invoice_link.rb} +40 -43
  23. data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_invoice_link_list_response.rb +253 -0
  24. data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_invoice_link_search_response.rb +263 -0
  25. data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_list_response.rb +253 -0
  26. data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_rejection_status.rb +51 -0
  27. data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_search_response.rb +263 -0
  28. data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_state.rb +53 -0
  29. data/lib/vrpayment-ruby-sdk/models/{express_checkout_wallet_type.rb → invoice_reconciliation_record_type.rb} +3 -3
  30. data/lib/vrpayment-ruby-sdk/models/invoice_reimbursement.rb +463 -0
  31. data/lib/vrpayment-ruby-sdk/models/{express_checkout_create_response.rb → invoice_reimbursement_list_response.rb} +27 -22
  32. data/lib/vrpayment-ruby-sdk/models/invoice_reimbursement_search_response.rb +263 -0
  33. data/lib/vrpayment-ruby-sdk/models/invoice_reimbursement_state.rb +54 -0
  34. data/lib/vrpayment-ruby-sdk/models/{bogus_express_checkout_approval_request.rb → payment_facilitator_pricing_profile_dto.rb} +19 -10
  35. data/lib/vrpayment-ruby-sdk/models/payment_facilitator_pricing_profile_state.rb +53 -0
  36. data/lib/vrpayment-ruby-sdk/models/{express_checkout_session.rb → payment_initiation_advice_file.rb} +57 -72
  37. data/lib/vrpayment-ruby-sdk/models/payment_initiation_advice_file_state.rb +55 -0
  38. data/lib/vrpayment-ruby-sdk/models/payment_terminal.rb +37 -1
  39. data/lib/vrpayment-ruby-sdk/models/payment_terminal_activation_status.rb +301 -0
  40. data/lib/vrpayment-ruby-sdk/models/payment_terminal_activation_status_detail_search_response.rb +263 -0
  41. data/lib/vrpayment-ruby-sdk/models/payment_terminal_address_create.rb +511 -0
  42. data/lib/vrpayment-ruby-sdk/models/{payment_terminal_create.rb → payment_terminal_creation_request.rb} +88 -62
  43. data/lib/vrpayment-ruby-sdk/models/payment_terminal_location.rb +1 -0
  44. data/lib/vrpayment-ruby-sdk/models/payment_terminal_location_crud_model.rb +398 -0
  45. data/lib/vrpayment-ruby-sdk/models/payment_terminal_location_crud_model_rest_api_create.rb +359 -0
  46. data/lib/vrpayment-ruby-sdk/models/payment_terminal_location_list_response.rb +253 -0
  47. data/lib/vrpayment-ruby-sdk/models/payment_terminal_location_version_state.rb +2 -1
  48. data/lib/vrpayment-ruby-sdk/models/pricing_history_dto.rb +266 -0
  49. data/lib/vrpayment-ruby-sdk/models/product_metered_fee.rb +11 -1
  50. data/lib/vrpayment-ruby-sdk/models/product_metered_fee_update.rb +11 -1
  51. data/lib/vrpayment-ruby-sdk/models/{express_checkout_approval_response.rb → rest_member.rb} +36 -22
  52. data/lib/vrpayment-ruby-sdk/models/{abstract_payment_terminal_update.rb → result_portion_model.rb} +43 -30
  53. data/lib/vrpayment-ruby-sdk/models/role.rb +13 -1
  54. data/lib/vrpayment-ruby-sdk/models/role_create.rb +13 -1
  55. data/lib/vrpayment-ruby-sdk/models/{express_checkout_shipping_method_change_response.rb → role_ref.rb} +18 -18
  56. data/lib/vrpayment-ruby-sdk/models/role_update.rb +13 -1
  57. data/lib/vrpayment-ruby-sdk/models/scope.rb +13 -1
  58. data/lib/vrpayment-ruby-sdk/models/setter.rb +618 -0
  59. data/lib/vrpayment-ruby-sdk/models/{user_space_role_list_response.rb → state_list_response.rb} +4 -4
  60. data/lib/vrpayment-ruby-sdk/models/{express_checkout_shipping_option.rb → store_trial_subscription_request.rb} +38 -56
  61. data/lib/vrpayment-ruby-sdk/models/store_trial_subscription_request_setter.rb +307 -0
  62. data/lib/vrpayment-ruby-sdk/models/submitted_analytics_query_execution.rb +342 -0
  63. data/lib/vrpayment-ruby-sdk/models/{express_checkout_session_create.rb → subscription_component_group_configuration_request.rb} +23 -37
  64. data/lib/vrpayment-ruby-sdk/models/subscription_component_group_configuration_request_setter.rb +249 -0
  65. data/lib/vrpayment-ruby-sdk/models/subscription_product_dto.rb +239 -0
  66. data/lib/vrpayment-ruby-sdk/models/tokenized_card_data_create.rb +30 -1
  67. data/lib/vrpayment-ruby-sdk/models/transaction_overview.rb +1144 -0
  68. data/lib/vrpayment-ruby-sdk/models/transaction_projection.rb +1135 -0
  69. data/lib/vrpayment-ruby-sdk/models/walleejoin_admin_partner_configuration_request_dto.rb +360 -0
  70. data/lib/vrpayment-ruby-sdk/models/walleejoin_admin_partner_configuration_response_dto.rb +351 -0
  71. data/lib/vrpayment-ruby-sdk/models/walleejoin_admin_pricing_type.rb +51 -0
  72. data/lib/vrpayment-ruby-sdk/models/walleejoin_create_partnership_api_request_dto.rb +266 -0
  73. data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership.rb +357 -0
  74. data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_create.rb +337 -0
  75. data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_response_dto.rb +342 -0
  76. data/lib/vrpayment-ruby-sdk/models/{express_checkout_shipping_address_change_response.rb → walleejoin_partnership_response_dto_list_response.rb} +30 -18
  77. data/lib/vrpayment-ruby-sdk/models/{user_space_role.rb → walleejoin_partnership_response_dto_search_response.rb} +34 -42
  78. data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_state.rb +51 -0
  79. data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_type.rb +50 -0
  80. data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_update.rb +364 -0
  81. data/lib/vrpayment-ruby-sdk/models/wallet_type.rb +40 -1
  82. data/lib/vrpayment-ruby-sdk/models/web_ui_account_theme.rb +230 -0
  83. data/lib/vrpayment-ruby-sdk/service/accounts_service.rb +16 -9
  84. data/lib/vrpayment-ruby-sdk/service/analytics_queries_service.rb +613 -0
  85. data/lib/vrpayment-ruby-sdk/service/bank_accounts_service.rb +3 -3
  86. data/lib/vrpayment-ruby-sdk/service/bank_transactions_service.rb +3 -3
  87. data/lib/vrpayment-ruby-sdk/service/boarding_subscription_strategy_service.rb +181 -0
  88. data/lib/vrpayment-ruby-sdk/service/charge_attempts_service.rb +3 -3
  89. data/lib/vrpayment-ruby-sdk/service/charge_bank_transactions_service.rb +3 -3
  90. data/lib/vrpayment-ruby-sdk/service/charge_flow_levels_service.rb +4 -4
  91. data/lib/vrpayment-ruby-sdk/service/charge_flows_level_payment_links_service.rb +3 -3
  92. data/lib/vrpayment-ruby-sdk/service/charge_flows_service.rb +3 -3
  93. data/lib/vrpayment-ruby-sdk/service/consumed_resources_service.rb +1 -1
  94. data/lib/vrpayment-ruby-sdk/service/countries_service.rb +15 -6
  95. data/lib/vrpayment-ruby-sdk/service/currency_bank_accounts_service.rb +3 -3
  96. data/lib/vrpayment-ruby-sdk/service/customer_addresses_service.rb +7 -7
  97. data/lib/vrpayment-ruby-sdk/service/customer_comments_service.rb +8 -8
  98. data/lib/vrpayment-ruby-sdk/service/customers_service.rb +11 -11
  99. data/lib/vrpayment-ruby-sdk/service/delivery_indications_service.rb +5 -5
  100. data/lib/vrpayment-ruby-sdk/service/document_templates_service.rb +3 -3
  101. data/lib/vrpayment-ruby-sdk/service/dunning_case_levels_service.rb +291 -0
  102. data/lib/vrpayment-ruby-sdk/service/dunning_cases_service.rb +5 -5
  103. data/lib/vrpayment-ruby-sdk/service/dunning_flow_levels_service.rb +3 -3
  104. data/lib/vrpayment-ruby-sdk/service/dunning_flows_service.rb +3 -3
  105. data/lib/vrpayment-ruby-sdk/service/external_transfer_bank_transactions_service.rb +3 -3
  106. data/lib/vrpayment-ruby-sdk/service/internal_transfer_bank_transactions_service.rb +3 -3
  107. data/lib/vrpayment-ruby-sdk/service/invoice_reconciliation_record_invoice_links_service.rb +453 -0
  108. data/lib/vrpayment-ruby-sdk/service/invoice_reconciliation_records_service.rb +433 -0
  109. data/lib/vrpayment-ruby-sdk/service/invoice_reimbursements_service.rb +450 -0
  110. data/lib/vrpayment-ruby-sdk/service/join_admin_partner_configuration_service.rb +306 -0
  111. data/lib/vrpayment-ruby-sdk/service/join_partnership_service.rb +586 -0
  112. data/lib/vrpayment-ruby-sdk/service/manual_tasks_service.rb +5 -5
  113. data/lib/vrpayment-ruby-sdk/service/members_service.rb +215 -0
  114. data/lib/vrpayment-ruby-sdk/service/payment_connector_configurations_service.rb +6 -6
  115. data/lib/vrpayment-ruby-sdk/service/payment_links_service.rb +6 -6
  116. data/lib/vrpayment-ruby-sdk/service/payment_method_configurations_service.rb +6 -6
  117. data/lib/vrpayment-ruby-sdk/service/payment_processor_configurations_service.rb +85 -6
  118. data/lib/vrpayment-ruby-sdk/service/payment_terminal_transaction_summaries_service.rb +4 -4
  119. data/lib/vrpayment-ruby-sdk/service/payment_terminals_service.rb +475 -22
  120. data/lib/vrpayment-ruby-sdk/service/payment_web_apps_service.rb +11 -11
  121. data/lib/vrpayment-ruby-sdk/service/refund_bank_transactions_service.rb +3 -3
  122. data/lib/vrpayment-ruby-sdk/service/refund_comments_service.rb +8 -8
  123. data/lib/vrpayment-ruby-sdk/service/refund_recovery_bank_transactions_service.rb +3 -3
  124. data/lib/vrpayment-ruby-sdk/service/refunds_service.rb +7 -7
  125. data/lib/vrpayment-ruby-sdk/service/spaces_service.rb +10 -3
  126. data/lib/vrpayment-ruby-sdk/service/subscribers_service.rb +6 -6
  127. data/lib/vrpayment-ruby-sdk/service/subscription_affiliates_service.rb +6 -6
  128. data/lib/vrpayment-ruby-sdk/service/subscription_charges_service.rb +5 -5
  129. data/lib/vrpayment-ruby-sdk/service/subscription_ledger_entries_service.rb +4 -4
  130. data/lib/vrpayment-ruby-sdk/service/subscription_metric_usage_reports_service.rb +4 -4
  131. data/lib/vrpayment-ruby-sdk/service/subscription_metrics_service.rb +6 -6
  132. data/lib/vrpayment-ruby-sdk/service/subscription_period_bills_service.rb +4 -4
  133. data/lib/vrpayment-ruby-sdk/service/subscription_product_component_groups_service.rb +6 -6
  134. data/lib/vrpayment-ruby-sdk/service/subscription_product_components_service.rb +6 -6
  135. data/lib/vrpayment-ruby-sdk/service/subscription_product_metered_fee_tiers_service.rb +6 -6
  136. data/lib/vrpayment-ruby-sdk/service/subscription_product_metered_fees_service.rb +6 -6
  137. data/lib/vrpayment-ruby-sdk/service/subscription_product_period_fees_service.rb +6 -6
  138. data/lib/vrpayment-ruby-sdk/service/subscription_product_retirements_service.rb +3 -3
  139. data/lib/vrpayment-ruby-sdk/service/subscription_product_setup_fees_service.rb +6 -6
  140. data/lib/vrpayment-ruby-sdk/service/subscription_product_version_retirements_service.rb +3 -3
  141. data/lib/vrpayment-ruby-sdk/service/subscription_product_versions_service.rb +7 -7
  142. data/lib/vrpayment-ruby-sdk/service/subscription_products_service.rb +6 -6
  143. data/lib/vrpayment-ruby-sdk/service/subscription_suspensions_service.rb +3 -3
  144. data/lib/vrpayment-ruby-sdk/service/subscription_versions_service.rb +3 -3
  145. data/lib/vrpayment-ruby-sdk/service/subscriptions_service.rb +13 -13
  146. data/lib/vrpayment-ruby-sdk/service/terminal_locations_service.rb +276 -0
  147. data/lib/vrpayment-ruby-sdk/service/token_versions_service.rb +3 -3
  148. data/lib/vrpayment-ruby-sdk/service/tokens_service.rb +8 -8
  149. data/lib/vrpayment-ruby-sdk/service/transaction_client_platforms_service.rb +3 -3
  150. data/lib/vrpayment-ruby-sdk/service/transaction_comments_service.rb +8 -8
  151. data/lib/vrpayment-ruby-sdk/service/transaction_completions_service.rb +3 -3
  152. data/lib/vrpayment-ruby-sdk/service/transaction_invoice_comments_service.rb +8 -8
  153. data/lib/vrpayment-ruby-sdk/service/transaction_invoices_service.rb +86 -8
  154. data/lib/vrpayment-ruby-sdk/service/transaction_line_item_versions_service.rb +4 -4
  155. data/lib/vrpayment-ruby-sdk/service/transaction_voids_service.rb +3 -3
  156. data/lib/vrpayment-ruby-sdk/service/transactions_service.rb +179 -37
  157. data/lib/vrpayment-ruby-sdk/service/web_apps_service.rb +2 -2
  158. data/lib/vrpayment-ruby-sdk/service/web_ui_account_theme_service.rb +245 -0
  159. data/lib/vrpayment-ruby-sdk/service/webhook_listeners_service.rb +9 -9
  160. data/lib/vrpayment-ruby-sdk/service/webhook_urls_service.rb +9 -9
  161. data/lib/vrpayment-ruby-sdk/version.rb +1 -1
  162. data/lib/vrpayment-ruby-sdk.rb +76 -25
  163. metadata +78 -27
  164. data/lib/vrpayment-ruby-sdk/service/application_users_roles_service.rb +0 -478
  165. data/lib/vrpayment-ruby-sdk/service/bogus_express_checkout_service.rb +0 -114
  166. data/lib/vrpayment-ruby-sdk/service/express_checkout_service.rb +0 -269
  167. data/lib/vrpayment-ruby-sdk/service/human_users_roles_service.rb +0 -478
  168. data/lib/vrpayment-ruby-sdk/service/single_sign_on_users_roles_service.rb +0 -478
@@ -0,0 +1,266 @@
1
+ =begin
2
+ # VR Payment Ruby SDK
3
+ #
4
+ # This library allows to interact with the VR Payment payment service.
5
+ #
6
+ # Copyright owner: Wallee AG
7
+ # Website: https://www.vr-payment.de
8
+ # Developer email: ecosystem-team@wallee.com
9
+ #
10
+ # Licensed under the Apache License, Version 2.0 (the "License");
11
+ # you may not use this file except in compliance with the License.
12
+ # You may obtain a copy of the License at
13
+ #
14
+ # http://www.apache.org/licenses/LICENSE-2.0
15
+ #
16
+ # Unless required by applicable law or agreed to in writing, software
17
+ # distributed under the License is distributed on an "AS IS" BASIS,
18
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ # See the License for the specific language governing permissions and
20
+ # limitations under the License.
21
+ =end
22
+
23
+ require 'date'
24
+ require 'time'
25
+
26
+ module VrpaymentRubySdk
27
+ class PricingHistoryDto
28
+ attr_accessor :account_id
29
+
30
+ attr_accessor :revenue_share
31
+
32
+ attr_accessor :one_off_referral
33
+
34
+ attr_accessor :pricing_profile_buy_rate_id
35
+
36
+ attr_accessor :pricing_profile_sell_rate_id
37
+
38
+ # Attribute mapping from ruby-style variable name to JSON key.
39
+ def self.attribute_map
40
+ {
41
+ :'account_id' => :'accountId',
42
+ :'revenue_share' => :'revenueShare',
43
+ :'one_off_referral' => :'oneOffReferral',
44
+ :'pricing_profile_buy_rate_id' => :'pricingProfileBuyRateId',
45
+ :'pricing_profile_sell_rate_id' => :'pricingProfileSellRateId'
46
+ }
47
+ end
48
+
49
+ # Returns attribute mapping this model knows about
50
+ def self.acceptable_attribute_map
51
+ attribute_map
52
+ end
53
+
54
+ # Returns all the JSON keys this model knows about
55
+ def self.acceptable_attributes
56
+ acceptable_attribute_map.values
57
+ end
58
+
59
+ # Attribute type mapping.
60
+ def self.openapi_types
61
+ {
62
+ :'account_id' => :'Integer',
63
+ :'revenue_share' => :'Float',
64
+ :'one_off_referral' => :'Integer',
65
+ :'pricing_profile_buy_rate_id' => :'Integer',
66
+ :'pricing_profile_sell_rate_id' => :'Integer'
67
+ }
68
+ end
69
+
70
+ # List of attributes with nullable: true
71
+ def self.openapi_nullable
72
+ Set.new([
73
+ ])
74
+ end
75
+
76
+ # Initializes the object
77
+ # @param [Hash] attributes Model attributes in the form of hash
78
+ def initialize(attributes = {})
79
+ if (!attributes.is_a?(Hash))
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::PricingHistoryDto` initialize method"
81
+ end
82
+
83
+ # check to see if the attribute exists and convert string to symbol for hash key
84
+ acceptable_attribute_map = self.class.acceptable_attribute_map
85
+ attributes = attributes.each_with_object({}) { |(k, v), h|
86
+ if (!acceptable_attribute_map.key?(k.to_sym))
87
+ fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::PricingHistoryDto`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
88
+ end
89
+ h[k.to_sym] = v
90
+ }
91
+
92
+ if attributes.key?(:'account_id')
93
+ self.account_id = attributes[:'account_id']
94
+ end
95
+
96
+ if attributes.key?(:'revenue_share')
97
+ self.revenue_share = attributes[:'revenue_share']
98
+ end
99
+
100
+ if attributes.key?(:'one_off_referral')
101
+ self.one_off_referral = attributes[:'one_off_referral']
102
+ end
103
+
104
+ if attributes.key?(:'pricing_profile_buy_rate_id')
105
+ self.pricing_profile_buy_rate_id = attributes[:'pricing_profile_buy_rate_id']
106
+ end
107
+
108
+ if attributes.key?(:'pricing_profile_sell_rate_id')
109
+ self.pricing_profile_sell_rate_id = attributes[:'pricing_profile_sell_rate_id']
110
+ end
111
+ end
112
+
113
+ # Show invalid properties with the reasons. Usually used together with valid?
114
+ # @return Array for valid properties with the reasons
115
+ def list_invalid_properties
116
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
117
+ invalid_properties = Array.new
118
+ invalid_properties
119
+ end
120
+
121
+ # Check to see if the all the properties in the model are valid
122
+ # @return true if the model is valid
123
+ def valid?
124
+ warn '[DEPRECATED] the `valid?` method is obsolete'
125
+ true
126
+ end
127
+
128
+ # Checks equality by comparing each attribute.
129
+ # @param [Object] Object to be compared
130
+ def ==(o)
131
+ return true if self.equal?(o)
132
+ self.class == o.class &&
133
+ account_id == o.account_id &&
134
+ revenue_share == o.revenue_share &&
135
+ one_off_referral == o.one_off_referral &&
136
+ pricing_profile_buy_rate_id == o.pricing_profile_buy_rate_id &&
137
+ pricing_profile_sell_rate_id == o.pricing_profile_sell_rate_id
138
+ end
139
+
140
+ # @see the `==` method
141
+ # @param [Object] Object to be compared
142
+ def eql?(o)
143
+ self == o
144
+ end
145
+
146
+ # Calculates hash code according to all attributes.
147
+ # @return [Integer] Hash code
148
+ def hash
149
+ [account_id, revenue_share, one_off_referral, pricing_profile_buy_rate_id, pricing_profile_sell_rate_id].hash
150
+ end
151
+
152
+ # Builds the object from hash
153
+ # @param [Hash] attributes Model attributes in the form of hash
154
+ # @return [Object] Returns the model itself
155
+ def self.build_from_hash(attributes)
156
+ return nil unless attributes.is_a?(Hash)
157
+ attributes = attributes.transform_keys(&:to_sym)
158
+ transformed_hash = {}
159
+ openapi_types.each_pair do |key, type|
160
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
161
+ transformed_hash["#{key}"] = nil
162
+ elsif type =~ /\AArray<(.*)>/i
163
+ # check to ensure the input is an array given that the attribute
164
+ # is documented as an array but the input is not
165
+ if attributes[attribute_map[key]].is_a?(Array)
166
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
167
+ end
168
+ elsif !attributes[attribute_map[key]].nil?
169
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
170
+ end
171
+ end
172
+ new(transformed_hash)
173
+ end
174
+
175
+ # Deserializes the data based on type
176
+ # @param string type Data type
177
+ # @param string value Value to be deserialized
178
+ # @return [Object] Deserialized data
179
+ def self._deserialize(type, value)
180
+ case type.to_sym
181
+ when :Time
182
+ Time.parse(value)
183
+ when :Date
184
+ Date.parse(value)
185
+ when :String
186
+ value.to_s
187
+ when :Integer
188
+ value.to_i
189
+ when :Float
190
+ value.to_f
191
+ when :Boolean
192
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
193
+ true
194
+ else
195
+ false
196
+ end
197
+ when :Object
198
+ # generic object (usually a Hash), return directly
199
+ value
200
+ when /\AArray<(?<inner_type>.+)>\z/
201
+ inner_type = Regexp.last_match[:inner_type]
202
+ value.map { |v| _deserialize(inner_type, v) }
203
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
204
+ k_type = Regexp.last_match[:k_type]
205
+ v_type = Regexp.last_match[:v_type]
206
+ {}.tap do |hash|
207
+ value.each do |k, v|
208
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
209
+ end
210
+ end
211
+ else # model
212
+ # models (e.g. Pet) or oneOf
213
+ klass = VrpaymentRubySdk.const_get(type)
214
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
215
+ end
216
+ end
217
+
218
+ # Returns the string representation of the object
219
+ # @return [String] String presentation of the object
220
+ def to_s
221
+ to_hash.to_s
222
+ end
223
+
224
+ # to_body is an alias to to_hash (backward compatibility)
225
+ # @return [Hash] Returns the object in the form of hash
226
+ def to_body
227
+ to_hash
228
+ end
229
+
230
+ # Returns the object in the form of hash
231
+ # @return [Hash] Returns the object in the form of hash
232
+ def to_hash
233
+ hash = {}
234
+ self.class.attribute_map.each_pair do |attr, param|
235
+ value = self.send(attr)
236
+ if value.nil?
237
+ is_nullable = self.class.openapi_nullable.include?(attr)
238
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
239
+ end
240
+
241
+ hash[param] = _to_hash(value)
242
+ end
243
+ hash
244
+ end
245
+
246
+ # Outputs non-array value in the form of hash
247
+ # For object, use to_hash. Otherwise, just return the value
248
+ # @param [Object] value Any valid value
249
+ # @return [Hash] Returns the value in the form of hash
250
+ def _to_hash(value)
251
+ if value.is_a?(Array)
252
+ value.compact.map { |v| _to_hash(v) }
253
+ elsif value.is_a?(Hash)
254
+ {}.tap do |hash|
255
+ value.each { |k, v| hash[k] = _to_hash(v) }
256
+ end
257
+ elsif value.respond_to? :to_hash
258
+ value.to_hash
259
+ else
260
+ value
261
+ end
262
+ end
263
+
264
+ end
265
+
266
+ end
@@ -34,6 +34,9 @@ module VrpaymentRubySdk
34
34
 
35
35
  attr_accessor :metric
36
36
 
37
+ # The number of subscription billing cycles that count as a trial phase and during which no fees are charged.
38
+ attr_accessor :number_of_free_trial_periods
39
+
37
40
  # The localized name of the fee that is displayed to the customer.
38
41
  attr_accessor :name
39
42
 
@@ -77,6 +80,7 @@ module VrpaymentRubySdk
77
80
  :'component' => :'component',
78
81
  :'tier_pricing' => :'tierPricing',
79
82
  :'metric' => :'metric',
83
+ :'number_of_free_trial_periods' => :'numberOfFreeTrialPeriods',
80
84
  :'name' => :'name',
81
85
  :'description' => :'description',
82
86
  :'id' => :'id',
@@ -102,6 +106,7 @@ module VrpaymentRubySdk
102
106
  :'component' => :'SubscriptionProductComponent',
103
107
  :'tier_pricing' => :'ProductMeteredTierPricing',
104
108
  :'metric' => :'SubscriptionMetric',
109
+ :'number_of_free_trial_periods' => :'Integer',
105
110
  :'name' => :'Hash<String, String>',
106
111
  :'description' => :'Hash<String, String>',
107
112
  :'id' => :'Integer',
@@ -148,6 +153,10 @@ module VrpaymentRubySdk
148
153
  self.metric = attributes[:'metric']
149
154
  end
150
155
 
156
+ if attributes.key?(:'number_of_free_trial_periods')
157
+ self.number_of_free_trial_periods = attributes[:'number_of_free_trial_periods']
158
+ end
159
+
151
160
  if attributes.key?(:'name')
152
161
  if (value = attributes[:'name']).is_a?(Hash)
153
162
  self.name = value
@@ -197,6 +206,7 @@ module VrpaymentRubySdk
197
206
  component == o.component &&
198
207
  tier_pricing == o.tier_pricing &&
199
208
  metric == o.metric &&
209
+ number_of_free_trial_periods == o.number_of_free_trial_periods &&
200
210
  name == o.name &&
201
211
  description == o.description &&
202
212
  id == o.id &&
@@ -213,7 +223,7 @@ module VrpaymentRubySdk
213
223
  # Calculates hash code according to all attributes.
214
224
  # @return [Integer] Hash code
215
225
  def hash
216
- [linked_space_id, component, tier_pricing, metric, name, description, id, type, version].hash
226
+ [linked_space_id, component, tier_pricing, metric, number_of_free_trial_periods, name, description, id, type, version].hash
217
227
  end
218
228
 
219
229
  # Builds the object from hash
@@ -33,6 +33,9 @@ module VrpaymentRubySdk
33
33
  # The metric used to determine the resource consumption billed to the customer.
34
34
  attr_accessor :metric
35
35
 
36
+ # The number of subscription billing cycles that count as a trial phase and during which no fees are charged.
37
+ attr_accessor :number_of_free_trial_periods
38
+
36
39
  # The localized name of the fee that is displayed to the customer.
37
40
  attr_accessor :name
38
41
 
@@ -70,6 +73,7 @@ module VrpaymentRubySdk
70
73
  :'component' => :'component',
71
74
  :'tier_pricing' => :'tierPricing',
72
75
  :'metric' => :'metric',
76
+ :'number_of_free_trial_periods' => :'numberOfFreeTrialPeriods',
73
77
  :'name' => :'name',
74
78
  :'description' => :'description',
75
79
  :'version' => :'version'
@@ -92,6 +96,7 @@ module VrpaymentRubySdk
92
96
  :'component' => :'Integer',
93
97
  :'tier_pricing' => :'ProductMeteredTierPricing',
94
98
  :'metric' => :'Integer',
99
+ :'number_of_free_trial_periods' => :'Integer',
95
100
  :'name' => :'Hash<String, String>',
96
101
  :'description' => :'Hash<String, String>',
97
102
  :'version' => :'Integer'
@@ -132,6 +137,10 @@ module VrpaymentRubySdk
132
137
  self.metric = attributes[:'metric']
133
138
  end
134
139
 
140
+ if attributes.key?(:'number_of_free_trial_periods')
141
+ self.number_of_free_trial_periods = attributes[:'number_of_free_trial_periods']
142
+ end
143
+
135
144
  if attributes.key?(:'name')
136
145
  if (value = attributes[:'name']).is_a?(Hash)
137
146
  self.name = value
@@ -189,6 +198,7 @@ module VrpaymentRubySdk
189
198
  component == o.component &&
190
199
  tier_pricing == o.tier_pricing &&
191
200
  metric == o.metric &&
201
+ number_of_free_trial_periods == o.number_of_free_trial_periods &&
192
202
  name == o.name &&
193
203
  description == o.description &&
194
204
  version == o.version
@@ -203,7 +213,7 @@ module VrpaymentRubySdk
203
213
  # Calculates hash code according to all attributes.
204
214
  # @return [Integer] Hash code
205
215
  def hash
206
- [component, tier_pricing, metric, name, description, version].hash
216
+ [component, tier_pricing, metric, number_of_free_trial_periods, name, description, version].hash
207
217
  end
208
218
 
209
219
  # Builds the object from hash
@@ -24,12 +24,17 @@ require 'date'
24
24
  require 'time'
25
25
 
26
26
  module VrpaymentRubySdk
27
- class ExpressCheckoutApprovalResponse
28
- attr_accessor :merchant_redirect_url
27
+ class RestMember
28
+ # The roles the user holds.
29
+ attr_accessor :roles
29
30
 
30
- attr_accessor :session_id
31
+ # The name used to identify the user.
32
+ attr_accessor :name
31
33
 
32
- attr_accessor :state
34
+ # A unique identifier for the object.
35
+ attr_accessor :id
36
+
37
+ attr_accessor :user_type
33
38
 
34
39
  class EnumAttributeValidator
35
40
  attr_reader :datatype
@@ -56,9 +61,10 @@ module VrpaymentRubySdk
56
61
  # Attribute mapping from ruby-style variable name to JSON key.
57
62
  def self.attribute_map
58
63
  {
59
- :'merchant_redirect_url' => :'merchantRedirectUrl',
60
- :'session_id' => :'sessionId',
61
- :'state' => :'state'
64
+ :'roles' => :'roles',
65
+ :'name' => :'name',
66
+ :'id' => :'id',
67
+ :'user_type' => :'userType'
62
68
  }
63
69
  end
64
70
 
@@ -75,9 +81,10 @@ module VrpaymentRubySdk
75
81
  # Attribute type mapping.
76
82
  def self.openapi_types
77
83
  {
78
- :'merchant_redirect_url' => :'String',
79
- :'session_id' => :'Integer',
80
- :'state' => :'ExpressCheckoutSessionState'
84
+ :'roles' => :'Array<RoleRef>',
85
+ :'name' => :'String',
86
+ :'id' => :'Integer',
87
+ :'user_type' => :'UserType'
81
88
  }
82
89
  end
83
90
 
@@ -91,28 +98,34 @@ module VrpaymentRubySdk
91
98
  # @param [Hash] attributes Model attributes in the form of hash
92
99
  def initialize(attributes = {})
93
100
  if (!attributes.is_a?(Hash))
94
- fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::ExpressCheckoutApprovalResponse` initialize method"
101
+ fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::RestMember` initialize method"
95
102
  end
96
103
 
97
104
  # check to see if the attribute exists and convert string to symbol for hash key
98
105
  acceptable_attribute_map = self.class.acceptable_attribute_map
99
106
  attributes = attributes.each_with_object({}) { |(k, v), h|
100
107
  if (!acceptable_attribute_map.key?(k.to_sym))
101
- fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::ExpressCheckoutApprovalResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
108
+ fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::RestMember`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
102
109
  end
103
110
  h[k.to_sym] = v
104
111
  }
105
112
 
106
- if attributes.key?(:'merchant_redirect_url')
107
- self.merchant_redirect_url = attributes[:'merchant_redirect_url']
113
+ if attributes.key?(:'roles')
114
+ if (value = attributes[:'roles']).is_a?(Array)
115
+ self.roles = value
116
+ end
117
+ end
118
+
119
+ if attributes.key?(:'name')
120
+ self.name = attributes[:'name']
108
121
  end
109
122
 
110
- if attributes.key?(:'session_id')
111
- self.session_id = attributes[:'session_id']
123
+ if attributes.key?(:'id')
124
+ self.id = attributes[:'id']
112
125
  end
113
126
 
114
- if attributes.key?(:'state')
115
- self.state = attributes[:'state']
127
+ if attributes.key?(:'user_type')
128
+ self.user_type = attributes[:'user_type']
116
129
  end
117
130
  end
118
131
 
@@ -136,9 +149,10 @@ module VrpaymentRubySdk
136
149
  def ==(o)
137
150
  return true if self.equal?(o)
138
151
  self.class == o.class &&
139
- merchant_redirect_url == o.merchant_redirect_url &&
140
- session_id == o.session_id &&
141
- state == o.state
152
+ roles == o.roles &&
153
+ name == o.name &&
154
+ id == o.id &&
155
+ user_type == o.user_type
142
156
  end
143
157
 
144
158
  # @see the `==` method
@@ -150,7 +164,7 @@ module VrpaymentRubySdk
150
164
  # Calculates hash code according to all attributes.
151
165
  # @return [Integer] Hash code
152
166
  def hash
153
- [merchant_redirect_url, session_id, state].hash
167
+ [roles, name, id, user_type].hash
154
168
  end
155
169
 
156
170
  # Builds the object from hash
@@ -24,14 +24,26 @@ require 'date'
24
24
  require 'time'
25
25
 
26
26
  module VrpaymentRubySdk
27
- class AbstractPaymentTerminalUpdate
28
- # The name used to identify the payment terminal.
29
- attr_accessor :name
27
+ class ResultPortionModel
28
+ # 0-based offset of items.
29
+ attr_accessor :offset
30
+
31
+ # Amount of items in portion.
32
+ attr_accessor :limit
33
+
34
+ # Total count of items.
35
+ attr_accessor :total_count
36
+
37
+ # Items of the result portion.
38
+ attr_accessor :items
30
39
 
31
40
  # Attribute mapping from ruby-style variable name to JSON key.
32
41
  def self.attribute_map
33
42
  {
34
- :'name' => :'name'
43
+ :'offset' => :'offset',
44
+ :'limit' => :'limit',
45
+ :'total_count' => :'totalCount',
46
+ :'items' => :'items'
35
47
  }
36
48
  end
37
49
 
@@ -48,7 +60,10 @@ module VrpaymentRubySdk
48
60
  # Attribute type mapping.
49
61
  def self.openapi_types
50
62
  {
51
- :'name' => :'String'
63
+ :'offset' => :'Integer',
64
+ :'limit' => :'Integer',
65
+ :'total_count' => :'Integer',
66
+ :'items' => :'Array<Object>'
52
67
  }
53
68
  end
54
69
 
@@ -62,20 +77,34 @@ module VrpaymentRubySdk
62
77
  # @param [Hash] attributes Model attributes in the form of hash
63
78
  def initialize(attributes = {})
64
79
  if (!attributes.is_a?(Hash))
65
- fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::AbstractPaymentTerminalUpdate` initialize method"
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::ResultPortionModel` initialize method"
66
81
  end
67
82
 
68
83
  # check to see if the attribute exists and convert string to symbol for hash key
69
84
  acceptable_attribute_map = self.class.acceptable_attribute_map
70
85
  attributes = attributes.each_with_object({}) { |(k, v), h|
71
86
  if (!acceptable_attribute_map.key?(k.to_sym))
72
- fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::AbstractPaymentTerminalUpdate`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
87
+ fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::ResultPortionModel`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
73
88
  end
74
89
  h[k.to_sym] = v
75
90
  }
76
91
 
77
- if attributes.key?(:'name')
78
- self.name = attributes[:'name']
92
+ if attributes.key?(:'offset')
93
+ self.offset = attributes[:'offset']
94
+ end
95
+
96
+ if attributes.key?(:'limit')
97
+ self.limit = attributes[:'limit']
98
+ end
99
+
100
+ if attributes.key?(:'total_count')
101
+ self.total_count = attributes[:'total_count']
102
+ end
103
+
104
+ if attributes.key?(:'items')
105
+ if (value = attributes[:'items']).is_a?(Array)
106
+ self.items = value
107
+ end
79
108
  end
80
109
  end
81
110
 
@@ -84,10 +113,6 @@ module VrpaymentRubySdk
84
113
  def list_invalid_properties
85
114
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
86
115
  invalid_properties = Array.new
87
- if !@name.nil? && @name.to_s.length > 100
88
- invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 100.')
89
- end
90
-
91
116
  invalid_properties
92
117
  end
93
118
 
@@ -95,30 +120,18 @@ module VrpaymentRubySdk
95
120
  # @return true if the model is valid
96
121
  def valid?
97
122
  warn '[DEPRECATED] the `valid?` method is obsolete'
98
- return false if !@name.nil? && @name.to_s.length > 100
99
123
  true
100
124
  end
101
125
 
102
- # Custom attribute writer method with validation
103
- # @param [Object] name Value to be assigned
104
- def name=(name)
105
- if name.nil?
106
- fail ArgumentError, 'name cannot be nil'
107
- end
108
-
109
- if name.to_s.length > 100
110
- fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.'
111
- end
112
-
113
- @name = name
114
- end
115
-
116
126
  # Checks equality by comparing each attribute.
117
127
  # @param [Object] Object to be compared
118
128
  def ==(o)
119
129
  return true if self.equal?(o)
120
130
  self.class == o.class &&
121
- name == o.name
131
+ offset == o.offset &&
132
+ limit == o.limit &&
133
+ total_count == o.total_count &&
134
+ items == o.items
122
135
  end
123
136
 
124
137
  # @see the `==` method
@@ -130,7 +143,7 @@ module VrpaymentRubySdk
130
143
  # Calculates hash code according to all attributes.
131
144
  # @return [Integer] Hash code
132
145
  def hash
133
- [name].hash
146
+ [offset, limit, total_count, items].hash
134
147
  end
135
148
 
136
149
  # Builds the object from hash
@@ -34,6 +34,9 @@ module VrpaymentRubySdk
34
34
  # The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
35
35
  attr_accessor :planned_purge_date
36
36
 
37
+ # Additional information that describes the role.
38
+ attr_accessor :description
39
+
37
40
  # A unique identifier for the object.
38
41
  attr_accessor :id
39
42
 
@@ -75,6 +78,7 @@ module VrpaymentRubySdk
75
78
  :'permissions' => :'permissions',
76
79
  :'name' => :'name',
77
80
  :'planned_purge_date' => :'plannedPurgeDate',
81
+ :'description' => :'description',
78
82
  :'id' => :'id',
79
83
  :'state' => :'state',
80
84
  :'version' => :'version',
@@ -99,6 +103,7 @@ module VrpaymentRubySdk
99
103
  :'permissions' => :'Array<Permission>',
100
104
  :'name' => :'Hash<String, String>',
101
105
  :'planned_purge_date' => :'Time',
106
+ :'description' => :'Hash<String, String>',
102
107
  :'id' => :'Integer',
103
108
  :'state' => :'RoleState',
104
109
  :'version' => :'Integer',
@@ -145,6 +150,12 @@ module VrpaymentRubySdk
145
150
  self.planned_purge_date = attributes[:'planned_purge_date']
146
151
  end
147
152
 
153
+ if attributes.key?(:'description')
154
+ if (value = attributes[:'description']).is_a?(Hash)
155
+ self.description = value
156
+ end
157
+ end
158
+
148
159
  if attributes.key?(:'id')
149
160
  self.id = attributes[:'id']
150
161
  end
@@ -199,6 +210,7 @@ module VrpaymentRubySdk
199
210
  permissions == o.permissions &&
200
211
  name == o.name &&
201
212
  planned_purge_date == o.planned_purge_date &&
213
+ description == o.description &&
202
214
  id == o.id &&
203
215
  state == o.state &&
204
216
  version == o.version &&
@@ -215,7 +227,7 @@ module VrpaymentRubySdk
215
227
  # Calculates hash code according to all attributes.
216
228
  # @return [Integer] Hash code
217
229
  def hash
218
- [permissions, name, planned_purge_date, id, state, version, account, two_factor_required].hash
230
+ [permissions, name, planned_purge_date, description, id, state, version, account, two_factor_required].hash
219
231
  end
220
232
 
221
233
  # Builds the object from hash