vrpayment-ruby-sdk 6.3.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 (174) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +68 -19
  3. data/LICENSE +1 -1
  4. data/README.md +355 -108
  5. data/lib/vrpayment-ruby-sdk/api_client.rb +1 -1
  6. data/lib/vrpayment-ruby-sdk/models/abstract_role_update.rb +13 -1
  7. data/lib/vrpayment-ruby-sdk/models/abstract_walleejoin_partnership.rb +330 -0
  8. data/lib/vrpayment-ruby-sdk/models/{payment_terminal_preparing.rb → account_create_with_owner.rb} +63 -34
  9. data/lib/vrpayment-ruby-sdk/models/analytics_query_execution_request.rb +279 -0
  10. data/lib/vrpayment-ruby-sdk/models/analytics_query_execution_response.rb +231 -0
  11. data/lib/vrpayment-ruby-sdk/models/authenticated_card_data_create.rb +30 -1
  12. data/lib/vrpayment-ruby-sdk/models/bank_payment_type.rb +50 -0
  13. data/lib/vrpayment-ruby-sdk/models/boarding_strategy_information_request.rb +247 -0
  14. data/lib/vrpayment-ruby-sdk/models/{express_checkout_session_create.rb → charge_attempt_lookup_result.rb} +16 -20
  15. data/lib/vrpayment-ruby-sdk/models/charge_attempt_projection.rb +560 -0
  16. data/lib/vrpayment-ruby-sdk/models/dunning_case_level.rb +403 -0
  17. data/lib/vrpayment-ruby-sdk/models/{user_account_role_list_response.rb → dunning_case_level_list_response.rb} +4 -4
  18. data/lib/vrpayment-ruby-sdk/models/dunning_case_level_search_response.rb +263 -0
  19. data/lib/vrpayment-ruby-sdk/models/dunning_case_level_state.rb +53 -0
  20. data/lib/vrpayment-ruby-sdk/models/{express_checkout_session_state.rb → facade_user_friendly_query_status_model.rb} +6 -7
  21. data/lib/vrpayment-ruby-sdk/models/invoice_processor.rb +51 -0
  22. data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record.rb +633 -0
  23. data/lib/vrpayment-ruby-sdk/models/{express_checkout_shipping_option.rb → invoice_reconciliation_record_invoice_link.rb} +35 -48
  24. data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_invoice_link_list_response.rb +253 -0
  25. data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_invoice_link_search_response.rb +263 -0
  26. data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_list_response.rb +253 -0
  27. data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_rejection_status.rb +51 -0
  28. data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_search_response.rb +263 -0
  29. data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_state.rb +53 -0
  30. data/lib/vrpayment-ruby-sdk/models/{express_checkout_wallet_type.rb → invoice_reconciliation_record_type.rb} +3 -3
  31. data/lib/vrpayment-ruby-sdk/models/invoice_reimbursement.rb +463 -0
  32. data/lib/vrpayment-ruby-sdk/models/invoice_reimbursement_list_response.rb +253 -0
  33. data/lib/vrpayment-ruby-sdk/models/invoice_reimbursement_search_response.rb +263 -0
  34. data/lib/vrpayment-ruby-sdk/models/invoice_reimbursement_state.rb +54 -0
  35. data/lib/vrpayment-ruby-sdk/models/{express_checkout_create_response.rb → payment_facilitator_pricing_profile_dto.rb} +16 -16
  36. data/lib/vrpayment-ruby-sdk/models/payment_facilitator_pricing_profile_state.rb +53 -0
  37. data/lib/vrpayment-ruby-sdk/models/{express_checkout_session.rb → payment_initiation_advice_file.rb} +60 -37
  38. data/lib/vrpayment-ruby-sdk/models/payment_initiation_advice_file_state.rb +55 -0
  39. data/lib/vrpayment-ruby-sdk/models/payment_terminal.rb +37 -1
  40. data/lib/vrpayment-ruby-sdk/models/payment_terminal_activation_status.rb +301 -0
  41. data/lib/vrpayment-ruby-sdk/models/payment_terminal_activation_status_detail_search_response.rb +263 -0
  42. data/lib/vrpayment-ruby-sdk/models/payment_terminal_address_create.rb +511 -0
  43. data/lib/vrpayment-ruby-sdk/models/{payment_terminal_create.rb → payment_terminal_creation_request.rb} +88 -62
  44. data/lib/vrpayment-ruby-sdk/models/payment_terminal_location.rb +1 -0
  45. data/lib/vrpayment-ruby-sdk/models/payment_terminal_location_crud_model.rb +398 -0
  46. data/lib/vrpayment-ruby-sdk/models/payment_terminal_location_crud_model_rest_api_create.rb +359 -0
  47. data/lib/vrpayment-ruby-sdk/models/payment_terminal_location_list_response.rb +253 -0
  48. data/lib/vrpayment-ruby-sdk/models/payment_terminal_location_version_state.rb +2 -1
  49. data/lib/vrpayment-ruby-sdk/models/pricing_history_dto.rb +266 -0
  50. data/lib/vrpayment-ruby-sdk/models/product_metered_fee.rb +11 -1
  51. data/lib/vrpayment-ruby-sdk/models/product_metered_fee_update.rb +11 -1
  52. data/lib/vrpayment-ruby-sdk/models/refund.rb +13 -1
  53. data/lib/vrpayment-ruby-sdk/models/refund_create.rb +13 -1
  54. data/lib/vrpayment-ruby-sdk/models/{user_space_role.rb → rest_member.rb} +50 -37
  55. data/lib/vrpayment-ruby-sdk/models/result_portion_model.rb +263 -0
  56. data/lib/vrpayment-ruby-sdk/models/role.rb +13 -1
  57. data/lib/vrpayment-ruby-sdk/models/role_create.rb +13 -1
  58. data/lib/vrpayment-ruby-sdk/models/{abstract_payment_terminal_update.rb → role_ref.rb} +18 -27
  59. data/lib/vrpayment-ruby-sdk/models/role_update.rb +13 -1
  60. data/lib/vrpayment-ruby-sdk/models/scope.rb +28 -16
  61. data/lib/vrpayment-ruby-sdk/models/setter.rb +618 -0
  62. data/lib/vrpayment-ruby-sdk/models/{user_space_role_list_response.rb → state_list_response.rb} +4 -4
  63. data/lib/vrpayment-ruby-sdk/models/store_trial_subscription_request.rb +273 -0
  64. data/lib/vrpayment-ruby-sdk/models/store_trial_subscription_request_setter.rb +307 -0
  65. data/lib/vrpayment-ruby-sdk/models/submitted_analytics_query_execution.rb +342 -0
  66. data/lib/vrpayment-ruby-sdk/models/subscription_component_group_configuration_request.rb +249 -0
  67. data/lib/vrpayment-ruby-sdk/models/subscription_component_group_configuration_request_setter.rb +249 -0
  68. data/lib/vrpayment-ruby-sdk/models/subscription_product_dto.rb +239 -0
  69. data/lib/vrpayment-ruby-sdk/models/tokenized_card_data_create.rb +30 -1
  70. data/lib/vrpayment-ruby-sdk/models/transaction_completion.rb +13 -1
  71. data/lib/vrpayment-ruby-sdk/models/transaction_completion_details.rb +26 -4
  72. data/lib/vrpayment-ruby-sdk/models/transaction_overview.rb +1144 -0
  73. data/lib/vrpayment-ruby-sdk/models/transaction_projection.rb +1135 -0
  74. data/lib/vrpayment-ruby-sdk/models/transaction_user_interface_type.rb +2 -1
  75. data/lib/vrpayment-ruby-sdk/models/walleejoin_admin_partner_configuration_request_dto.rb +360 -0
  76. data/lib/vrpayment-ruby-sdk/models/walleejoin_admin_partner_configuration_response_dto.rb +351 -0
  77. data/lib/vrpayment-ruby-sdk/models/walleejoin_admin_pricing_type.rb +51 -0
  78. data/lib/vrpayment-ruby-sdk/models/{user_account_role.rb → walleejoin_create_partnership_api_request_dto.rb} +34 -49
  79. data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership.rb +357 -0
  80. data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_create.rb +337 -0
  81. data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_response_dto.rb +342 -0
  82. data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_response_dto_list_response.rb +253 -0
  83. data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_response_dto_search_response.rb +263 -0
  84. data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_state.rb +51 -0
  85. data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_type.rb +50 -0
  86. data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_update.rb +364 -0
  87. data/lib/vrpayment-ruby-sdk/models/wallet_type.rb +40 -1
  88. data/lib/vrpayment-ruby-sdk/models/web_ui_account_theme.rb +230 -0
  89. data/lib/vrpayment-ruby-sdk/service/accounts_service.rb +16 -9
  90. data/lib/vrpayment-ruby-sdk/service/analytics_queries_service.rb +613 -0
  91. data/lib/vrpayment-ruby-sdk/service/bank_accounts_service.rb +3 -3
  92. data/lib/vrpayment-ruby-sdk/service/bank_transactions_service.rb +3 -3
  93. data/lib/vrpayment-ruby-sdk/service/boarding_subscription_strategy_service.rb +181 -0
  94. data/lib/vrpayment-ruby-sdk/service/charge_attempts_service.rb +3 -3
  95. data/lib/vrpayment-ruby-sdk/service/charge_bank_transactions_service.rb +3 -3
  96. data/lib/vrpayment-ruby-sdk/service/charge_flow_levels_service.rb +4 -4
  97. data/lib/vrpayment-ruby-sdk/service/charge_flows_level_payment_links_service.rb +3 -3
  98. data/lib/vrpayment-ruby-sdk/service/charge_flows_service.rb +3 -3
  99. data/lib/vrpayment-ruby-sdk/service/consumed_resources_service.rb +1 -1
  100. data/lib/vrpayment-ruby-sdk/service/countries_service.rb +15 -6
  101. data/lib/vrpayment-ruby-sdk/service/currency_bank_accounts_service.rb +3 -3
  102. data/lib/vrpayment-ruby-sdk/service/customer_addresses_service.rb +7 -7
  103. data/lib/vrpayment-ruby-sdk/service/customer_comments_service.rb +8 -8
  104. data/lib/vrpayment-ruby-sdk/service/customers_service.rb +11 -11
  105. data/lib/vrpayment-ruby-sdk/service/delivery_indications_service.rb +5 -5
  106. data/lib/vrpayment-ruby-sdk/service/document_templates_service.rb +3 -3
  107. data/lib/vrpayment-ruby-sdk/service/dunning_case_levels_service.rb +291 -0
  108. data/lib/vrpayment-ruby-sdk/service/dunning_cases_service.rb +5 -5
  109. data/lib/vrpayment-ruby-sdk/service/dunning_flow_levels_service.rb +3 -3
  110. data/lib/vrpayment-ruby-sdk/service/dunning_flows_service.rb +3 -3
  111. data/lib/vrpayment-ruby-sdk/service/external_transfer_bank_transactions_service.rb +3 -3
  112. data/lib/vrpayment-ruby-sdk/service/internal_transfer_bank_transactions_service.rb +3 -3
  113. data/lib/vrpayment-ruby-sdk/service/invoice_reconciliation_record_invoice_links_service.rb +453 -0
  114. data/lib/vrpayment-ruby-sdk/service/invoice_reconciliation_records_service.rb +433 -0
  115. data/lib/vrpayment-ruby-sdk/service/invoice_reimbursements_service.rb +450 -0
  116. data/lib/vrpayment-ruby-sdk/service/join_admin_partner_configuration_service.rb +306 -0
  117. data/lib/vrpayment-ruby-sdk/service/join_partnership_service.rb +586 -0
  118. data/lib/vrpayment-ruby-sdk/service/manual_tasks_service.rb +5 -5
  119. data/lib/vrpayment-ruby-sdk/service/members_service.rb +215 -0
  120. data/lib/vrpayment-ruby-sdk/service/payment_connector_configurations_service.rb +6 -6
  121. data/lib/vrpayment-ruby-sdk/service/payment_links_service.rb +6 -6
  122. data/lib/vrpayment-ruby-sdk/service/payment_method_configurations_service.rb +6 -6
  123. data/lib/vrpayment-ruby-sdk/service/payment_processor_configurations_service.rb +85 -6
  124. data/lib/vrpayment-ruby-sdk/service/payment_terminal_transaction_summaries_service.rb +4 -4
  125. data/lib/vrpayment-ruby-sdk/service/payment_terminals_service.rb +475 -22
  126. data/lib/vrpayment-ruby-sdk/service/payment_web_apps_service.rb +11 -11
  127. data/lib/vrpayment-ruby-sdk/service/refund_bank_transactions_service.rb +3 -3
  128. data/lib/vrpayment-ruby-sdk/service/refund_comments_service.rb +8 -8
  129. data/lib/vrpayment-ruby-sdk/service/refund_recovery_bank_transactions_service.rb +3 -3
  130. data/lib/vrpayment-ruby-sdk/service/refunds_service.rb +7 -7
  131. data/lib/vrpayment-ruby-sdk/service/spaces_service.rb +10 -3
  132. data/lib/vrpayment-ruby-sdk/service/subscribers_service.rb +6 -6
  133. data/lib/vrpayment-ruby-sdk/service/subscription_affiliates_service.rb +6 -6
  134. data/lib/vrpayment-ruby-sdk/service/subscription_charges_service.rb +5 -5
  135. data/lib/vrpayment-ruby-sdk/service/subscription_ledger_entries_service.rb +4 -4
  136. data/lib/vrpayment-ruby-sdk/service/subscription_metric_usage_reports_service.rb +4 -4
  137. data/lib/vrpayment-ruby-sdk/service/subscription_metrics_service.rb +6 -6
  138. data/lib/vrpayment-ruby-sdk/service/subscription_period_bills_service.rb +4 -4
  139. data/lib/vrpayment-ruby-sdk/service/subscription_product_component_groups_service.rb +6 -6
  140. data/lib/vrpayment-ruby-sdk/service/subscription_product_components_service.rb +6 -6
  141. data/lib/vrpayment-ruby-sdk/service/subscription_product_metered_fee_tiers_service.rb +6 -6
  142. data/lib/vrpayment-ruby-sdk/service/subscription_product_metered_fees_service.rb +6 -6
  143. data/lib/vrpayment-ruby-sdk/service/subscription_product_period_fees_service.rb +6 -6
  144. data/lib/vrpayment-ruby-sdk/service/subscription_product_retirements_service.rb +3 -3
  145. data/lib/vrpayment-ruby-sdk/service/subscription_product_setup_fees_service.rb +6 -6
  146. data/lib/vrpayment-ruby-sdk/service/subscription_product_version_retirements_service.rb +3 -3
  147. data/lib/vrpayment-ruby-sdk/service/subscription_product_versions_service.rb +7 -7
  148. data/lib/vrpayment-ruby-sdk/service/subscription_products_service.rb +6 -6
  149. data/lib/vrpayment-ruby-sdk/service/subscription_suspensions_service.rb +3 -3
  150. data/lib/vrpayment-ruby-sdk/service/subscription_versions_service.rb +3 -3
  151. data/lib/vrpayment-ruby-sdk/service/subscriptions_service.rb +13 -13
  152. data/lib/vrpayment-ruby-sdk/service/terminal_locations_service.rb +276 -0
  153. data/lib/vrpayment-ruby-sdk/service/token_versions_service.rb +3 -3
  154. data/lib/vrpayment-ruby-sdk/service/tokens_service.rb +8 -8
  155. data/lib/vrpayment-ruby-sdk/service/transaction_client_platforms_service.rb +3 -3
  156. data/lib/vrpayment-ruby-sdk/service/transaction_comments_service.rb +8 -8
  157. data/lib/vrpayment-ruby-sdk/service/transaction_completions_service.rb +3 -3
  158. data/lib/vrpayment-ruby-sdk/service/transaction_invoice_comments_service.rb +8 -8
  159. data/lib/vrpayment-ruby-sdk/service/transaction_invoices_service.rb +86 -8
  160. data/lib/vrpayment-ruby-sdk/service/transaction_line_item_versions_service.rb +4 -4
  161. data/lib/vrpayment-ruby-sdk/service/transaction_voids_service.rb +3 -3
  162. data/lib/vrpayment-ruby-sdk/service/transactions_service.rb +179 -37
  163. data/lib/vrpayment-ruby-sdk/service/web_apps_service.rb +2 -2
  164. data/lib/vrpayment-ruby-sdk/service/web_ui_account_theme_service.rb +245 -0
  165. data/lib/vrpayment-ruby-sdk/service/webhook_listeners_service.rb +9 -9
  166. data/lib/vrpayment-ruby-sdk/service/webhook_urls_service.rb +9 -9
  167. data/lib/vrpayment-ruby-sdk/version.rb +1 -1
  168. data/lib/vrpayment-ruby-sdk.rb +76 -17
  169. data/test/test_querying.rb +11 -0
  170. metadata +78 -19
  171. data/lib/vrpayment-ruby-sdk/service/application_users_roles_service.rb +0 -478
  172. data/lib/vrpayment-ruby-sdk/service/express_checkout_service.rb +0 -107
  173. data/lib/vrpayment-ruby-sdk/service/human_users_roles_service.rb +0 -478
  174. data/lib/vrpayment-ruby-sdk/service/single_sign_on_users_roles_service.rb +0 -478
@@ -0,0 +1,279 @@
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 AnalyticsQueryExecutionRequest
28
+ # Optional. ID of the active SFTP configuration to use (associated with the target account). This is only required if the result file is scheduled for delivery to a remote SFTP server.
29
+ attr_accessor :sftp_dispatch_settings_id
30
+
31
+ # Optional. Renaming pattern used for the result file during SFTP delivery. You can use a combination of fixed Latin text and timestamp variables (e.g., \"transaction_report_{YYYMMDD_hhmmss}\"). Supported variable formats: DDMMYY, MMDDYY, YYYYMMDD, DD_MM_YY, DD-MM-YY, YYYY-MM-DD, YYYY_MM_DD, YYYYMMDD_hhmmss, YYYY-MM-DD_hh-mm-ss.
32
+ attr_accessor :sftp_dispatch_result_file_rename_pattern
33
+
34
+ # The SQL query (in PrestoDB dialect) to execute on the analytics database. This query defines exactly which data should be retrieved.
35
+ attr_accessor :sql
36
+
37
+ # Attribute mapping from ruby-style variable name to JSON key.
38
+ def self.attribute_map
39
+ {
40
+ :'sftp_dispatch_settings_id' => :'sftpDispatchSettingsId',
41
+ :'sftp_dispatch_result_file_rename_pattern' => :'sftpDispatchResultFileRenamePattern',
42
+ :'sql' => :'sql'
43
+ }
44
+ end
45
+
46
+ # Returns attribute mapping this model knows about
47
+ def self.acceptable_attribute_map
48
+ attribute_map
49
+ end
50
+
51
+ # Returns all the JSON keys this model knows about
52
+ def self.acceptable_attributes
53
+ acceptable_attribute_map.values
54
+ end
55
+
56
+ # Attribute type mapping.
57
+ def self.openapi_types
58
+ {
59
+ :'sftp_dispatch_settings_id' => :'Integer',
60
+ :'sftp_dispatch_result_file_rename_pattern' => :'String',
61
+ :'sql' => :'String'
62
+ }
63
+ end
64
+
65
+ # List of attributes with nullable: true
66
+ def self.openapi_nullable
67
+ Set.new([
68
+ ])
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::AnalyticsQueryExecutionRequest` initialize method"
76
+ end
77
+
78
+ # check to see if the attribute exists and convert string to symbol for hash key
79
+ acceptable_attribute_map = self.class.acceptable_attribute_map
80
+ attributes = attributes.each_with_object({}) { |(k, v), h|
81
+ if (!acceptable_attribute_map.key?(k.to_sym))
82
+ fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::AnalyticsQueryExecutionRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
83
+ end
84
+ h[k.to_sym] = v
85
+ }
86
+
87
+ if attributes.key?(:'sftp_dispatch_settings_id')
88
+ self.sftp_dispatch_settings_id = attributes[:'sftp_dispatch_settings_id']
89
+ end
90
+
91
+ if attributes.key?(:'sftp_dispatch_result_file_rename_pattern')
92
+ self.sftp_dispatch_result_file_rename_pattern = attributes[:'sftp_dispatch_result_file_rename_pattern']
93
+ end
94
+
95
+ if attributes.key?(:'sql')
96
+ self.sql = attributes[:'sql']
97
+ end
98
+ end
99
+
100
+ # Show invalid properties with the reasons. Usually used together with valid?
101
+ # @return Array for valid properties with the reasons
102
+ def list_invalid_properties
103
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
104
+ invalid_properties = Array.new
105
+ if !@sql.nil? && @sql.to_s.length > 100000
106
+ invalid_properties.push('invalid value for "sql", the character length must be smaller than or equal to 100000.')
107
+ end
108
+
109
+ if !@sql.nil? && @sql.to_s.length < 3
110
+ invalid_properties.push('invalid value for "sql", the character length must be great than or equal to 3.')
111
+ end
112
+
113
+ invalid_properties
114
+ end
115
+
116
+ # Check to see if the all the properties in the model are valid
117
+ # @return true if the model is valid
118
+ def valid?
119
+ warn '[DEPRECATED] the `valid?` method is obsolete'
120
+ return false if !@sql.nil? && @sql.to_s.length > 100000
121
+ return false if !@sql.nil? && @sql.to_s.length < 3
122
+ true
123
+ end
124
+
125
+ # Custom attribute writer method with validation
126
+ # @param [Object] sql Value to be assigned
127
+ def sql=(sql)
128
+ if sql.nil?
129
+ fail ArgumentError, 'sql cannot be nil'
130
+ end
131
+
132
+ if sql.to_s.length > 100000
133
+ fail ArgumentError, 'invalid value for "sql", the character length must be smaller than or equal to 100000.'
134
+ end
135
+
136
+ if sql.to_s.length < 3
137
+ fail ArgumentError, 'invalid value for "sql", the character length must be great than or equal to 3.'
138
+ end
139
+
140
+ @sql = sql
141
+ end
142
+
143
+ # Checks equality by comparing each attribute.
144
+ # @param [Object] Object to be compared
145
+ def ==(o)
146
+ return true if self.equal?(o)
147
+ self.class == o.class &&
148
+ sftp_dispatch_settings_id == o.sftp_dispatch_settings_id &&
149
+ sftp_dispatch_result_file_rename_pattern == o.sftp_dispatch_result_file_rename_pattern &&
150
+ sql == o.sql
151
+ end
152
+
153
+ # @see the `==` method
154
+ # @param [Object] Object to be compared
155
+ def eql?(o)
156
+ self == o
157
+ end
158
+
159
+ # Calculates hash code according to all attributes.
160
+ # @return [Integer] Hash code
161
+ def hash
162
+ [sftp_dispatch_settings_id, sftp_dispatch_result_file_rename_pattern, sql].hash
163
+ end
164
+
165
+ # Builds the object from hash
166
+ # @param [Hash] attributes Model attributes in the form of hash
167
+ # @return [Object] Returns the model itself
168
+ def self.build_from_hash(attributes)
169
+ return nil unless attributes.is_a?(Hash)
170
+ attributes = attributes.transform_keys(&:to_sym)
171
+ transformed_hash = {}
172
+ openapi_types.each_pair do |key, type|
173
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
174
+ transformed_hash["#{key}"] = nil
175
+ elsif type =~ /\AArray<(.*)>/i
176
+ # check to ensure the input is an array given that the attribute
177
+ # is documented as an array but the input is not
178
+ if attributes[attribute_map[key]].is_a?(Array)
179
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
180
+ end
181
+ elsif !attributes[attribute_map[key]].nil?
182
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
183
+ end
184
+ end
185
+ new(transformed_hash)
186
+ end
187
+
188
+ # Deserializes the data based on type
189
+ # @param string type Data type
190
+ # @param string value Value to be deserialized
191
+ # @return [Object] Deserialized data
192
+ def self._deserialize(type, value)
193
+ case type.to_sym
194
+ when :Time
195
+ Time.parse(value)
196
+ when :Date
197
+ Date.parse(value)
198
+ when :String
199
+ value.to_s
200
+ when :Integer
201
+ value.to_i
202
+ when :Float
203
+ value.to_f
204
+ when :Boolean
205
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
206
+ true
207
+ else
208
+ false
209
+ end
210
+ when :Object
211
+ # generic object (usually a Hash), return directly
212
+ value
213
+ when /\AArray<(?<inner_type>.+)>\z/
214
+ inner_type = Regexp.last_match[:inner_type]
215
+ value.map { |v| _deserialize(inner_type, v) }
216
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
217
+ k_type = Regexp.last_match[:k_type]
218
+ v_type = Regexp.last_match[:v_type]
219
+ {}.tap do |hash|
220
+ value.each do |k, v|
221
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
222
+ end
223
+ end
224
+ else # model
225
+ # models (e.g. Pet) or oneOf
226
+ klass = VrpaymentRubySdk.const_get(type)
227
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
228
+ end
229
+ end
230
+
231
+ # Returns the string representation of the object
232
+ # @return [String] String presentation of the object
233
+ def to_s
234
+ to_hash.to_s
235
+ end
236
+
237
+ # to_body is an alias to to_hash (backward compatibility)
238
+ # @return [Hash] Returns the object in the form of hash
239
+ def to_body
240
+ to_hash
241
+ end
242
+
243
+ # Returns the object in the form of hash
244
+ # @return [Hash] Returns the object in the form of hash
245
+ def to_hash
246
+ hash = {}
247
+ self.class.attribute_map.each_pair do |attr, param|
248
+ value = self.send(attr)
249
+ if value.nil?
250
+ is_nullable = self.class.openapi_nullable.include?(attr)
251
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
252
+ end
253
+
254
+ hash[param] = _to_hash(value)
255
+ end
256
+ hash
257
+ end
258
+
259
+ # Outputs non-array value in the form of hash
260
+ # For object, use to_hash. Otherwise, just return the value
261
+ # @param [Object] value Any valid value
262
+ # @return [Hash] Returns the value in the form of hash
263
+ def _to_hash(value)
264
+ if value.is_a?(Array)
265
+ value.compact.map { |v| _to_hash(v) }
266
+ elsif value.is_a?(Hash)
267
+ {}.tap do |hash|
268
+ value.each { |k, v| hash[k] = _to_hash(v) }
269
+ end
270
+ elsif value.respond_to? :to_hash
271
+ value.to_hash
272
+ else
273
+ value
274
+ end
275
+ end
276
+
277
+ end
278
+
279
+ end
@@ -0,0 +1,231 @@
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 AnalyticsQueryExecutionResponse
28
+ # The unique query token associated with a submitted analytics query execution. This token can be used to check the execution status of the query.
29
+ attr_accessor :query_token
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'query_token' => :'queryToken'
35
+ }
36
+ end
37
+
38
+ # Returns attribute mapping this model knows about
39
+ def self.acceptable_attribute_map
40
+ attribute_map
41
+ end
42
+
43
+ # Returns all the JSON keys this model knows about
44
+ def self.acceptable_attributes
45
+ acceptable_attribute_map.values
46
+ end
47
+
48
+ # Attribute type mapping.
49
+ def self.openapi_types
50
+ {
51
+ :'query_token' => :'String'
52
+ }
53
+ end
54
+
55
+ # List of attributes with nullable: true
56
+ def self.openapi_nullable
57
+ Set.new([
58
+ ])
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param [Hash] attributes Model attributes in the form of hash
63
+ def initialize(attributes = {})
64
+ if (!attributes.is_a?(Hash))
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::AnalyticsQueryExecutionResponse` initialize method"
66
+ end
67
+
68
+ # check to see if the attribute exists and convert string to symbol for hash key
69
+ acceptable_attribute_map = self.class.acceptable_attribute_map
70
+ attributes = attributes.each_with_object({}) { |(k, v), h|
71
+ if (!acceptable_attribute_map.key?(k.to_sym))
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::AnalyticsQueryExecutionResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
73
+ end
74
+ h[k.to_sym] = v
75
+ }
76
+
77
+ if attributes.key?(:'query_token')
78
+ self.query_token = attributes[:'query_token']
79
+ end
80
+ end
81
+
82
+ # Show invalid properties with the reasons. Usually used together with valid?
83
+ # @return Array for valid properties with the reasons
84
+ def list_invalid_properties
85
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
86
+ invalid_properties = Array.new
87
+ invalid_properties
88
+ end
89
+
90
+ # Check to see if the all the properties in the model are valid
91
+ # @return true if the model is valid
92
+ def valid?
93
+ warn '[DEPRECATED] the `valid?` method is obsolete'
94
+ true
95
+ end
96
+
97
+ # Checks equality by comparing each attribute.
98
+ # @param [Object] Object to be compared
99
+ def ==(o)
100
+ return true if self.equal?(o)
101
+ self.class == o.class &&
102
+ query_token == o.query_token
103
+ end
104
+
105
+ # @see the `==` method
106
+ # @param [Object] Object to be compared
107
+ def eql?(o)
108
+ self == o
109
+ end
110
+
111
+ # Calculates hash code according to all attributes.
112
+ # @return [Integer] Hash code
113
+ def hash
114
+ [query_token].hash
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def self.build_from_hash(attributes)
121
+ return nil unless attributes.is_a?(Hash)
122
+ attributes = attributes.transform_keys(&:to_sym)
123
+ transformed_hash = {}
124
+ openapi_types.each_pair do |key, type|
125
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
126
+ transformed_hash["#{key}"] = nil
127
+ elsif type =~ /\AArray<(.*)>/i
128
+ # check to ensure the input is an array given that the attribute
129
+ # is documented as an array but the input is not
130
+ if attributes[attribute_map[key]].is_a?(Array)
131
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
132
+ end
133
+ elsif !attributes[attribute_map[key]].nil?
134
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
135
+ end
136
+ end
137
+ new(transformed_hash)
138
+ end
139
+
140
+ # Deserializes the data based on type
141
+ # @param string type Data type
142
+ # @param string value Value to be deserialized
143
+ # @return [Object] Deserialized data
144
+ def self._deserialize(type, value)
145
+ case type.to_sym
146
+ when :Time
147
+ Time.parse(value)
148
+ when :Date
149
+ Date.parse(value)
150
+ when :String
151
+ value.to_s
152
+ when :Integer
153
+ value.to_i
154
+ when :Float
155
+ value.to_f
156
+ when :Boolean
157
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
158
+ true
159
+ else
160
+ false
161
+ end
162
+ when :Object
163
+ # generic object (usually a Hash), return directly
164
+ value
165
+ when /\AArray<(?<inner_type>.+)>\z/
166
+ inner_type = Regexp.last_match[:inner_type]
167
+ value.map { |v| _deserialize(inner_type, v) }
168
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
169
+ k_type = Regexp.last_match[:k_type]
170
+ v_type = Regexp.last_match[:v_type]
171
+ {}.tap do |hash|
172
+ value.each do |k, v|
173
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
174
+ end
175
+ end
176
+ else # model
177
+ # models (e.g. Pet) or oneOf
178
+ klass = VrpaymentRubySdk.const_get(type)
179
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
180
+ end
181
+ end
182
+
183
+ # Returns the string representation of the object
184
+ # @return [String] String presentation of the object
185
+ def to_s
186
+ to_hash.to_s
187
+ end
188
+
189
+ # to_body is an alias to to_hash (backward compatibility)
190
+ # @return [Hash] Returns the object in the form of hash
191
+ def to_body
192
+ to_hash
193
+ end
194
+
195
+ # Returns the object in the form of hash
196
+ # @return [Hash] Returns the object in the form of hash
197
+ def to_hash
198
+ hash = {}
199
+ self.class.attribute_map.each_pair do |attr, param|
200
+ value = self.send(attr)
201
+ if value.nil?
202
+ is_nullable = self.class.openapi_nullable.include?(attr)
203
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
204
+ end
205
+
206
+ hash[param] = _to_hash(value)
207
+ end
208
+ hash
209
+ end
210
+
211
+ # Outputs non-array value in the form of hash
212
+ # For object, use to_hash. Otherwise, just return the value
213
+ # @param [Object] value Any valid value
214
+ # @return [Hash] Returns the value in the form of hash
215
+ def _to_hash(value)
216
+ if value.is_a?(Array)
217
+ value.compact.map { |v| _to_hash(v) }
218
+ elsif value.is_a?(Hash)
219
+ {}.tap do |hash|
220
+ value.each { |k, v| hash[k] = _to_hash(v) }
221
+ end
222
+ elsif value.respond_to? :to_hash
223
+ value.to_hash
224
+ else
225
+ value
226
+ end
227
+ end
228
+
229
+ end
230
+
231
+ end
@@ -41,6 +41,9 @@ module VrpaymentRubySdk
41
41
 
42
42
  attr_accessor :recurring_indicator
43
43
 
44
+ # A reference specific to linking card transaction lifecycle events within the payment scheme.
45
+ attr_accessor :transaction_link_identifier
46
+
44
47
  # A reference specific to the card's transaction within its payment scheme.
45
48
  attr_accessor :scheme_transaction_reference
46
49
 
@@ -82,6 +85,7 @@ module VrpaymentRubySdk
82
85
  :'card_verification_code' => :'cardVerificationCode',
83
86
  :'primary_account_number' => :'primaryAccountNumber',
84
87
  :'recurring_indicator' => :'recurringIndicator',
88
+ :'transaction_link_identifier' => :'transactionLinkIdentifier',
85
89
  :'scheme_transaction_reference' => :'schemeTransactionReference',
86
90
  :'cardholder_authentication' => :'cardholderAuthentication',
87
91
  :'token_requestor_id' => :'tokenRequestorId',
@@ -108,6 +112,7 @@ module VrpaymentRubySdk
108
112
  :'card_verification_code' => :'String',
109
113
  :'primary_account_number' => :'String',
110
114
  :'recurring_indicator' => :'RecurringIndicator',
115
+ :'transaction_link_identifier' => :'String',
111
116
  :'scheme_transaction_reference' => :'String',
112
117
  :'cardholder_authentication' => :'CardholderAuthenticationCreate',
113
118
  :'token_requestor_id' => :'String',
@@ -163,6 +168,10 @@ module VrpaymentRubySdk
163
168
  self.recurring_indicator = attributes[:'recurring_indicator']
164
169
  end
165
170
 
171
+ if attributes.key?(:'transaction_link_identifier')
172
+ self.transaction_link_identifier = attributes[:'transaction_link_identifier']
173
+ end
174
+
166
175
  if attributes.key?(:'scheme_transaction_reference')
167
176
  self.scheme_transaction_reference = attributes[:'scheme_transaction_reference']
168
177
  end
@@ -224,6 +233,10 @@ module VrpaymentRubySdk
224
233
  invalid_properties.push("invalid value for \"primary_account_number\", must conform to the pattern #{pattern}.")
225
234
  end
226
235
 
236
+ if !@transaction_link_identifier.nil? && @transaction_link_identifier.to_s.length > 100
237
+ invalid_properties.push('invalid value for "transaction_link_identifier", the character length must be smaller than or equal to 100.')
238
+ end
239
+
227
240
  if !@scheme_transaction_reference.nil? && @scheme_transaction_reference.to_s.length > 100
228
241
  invalid_properties.push('invalid value for "scheme_transaction_reference", the character length must be smaller than or equal to 100.')
229
242
  end
@@ -244,6 +257,7 @@ module VrpaymentRubySdk
244
257
  return false if @primary_account_number.to_s.length > 30
245
258
  return false if @primary_account_number.to_s.length < 10
246
259
  return false if @primary_account_number !~ Regexp.new(/([0-9 ]+)/)
260
+ return false if !@transaction_link_identifier.nil? && @transaction_link_identifier.to_s.length > 100
247
261
  return false if !@scheme_transaction_reference.nil? && @scheme_transaction_reference.to_s.length > 100
248
262
  true
249
263
  end
@@ -323,6 +337,20 @@ module VrpaymentRubySdk
323
337
  @primary_account_number = primary_account_number
324
338
  end
325
339
 
340
+ # Custom attribute writer method with validation
341
+ # @param [Object] transaction_link_identifier Value to be assigned
342
+ def transaction_link_identifier=(transaction_link_identifier)
343
+ if transaction_link_identifier.nil?
344
+ fail ArgumentError, 'transaction_link_identifier cannot be nil'
345
+ end
346
+
347
+ if transaction_link_identifier.to_s.length > 100
348
+ fail ArgumentError, 'invalid value for "transaction_link_identifier", the character length must be smaller than or equal to 100.'
349
+ end
350
+
351
+ @transaction_link_identifier = transaction_link_identifier
352
+ end
353
+
326
354
  # Custom attribute writer method with validation
327
355
  # @param [Object] scheme_transaction_reference Value to be assigned
328
356
  def scheme_transaction_reference=(scheme_transaction_reference)
@@ -348,6 +376,7 @@ module VrpaymentRubySdk
348
376
  card_verification_code == o.card_verification_code &&
349
377
  primary_account_number == o.primary_account_number &&
350
378
  recurring_indicator == o.recurring_indicator &&
379
+ transaction_link_identifier == o.transaction_link_identifier &&
351
380
  scheme_transaction_reference == o.scheme_transaction_reference &&
352
381
  cardholder_authentication == o.cardholder_authentication &&
353
382
  token_requestor_id == o.token_requestor_id &&
@@ -363,7 +392,7 @@ module VrpaymentRubySdk
363
392
  # Calculates hash code according to all attributes.
364
393
  # @return [Integer] Hash code
365
394
  def hash
366
- [expiry_date, pan_type, card_holder_name, card_verification_code, primary_account_number, recurring_indicator, scheme_transaction_reference, cardholder_authentication, token_requestor_id, cryptogram].hash
395
+ [expiry_date, pan_type, card_holder_name, card_verification_code, primary_account_number, recurring_indicator, transaction_link_identifier, scheme_transaction_reference, cardholder_authentication, token_requestor_id, cryptogram].hash
367
396
  end
368
397
 
369
398
  # Builds the object from hash
@@ -0,0 +1,50 @@
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 BankPaymentType
28
+ INSTANT = "INSTANT".freeze
29
+ REGULAR = "REGULAR".freeze
30
+
31
+ def self.all_vars
32
+ @all_vars ||= [INSTANT, REGULAR].freeze
33
+ end
34
+
35
+ # Builds the enum from string
36
+ # @param [String] The enum value in the form of the string
37
+ # @return [String] The enum value
38
+ def self.build_from_hash(value)
39
+ new.build_from_hash(value)
40
+ end
41
+
42
+ # Builds the enum from string
43
+ # @param [String] The enum value in the form of the string
44
+ # @return [String] The enum value
45
+ def build_from_hash(value)
46
+ return value if BankPaymentType.all_vars.include?(value)
47
+ raise "Invalid ENUM value #{value} for class #BankPaymentType"
48
+ end
49
+ end
50
+ end