postfinancecheckout-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 (197) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +68 -19
  3. data/LICENSE +1 -1
  4. data/README.md +377 -108
  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/basic_address.rb +266 -0
  12. data/lib/postfinancecheckout-ruby-sdk/models/boarding_strategy_information_request.rb +247 -0
  13. data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_session_create.rb → charge_attempt_lookup_result.rb} +16 -20
  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/merchant_related_persons_dto.rb +243 -0
  50. data/lib/postfinancecheckout-ruby-sdk/models/{express_checkout_create_response.rb → payment_facilitator_pricing_profile_dto.rb} +16 -16
  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} +60 -37
  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/payout_account_info.rb +257 -0
  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.rb +13 -1
  70. data/lib/postfinancecheckout-ruby-sdk/models/refund_create.rb +13 -1
  71. data/lib/postfinancecheckout-ruby-sdk/models/refund_days_range.rb +51 -0
  72. data/lib/postfinancecheckout-ruby-sdk/models/refund_percentage_range.rb +56 -0
  73. data/lib/postfinancecheckout-ruby-sdk/models/related_person.rb +329 -0
  74. data/lib/postfinancecheckout-ruby-sdk/models/representative_info.rb +239 -0
  75. data/lib/postfinancecheckout-ruby-sdk/models/{user_space_role.rb → rest_member.rb} +50 -37
  76. data/lib/postfinancecheckout-ruby-sdk/models/role.rb +13 -1
  77. data/lib/postfinancecheckout-ruby-sdk/models/role_create.rb +13 -1
  78. data/lib/postfinancecheckout-ruby-sdk/models/{abstract_payment_terminal_update.rb → role_ref.rb} +18 -27
  79. data/lib/postfinancecheckout-ruby-sdk/models/role_update.rb +13 -1
  80. data/lib/postfinancecheckout-ruby-sdk/models/sales_channel.rb +15 -230
  81. data/lib/postfinancecheckout-ruby-sdk/models/scope.rb +28 -16
  82. data/lib/postfinancecheckout-ruby-sdk/models/setter.rb +618 -0
  83. data/lib/postfinancecheckout-ruby-sdk/models/sole_proprietor_ownership_type.rb +51 -0
  84. data/lib/postfinancecheckout-ruby-sdk/models/sole_proprietorship_info.rb +261 -0
  85. data/lib/postfinancecheckout-ruby-sdk/models/{user_space_role_list_response.rb → state_list_response.rb} +4 -4
  86. data/lib/postfinancecheckout-ruby-sdk/models/store_trial_subscription_request.rb +273 -0
  87. data/lib/postfinancecheckout-ruby-sdk/models/store_trial_subscription_request_setter.rb +307 -0
  88. data/lib/postfinancecheckout-ruby-sdk/models/subscription_component_group_configuration_request.rb +249 -0
  89. data/lib/postfinancecheckout-ruby-sdk/models/subscription_component_group_configuration_request_setter.rb +249 -0
  90. data/lib/postfinancecheckout-ruby-sdk/models/subscription_product_dto.rb +239 -0
  91. data/lib/postfinancecheckout-ruby-sdk/models/tokenized_card_data_create.rb +30 -1
  92. data/lib/postfinancecheckout-ruby-sdk/models/tracking_number_request.rb +230 -0
  93. data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion.rb +13 -1
  94. data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_details.rb +26 -4
  95. data/lib/postfinancecheckout-ruby-sdk/models/transaction_overview.rb +1144 -0
  96. data/lib/postfinancecheckout-ruby-sdk/models/transaction_projection.rb +1135 -0
  97. data/lib/postfinancecheckout-ruby-sdk/models/transaction_user_interface_type.rb +2 -1
  98. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_admin_partner_configuration_request_dto.rb +360 -0
  99. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_admin_partner_configuration_response_dto.rb +351 -0
  100. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_admin_pricing_type.rb +51 -0
  101. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_create_partnership_api_request_dto.rb +266 -0
  102. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership.rb +357 -0
  103. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_create.rb +337 -0
  104. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_response_dto.rb +342 -0
  105. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_response_dto_list_response.rb +253 -0
  106. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_response_dto_search_response.rb +263 -0
  107. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_state.rb +51 -0
  108. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_type.rb +50 -0
  109. data/lib/postfinancecheckout-ruby-sdk/models/walleejoin_partnership_update.rb +364 -0
  110. data/lib/postfinancecheckout-ruby-sdk/models/wallet_type.rb +40 -1
  111. data/lib/postfinancecheckout-ruby-sdk/models/web_ui_account_theme.rb +230 -0
  112. data/lib/postfinancecheckout-ruby-sdk/service/accounts_service.rb +16 -9
  113. data/lib/postfinancecheckout-ruby-sdk/service/analytics_queries_service.rb +8 -8
  114. data/lib/postfinancecheckout-ruby-sdk/service/bank_accounts_service.rb +3 -3
  115. data/lib/postfinancecheckout-ruby-sdk/service/bank_transactions_service.rb +3 -3
  116. data/lib/postfinancecheckout-ruby-sdk/service/boarding_subscription_strategy_service.rb +181 -0
  117. data/lib/postfinancecheckout-ruby-sdk/service/charge_attempts_service.rb +3 -3
  118. data/lib/postfinancecheckout-ruby-sdk/service/charge_bank_transactions_service.rb +3 -3
  119. data/lib/postfinancecheckout-ruby-sdk/service/charge_flow_levels_service.rb +4 -4
  120. data/lib/postfinancecheckout-ruby-sdk/service/charge_flows_level_payment_links_service.rb +3 -3
  121. data/lib/postfinancecheckout-ruby-sdk/service/charge_flows_service.rb +3 -3
  122. data/lib/postfinancecheckout-ruby-sdk/service/countries_service.rb +15 -6
  123. data/lib/postfinancecheckout-ruby-sdk/service/currency_bank_accounts_service.rb +3 -3
  124. data/lib/postfinancecheckout-ruby-sdk/service/customer_addresses_service.rb +7 -7
  125. data/lib/postfinancecheckout-ruby-sdk/service/customer_comments_service.rb +8 -8
  126. data/lib/postfinancecheckout-ruby-sdk/service/customers_service.rb +11 -11
  127. data/lib/postfinancecheckout-ruby-sdk/service/delivery_indications_service.rb +5 -5
  128. data/lib/postfinancecheckout-ruby-sdk/service/document_templates_service.rb +3 -3
  129. data/lib/postfinancecheckout-ruby-sdk/service/dunning_case_levels_service.rb +291 -0
  130. data/lib/postfinancecheckout-ruby-sdk/service/dunning_cases_service.rb +5 -5
  131. data/lib/postfinancecheckout-ruby-sdk/service/dunning_flow_levels_service.rb +3 -3
  132. data/lib/postfinancecheckout-ruby-sdk/service/dunning_flows_service.rb +3 -3
  133. data/lib/postfinancecheckout-ruby-sdk/service/external_transfer_bank_transactions_service.rb +3 -3
  134. data/lib/postfinancecheckout-ruby-sdk/service/fulfillments_service.rb +355 -0
  135. data/lib/postfinancecheckout-ruby-sdk/service/internal_transfer_bank_transactions_service.rb +3 -3
  136. data/lib/postfinancecheckout-ruby-sdk/service/invoice_reconciliation_record_invoice_links_service.rb +453 -0
  137. data/lib/postfinancecheckout-ruby-sdk/service/invoice_reconciliation_records_service.rb +433 -0
  138. data/lib/postfinancecheckout-ruby-sdk/service/invoice_reimbursements_service.rb +450 -0
  139. data/lib/postfinancecheckout-ruby-sdk/service/join_admin_partner_configuration_service.rb +306 -0
  140. data/lib/postfinancecheckout-ruby-sdk/service/join_partnership_service.rb +586 -0
  141. data/lib/postfinancecheckout-ruby-sdk/service/manual_tasks_service.rb +5 -5
  142. data/lib/postfinancecheckout-ruby-sdk/service/members_service.rb +215 -0
  143. data/lib/postfinancecheckout-ruby-sdk/service/merchant_applications_service.rb +334 -0
  144. data/lib/postfinancecheckout-ruby-sdk/service/payment_connector_configurations_service.rb +6 -6
  145. data/lib/postfinancecheckout-ruby-sdk/service/payment_links_service.rb +6 -6
  146. data/lib/postfinancecheckout-ruby-sdk/service/payment_method_configurations_service.rb +6 -6
  147. data/lib/postfinancecheckout-ruby-sdk/service/payment_processor_configurations_service.rb +85 -6
  148. data/lib/postfinancecheckout-ruby-sdk/service/payment_terminal_transaction_summaries_service.rb +4 -4
  149. data/lib/postfinancecheckout-ruby-sdk/service/payment_terminals_service.rb +475 -22
  150. data/lib/postfinancecheckout-ruby-sdk/service/refund_bank_transactions_service.rb +3 -3
  151. data/lib/postfinancecheckout-ruby-sdk/service/refund_comments_service.rb +8 -8
  152. data/lib/postfinancecheckout-ruby-sdk/service/refund_recovery_bank_transactions_service.rb +3 -3
  153. data/lib/postfinancecheckout-ruby-sdk/service/refunds_service.rb +7 -7
  154. data/lib/postfinancecheckout-ruby-sdk/service/spaces_service.rb +10 -3
  155. data/lib/postfinancecheckout-ruby-sdk/service/subscribers_service.rb +6 -6
  156. data/lib/postfinancecheckout-ruby-sdk/service/subscription_affiliates_service.rb +6 -6
  157. data/lib/postfinancecheckout-ruby-sdk/service/subscription_charges_service.rb +5 -5
  158. data/lib/postfinancecheckout-ruby-sdk/service/subscription_ledger_entries_service.rb +4 -4
  159. data/lib/postfinancecheckout-ruby-sdk/service/subscription_metric_usage_reports_service.rb +4 -4
  160. data/lib/postfinancecheckout-ruby-sdk/service/subscription_metrics_service.rb +6 -6
  161. data/lib/postfinancecheckout-ruby-sdk/service/subscription_period_bills_service.rb +4 -4
  162. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_component_groups_service.rb +6 -6
  163. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_components_service.rb +6 -6
  164. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_metered_fee_tiers_service.rb +6 -6
  165. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_metered_fees_service.rb +6 -6
  166. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_period_fees_service.rb +6 -6
  167. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_retirements_service.rb +3 -3
  168. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_setup_fees_service.rb +6 -6
  169. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_version_retirements_service.rb +3 -3
  170. data/lib/postfinancecheckout-ruby-sdk/service/subscription_product_versions_service.rb +7 -7
  171. data/lib/postfinancecheckout-ruby-sdk/service/subscription_products_service.rb +6 -6
  172. data/lib/postfinancecheckout-ruby-sdk/service/subscription_suspensions_service.rb +3 -3
  173. data/lib/postfinancecheckout-ruby-sdk/service/subscription_versions_service.rb +3 -3
  174. data/lib/postfinancecheckout-ruby-sdk/service/subscriptions_service.rb +13 -13
  175. data/lib/postfinancecheckout-ruby-sdk/service/terminal_locations_service.rb +276 -0
  176. data/lib/postfinancecheckout-ruby-sdk/service/token_versions_service.rb +3 -3
  177. data/lib/postfinancecheckout-ruby-sdk/service/tokens_service.rb +8 -8
  178. data/lib/postfinancecheckout-ruby-sdk/service/transaction_client_platforms_service.rb +3 -3
  179. data/lib/postfinancecheckout-ruby-sdk/service/transaction_comments_service.rb +8 -8
  180. data/lib/postfinancecheckout-ruby-sdk/service/transaction_completions_service.rb +3 -3
  181. data/lib/postfinancecheckout-ruby-sdk/service/transaction_invoice_comments_service.rb +8 -8
  182. data/lib/postfinancecheckout-ruby-sdk/service/transaction_invoices_service.rb +86 -8
  183. data/lib/postfinancecheckout-ruby-sdk/service/transaction_line_item_versions_service.rb +4 -4
  184. data/lib/postfinancecheckout-ruby-sdk/service/transaction_voids_service.rb +3 -3
  185. data/lib/postfinancecheckout-ruby-sdk/service/transactions_service.rb +179 -37
  186. data/lib/postfinancecheckout-ruby-sdk/service/web_apps_service.rb +2 -2
  187. data/lib/postfinancecheckout-ruby-sdk/service/web_ui_account_theme_service.rb +245 -0
  188. data/lib/postfinancecheckout-ruby-sdk/service/webhook_listeners_service.rb +9 -9
  189. data/lib/postfinancecheckout-ruby-sdk/service/webhook_urls_service.rb +9 -9
  190. data/lib/postfinancecheckout-ruby-sdk/version.rb +1 -1
  191. data/lib/postfinancecheckout-ruby-sdk.rb +99 -17
  192. data/test/test_querying.rb +11 -0
  193. metadata +101 -19
  194. data/lib/postfinancecheckout-ruby-sdk/service/application_users_roles_service.rb +0 -478
  195. data/lib/postfinancecheckout-ruby-sdk/service/express_checkout_service.rb +0 -107
  196. data/lib/postfinancecheckout-ruby-sdk/service/human_users_roles_service.rb +0 -478
  197. data/lib/postfinancecheckout-ruby-sdk/service/single_sign_on_users_roles_service.rb +0 -478
@@ -24,22 +24,30 @@ require 'date'
24
24
  require 'time'
25
25
 
26
26
  module PostfinancecheckoutRubySdk
27
- class ExpressCheckoutSession
28
- attr_accessor :line_items
27
+ class PaymentInitiationAdviceFile
28
+ # The shipping date indicates the date on which the pain file was transferred to an external processing system.
29
+ attr_accessor :forwarded_on
29
30
 
30
- # The spaceId linked to the entity.
31
+ # The ID of the space this object belongs to.
31
32
  attr_accessor :linked_space_id
32
33
 
33
- attr_accessor :meta_data
34
+ attr_accessor :processed_on
34
35
 
35
- attr_accessor :wallet_type
36
+ attr_accessor :file_generated_on
36
37
 
37
- # Id of the entity.
38
+ attr_accessor :name
39
+
40
+ # A unique identifier for the object.
38
41
  attr_accessor :id
39
42
 
40
43
  attr_accessor :state
41
44
 
42
- attr_accessor :shipping_options
45
+ # The created on date indicates the date on which the entity was stored into the database.
46
+ attr_accessor :created_on
47
+
48
+ attr_accessor :failure_message
49
+
50
+ attr_accessor :processor
43
51
 
44
52
  class EnumAttributeValidator
45
53
  attr_reader :datatype
@@ -66,13 +74,16 @@ module PostfinancecheckoutRubySdk
66
74
  # Attribute mapping from ruby-style variable name to JSON key.
67
75
  def self.attribute_map
68
76
  {
69
- :'line_items' => :'lineItems',
77
+ :'forwarded_on' => :'forwardedOn',
70
78
  :'linked_space_id' => :'linkedSpaceId',
71
- :'meta_data' => :'metaData',
72
- :'wallet_type' => :'walletType',
79
+ :'processed_on' => :'processedOn',
80
+ :'file_generated_on' => :'fileGeneratedOn',
81
+ :'name' => :'name',
73
82
  :'id' => :'id',
74
83
  :'state' => :'state',
75
- :'shipping_options' => :'shippingOptions'
84
+ :'created_on' => :'createdOn',
85
+ :'failure_message' => :'failureMessage',
86
+ :'processor' => :'processor'
76
87
  }
77
88
  end
78
89
 
@@ -89,13 +100,16 @@ module PostfinancecheckoutRubySdk
89
100
  # Attribute type mapping.
90
101
  def self.openapi_types
91
102
  {
92
- :'line_items' => :'Array<LineItem>',
103
+ :'forwarded_on' => :'Time',
93
104
  :'linked_space_id' => :'Integer',
94
- :'meta_data' => :'Hash<String, String>',
95
- :'wallet_type' => :'ExpressCheckoutWalletType',
105
+ :'processed_on' => :'Time',
106
+ :'file_generated_on' => :'Time',
107
+ :'name' => :'String',
96
108
  :'id' => :'Integer',
97
- :'state' => :'ExpressCheckoutSessionState',
98
- :'shipping_options' => :'Array<ExpressCheckoutShippingOption>'
109
+ :'state' => :'PaymentInitiationAdviceFileState',
110
+ :'created_on' => :'Time',
111
+ :'failure_message' => :'String',
112
+ :'processor' => :'PaymentProcessor'
99
113
  }
100
114
  end
101
115
 
@@ -109,36 +123,36 @@ module PostfinancecheckoutRubySdk
109
123
  # @param [Hash] attributes Model attributes in the form of hash
110
124
  def initialize(attributes = {})
111
125
  if (!attributes.is_a?(Hash))
112
- fail ArgumentError, "The input argument (attributes) must be a hash in `PostfinancecheckoutRubySdk::ExpressCheckoutSession` initialize method"
126
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PostfinancecheckoutRubySdk::PaymentInitiationAdviceFile` initialize method"
113
127
  end
114
128
 
115
129
  # check to see if the attribute exists and convert string to symbol for hash key
116
130
  acceptable_attribute_map = self.class.acceptable_attribute_map
117
131
  attributes = attributes.each_with_object({}) { |(k, v), h|
118
132
  if (!acceptable_attribute_map.key?(k.to_sym))
119
- fail ArgumentError, "`#{k}` is not a valid attribute in `PostfinancecheckoutRubySdk::ExpressCheckoutSession`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
133
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PostfinancecheckoutRubySdk::PaymentInitiationAdviceFile`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
120
134
  end
121
135
  h[k.to_sym] = v
122
136
  }
123
137
 
124
- if attributes.key?(:'line_items')
125
- if (value = attributes[:'line_items']).is_a?(Array)
126
- self.line_items = value
127
- end
138
+ if attributes.key?(:'forwarded_on')
139
+ self.forwarded_on = attributes[:'forwarded_on']
128
140
  end
129
141
 
130
142
  if attributes.key?(:'linked_space_id')
131
143
  self.linked_space_id = attributes[:'linked_space_id']
132
144
  end
133
145
 
134
- if attributes.key?(:'meta_data')
135
- if (value = attributes[:'meta_data']).is_a?(Hash)
136
- self.meta_data = value
137
- end
146
+ if attributes.key?(:'processed_on')
147
+ self.processed_on = attributes[:'processed_on']
148
+ end
149
+
150
+ if attributes.key?(:'file_generated_on')
151
+ self.file_generated_on = attributes[:'file_generated_on']
138
152
  end
139
153
 
140
- if attributes.key?(:'wallet_type')
141
- self.wallet_type = attributes[:'wallet_type']
154
+ if attributes.key?(:'name')
155
+ self.name = attributes[:'name']
142
156
  end
143
157
 
144
158
  if attributes.key?(:'id')
@@ -149,10 +163,16 @@ module PostfinancecheckoutRubySdk
149
163
  self.state = attributes[:'state']
150
164
  end
151
165
 
152
- if attributes.key?(:'shipping_options')
153
- if (value = attributes[:'shipping_options']).is_a?(Array)
154
- self.shipping_options = value
155
- end
166
+ if attributes.key?(:'created_on')
167
+ self.created_on = attributes[:'created_on']
168
+ end
169
+
170
+ if attributes.key?(:'failure_message')
171
+ self.failure_message = attributes[:'failure_message']
172
+ end
173
+
174
+ if attributes.key?(:'processor')
175
+ self.processor = attributes[:'processor']
156
176
  end
157
177
  end
158
178
 
@@ -176,13 +196,16 @@ module PostfinancecheckoutRubySdk
176
196
  def ==(o)
177
197
  return true if self.equal?(o)
178
198
  self.class == o.class &&
179
- line_items == o.line_items &&
199
+ forwarded_on == o.forwarded_on &&
180
200
  linked_space_id == o.linked_space_id &&
181
- meta_data == o.meta_data &&
182
- wallet_type == o.wallet_type &&
201
+ processed_on == o.processed_on &&
202
+ file_generated_on == o.file_generated_on &&
203
+ name == o.name &&
183
204
  id == o.id &&
184
205
  state == o.state &&
185
- shipping_options == o.shipping_options
206
+ created_on == o.created_on &&
207
+ failure_message == o.failure_message &&
208
+ processor == o.processor
186
209
  end
187
210
 
188
211
  # @see the `==` method
@@ -194,7 +217,7 @@ module PostfinancecheckoutRubySdk
194
217
  # Calculates hash code according to all attributes.
195
218
  # @return [Integer] Hash code
196
219
  def hash
197
- [line_items, linked_space_id, meta_data, wallet_type, id, state, shipping_options].hash
220
+ [forwarded_on, linked_space_id, processed_on, file_generated_on, name, id, state, created_on, failure_message, processor].hash
198
221
  end
199
222
 
200
223
  # Builds the object from hash
@@ -0,0 +1,55 @@
1
+ =begin
2
+ # PostFinance Ruby SDK
3
+ #
4
+ # This library allows to interact with the PostFinance payment service.
5
+ #
6
+ # Copyright owner: Wallee AG
7
+ # Website: https://www.postfinance.ch/en/private.html
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 PostfinancecheckoutRubySdk
27
+ class PaymentInitiationAdviceFileState
28
+ CREATING = "CREATING".freeze
29
+ FAILED = "FAILED".freeze
30
+ CREATED = "CREATED".freeze
31
+ OVERDUE = "OVERDUE".freeze
32
+ UPLOADED = "UPLOADED".freeze
33
+ DOWNLOADED = "DOWNLOADED".freeze
34
+ PROCESSED = "PROCESSED".freeze
35
+
36
+ def self.all_vars
37
+ @all_vars ||= [CREATING, FAILED, CREATED, OVERDUE, UPLOADED, DOWNLOADED, PROCESSED].freeze
38
+ end
39
+
40
+ # Builds the enum from string
41
+ # @param [String] The enum value in the form of the string
42
+ # @return [String] The enum value
43
+ def self.build_from_hash(value)
44
+ new.build_from_hash(value)
45
+ end
46
+
47
+ # Builds the enum from string
48
+ # @param [String] The enum value in the form of the string
49
+ # @return [String] The enum value
50
+ def build_from_hash(value)
51
+ return value if PaymentInitiationAdviceFileState.all_vars.include?(value)
52
+ raise "Invalid ENUM value #{value} for class #PaymentInitiationAdviceFileState"
53
+ end
54
+ end
55
+ end
@@ -28,6 +28,8 @@ module PostfinancecheckoutRubySdk
28
28
  # The unique identifier of the terminal, that is displayed on the device.
29
29
  attr_accessor :identifier
30
30
 
31
+ attr_accessor :deactivated_on
32
+
31
33
  # The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
32
34
  attr_accessor :planned_purge_date
33
35
 
@@ -52,12 +54,18 @@ module PostfinancecheckoutRubySdk
52
54
 
53
55
  attr_accessor :location_version
54
56
 
57
+ attr_accessor :activated_on
58
+
59
+ attr_accessor :decommissioned_on
60
+
55
61
  # The default currency of the terminal.
56
62
  attr_accessor :default_currency
57
63
 
58
64
  # The name used to identify the payment terminal.
59
65
  attr_accessor :name
60
66
 
67
+ attr_accessor :activation_code
68
+
61
69
  # A unique identifier for the object.
62
70
  attr_accessor :id
63
71
 
@@ -89,6 +97,7 @@ module PostfinancecheckoutRubySdk
89
97
  def self.attribute_map
90
98
  {
91
99
  :'identifier' => :'identifier',
100
+ :'deactivated_on' => :'deactivatedOn',
92
101
  :'planned_purge_date' => :'plannedPurgeDate',
93
102
  :'external_id' => :'externalId',
94
103
  :'type' => :'type',
@@ -98,8 +107,11 @@ module PostfinancecheckoutRubySdk
98
107
  :'linked_space_id' => :'linkedSpaceId',
99
108
  :'configuration_version' => :'configurationVersion',
100
109
  :'location_version' => :'locationVersion',
110
+ :'activated_on' => :'activatedOn',
111
+ :'decommissioned_on' => :'decommissionedOn',
101
112
  :'default_currency' => :'defaultCurrency',
102
113
  :'name' => :'name',
114
+ :'activation_code' => :'activationCode',
103
115
  :'id' => :'id',
104
116
  :'state' => :'state'
105
117
  }
@@ -119,6 +131,7 @@ module PostfinancecheckoutRubySdk
119
131
  def self.openapi_types
120
132
  {
121
133
  :'identifier' => :'String',
134
+ :'deactivated_on' => :'Time',
122
135
  :'planned_purge_date' => :'Time',
123
136
  :'external_id' => :'String',
124
137
  :'type' => :'PaymentTerminalType',
@@ -128,8 +141,11 @@ module PostfinancecheckoutRubySdk
128
141
  :'linked_space_id' => :'Integer',
129
142
  :'configuration_version' => :'PaymentTerminalConfigurationVersion',
130
143
  :'location_version' => :'PaymentTerminalLocationVersion',
144
+ :'activated_on' => :'Time',
145
+ :'decommissioned_on' => :'Time',
131
146
  :'default_currency' => :'String',
132
147
  :'name' => :'String',
148
+ :'activation_code' => :'String',
133
149
  :'id' => :'Integer',
134
150
  :'state' => :'PaymentTerminalState'
135
151
  }
@@ -161,6 +177,10 @@ module PostfinancecheckoutRubySdk
161
177
  self.identifier = attributes[:'identifier']
162
178
  end
163
179
 
180
+ if attributes.key?(:'deactivated_on')
181
+ self.deactivated_on = attributes[:'deactivated_on']
182
+ end
183
+
164
184
  if attributes.key?(:'planned_purge_date')
165
185
  self.planned_purge_date = attributes[:'planned_purge_date']
166
186
  end
@@ -197,6 +217,14 @@ module PostfinancecheckoutRubySdk
197
217
  self.location_version = attributes[:'location_version']
198
218
  end
199
219
 
220
+ if attributes.key?(:'activated_on')
221
+ self.activated_on = attributes[:'activated_on']
222
+ end
223
+
224
+ if attributes.key?(:'decommissioned_on')
225
+ self.decommissioned_on = attributes[:'decommissioned_on']
226
+ end
227
+
200
228
  if attributes.key?(:'default_currency')
201
229
  self.default_currency = attributes[:'default_currency']
202
230
  end
@@ -205,6 +233,10 @@ module PostfinancecheckoutRubySdk
205
233
  self.name = attributes[:'name']
206
234
  end
207
235
 
236
+ if attributes.key?(:'activation_code')
237
+ self.activation_code = attributes[:'activation_code']
238
+ end
239
+
208
240
  if attributes.key?(:'id')
209
241
  self.id = attributes[:'id']
210
242
  end
@@ -254,6 +286,7 @@ module PostfinancecheckoutRubySdk
254
286
  return true if self.equal?(o)
255
287
  self.class == o.class &&
256
288
  identifier == o.identifier &&
289
+ deactivated_on == o.deactivated_on &&
257
290
  planned_purge_date == o.planned_purge_date &&
258
291
  external_id == o.external_id &&
259
292
  type == o.type &&
@@ -263,8 +296,11 @@ module PostfinancecheckoutRubySdk
263
296
  linked_space_id == o.linked_space_id &&
264
297
  configuration_version == o.configuration_version &&
265
298
  location_version == o.location_version &&
299
+ activated_on == o.activated_on &&
300
+ decommissioned_on == o.decommissioned_on &&
266
301
  default_currency == o.default_currency &&
267
302
  name == o.name &&
303
+ activation_code == o.activation_code &&
268
304
  id == o.id &&
269
305
  state == o.state
270
306
  end
@@ -278,7 +314,7 @@ module PostfinancecheckoutRubySdk
278
314
  # Calculates hash code according to all attributes.
279
315
  # @return [Integer] Hash code
280
316
  def hash
281
- [identifier, planned_purge_date, external_id, type, device_name, version, device_serial_number, linked_space_id, configuration_version, location_version, default_currency, name, id, state].hash
317
+ [identifier, deactivated_on, planned_purge_date, external_id, type, device_name, version, device_serial_number, linked_space_id, configuration_version, location_version, activated_on, decommissioned_on, default_currency, name, activation_code, id, state].hash
282
318
  end
283
319
 
284
320
  # Builds the object from hash
@@ -0,0 +1,301 @@
1
+ =begin
2
+ # PostFinance Ruby SDK
3
+ #
4
+ # This library allows to interact with the PostFinance payment service.
5
+ #
6
+ # Copyright owner: Wallee AG
7
+ # Website: https://www.postfinance.ch/en/private.html
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 PostfinancecheckoutRubySdk
27
+ class PaymentTerminalActivationStatus
28
+ # Whether the activation code is active on the acquirer side
29
+ attr_accessor :activation_code_active
30
+
31
+ # The environment (TEST/PRODUCTION) the payment terminal belongs to.
32
+ attr_accessor :environment
33
+
34
+ # Time when the payment terminal got activated on acquirer side
35
+ attr_accessor :activated_on
36
+
37
+ # The ID of the location that the payment terminal belongs to
38
+ attr_accessor :location_id
39
+
40
+ # Activation code that is used to link the terminal
41
+ attr_accessor :activation_code
42
+
43
+ # The ID of the configuration that the payment terminal belongs to
44
+ attr_accessor :configuration_id
45
+
46
+ # The ID of the payment terminal
47
+ attr_accessor :terminal_id
48
+
49
+ # The ID of the space that the payment terminal belongs to
50
+ attr_accessor :space
51
+
52
+ # Attribute mapping from ruby-style variable name to JSON key.
53
+ def self.attribute_map
54
+ {
55
+ :'activation_code_active' => :'activationCodeActive',
56
+ :'environment' => :'environment',
57
+ :'activated_on' => :'activatedOn',
58
+ :'location_id' => :'locationId',
59
+ :'activation_code' => :'activationCode',
60
+ :'configuration_id' => :'configurationId',
61
+ :'terminal_id' => :'terminalId',
62
+ :'space' => :'space'
63
+ }
64
+ end
65
+
66
+ # Returns attribute mapping this model knows about
67
+ def self.acceptable_attribute_map
68
+ attribute_map
69
+ end
70
+
71
+ # Returns all the JSON keys this model knows about
72
+ def self.acceptable_attributes
73
+ acceptable_attribute_map.values
74
+ end
75
+
76
+ # Attribute type mapping.
77
+ def self.openapi_types
78
+ {
79
+ :'activation_code_active' => :'Boolean',
80
+ :'environment' => :'String',
81
+ :'activated_on' => :'Time',
82
+ :'location_id' => :'Integer',
83
+ :'activation_code' => :'String',
84
+ :'configuration_id' => :'Integer',
85
+ :'terminal_id' => :'String',
86
+ :'space' => :'Integer'
87
+ }
88
+ end
89
+
90
+ # List of attributes with nullable: true
91
+ def self.openapi_nullable
92
+ Set.new([
93
+ ])
94
+ end
95
+
96
+ # Initializes the object
97
+ # @param [Hash] attributes Model attributes in the form of hash
98
+ def initialize(attributes = {})
99
+ if (!attributes.is_a?(Hash))
100
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PostfinancecheckoutRubySdk::PaymentTerminalActivationStatus` initialize method"
101
+ end
102
+
103
+ # check to see if the attribute exists and convert string to symbol for hash key
104
+ acceptable_attribute_map = self.class.acceptable_attribute_map
105
+ attributes = attributes.each_with_object({}) { |(k, v), h|
106
+ if (!acceptable_attribute_map.key?(k.to_sym))
107
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PostfinancecheckoutRubySdk::PaymentTerminalActivationStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
108
+ end
109
+ h[k.to_sym] = v
110
+ }
111
+
112
+ if attributes.key?(:'activation_code_active')
113
+ self.activation_code_active = attributes[:'activation_code_active']
114
+ end
115
+
116
+ if attributes.key?(:'environment')
117
+ self.environment = attributes[:'environment']
118
+ end
119
+
120
+ if attributes.key?(:'activated_on')
121
+ self.activated_on = attributes[:'activated_on']
122
+ end
123
+
124
+ if attributes.key?(:'location_id')
125
+ self.location_id = attributes[:'location_id']
126
+ end
127
+
128
+ if attributes.key?(:'activation_code')
129
+ self.activation_code = attributes[:'activation_code']
130
+ end
131
+
132
+ if attributes.key?(:'configuration_id')
133
+ self.configuration_id = attributes[:'configuration_id']
134
+ end
135
+
136
+ if attributes.key?(:'terminal_id')
137
+ self.terminal_id = attributes[:'terminal_id']
138
+ end
139
+
140
+ if attributes.key?(:'space')
141
+ self.space = attributes[:'space']
142
+ end
143
+ end
144
+
145
+ # Show invalid properties with the reasons. Usually used together with valid?
146
+ # @return Array for valid properties with the reasons
147
+ def list_invalid_properties
148
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
149
+ invalid_properties = Array.new
150
+ invalid_properties
151
+ end
152
+
153
+ # Check to see if the all the properties in the model are valid
154
+ # @return true if the model is valid
155
+ def valid?
156
+ warn '[DEPRECATED] the `valid?` method is obsolete'
157
+ true
158
+ end
159
+
160
+ # Checks equality by comparing each attribute.
161
+ # @param [Object] Object to be compared
162
+ def ==(o)
163
+ return true if self.equal?(o)
164
+ self.class == o.class &&
165
+ activation_code_active == o.activation_code_active &&
166
+ environment == o.environment &&
167
+ activated_on == o.activated_on &&
168
+ location_id == o.location_id &&
169
+ activation_code == o.activation_code &&
170
+ configuration_id == o.configuration_id &&
171
+ terminal_id == o.terminal_id &&
172
+ space == o.space
173
+ end
174
+
175
+ # @see the `==` method
176
+ # @param [Object] Object to be compared
177
+ def eql?(o)
178
+ self == o
179
+ end
180
+
181
+ # Calculates hash code according to all attributes.
182
+ # @return [Integer] Hash code
183
+ def hash
184
+ [activation_code_active, environment, activated_on, location_id, activation_code, configuration_id, terminal_id, space].hash
185
+ end
186
+
187
+ # Builds the object from hash
188
+ # @param [Hash] attributes Model attributes in the form of hash
189
+ # @return [Object] Returns the model itself
190
+ def self.build_from_hash(attributes)
191
+ return nil unless attributes.is_a?(Hash)
192
+ attributes = attributes.transform_keys(&:to_sym)
193
+ transformed_hash = {}
194
+ openapi_types.each_pair do |key, type|
195
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
196
+ transformed_hash["#{key}"] = nil
197
+ elsif type =~ /\AArray<(.*)>/i
198
+ # check to ensure the input is an array given that the attribute
199
+ # is documented as an array but the input is not
200
+ if attributes[attribute_map[key]].is_a?(Array)
201
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
202
+ end
203
+ elsif !attributes[attribute_map[key]].nil?
204
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
205
+ end
206
+ end
207
+ new(transformed_hash)
208
+ end
209
+
210
+ # Deserializes the data based on type
211
+ # @param string type Data type
212
+ # @param string value Value to be deserialized
213
+ # @return [Object] Deserialized data
214
+ def self._deserialize(type, value)
215
+ case type.to_sym
216
+ when :Time
217
+ Time.parse(value)
218
+ when :Date
219
+ Date.parse(value)
220
+ when :String
221
+ value.to_s
222
+ when :Integer
223
+ value.to_i
224
+ when :Float
225
+ value.to_f
226
+ when :Boolean
227
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
228
+ true
229
+ else
230
+ false
231
+ end
232
+ when :Object
233
+ # generic object (usually a Hash), return directly
234
+ value
235
+ when /\AArray<(?<inner_type>.+)>\z/
236
+ inner_type = Regexp.last_match[:inner_type]
237
+ value.map { |v| _deserialize(inner_type, v) }
238
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
239
+ k_type = Regexp.last_match[:k_type]
240
+ v_type = Regexp.last_match[:v_type]
241
+ {}.tap do |hash|
242
+ value.each do |k, v|
243
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
244
+ end
245
+ end
246
+ else # model
247
+ # models (e.g. Pet) or oneOf
248
+ klass = PostfinancecheckoutRubySdk.const_get(type)
249
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
250
+ end
251
+ end
252
+
253
+ # Returns the string representation of the object
254
+ # @return [String] String presentation of the object
255
+ def to_s
256
+ to_hash.to_s
257
+ end
258
+
259
+ # to_body is an alias to to_hash (backward compatibility)
260
+ # @return [Hash] Returns the object in the form of hash
261
+ def to_body
262
+ to_hash
263
+ end
264
+
265
+ # Returns the object in the form of hash
266
+ # @return [Hash] Returns the object in the form of hash
267
+ def to_hash
268
+ hash = {}
269
+ self.class.attribute_map.each_pair do |attr, param|
270
+ value = self.send(attr)
271
+ if value.nil?
272
+ is_nullable = self.class.openapi_nullable.include?(attr)
273
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
274
+ end
275
+
276
+ hash[param] = _to_hash(value)
277
+ end
278
+ hash
279
+ end
280
+
281
+ # Outputs non-array value in the form of hash
282
+ # For object, use to_hash. Otherwise, just return the value
283
+ # @param [Object] value Any valid value
284
+ # @return [Hash] Returns the value in the form of hash
285
+ def _to_hash(value)
286
+ if value.is_a?(Array)
287
+ value.compact.map { |v| _to_hash(v) }
288
+ elsif value.is_a?(Hash)
289
+ {}.tap do |hash|
290
+ value.each { |k, v| hash[k] = _to_hash(v) }
291
+ end
292
+ elsif value.respond_to? :to_hash
293
+ value.to_hash
294
+ else
295
+ value
296
+ end
297
+ end
298
+
299
+ end
300
+
301
+ end