postfinancecheckout-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 (193) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +38 -31
  3. data/LICENSE +1 -1
  4. data/README.md +376 -129
  5. data/lib/postfinancecheckout-ruby-sdk/api_client.rb +1 -1
  6. data/lib/postfinancecheckout-ruby-sdk/models/abstract_role_update.rb +13 -1
  7. data/lib/postfinancecheckout-ruby-sdk/models/abstract_walleejoin_partnership.rb +330 -0
  8. data/lib/postfinancecheckout-ruby-sdk/models/{payment_terminal_preparing.rb → account_create_with_owner.rb} +63 -34
  9. data/lib/postfinancecheckout-ruby-sdk/models/authenticated_card_data_create.rb +30 -1
  10. data/lib/postfinancecheckout-ruby-sdk/models/bank_payment_type.rb +50 -0
  11. data/lib/postfinancecheckout-ruby-sdk/models/{abstract_payment_terminal_update.rb → basic_address.rb} +46 -30
  12. data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_shipping_address_change_request.rb → boarding_strategy_information_request.rb} +22 -14
  13. data/lib/postfinancecheckout-ruby-sdk/models/{bogus_express_checkout_payment_data.rb → charge_attempt_lookup_result.rb} +16 -18
  14. data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt_projection.rb +560 -0
  15. data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_shipping_option.rb → create_fulfillment_request.rb} +25 -50
  16. data/lib/postfinancecheckout-ruby-sdk/models/delivery_days_range.rb +60 -0
  17. data/lib/postfinancecheckout-ruby-sdk/models/delivery_destination.rb +51 -0
  18. data/lib/postfinancecheckout-ruby-sdk/models/dunning_case_level.rb +403 -0
  19. data/lib/postfinancecheckout-ruby-sdk/models/{user_account_role_list_response.rb → dunning_case_level_list_response.rb} +4 -4
  20. data/lib/postfinancecheckout-ruby-sdk/models/dunning_case_level_search_response.rb +263 -0
  21. data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_session_state.rb → dunning_case_level_state.rb} +7 -7
  22. data/lib/postfinancecheckout-ruby-sdk/models/fulfillment.rb +428 -0
  23. data/lib/postfinancecheckout-ruby-sdk/models/fulfillment_search_response.rb +263 -0
  24. data/lib/postfinancecheckout-ruby-sdk/models/fulfillment_state.rb +52 -0
  25. data/lib/postfinancecheckout-ruby-sdk/models/identity_info.rb +279 -0
  26. data/lib/postfinancecheckout-ruby-sdk/models/invoice_processor.rb +51 -0
  27. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record.rb +633 -0
  28. data/lib/postfinancecheckout-ruby-sdk/models/{user_account_role.rb → invoice_reconciliation_record_invoice_link.rb} +40 -43
  29. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_invoice_link_list_response.rb +253 -0
  30. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_invoice_link_search_response.rb +263 -0
  31. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_list_response.rb +253 -0
  32. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_rejection_status.rb +51 -0
  33. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_search_response.rb +263 -0
  34. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reconciliation_record_state.rb +53 -0
  35. data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_wallet_type.rb → invoice_reconciliation_record_type.rb} +3 -3
  36. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reimbursement.rb +463 -0
  37. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reimbursement_list_response.rb +253 -0
  38. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reimbursement_search_response.rb +263 -0
  39. data/lib/postfinancecheckout-ruby-sdk/models/invoice_reimbursement_state.rb +54 -0
  40. data/lib/postfinancecheckout-ruby-sdk/models/legal_form.rb +83 -0
  41. data/lib/postfinancecheckout-ruby-sdk/models/merchant_application_data_dto.rb +275 -0
  42. data/lib/postfinancecheckout-ruby-sdk/models/merchant_application_state.rb +50 -0
  43. data/lib/postfinancecheckout-ruby-sdk/models/merchant_application_status_dto.rb +284 -0
  44. data/lib/postfinancecheckout-ruby-sdk/models/merchant_bank_details_dto.rb +253 -0
  45. data/lib/postfinancecheckout-ruby-sdk/models/merchant_company_details_dto.rb +331 -0
  46. data/lib/postfinancecheckout-ruby-sdk/models/merchant_contract_revenue_dto.rb +261 -0
  47. data/lib/postfinancecheckout-ruby-sdk/models/merchant_ecommerce_details_dto.rb +348 -0
  48. data/lib/postfinancecheckout-ruby-sdk/models/merchant_payment_channels_dto.rb +263 -0
  49. data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_shipping_address_change_response.rb → merchant_related_persons_dto.rb} +22 -20
  50. data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_shipping_method_change_request.rb → payment_facilitator_pricing_profile_dto.rb} +19 -11
  51. data/lib/postfinancecheckout-ruby-sdk/models/payment_facilitator_pricing_profile_state.rb +53 -0
  52. data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_session.rb → payment_initiation_advice_file.rb} +57 -72
  53. data/lib/postfinancecheckout-ruby-sdk/models/payment_initiation_advice_file_state.rb +55 -0
  54. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal.rb +37 -1
  55. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_activation_status.rb +301 -0
  56. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_activation_status_detail_search_response.rb +263 -0
  57. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_address_create.rb +511 -0
  58. data/lib/postfinancecheckout-ruby-sdk/models/{payment_terminal_create.rb → payment_terminal_creation_request.rb} +88 -62
  59. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location.rb +1 -0
  60. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_crud_model.rb +398 -0
  61. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_crud_model_rest_api_create.rb +359 -0
  62. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_list_response.rb +253 -0
  63. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_version_state.rb +2 -1
  64. data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_create_response.rb → payout_account_info.rb} +31 -22
  65. data/lib/postfinancecheckout-ruby-sdk/models/person_salutation.rb +54 -0
  66. data/lib/postfinancecheckout-ruby-sdk/models/pricing_history_dto.rb +266 -0
  67. data/lib/postfinancecheckout-ruby-sdk/models/product_metered_fee.rb +11 -1
  68. data/lib/postfinancecheckout-ruby-sdk/models/product_metered_fee_update.rb +11 -1
  69. data/lib/postfinancecheckout-ruby-sdk/models/refund_days_range.rb +51 -0
  70. data/lib/postfinancecheckout-ruby-sdk/models/refund_percentage_range.rb +56 -0
  71. data/lib/postfinancecheckout-ruby-sdk/models/related_person.rb +329 -0
  72. data/lib/postfinancecheckout-ruby-sdk/models/representative_info.rb +239 -0
  73. data/lib/postfinancecheckout-ruby-sdk/models/{user_space_role.rb → rest_member.rb} +50 -37
  74. data/lib/postfinancecheckout-ruby-sdk/models/role.rb +13 -1
  75. data/lib/postfinancecheckout-ruby-sdk/models/role_create.rb +13 -1
  76. data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_shipping_method_change_response.rb → role_ref.rb} +18 -18
  77. data/lib/postfinancecheckout-ruby-sdk/models/role_update.rb +13 -1
  78. data/lib/postfinancecheckout-ruby-sdk/models/sales_channel.rb +15 -230
  79. data/lib/postfinancecheckout-ruby-sdk/models/scope.rb +13 -1
  80. data/lib/postfinancecheckout-ruby-sdk/models/setter.rb +618 -0
  81. data/lib/postfinancecheckout-ruby-sdk/models/sole_proprietor_ownership_type.rb +51 -0
  82. data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_approval_response.rb → sole_proprietorship_info.rb} +16 -25
  83. data/lib/postfinancecheckout-ruby-sdk/models/{user_space_role_list_response.rb → state_list_response.rb} +4 -4
  84. data/lib/postfinancecheckout-ruby-sdk/models/store_trial_subscription_request.rb +273 -0
  85. data/lib/postfinancecheckout-ruby-sdk/models/store_trial_subscription_request_setter.rb +307 -0
  86. data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_session_create.rb → subscription_component_group_configuration_request.rb} +23 -37
  87. data/lib/postfinancecheckout-ruby-sdk/models/subscription_component_group_configuration_request_setter.rb +249 -0
  88. data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_dto.rb +239 -0
  89. data/lib/postfinancecheckout-ruby-sdk/models/subscription_update_request.rb +22 -45
  90. data/lib/postfinancecheckout-ruby-sdk/models/tokenized_card_data_create.rb +30 -1
  91. data/lib/postfinancecheckout-ruby-sdk/models/{bogus_express_checkout_approval_request.rb → tracking_number_request.rb} +10 -10
  92. data/lib/postfinancecheckout-ruby-sdk/models/transaction_overview.rb +1144 -0
  93. data/lib/postfinancecheckout-ruby-sdk/models/transaction_projection.rb +1135 -0
  94. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_admin_partner_configuration_request_dto.rb +360 -0
  95. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_admin_partner_configuration_response_dto.rb +351 -0
  96. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_admin_pricing_type.rb +51 -0
  97. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_create_partnership_api_request_dto.rb +266 -0
  98. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership.rb +357 -0
  99. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_create.rb +337 -0
  100. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_response_dto.rb +342 -0
  101. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_response_dto_list_response.rb +253 -0
  102. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_response_dto_search_response.rb +263 -0
  103. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_state.rb +51 -0
  104. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_type.rb +50 -0
  105. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_update.rb +364 -0
  106. data/lib/postfinancecheckout-ruby-sdk/models/wallet_type.rb +40 -1
  107. data/lib/postfinancecheckout-ruby-sdk/models/web_ui_account_theme.rb +230 -0
  108. data/lib/postfinancecheckout-ruby-sdk/service/accounts_service.rb +16 -9
  109. data/lib/postfinancecheckout-ruby-sdk/service/analytics_queries_service.rb +8 -8
  110. data/lib/postfinancecheckout-ruby-sdk/service/bank_accounts_service.rb +3 -3
  111. data/lib/postfinancecheckout-ruby-sdk/service/bank_transactions_service.rb +3 -3
  112. data/lib/postfinancecheckout-ruby-sdk/service/boarding_subscription_strategy_service.rb +181 -0
  113. data/lib/postfinancecheckout-ruby-sdk/service/charge_attempts_service.rb +3 -3
  114. data/lib/postfinancecheckout-ruby-sdk/service/charge_bank_transactions_service.rb +3 -3
  115. data/lib/postfinancecheckout-ruby-sdk/service/charge_flow_levels_service.rb +4 -4
  116. data/lib/postfinancecheckout-ruby-sdk/service/charge_flows_level_payment_links_service.rb +3 -3
  117. data/lib/postfinancecheckout-ruby-sdk/service/charge_flows_service.rb +3 -3
  118. data/lib/postfinancecheckout-ruby-sdk/service/countries_service.rb +15 -6
  119. data/lib/postfinancecheckout-ruby-sdk/service/currency_bank_accounts_service.rb +3 -3
  120. data/lib/postfinancecheckout-ruby-sdk/service/customer_addresses_service.rb +7 -7
  121. data/lib/postfinancecheckout-ruby-sdk/service/customer_comments_service.rb +8 -8
  122. data/lib/postfinancecheckout-ruby-sdk/service/customers_service.rb +11 -11
  123. data/lib/postfinancecheckout-ruby-sdk/service/delivery_indications_service.rb +5 -5
  124. data/lib/postfinancecheckout-ruby-sdk/service/document_templates_service.rb +3 -3
  125. data/lib/postfinancecheckout-ruby-sdk/service/dunning_case_levels_service.rb +291 -0
  126. data/lib/postfinancecheckout-ruby-sdk/service/dunning_cases_service.rb +5 -5
  127. data/lib/postfinancecheckout-ruby-sdk/service/dunning_flow_levels_service.rb +3 -3
  128. data/lib/postfinancecheckout-ruby-sdk/service/dunning_flows_service.rb +3 -3
  129. data/lib/postfinancecheckout-ruby-sdk/service/external_transfer_bank_transactions_service.rb +3 -3
  130. data/lib/postfinancecheckout-ruby-sdk/service/fulfillments_service.rb +355 -0
  131. data/lib/postfinancecheckout-ruby-sdk/service/internal_transfer_bank_transactions_service.rb +3 -3
  132. data/lib/postfinancecheckout-ruby-sdk/service/invoice_reconciliation_record_invoice_links_service.rb +453 -0
  133. data/lib/postfinancecheckout-ruby-sdk/service/invoice_reconciliation_records_service.rb +433 -0
  134. data/lib/postfinancecheckout-ruby-sdk/service/invoice_reimbursements_service.rb +450 -0
  135. data/lib/postfinancecheckout-ruby-sdk/service/join_admin_partner_configuration_service.rb +306 -0
  136. data/lib/postfinancecheckout-ruby-sdk/service/join_partnership_service.rb +586 -0
  137. data/lib/postfinancecheckout-ruby-sdk/service/manual_tasks_service.rb +5 -5
  138. data/lib/postfinancecheckout-ruby-sdk/service/members_service.rb +215 -0
  139. data/lib/postfinancecheckout-ruby-sdk/service/merchant_applications_service.rb +334 -0
  140. data/lib/postfinancecheckout-ruby-sdk/service/payment_connector_configurations_service.rb +6 -6
  141. data/lib/postfinancecheckout-ruby-sdk/service/payment_links_service.rb +6 -6
  142. data/lib/postfinancecheckout-ruby-sdk/service/payment_method_configurations_service.rb +6 -6
  143. data/lib/postfinancecheckout-ruby-sdk/service/payment_processor_configurations_service.rb +85 -6
  144. data/lib/postfinancecheckout-ruby-sdk/service/payment_terminal_transaction_summaries_service.rb +4 -4
  145. data/lib/postfinancecheckout-ruby-sdk/service/payment_terminals_service.rb +475 -22
  146. data/lib/postfinancecheckout-ruby-sdk/service/refund_bank_transactions_service.rb +3 -3
  147. data/lib/postfinancecheckout-ruby-sdk/service/refund_comments_service.rb +8 -8
  148. data/lib/postfinancecheckout-ruby-sdk/service/refund_recovery_bank_transactions_service.rb +3 -3
  149. data/lib/postfinancecheckout-ruby-sdk/service/refunds_service.rb +7 -7
  150. data/lib/postfinancecheckout-ruby-sdk/service/spaces_service.rb +10 -3
  151. data/lib/postfinancecheckout-ruby-sdk/service/subscribers_service.rb +6 -6
  152. data/lib/postfinancecheckout-ruby-sdk/service/subscription_affiliates_service.rb +6 -6
  153. data/lib/postfinancecheckout-ruby-sdk/service/subscription_charges_service.rb +5 -5
  154. data/lib/postfinancecheckout-ruby-sdk/service/subscription_ledger_entries_service.rb +4 -4
  155. data/lib/postfinancecheckout-ruby-sdk/service/subscription_metric_usage_reports_service.rb +4 -4
  156. data/lib/postfinancecheckout-ruby-sdk/service/subscription_metrics_service.rb +6 -6
  157. data/lib/postfinancecheckout-ruby-sdk/service/subscription_period_bills_service.rb +4 -4
  158. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_component_groups_service.rb +6 -6
  159. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_components_service.rb +6 -6
  160. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_metered_fee_tiers_service.rb +6 -6
  161. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_metered_fees_service.rb +6 -6
  162. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_period_fees_service.rb +6 -6
  163. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_retirements_service.rb +3 -3
  164. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_setup_fees_service.rb +6 -6
  165. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_version_retirements_service.rb +3 -3
  166. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_versions_service.rb +7 -7
  167. data/lib/postfinancecheckout-ruby-sdk/service/subscription_products_service.rb +6 -6
  168. data/lib/postfinancecheckout-ruby-sdk/service/subscription_suspensions_service.rb +3 -3
  169. data/lib/postfinancecheckout-ruby-sdk/service/subscription_versions_service.rb +3 -3
  170. data/lib/postfinancecheckout-ruby-sdk/service/subscriptions_service.rb +13 -13
  171. data/lib/postfinancecheckout-ruby-sdk/service/terminal_locations_service.rb +276 -0
  172. data/lib/postfinancecheckout-ruby-sdk/service/token_versions_service.rb +3 -3
  173. data/lib/postfinancecheckout-ruby-sdk/service/tokens_service.rb +8 -8
  174. data/lib/postfinancecheckout-ruby-sdk/service/transaction_client_platforms_service.rb +3 -3
  175. data/lib/postfinancecheckout-ruby-sdk/service/transaction_comments_service.rb +8 -8
  176. data/lib/postfinancecheckout-ruby-sdk/service/transaction_completions_service.rb +3 -3
  177. data/lib/postfinancecheckout-ruby-sdk/service/transaction_invoice_comments_service.rb +8 -8
  178. data/lib/postfinancecheckout-ruby-sdk/service/transaction_invoices_service.rb +86 -8
  179. data/lib/postfinancecheckout-ruby-sdk/service/transaction_line_item_versions_service.rb +4 -4
  180. data/lib/postfinancecheckout-ruby-sdk/service/transaction_voids_service.rb +3 -3
  181. data/lib/postfinancecheckout-ruby-sdk/service/transactions_service.rb +179 -37
  182. data/lib/postfinancecheckout-ruby-sdk/service/web_apps_service.rb +2 -2
  183. data/lib/postfinancecheckout-ruby-sdk/service/web_ui_account_theme_service.rb +245 -0
  184. data/lib/postfinancecheckout-ruby-sdk/service/webhook_listeners_service.rb +9 -9
  185. data/lib/postfinancecheckout-ruby-sdk/service/webhook_urls_service.rb +9 -9
  186. data/lib/postfinancecheckout-ruby-sdk/version.rb +1 -1
  187. data/lib/postfinancecheckout-ruby-sdk.rb +99 -25
  188. metadata +101 -27
  189. data/lib/postfinancecheckout-ruby-sdk/service/application_users_roles_service.rb +0 -478
  190. data/lib/postfinancecheckout-ruby-sdk/service/bogus_express_checkout_service.rb +0 -114
  191. data/lib/postfinancecheckout-ruby-sdk/service/express_checkout_service.rb +0 -269
  192. data/lib/postfinancecheckout-ruby-sdk/service/human_users_roles_service.rb +0 -478
  193. data/lib/postfinancecheckout-ruby-sdk/service/single_sign_on_users_roles_service.rb +0 -478
@@ -24,30 +24,47 @@ require 'date'
24
24
  require 'time'
25
25
 
26
26
  module PostfinancecheckoutRubySdk
27
- class UserSpaceRole
28
- # The role that is assigned to the user.
29
- attr_accessor :role
27
+ class RestMember
28
+ # The roles the user holds.
29
+ attr_accessor :roles
30
+
31
+ # The name used to identify the user.
32
+ attr_accessor :name
30
33
 
31
34
  # A unique identifier for the object.
32
35
  attr_accessor :id
33
36
 
34
- # The user whose role this defines.
35
- attr_accessor :user
36
-
37
- # The version is used for optimistic locking and incremented whenever the object is updated.
38
- attr_accessor :version
37
+ attr_accessor :user_type
38
+
39
+ class EnumAttributeValidator
40
+ attr_reader :datatype
41
+ attr_reader :allowable_values
42
+
43
+ def initialize(datatype, allowable_values)
44
+ @allowable_values = allowable_values.map do |value|
45
+ case datatype.to_s
46
+ when /Integer/i
47
+ value.to_i
48
+ when /Float/i
49
+ value.to_f
50
+ else
51
+ value
52
+ end
53
+ end
54
+ end
39
55
 
40
- # The space in which the role is assigned to the user.
41
- attr_accessor :space
56
+ def valid?(value)
57
+ !value || allowable_values.include?(value)
58
+ end
59
+ end
42
60
 
43
61
  # Attribute mapping from ruby-style variable name to JSON key.
44
62
  def self.attribute_map
45
63
  {
46
- :'role' => :'role',
64
+ :'roles' => :'roles',
65
+ :'name' => :'name',
47
66
  :'id' => :'id',
48
- :'user' => :'user',
49
- :'version' => :'version',
50
- :'space' => :'space'
67
+ :'user_type' => :'userType'
51
68
  }
52
69
  end
53
70
 
@@ -64,11 +81,10 @@ module PostfinancecheckoutRubySdk
64
81
  # Attribute type mapping.
65
82
  def self.openapi_types
66
83
  {
67
- :'role' => :'Integer',
84
+ :'roles' => :'Array<RoleRef>',
85
+ :'name' => :'String',
68
86
  :'id' => :'Integer',
69
- :'user' => :'Integer',
70
- :'version' => :'Integer',
71
- :'space' => :'Integer'
87
+ :'user_type' => :'UserType'
72
88
  }
73
89
  end
74
90
 
@@ -82,36 +98,34 @@ module PostfinancecheckoutRubySdk
82
98
  # @param [Hash] attributes Model attributes in the form of hash
83
99
  def initialize(attributes = {})
84
100
  if (!attributes.is_a?(Hash))
85
- fail ArgumentError, "The input argument (attributes) must be a hash in `PostfinancecheckoutRubySdk::UserSpaceRole` initialize method"
101
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PostfinancecheckoutRubySdk::RestMember` initialize method"
86
102
  end
87
103
 
88
104
  # check to see if the attribute exists and convert string to symbol for hash key
89
105
  acceptable_attribute_map = self.class.acceptable_attribute_map
90
106
  attributes = attributes.each_with_object({}) { |(k, v), h|
91
107
  if (!acceptable_attribute_map.key?(k.to_sym))
92
- fail ArgumentError, "`#{k}` is not a valid attribute in `PostfinancecheckoutRubySdk::UserSpaceRole`. 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 `PostfinancecheckoutRubySdk::RestMember`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
93
109
  end
94
110
  h[k.to_sym] = v
95
111
  }
96
112
 
97
- if attributes.key?(:'role')
98
- self.role = attributes[:'role']
99
- end
100
-
101
- if attributes.key?(:'id')
102
- self.id = attributes[:'id']
113
+ if attributes.key?(:'roles')
114
+ if (value = attributes[:'roles']).is_a?(Array)
115
+ self.roles = value
116
+ end
103
117
  end
104
118
 
105
- if attributes.key?(:'user')
106
- self.user = attributes[:'user']
119
+ if attributes.key?(:'name')
120
+ self.name = attributes[:'name']
107
121
  end
108
122
 
109
- if attributes.key?(:'version')
110
- self.version = attributes[:'version']
123
+ if attributes.key?(:'id')
124
+ self.id = attributes[:'id']
111
125
  end
112
126
 
113
- if attributes.key?(:'space')
114
- self.space = attributes[:'space']
127
+ if attributes.key?(:'user_type')
128
+ self.user_type = attributes[:'user_type']
115
129
  end
116
130
  end
117
131
 
@@ -135,11 +149,10 @@ module PostfinancecheckoutRubySdk
135
149
  def ==(o)
136
150
  return true if self.equal?(o)
137
151
  self.class == o.class &&
138
- role == o.role &&
152
+ roles == o.roles &&
153
+ name == o.name &&
139
154
  id == o.id &&
140
- user == o.user &&
141
- version == o.version &&
142
- space == o.space
155
+ user_type == o.user_type
143
156
  end
144
157
 
145
158
  # @see the `==` method
@@ -151,7 +164,7 @@ module PostfinancecheckoutRubySdk
151
164
  # Calculates hash code according to all attributes.
152
165
  # @return [Integer] Hash code
153
166
  def hash
154
- [role, id, user, version, space].hash
167
+ [roles, name, id, user_type].hash
155
168
  end
156
169
 
157
170
  # Builds the object from hash
@@ -34,6 +34,9 @@ module PostfinancecheckoutRubySdk
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 PostfinancecheckoutRubySdk
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 PostfinancecheckoutRubySdk
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 PostfinancecheckoutRubySdk
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 PostfinancecheckoutRubySdk
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 PostfinancecheckoutRubySdk
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
@@ -31,6 +31,9 @@ module PostfinancecheckoutRubySdk
31
31
  # The name used to identify the role.
32
32
  attr_accessor :name
33
33
 
34
+ # Additional information that describes the role.
35
+ attr_accessor :description
36
+
34
37
  # Whether users with this role are required to use two-factor authentication.
35
38
  attr_accessor :two_factor_required
36
39
 
@@ -42,6 +45,7 @@ module PostfinancecheckoutRubySdk
42
45
  {
43
46
  :'permissions' => :'permissions',
44
47
  :'name' => :'name',
48
+ :'description' => :'description',
45
49
  :'two_factor_required' => :'twoFactorRequired',
46
50
  :'account' => :'account'
47
51
  }
@@ -62,6 +66,7 @@ module PostfinancecheckoutRubySdk
62
66
  {
63
67
  :'permissions' => :'Array<Permission>',
64
68
  :'name' => :'Hash<String, String>',
69
+ :'description' => :'Hash<String, String>',
65
70
  :'two_factor_required' => :'Boolean',
66
71
  :'account' => :'Integer'
67
72
  }
@@ -108,6 +113,12 @@ module PostfinancecheckoutRubySdk
108
113
  end
109
114
  end
110
115
 
116
+ if attributes.key?(:'description')
117
+ if (value = attributes[:'description']).is_a?(Hash)
118
+ self.description = value
119
+ end
120
+ end
121
+
111
122
  if attributes.key?(:'two_factor_required')
112
123
  self.two_factor_required = attributes[:'two_factor_required']
113
124
  end
@@ -166,6 +177,7 @@ module PostfinancecheckoutRubySdk
166
177
  self.class == o.class &&
167
178
  permissions == o.permissions &&
168
179
  name == o.name &&
180
+ description == o.description &&
169
181
  two_factor_required == o.two_factor_required &&
170
182
  account == o.account
171
183
  end
@@ -179,7 +191,7 @@ module PostfinancecheckoutRubySdk
179
191
  # Calculates hash code according to all attributes.
180
192
  # @return [Integer] Hash code
181
193
  def hash
182
- [permissions, name, two_factor_required, account].hash
194
+ [permissions, name, description, two_factor_required, account].hash
183
195
  end
184
196
 
185
197
  # Builds the object from hash
@@ -24,16 +24,18 @@ require 'date'
24
24
  require 'time'
25
25
 
26
26
  module PostfinancecheckoutRubySdk
27
- class ExpressCheckoutShippingMethodChangeResponse
28
- attr_accessor :line_items
27
+ class RoleRef
28
+ # The name used to identify the role.
29
+ attr_accessor :name
29
30
 
30
- attr_accessor :order_total
31
+ # A unique identifier for the object.
32
+ attr_accessor :id
31
33
 
32
34
  # Attribute mapping from ruby-style variable name to JSON key.
33
35
  def self.attribute_map
34
36
  {
35
- :'line_items' => :'lineItems',
36
- :'order_total' => :'orderTotal'
37
+ :'name' => :'name',
38
+ :'id' => :'id'
37
39
  }
38
40
  end
39
41
 
@@ -50,8 +52,8 @@ module PostfinancecheckoutRubySdk
50
52
  # Attribute type mapping.
51
53
  def self.openapi_types
52
54
  {
53
- :'line_items' => :'Array<LineItem>',
54
- :'order_total' => :'Float'
55
+ :'name' => :'String',
56
+ :'id' => :'Integer'
55
57
  }
56
58
  end
57
59
 
@@ -65,26 +67,24 @@ module PostfinancecheckoutRubySdk
65
67
  # @param [Hash] attributes Model attributes in the form of hash
66
68
  def initialize(attributes = {})
67
69
  if (!attributes.is_a?(Hash))
68
- fail ArgumentError, "The input argument (attributes) must be a hash in `PostfinancecheckoutRubySdk::ExpressCheckoutShippingMethodChangeResponse` initialize method"
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PostfinancecheckoutRubySdk::RoleRef` initialize method"
69
71
  end
70
72
 
71
73
  # check to see if the attribute exists and convert string to symbol for hash key
72
74
  acceptable_attribute_map = self.class.acceptable_attribute_map
73
75
  attributes = attributes.each_with_object({}) { |(k, v), h|
74
76
  if (!acceptable_attribute_map.key?(k.to_sym))
75
- fail ArgumentError, "`#{k}` is not a valid attribute in `PostfinancecheckoutRubySdk::ExpressCheckoutShippingMethodChangeResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PostfinancecheckoutRubySdk::RoleRef`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
76
78
  end
77
79
  h[k.to_sym] = v
78
80
  }
79
81
 
80
- if attributes.key?(:'line_items')
81
- if (value = attributes[:'line_items']).is_a?(Array)
82
- self.line_items = value
83
- end
82
+ if attributes.key?(:'name')
83
+ self.name = attributes[:'name']
84
84
  end
85
85
 
86
- if attributes.key?(:'order_total')
87
- self.order_total = attributes[:'order_total']
86
+ if attributes.key?(:'id')
87
+ self.id = attributes[:'id']
88
88
  end
89
89
  end
90
90
 
@@ -108,8 +108,8 @@ module PostfinancecheckoutRubySdk
108
108
  def ==(o)
109
109
  return true if self.equal?(o)
110
110
  self.class == o.class &&
111
- line_items == o.line_items &&
112
- order_total == o.order_total
111
+ name == o.name &&
112
+ id == o.id
113
113
  end
114
114
 
115
115
  # @see the `==` method
@@ -121,7 +121,7 @@ module PostfinancecheckoutRubySdk
121
121
  # Calculates hash code according to all attributes.
122
122
  # @return [Integer] Hash code
123
123
  def hash
124
- [line_items, order_total].hash
124
+ [name, id].hash
125
125
  end
126
126
 
127
127
  # Builds the object from hash
@@ -31,6 +31,9 @@ module PostfinancecheckoutRubySdk
31
31
  # The name used to identify the role.
32
32
  attr_accessor :name
33
33
 
34
+ # Additional information that describes the role.
35
+ attr_accessor :description
36
+
34
37
  # Whether users with this role are required to use two-factor authentication.
35
38
  attr_accessor :two_factor_required
36
39
 
@@ -42,6 +45,7 @@ module PostfinancecheckoutRubySdk
42
45
  {
43
46
  :'permissions' => :'permissions',
44
47
  :'name' => :'name',
48
+ :'description' => :'description',
45
49
  :'two_factor_required' => :'twoFactorRequired',
46
50
  :'version' => :'version'
47
51
  }
@@ -62,6 +66,7 @@ module PostfinancecheckoutRubySdk
62
66
  {
63
67
  :'permissions' => :'Array<Permission>',
64
68
  :'name' => :'Hash<String, String>',
69
+ :'description' => :'Hash<String, String>',
65
70
  :'two_factor_required' => :'Boolean',
66
71
  :'version' => :'Integer'
67
72
  }
@@ -108,6 +113,12 @@ module PostfinancecheckoutRubySdk
108
113
  end
109
114
  end
110
115
 
116
+ if attributes.key?(:'description')
117
+ if (value = attributes[:'description']).is_a?(Hash)
118
+ self.description = value
119
+ end
120
+ end
121
+
111
122
  if attributes.key?(:'two_factor_required')
112
123
  self.two_factor_required = attributes[:'two_factor_required']
113
124
  end
@@ -166,6 +177,7 @@ module PostfinancecheckoutRubySdk
166
177
  self.class == o.class &&
167
178
  permissions == o.permissions &&
168
179
  name == o.name &&
180
+ description == o.description &&
169
181
  two_factor_required == o.two_factor_required &&
170
182
  version == o.version
171
183
  end
@@ -179,7 +191,7 @@ module PostfinancecheckoutRubySdk
179
191
  # Calculates hash code according to all attributes.
180
192
  # @return [Integer] Hash code
181
193
  def hash
182
- [permissions, name, two_factor_required, version].hash
194
+ [permissions, name, description, two_factor_required, version].hash
183
195
  end
184
196
 
185
197
  # Builds the object from hash
@@ -25,241 +25,26 @@ require 'time'
25
25
 
26
26
  module PostfinancecheckoutRubySdk
27
27
  class SalesChannel
28
- # When listing sales channels, they can be sorted by this number.
29
- attr_accessor :sort_order
28
+ TERMINAL = "TERMINAL".freeze
29
+ ECOMMERCE = "ECOMMERCE".freeze
30
30
 
31
- # The localized name of the object.
32
- attr_accessor :name
33
-
34
- # The localized description of the object.
35
- attr_accessor :description
36
-
37
- # A unique identifier for the object.
38
- attr_accessor :id
39
-
40
- # Attribute mapping from ruby-style variable name to JSON key.
41
- def self.attribute_map
42
- {
43
- :'sort_order' => :'sortOrder',
44
- :'name' => :'name',
45
- :'description' => :'description',
46
- :'id' => :'id'
47
- }
48
- end
49
-
50
- # Returns attribute mapping this model knows about
51
- def self.acceptable_attribute_map
52
- attribute_map
53
- end
54
-
55
- # Returns all the JSON keys this model knows about
56
- def self.acceptable_attributes
57
- acceptable_attribute_map.values
58
- end
59
-
60
- # Attribute type mapping.
61
- def self.openapi_types
62
- {
63
- :'sort_order' => :'Integer',
64
- :'name' => :'Hash<String, String>',
65
- :'description' => :'Hash<String, String>',
66
- :'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 `PostfinancecheckoutRubySdk::SalesChannel` 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 `PostfinancecheckoutRubySdk::SalesChannel`. 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?(:'sort_order')
93
- self.sort_order = attributes[:'sort_order']
94
- end
95
-
96
- if attributes.key?(:'name')
97
- if (value = attributes[:'name']).is_a?(Hash)
98
- self.name = value
99
- end
100
- end
101
-
102
- if attributes.key?(:'description')
103
- if (value = attributes[:'description']).is_a?(Hash)
104
- self.description = value
105
- end
106
- end
107
-
108
- if attributes.key?(:'id')
109
- self.id = attributes[:'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
31
+ def self.all_vars
32
+ @all_vars ||= [TERMINAL, ECOMMERCE].freeze
119
33
  end
120
34
 
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
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)
126
40
  end
127
41
 
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
- sort_order == o.sort_order &&
134
- name == o.name &&
135
- description == o.description &&
136
- id == o.id
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 SalesChannel.all_vars.include?(value)
47
+ raise "Invalid ENUM value #{value} for class #SalesChannel"
137
48
  end
138
-
139
- # @see the `==` method
140
- # @param [Object] Object to be compared
141
- def eql?(o)
142
- self == o
143
- end
144
-
145
- # Calculates hash code according to all attributes.
146
- # @return [Integer] Hash code
147
- def hash
148
- [sort_order, name, description, id].hash
149
- end
150
-
151
- # Builds the object from hash
152
- # @param [Hash] attributes Model attributes in the form of hash
153
- # @return [Object] Returns the model itself
154
- def self.build_from_hash(attributes)
155
- return nil unless attributes.is_a?(Hash)
156
- attributes = attributes.transform_keys(&:to_sym)
157
- transformed_hash = {}
158
- openapi_types.each_pair do |key, type|
159
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
160
- transformed_hash["#{key}"] = nil
161
- elsif type =~ /\AArray<(.*)>/i
162
- # check to ensure the input is an array given that the attribute
163
- # is documented as an array but the input is not
164
- if attributes[attribute_map[key]].is_a?(Array)
165
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
166
- end
167
- elsif !attributes[attribute_map[key]].nil?
168
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
169
- end
170
- end
171
- new(transformed_hash)
172
- end
173
-
174
- # Deserializes the data based on type
175
- # @param string type Data type
176
- # @param string value Value to be deserialized
177
- # @return [Object] Deserialized data
178
- def self._deserialize(type, value)
179
- case type.to_sym
180
- when :Time
181
- Time.parse(value)
182
- when :Date
183
- Date.parse(value)
184
- when :String
185
- value.to_s
186
- when :Integer
187
- value.to_i
188
- when :Float
189
- value.to_f
190
- when :Boolean
191
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
192
- true
193
- else
194
- false
195
- end
196
- when :Object
197
- # generic object (usually a Hash), return directly
198
- value
199
- when /\AArray<(?<inner_type>.+)>\z/
200
- inner_type = Regexp.last_match[:inner_type]
201
- value.map { |v| _deserialize(inner_type, v) }
202
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
203
- k_type = Regexp.last_match[:k_type]
204
- v_type = Regexp.last_match[:v_type]
205
- {}.tap do |hash|
206
- value.each do |k, v|
207
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
208
- end
209
- end
210
- else # model
211
- # models (e.g. Pet) or oneOf
212
- klass = PostfinancecheckoutRubySdk.const_get(type)
213
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
214
- end
215
- end
216
-
217
- # Returns the string representation of the object
218
- # @return [String] String presentation of the object
219
- def to_s
220
- to_hash.to_s
221
- end
222
-
223
- # to_body is an alias to to_hash (backward compatibility)
224
- # @return [Hash] Returns the object in the form of hash
225
- def to_body
226
- to_hash
227
- end
228
-
229
- # Returns the object in the form of hash
230
- # @return [Hash] Returns the object in the form of hash
231
- def to_hash
232
- hash = {}
233
- self.class.attribute_map.each_pair do |attr, param|
234
- value = self.send(attr)
235
- if value.nil?
236
- is_nullable = self.class.openapi_nullable.include?(attr)
237
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
238
- end
239
-
240
- hash[param] = _to_hash(value)
241
- end
242
- hash
243
- end
244
-
245
- # Outputs non-array value in the form of hash
246
- # For object, use to_hash. Otherwise, just return the value
247
- # @param [Object] value Any valid value
248
- # @return [Hash] Returns the value in the form of hash
249
- def _to_hash(value)
250
- if value.is_a?(Array)
251
- value.compact.map { |v| _to_hash(v) }
252
- elsif value.is_a?(Hash)
253
- {}.tap do |hash|
254
- value.each { |k, v| hash[k] = _to_hash(v) }
255
- end
256
- elsif value.respond_to? :to_hash
257
- value.to_hash
258
- else
259
- value
260
- end
261
- end
262
-
263
49
  end
264
-
265
50
  end