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
@@ -24,16 +24,22 @@ require 'date'
24
24
  require 'time'
25
25
 
26
26
  module VrpaymentRubySdk
27
- class ExpressCheckoutShippingAddressChangeResponse
28
- attr_accessor :order_total
27
+ class WalleejoinPartnershipResponseDtoListResponse
28
+ # An array containing the actual response objects.
29
+ attr_accessor :data
29
30
 
30
- attr_accessor :shipping_options
31
+ # Whether there are more objects available after this set. If false, there are no more objects to retrieve.
32
+ attr_accessor :has_more
33
+
34
+ # The applied limit on the number of objects returned.
35
+ attr_accessor :limit
31
36
 
32
37
  # Attribute mapping from ruby-style variable name to JSON key.
33
38
  def self.attribute_map
34
39
  {
35
- :'order_total' => :'orderTotal',
36
- :'shipping_options' => :'shippingOptions'
40
+ :'data' => :'data',
41
+ :'has_more' => :'hasMore',
42
+ :'limit' => :'limit'
37
43
  }
38
44
  end
39
45
 
@@ -50,8 +56,9 @@ module VrpaymentRubySdk
50
56
  # Attribute type mapping.
51
57
  def self.openapi_types
52
58
  {
53
- :'order_total' => :'Float',
54
- :'shipping_options' => :'Array<ExpressCheckoutShippingOption>'
59
+ :'data' => :'Array<WalleejoinPartnershipResponseDto>',
60
+ :'has_more' => :'Boolean',
61
+ :'limit' => :'Integer'
55
62
  }
56
63
  end
57
64
 
@@ -65,26 +72,30 @@ module VrpaymentRubySdk
65
72
  # @param [Hash] attributes Model attributes in the form of hash
66
73
  def initialize(attributes = {})
67
74
  if (!attributes.is_a?(Hash))
68
- fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::ExpressCheckoutShippingAddressChangeResponse` initialize method"
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::WalleejoinPartnershipResponseDtoListResponse` initialize method"
69
76
  end
70
77
 
71
78
  # check to see if the attribute exists and convert string to symbol for hash key
72
79
  acceptable_attribute_map = self.class.acceptable_attribute_map
73
80
  attributes = attributes.each_with_object({}) { |(k, v), h|
74
81
  if (!acceptable_attribute_map.key?(k.to_sym))
75
- fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::ExpressCheckoutShippingAddressChangeResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
82
+ fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::WalleejoinPartnershipResponseDtoListResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
76
83
  end
77
84
  h[k.to_sym] = v
78
85
  }
79
86
 
80
- if attributes.key?(:'order_total')
81
- self.order_total = attributes[:'order_total']
87
+ if attributes.key?(:'data')
88
+ if (value = attributes[:'data']).is_a?(Array)
89
+ self.data = value
90
+ end
82
91
  end
83
92
 
84
- if attributes.key?(:'shipping_options')
85
- if (value = attributes[:'shipping_options']).is_a?(Array)
86
- self.shipping_options = value
87
- end
93
+ if attributes.key?(:'has_more')
94
+ self.has_more = attributes[:'has_more']
95
+ end
96
+
97
+ if attributes.key?(:'limit')
98
+ self.limit = attributes[:'limit']
88
99
  end
89
100
  end
90
101
 
@@ -108,8 +119,9 @@ module VrpaymentRubySdk
108
119
  def ==(o)
109
120
  return true if self.equal?(o)
110
121
  self.class == o.class &&
111
- order_total == o.order_total &&
112
- shipping_options == o.shipping_options
122
+ data == o.data &&
123
+ has_more == o.has_more &&
124
+ limit == o.limit
113
125
  end
114
126
 
115
127
  # @see the `==` method
@@ -121,7 +133,7 @@ module VrpaymentRubySdk
121
133
  # Calculates hash code according to all attributes.
122
134
  # @return [Integer] Hash code
123
135
  def hash
124
- [order_total, shipping_options].hash
136
+ [data, has_more, limit].hash
125
137
  end
126
138
 
127
139
  # Builds the object from hash
@@ -24,30 +24,26 @@ require 'date'
24
24
  require 'time'
25
25
 
26
26
  module VrpaymentRubySdk
27
- class UserSpaceRole
28
- # The role that is assigned to the user.
29
- attr_accessor :role
27
+ class WalleejoinPartnershipResponseDtoSearchResponse
28
+ # An array containing the actual response objects.
29
+ attr_accessor :data
30
30
 
31
- # A unique identifier for the object.
32
- attr_accessor :id
31
+ # The number of skipped objects.
32
+ attr_accessor :offset
33
33
 
34
- # The user whose role this defines.
35
- attr_accessor :user
34
+ # Whether there are more objects available after this set. If false, there are no more objects to retrieve.
35
+ attr_accessor :has_more
36
36
 
37
- # The version is used for optimistic locking and incremented whenever the object is updated.
38
- attr_accessor :version
39
-
40
- # The space in which the role is assigned to the user.
41
- attr_accessor :space
37
+ # The applied limit on the number of objects returned.
38
+ attr_accessor :limit
42
39
 
43
40
  # Attribute mapping from ruby-style variable name to JSON key.
44
41
  def self.attribute_map
45
42
  {
46
- :'role' => :'role',
47
- :'id' => :'id',
48
- :'user' => :'user',
49
- :'version' => :'version',
50
- :'space' => :'space'
43
+ :'data' => :'data',
44
+ :'offset' => :'offset',
45
+ :'has_more' => :'hasMore',
46
+ :'limit' => :'limit'
51
47
  }
52
48
  end
53
49
 
@@ -64,11 +60,10 @@ module VrpaymentRubySdk
64
60
  # Attribute type mapping.
65
61
  def self.openapi_types
66
62
  {
67
- :'role' => :'Integer',
68
- :'id' => :'Integer',
69
- :'user' => :'Integer',
70
- :'version' => :'Integer',
71
- :'space' => :'Integer'
63
+ :'data' => :'Array<WalleejoinPartnershipResponseDto>',
64
+ :'offset' => :'Integer',
65
+ :'has_more' => :'Boolean',
66
+ :'limit' => :'Integer'
72
67
  }
73
68
  end
74
69
 
@@ -82,36 +77,34 @@ module VrpaymentRubySdk
82
77
  # @param [Hash] attributes Model attributes in the form of hash
83
78
  def initialize(attributes = {})
84
79
  if (!attributes.is_a?(Hash))
85
- fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::UserSpaceRole` initialize method"
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::WalleejoinPartnershipResponseDtoSearchResponse` initialize method"
86
81
  end
87
82
 
88
83
  # check to see if the attribute exists and convert string to symbol for hash key
89
84
  acceptable_attribute_map = self.class.acceptable_attribute_map
90
85
  attributes = attributes.each_with_object({}) { |(k, v), h|
91
86
  if (!acceptable_attribute_map.key?(k.to_sym))
92
- fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::UserSpaceRole`. 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::WalleejoinPartnershipResponseDtoSearchResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
93
88
  end
94
89
  h[k.to_sym] = v
95
90
  }
96
91
 
97
- if attributes.key?(:'role')
98
- self.role = attributes[:'role']
99
- end
100
-
101
- if attributes.key?(:'id')
102
- self.id = attributes[:'id']
92
+ if attributes.key?(:'data')
93
+ if (value = attributes[:'data']).is_a?(Array)
94
+ self.data = value
95
+ end
103
96
  end
104
97
 
105
- if attributes.key?(:'user')
106
- self.user = attributes[:'user']
98
+ if attributes.key?(:'offset')
99
+ self.offset = attributes[:'offset']
107
100
  end
108
101
 
109
- if attributes.key?(:'version')
110
- self.version = attributes[:'version']
102
+ if attributes.key?(:'has_more')
103
+ self.has_more = attributes[:'has_more']
111
104
  end
112
105
 
113
- if attributes.key?(:'space')
114
- self.space = attributes[:'space']
106
+ if attributes.key?(:'limit')
107
+ self.limit = attributes[:'limit']
115
108
  end
116
109
  end
117
110
 
@@ -135,11 +128,10 @@ module VrpaymentRubySdk
135
128
  def ==(o)
136
129
  return true if self.equal?(o)
137
130
  self.class == o.class &&
138
- role == o.role &&
139
- id == o.id &&
140
- user == o.user &&
141
- version == o.version &&
142
- space == o.space
131
+ data == o.data &&
132
+ offset == o.offset &&
133
+ has_more == o.has_more &&
134
+ limit == o.limit
143
135
  end
144
136
 
145
137
  # @see the `==` method
@@ -151,7 +143,7 @@ module VrpaymentRubySdk
151
143
  # Calculates hash code according to all attributes.
152
144
  # @return [Integer] Hash code
153
145
  def hash
154
- [role, id, user, version, space].hash
146
+ [data, offset, has_more, limit].hash
155
147
  end
156
148
 
157
149
  # Builds the object from hash
@@ -0,0 +1,51 @@
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 WalleejoinPartnershipState
28
+ PENDING = "PENDING".freeze
29
+ ACTIVE = "ACTIVE".freeze
30
+ TERMINATED = "TERMINATED".freeze
31
+
32
+ def self.all_vars
33
+ @all_vars ||= [PENDING, ACTIVE, TERMINATED].freeze
34
+ end
35
+
36
+ # Builds the enum from string
37
+ # @param [String] The enum value in the form of the string
38
+ # @return [String] The enum value
39
+ def self.build_from_hash(value)
40
+ new.build_from_hash(value)
41
+ end
42
+
43
+ # Builds the enum from string
44
+ # @param [String] The enum value in the form of the string
45
+ # @return [String] The enum value
46
+ def build_from_hash(value)
47
+ return value if WalleejoinPartnershipState.all_vars.include?(value)
48
+ raise "Invalid ENUM value #{value} for class #WalleejoinPartnershipState"
49
+ end
50
+ end
51
+ end
@@ -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 WalleejoinPartnershipType
28
+ AFFILIATE = "AFFILIATE".freeze
29
+ ISV = "ISV".freeze
30
+
31
+ def self.all_vars
32
+ @all_vars ||= [AFFILIATE, ISV].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 WalleejoinPartnershipType.all_vars.include?(value)
47
+ raise "Invalid ENUM value #{value} for class #WalleejoinPartnershipType"
48
+ end
49
+ end
50
+ end