postfinancecheckout-ruby-sdk 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (364) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +8 -0
  3. data/LICENSE +201 -0
  4. data/README.md +137 -0
  5. data/Rakefile +13 -0
  6. data/lib/.DS_Store +0 -0
  7. data/lib/postfinancecheckout-ruby-sdk.rb +392 -0
  8. data/lib/postfinancecheckout-ruby-sdk/api/account_service_api.rb +368 -0
  9. data/lib/postfinancecheckout-ruby-sdk/api/application_user_service_api.rb +368 -0
  10. data/lib/postfinancecheckout-ruby-sdk/api/bank_account_service_api.rb +213 -0
  11. data/lib/postfinancecheckout-ruby-sdk/api/bank_transaction_service_api.rb +213 -0
  12. data/lib/postfinancecheckout-ruby-sdk/api/charge_attempt_service_api.rb +213 -0
  13. data/lib/postfinancecheckout-ruby-sdk/api/charge_bank_transaction_service_api.rb +213 -0
  14. data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_level_payment_link_service_api.rb +213 -0
  15. data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_level_service_api.rb +276 -0
  16. data/lib/postfinancecheckout-ruby-sdk/api/charge_flow_service_api.rb +348 -0
  17. data/lib/postfinancecheckout-ruby-sdk/api/condition_type_service_api.rb +139 -0
  18. data/lib/postfinancecheckout-ruby-sdk/api/country_service_api.rb +81 -0
  19. data/lib/postfinancecheckout-ruby-sdk/api/country_state_service_api.rb +139 -0
  20. data/lib/postfinancecheckout-ruby-sdk/api/currency_bank_account_service_api.rb +213 -0
  21. data/lib/postfinancecheckout-ruby-sdk/api/currency_service_api.rb +81 -0
  22. data/lib/postfinancecheckout-ruby-sdk/api/customer_address_service_api.rb +460 -0
  23. data/lib/postfinancecheckout-ruby-sdk/api/customer_comment_service_api.rb +522 -0
  24. data/lib/postfinancecheckout-ruby-sdk/api/customer_service_api.rb +398 -0
  25. data/lib/postfinancecheckout-ruby-sdk/api/delivery_indication_service_api.rb +337 -0
  26. data/lib/postfinancecheckout-ruby-sdk/api/document_template_service_api.rb +213 -0
  27. data/lib/postfinancecheckout-ruby-sdk/api/document_template_type_service_api.rb +139 -0
  28. data/lib/postfinancecheckout-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +213 -0
  29. data/lib/postfinancecheckout-ruby-sdk/api/human_user_service_api.rb +425 -0
  30. data/lib/postfinancecheckout-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +213 -0
  31. data/lib/postfinancecheckout-ruby-sdk/api/label_description_group_service_api.rb +139 -0
  32. data/lib/postfinancecheckout-ruby-sdk/api/label_description_service_api.rb +139 -0
  33. data/lib/postfinancecheckout-ruby-sdk/api/language_service_api.rb +81 -0
  34. data/lib/postfinancecheckout-ruby-sdk/api/legal_organization_form_service_api.rb +197 -0
  35. data/lib/postfinancecheckout-ruby-sdk/api/manual_task_service_api.rb +213 -0
  36. data/lib/postfinancecheckout-ruby-sdk/api/payment_connector_configuration_service_api.rb +213 -0
  37. data/lib/postfinancecheckout-ruby-sdk/api/payment_connector_service_api.rb +139 -0
  38. data/lib/postfinancecheckout-ruby-sdk/api/payment_link_service_api.rb +398 -0
  39. data/lib/postfinancecheckout-ruby-sdk/api/payment_method_brand_service_api.rb +139 -0
  40. data/lib/postfinancecheckout-ruby-sdk/api/payment_method_configuration_service_api.rb +213 -0
  41. data/lib/postfinancecheckout-ruby-sdk/api/payment_method_service_api.rb +139 -0
  42. data/lib/postfinancecheckout-ruby-sdk/api/payment_processor_configuration_service_api.rb +213 -0
  43. data/lib/postfinancecheckout-ruby-sdk/api/payment_processor_service_api.rb +139 -0
  44. data/lib/postfinancecheckout-ruby-sdk/api/payment_terminal_service_api.rb +213 -0
  45. data/lib/postfinancecheckout-ruby-sdk/api/payment_terminal_till_service_api.rb +170 -0
  46. data/lib/postfinancecheckout-ruby-sdk/api/permission_service_api.rb +139 -0
  47. data/lib/postfinancecheckout-ruby-sdk/api/refund_bank_transaction_service_api.rb +213 -0
  48. data/lib/postfinancecheckout-ruby-sdk/api/refund_comment_service_api.rb +464 -0
  49. data/lib/postfinancecheckout-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +213 -0
  50. data/lib/postfinancecheckout-ruby-sdk/api/refund_service_api.rb +532 -0
  51. data/lib/postfinancecheckout-ruby-sdk/api/shopify_recurring_order_service_api.rb +274 -0
  52. data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscriber_service_api.rb +275 -0
  53. data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_product_service_api.rb +337 -0
  54. data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_service_api.rb +466 -0
  55. data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_suspension_service_api.rb +337 -0
  56. data/lib/postfinancecheckout-ruby-sdk/api/shopify_subscription_version_service_api.rb +213 -0
  57. data/lib/postfinancecheckout-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
  58. data/lib/postfinancecheckout-ruby-sdk/api/space_service_api.rb +368 -0
  59. data/lib/postfinancecheckout-ruby-sdk/api/static_value_service_api.rb +139 -0
  60. data/lib/postfinancecheckout-ruby-sdk/api/token_service_api.rb +650 -0
  61. data/lib/postfinancecheckout-ruby-sdk/api/token_version_service_api.rb +276 -0
  62. data/lib/postfinancecheckout-ruby-sdk/api/transaction_comment_service_api.rb +464 -0
  63. data/lib/postfinancecheckout-ruby-sdk/api/transaction_completion_service_api.rb +463 -0
  64. data/lib/postfinancecheckout-ruby-sdk/api/transaction_iframe_service_api.rb +91 -0
  65. data/lib/postfinancecheckout-ruby-sdk/api/transaction_invoice_comment_service_api.rb +464 -0
  66. data/lib/postfinancecheckout-ruby-sdk/api/transaction_invoice_service_api.rb +600 -0
  67. data/lib/postfinancecheckout-ruby-sdk/api/transaction_lightbox_service_api.rb +91 -0
  68. data/lib/postfinancecheckout-ruby-sdk/api/transaction_mobile_sdk_service_api.rb +86 -0
  69. data/lib/postfinancecheckout-ruby-sdk/api/transaction_payment_page_service_api.rb +91 -0
  70. data/lib/postfinancecheckout-ruby-sdk/api/transaction_service_api.rb +1210 -0
  71. data/lib/postfinancecheckout-ruby-sdk/api/transaction_terminal_service_api.rb +161 -0
  72. data/lib/postfinancecheckout-ruby-sdk/api/transaction_void_service_api.rb +339 -0
  73. data/lib/postfinancecheckout-ruby-sdk/api/user_account_role_service_api.rb +219 -0
  74. data/lib/postfinancecheckout-ruby-sdk/api/user_space_role_service_api.rb +216 -0
  75. data/lib/postfinancecheckout-ruby-sdk/api/webhook_listener_service_api.rb +398 -0
  76. data/lib/postfinancecheckout-ruby-sdk/api/webhook_url_service_api.rb +398 -0
  77. data/lib/postfinancecheckout-ruby-sdk/api_client.rb +405 -0
  78. data/lib/postfinancecheckout-ruby-sdk/api_error.rb +43 -0
  79. data/lib/postfinancecheckout-ruby-sdk/configuration.rb +140 -0
  80. data/lib/postfinancecheckout-ruby-sdk/models/abstract_account_update.rb +234 -0
  81. data/lib/postfinancecheckout-ruby-sdk/models/abstract_application_user_update.rb +225 -0
  82. data/lib/postfinancecheckout-ruby-sdk/models/abstract_customer_active.rb +312 -0
  83. data/lib/postfinancecheckout-ruby-sdk/models/abstract_customer_address_active.rb +200 -0
  84. data/lib/postfinancecheckout-ruby-sdk/models/abstract_customer_comment_active.rb +205 -0
  85. data/lib/postfinancecheckout-ruby-sdk/models/abstract_human_user_update.rb +320 -0
  86. data/lib/postfinancecheckout-ruby-sdk/models/abstract_payment_link_update.rb +309 -0
  87. data/lib/postfinancecheckout-ruby-sdk/models/abstract_refund_comment_active.rb +205 -0
  88. data/lib/postfinancecheckout-ruby-sdk/models/abstract_shopify_subscription_product_update.rb +320 -0
  89. data/lib/postfinancecheckout-ruby-sdk/models/abstract_space_update.rb +286 -0
  90. data/lib/postfinancecheckout-ruby-sdk/models/abstract_token_update.rb +270 -0
  91. data/lib/postfinancecheckout-ruby-sdk/models/abstract_transaction_comment_active.rb +205 -0
  92. data/lib/postfinancecheckout-ruby-sdk/models/abstract_transaction_invoice_comment_active.rb +205 -0
  93. data/lib/postfinancecheckout-ruby-sdk/models/abstract_transaction_pending.rb +486 -0
  94. data/lib/postfinancecheckout-ruby-sdk/models/abstract_webhook_listener_update.rb +237 -0
  95. data/lib/postfinancecheckout-ruby-sdk/models/abstract_webhook_url_update.rb +249 -0
  96. data/lib/postfinancecheckout-ruby-sdk/models/account.rb +375 -0
  97. data/lib/postfinancecheckout-ruby-sdk/models/account_create.rb +260 -0
  98. data/lib/postfinancecheckout-ruby-sdk/models/account_state.rb +39 -0
  99. data/lib/postfinancecheckout-ruby-sdk/models/account_type.rb +36 -0
  100. data/lib/postfinancecheckout-ruby-sdk/models/account_update.rb +265 -0
  101. data/lib/postfinancecheckout-ruby-sdk/models/address.rb +606 -0
  102. data/lib/postfinancecheckout-ruby-sdk/models/address_create.rb +606 -0
  103. data/lib/postfinancecheckout-ruby-sdk/models/application_user.rb +286 -0
  104. data/lib/postfinancecheckout-ruby-sdk/models/application_user_create.rb +241 -0
  105. data/lib/postfinancecheckout-ruby-sdk/models/application_user_create_with_mac_key.rb +296 -0
  106. data/lib/postfinancecheckout-ruby-sdk/models/application_user_update.rb +256 -0
  107. data/lib/postfinancecheckout-ruby-sdk/models/bank_account.rb +291 -0
  108. data/lib/postfinancecheckout-ruby-sdk/models/bank_account_environment.rb +35 -0
  109. data/lib/postfinancecheckout-ruby-sdk/models/bank_account_state.rb +37 -0
  110. data/lib/postfinancecheckout-ruby-sdk/models/bank_account_type.rb +227 -0
  111. data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction.rb +387 -0
  112. data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_flow_direction.rb +35 -0
  113. data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_source.rb +215 -0
  114. data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_state.rb +35 -0
  115. data/lib/postfinancecheckout-ruby-sdk/models/bank_transaction_type.rb +215 -0
  116. data/lib/postfinancecheckout-ruby-sdk/models/charge.rb +331 -0
  117. data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt.rb +468 -0
  118. data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt_environment.rb +35 -0
  119. data/lib/postfinancecheckout-ruby-sdk/models/charge_attempt_state.rb +36 -0
  120. data/lib/postfinancecheckout-ruby-sdk/models/charge_bank_transaction.rb +291 -0
  121. data/lib/postfinancecheckout-ruby-sdk/models/charge_flow.rb +263 -0
  122. data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level.rb +311 -0
  123. data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_configuration.rb +296 -0
  124. data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_configuration_type.rb +227 -0
  125. data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_payment_link.rb +231 -0
  126. data/lib/postfinancecheckout-ruby-sdk/models/charge_flow_level_state.rb +36 -0
  127. data/lib/postfinancecheckout-ruby-sdk/models/charge_state.rb +36 -0
  128. data/lib/postfinancecheckout-ruby-sdk/models/charge_type.rb +37 -0
  129. data/lib/postfinancecheckout-ruby-sdk/models/client_error.rb +231 -0
  130. data/lib/postfinancecheckout-ruby-sdk/models/client_error_type.rb +36 -0
  131. data/lib/postfinancecheckout-ruby-sdk/models/completion_line_item.rb +226 -0
  132. data/lib/postfinancecheckout-ruby-sdk/models/completion_line_item_create.rb +245 -0
  133. data/lib/postfinancecheckout-ruby-sdk/models/condition.rb +266 -0
  134. data/lib/postfinancecheckout-ruby-sdk/models/condition_type.rb +215 -0
  135. data/lib/postfinancecheckout-ruby-sdk/models/connector_invocation.rb +271 -0
  136. data/lib/postfinancecheckout-ruby-sdk/models/connector_invocation_stage.rb +37 -0
  137. data/lib/postfinancecheckout-ruby-sdk/models/creation_entity_state.rb +38 -0
  138. data/lib/postfinancecheckout-ruby-sdk/models/criteria_operator.rb +45 -0
  139. data/lib/postfinancecheckout-ruby-sdk/models/currency_bank_account.rb +241 -0
  140. data/lib/postfinancecheckout-ruby-sdk/models/customer.rb +353 -0
  141. data/lib/postfinancecheckout-ruby-sdk/models/customer_active.rb +343 -0
  142. data/lib/postfinancecheckout-ruby-sdk/models/customer_address.rb +261 -0
  143. data/lib/postfinancecheckout-ruby-sdk/models/customer_address_active.rb +231 -0
  144. data/lib/postfinancecheckout-ruby-sdk/models/customer_address_create.rb +216 -0
  145. data/lib/postfinancecheckout-ruby-sdk/models/customer_address_type.rb +36 -0
  146. data/lib/postfinancecheckout-ruby-sdk/models/customer_comment.rb +296 -0
  147. data/lib/postfinancecheckout-ruby-sdk/models/customer_comment_active.rb +236 -0
  148. data/lib/postfinancecheckout-ruby-sdk/models/customer_comment_create.rb +221 -0
  149. data/lib/postfinancecheckout-ruby-sdk/models/customer_create.rb +313 -0
  150. data/lib/postfinancecheckout-ruby-sdk/models/customer_postal_address.rb +606 -0
  151. data/lib/postfinancecheckout-ruby-sdk/models/customer_postal_address_create.rb +606 -0
  152. data/lib/postfinancecheckout-ruby-sdk/models/customers_presence.rb +36 -0
  153. data/lib/postfinancecheckout-ruby-sdk/models/data_collection_type.rb +35 -0
  154. data/lib/postfinancecheckout-ruby-sdk/models/database_translated_string.rb +215 -0
  155. data/lib/postfinancecheckout-ruby-sdk/models/database_translated_string_item.rb +226 -0
  156. data/lib/postfinancecheckout-ruby-sdk/models/delivery_indication.rb +321 -0
  157. data/lib/postfinancecheckout-ruby-sdk/models/delivery_indication_decision_reason.rb +215 -0
  158. data/lib/postfinancecheckout-ruby-sdk/models/delivery_indication_state.rb +37 -0
  159. data/lib/postfinancecheckout-ruby-sdk/models/document_template.rb +306 -0
  160. data/lib/postfinancecheckout-ruby-sdk/models/document_template_type.rb +235 -0
  161. data/lib/postfinancecheckout-ruby-sdk/models/document_template_type_group.rb +203 -0
  162. data/lib/postfinancecheckout-ruby-sdk/models/entity_export_request.rb +208 -0
  163. data/lib/postfinancecheckout-ruby-sdk/models/entity_query.rb +233 -0
  164. data/lib/postfinancecheckout-ruby-sdk/models/entity_query_filter.rb +238 -0
  165. data/lib/postfinancecheckout-ruby-sdk/models/entity_query_filter_type.rb +36 -0
  166. data/lib/postfinancecheckout-ruby-sdk/models/entity_query_order_by.rb +211 -0
  167. data/lib/postfinancecheckout-ruby-sdk/models/entity_query_order_by_type.rb +35 -0
  168. data/lib/postfinancecheckout-ruby-sdk/models/environment.rb +35 -0
  169. data/lib/postfinancecheckout-ruby-sdk/models/external_transfer_bank_transaction.rb +251 -0
  170. data/lib/postfinancecheckout-ruby-sdk/models/failure_category.rb +38 -0
  171. data/lib/postfinancecheckout-ruby-sdk/models/failure_reason.rb +237 -0
  172. data/lib/postfinancecheckout-ruby-sdk/models/feature.rb +277 -0
  173. data/lib/postfinancecheckout-ruby-sdk/models/feature_category.rb +225 -0
  174. data/lib/postfinancecheckout-ruby-sdk/models/gender.rb +35 -0
  175. data/lib/postfinancecheckout-ruby-sdk/models/human_user.rb +361 -0
  176. data/lib/postfinancecheckout-ruby-sdk/models/human_user_create.rb +331 -0
  177. data/lib/postfinancecheckout-ruby-sdk/models/human_user_update.rb +351 -0
  178. data/lib/postfinancecheckout-ruby-sdk/models/internal_transfer_bank_transaction.rb +231 -0
  179. data/lib/postfinancecheckout-ruby-sdk/models/label.rb +231 -0
  180. data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor.rb +267 -0
  181. data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_category.rb +35 -0
  182. data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_group.rb +225 -0
  183. data/lib/postfinancecheckout-ruby-sdk/models/label_descriptor_type.rb +215 -0
  184. data/lib/postfinancecheckout-ruby-sdk/models/legal_organization_form.rb +235 -0
  185. data/lib/postfinancecheckout-ruby-sdk/models/line_item.rb +449 -0
  186. data/lib/postfinancecheckout-ruby-sdk/models/line_item_attribute.rb +231 -0
  187. data/lib/postfinancecheckout-ruby-sdk/models/line_item_attribute_create.rb +249 -0
  188. data/lib/postfinancecheckout-ruby-sdk/models/line_item_create.rb +372 -0
  189. data/lib/postfinancecheckout-ruby-sdk/models/line_item_reduction.rb +226 -0
  190. data/lib/postfinancecheckout-ruby-sdk/models/line_item_reduction_create.rb +245 -0
  191. data/lib/postfinancecheckout-ruby-sdk/models/line_item_type.rb +37 -0
  192. data/lib/postfinancecheckout-ruby-sdk/models/localized_string.rb +211 -0
  193. data/lib/postfinancecheckout-ruby-sdk/models/manual_task.rb +283 -0
  194. data/lib/postfinancecheckout-ruby-sdk/models/manual_task_action.rb +223 -0
  195. data/lib/postfinancecheckout-ruby-sdk/models/manual_task_action_style.rb +36 -0
  196. data/lib/postfinancecheckout-ruby-sdk/models/manual_task_state.rb +36 -0
  197. data/lib/postfinancecheckout-ruby-sdk/models/manual_task_type.rb +227 -0
  198. data/lib/postfinancecheckout-ruby-sdk/models/one_click_payment_mode.rb +36 -0
  199. data/lib/postfinancecheckout-ruby-sdk/models/payment_adjustment.rb +231 -0
  200. data/lib/postfinancecheckout-ruby-sdk/models/payment_adjustment_type.rb +215 -0
  201. data/lib/postfinancecheckout-ruby-sdk/models/payment_connector.rb +321 -0
  202. data/lib/postfinancecheckout-ruby-sdk/models/payment_connector_configuration.rb +342 -0
  203. data/lib/postfinancecheckout-ruby-sdk/models/payment_connector_feature.rb +211 -0
  204. data/lib/postfinancecheckout-ruby-sdk/models/payment_contract.rb +331 -0
  205. data/lib/postfinancecheckout-ruby-sdk/models/payment_contract_state.rb +38 -0
  206. data/lib/postfinancecheckout-ruby-sdk/models/payment_contract_type.rb +225 -0
  207. data/lib/postfinancecheckout-ruby-sdk/models/payment_information_hash.rb +211 -0
  208. data/lib/postfinancecheckout-ruby-sdk/models/payment_information_hash_type.rb +203 -0
  209. data/lib/postfinancecheckout-ruby-sdk/models/payment_link.rb +390 -0
  210. data/lib/postfinancecheckout-ruby-sdk/models/payment_link_active.rb +350 -0
  211. data/lib/postfinancecheckout-ruby-sdk/models/payment_link_address_handling_mode.rb +36 -0
  212. data/lib/postfinancecheckout-ruby-sdk/models/payment_link_create.rb +345 -0
  213. data/lib/postfinancecheckout-ruby-sdk/models/payment_link_protection_mode.rb +35 -0
  214. data/lib/postfinancecheckout-ruby-sdk/models/payment_link_update.rb +340 -0
  215. data/lib/postfinancecheckout-ruby-sdk/models/payment_method.rb +261 -0
  216. data/lib/postfinancecheckout-ruby-sdk/models/payment_method_brand.rb +245 -0
  217. data/lib/postfinancecheckout-ruby-sdk/models/payment_method_configuration.rb +370 -0
  218. data/lib/postfinancecheckout-ruby-sdk/models/payment_primary_risk_taker.rb +36 -0
  219. data/lib/postfinancecheckout-ruby-sdk/models/payment_processor.rb +271 -0
  220. data/lib/postfinancecheckout-ruby-sdk/models/payment_processor_configuration.rb +276 -0
  221. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal.rb +306 -0
  222. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_address.rb +396 -0
  223. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration.rb +266 -0
  224. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_state.rb +37 -0
  225. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_version.rb +323 -0
  226. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_version_state.rb +38 -0
  227. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location.rb +266 -0
  228. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_state.rb +37 -0
  229. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_version.rb +281 -0
  230. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_location_version_state.rb +38 -0
  231. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_receipt_type.rb +215 -0
  232. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_state.rb +38 -0
  233. data/lib/postfinancecheckout-ruby-sdk/models/payment_terminal_type.rb +215 -0
  234. data/lib/postfinancecheckout-ruby-sdk/models/permission.rb +299 -0
  235. data/lib/postfinancecheckout-ruby-sdk/models/refund.rb +567 -0
  236. data/lib/postfinancecheckout-ruby-sdk/models/refund_bank_transaction.rb +281 -0
  237. data/lib/postfinancecheckout-ruby-sdk/models/refund_comment.rb +296 -0
  238. data/lib/postfinancecheckout-ruby-sdk/models/refund_comment_active.rb +236 -0
  239. data/lib/postfinancecheckout-ruby-sdk/models/refund_comment_create.rb +221 -0
  240. data/lib/postfinancecheckout-ruby-sdk/models/refund_create.rb +306 -0
  241. data/lib/postfinancecheckout-ruby-sdk/models/refund_recovery_bank_transaction.rb +293 -0
  242. data/lib/postfinancecheckout-ruby-sdk/models/refund_state.rb +39 -0
  243. data/lib/postfinancecheckout-ruby-sdk/models/refund_type.rb +37 -0
  244. data/lib/postfinancecheckout-ruby-sdk/models/rendered_document.rb +223 -0
  245. data/lib/postfinancecheckout-ruby-sdk/models/rendered_terminal_receipt.rb +223 -0
  246. data/lib/postfinancecheckout-ruby-sdk/models/resource_path.rb +275 -0
  247. data/lib/postfinancecheckout-ruby-sdk/models/resource_state.rb +36 -0
  248. data/lib/postfinancecheckout-ruby-sdk/models/rest_address_format.rb +227 -0
  249. data/lib/postfinancecheckout-ruby-sdk/models/rest_address_format_field.rb +43 -0
  250. data/lib/postfinancecheckout-ruby-sdk/models/rest_country.rb +243 -0
  251. data/lib/postfinancecheckout-ruby-sdk/models/rest_country_state.rb +221 -0
  252. data/lib/postfinancecheckout-ruby-sdk/models/rest_currency.rb +211 -0
  253. data/lib/postfinancecheckout-ruby-sdk/models/rest_language.rb +241 -0
  254. data/lib/postfinancecheckout-ruby-sdk/models/role.rb +263 -0
  255. data/lib/postfinancecheckout-ruby-sdk/models/role_state.rb +37 -0
  256. data/lib/postfinancecheckout-ruby-sdk/models/sales_channel.rb +245 -0
  257. data/lib/postfinancecheckout-ruby-sdk/models/scope.rb +350 -0
  258. data/lib/postfinancecheckout-ruby-sdk/models/server_error.rb +211 -0
  259. data/lib/postfinancecheckout-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
  260. data/lib/postfinancecheckout-ruby-sdk/models/shopify_integration.rb +470 -0
  261. data/lib/postfinancecheckout-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
  262. data/lib/postfinancecheckout-ruby-sdk/models/shopify_integration_subscription_app_version.rb +36 -0
  263. data/lib/postfinancecheckout-ruby-sdk/models/shopify_recurring_order.rb +351 -0
  264. data/lib/postfinancecheckout-ruby-sdk/models/shopify_recurring_order_state.rb +39 -0
  265. data/lib/postfinancecheckout-ruby-sdk/models/shopify_recurring_order_update_request.rb +201 -0
  266. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber.rb +281 -0
  267. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber_active.rb +241 -0
  268. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
  269. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscriber_state.rb +36 -0
  270. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription.rb +375 -0
  271. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_address.rb +546 -0
  272. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_address_create.rb +546 -0
  273. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_billing_interval_unit.rb +39 -0
  274. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_creation_request.rb +363 -0
  275. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +271 -0
  276. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_model_item.rb +233 -0
  277. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_model_tax_line.rb +201 -0
  278. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product.rb +471 -0
  279. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_create.rb +366 -0
  280. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_pricing_option.rb +38 -0
  281. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_state.rb +39 -0
  282. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_product_update.rb +351 -0
  283. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_state.rb +39 -0
  284. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension.rb +311 -0
  285. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_create.rb +226 -0
  286. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_initiator.rb +35 -0
  287. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_state.rb +35 -0
  288. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_type.rb +35 -0
  289. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
  290. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_update_request.rb +233 -0
  291. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version.rb +463 -0
  292. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version_item.rb +233 -0
  293. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version_item_price_strategy.rb +35 -0
  294. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_version_state.rb +36 -0
  295. data/lib/postfinancecheckout-ruby-sdk/models/shopify_subscription_weekday.rb +40 -0
  296. data/lib/postfinancecheckout-ruby-sdk/models/shopify_tax_line.rb +231 -0
  297. data/lib/postfinancecheckout-ruby-sdk/models/shopify_transaction.rb +301 -0
  298. data/lib/postfinancecheckout-ruby-sdk/models/shopify_transaction_state.rb +38 -0
  299. data/lib/postfinancecheckout-ruby-sdk/models/space.rb +407 -0
  300. data/lib/postfinancecheckout-ruby-sdk/models/space_address.rb +416 -0
  301. data/lib/postfinancecheckout-ruby-sdk/models/space_address_create.rb +416 -0
  302. data/lib/postfinancecheckout-ruby-sdk/models/space_create.rb +302 -0
  303. data/lib/postfinancecheckout-ruby-sdk/models/space_update.rb +317 -0
  304. data/lib/postfinancecheckout-ruby-sdk/models/space_view.rb +275 -0
  305. data/lib/postfinancecheckout-ruby-sdk/models/static_value.rb +227 -0
  306. data/lib/postfinancecheckout-ruby-sdk/models/tax.rb +225 -0
  307. data/lib/postfinancecheckout-ruby-sdk/models/tax_create.rb +239 -0
  308. data/lib/postfinancecheckout-ruby-sdk/models/tenant_database.rb +226 -0
  309. data/lib/postfinancecheckout-ruby-sdk/models/terminal_receipt_fetch_request.rb +221 -0
  310. data/lib/postfinancecheckout-ruby-sdk/models/terminal_receipt_format.rb +35 -0
  311. data/lib/postfinancecheckout-ruby-sdk/models/token.rb +341 -0
  312. data/lib/postfinancecheckout-ruby-sdk/models/token_create.rb +296 -0
  313. data/lib/postfinancecheckout-ruby-sdk/models/token_update.rb +301 -0
  314. data/lib/postfinancecheckout-ruby-sdk/models/token_version.rb +445 -0
  315. data/lib/postfinancecheckout-ruby-sdk/models/token_version_state.rb +36 -0
  316. data/lib/postfinancecheckout-ruby-sdk/models/token_version_type.rb +225 -0
  317. data/lib/postfinancecheckout-ruby-sdk/models/tokenization_mode.rb +37 -0
  318. data/lib/postfinancecheckout-ruby-sdk/models/transaction.rb +1011 -0
  319. data/lib/postfinancecheckout-ruby-sdk/models/transaction_aware_entity.rb +211 -0
  320. data/lib/postfinancecheckout-ruby-sdk/models/transaction_comment.rb +296 -0
  321. data/lib/postfinancecheckout-ruby-sdk/models/transaction_comment_active.rb +236 -0
  322. data/lib/postfinancecheckout-ruby-sdk/models/transaction_comment_create.rb +221 -0
  323. data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion.rb +528 -0
  324. data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
  325. data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_mode.rb +36 -0
  326. data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_request.rb +291 -0
  327. data/lib/postfinancecheckout-ruby-sdk/models/transaction_completion_state.rb +38 -0
  328. data/lib/postfinancecheckout-ruby-sdk/models/transaction_create.rb +596 -0
  329. data/lib/postfinancecheckout-ruby-sdk/models/transaction_environment_selection_strategy.rb +36 -0
  330. data/lib/postfinancecheckout-ruby-sdk/models/transaction_group.rb +276 -0
  331. data/lib/postfinancecheckout-ruby-sdk/models/transaction_group_state.rb +36 -0
  332. data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice.rb +452 -0
  333. data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_comment.rb +296 -0
  334. data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_comment_active.rb +236 -0
  335. data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_comment_create.rb +221 -0
  336. data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_replacement.rb +296 -0
  337. data/lib/postfinancecheckout-ruby-sdk/models/transaction_invoice_state.rb +40 -0
  338. data/lib/postfinancecheckout-ruby-sdk/models/transaction_line_item_update_request.rb +208 -0
  339. data/lib/postfinancecheckout-ruby-sdk/models/transaction_line_item_version.rb +313 -0
  340. data/lib/postfinancecheckout-ruby-sdk/models/transaction_pending.rb +517 -0
  341. data/lib/postfinancecheckout-ruby-sdk/models/transaction_state.rb +43 -0
  342. data/lib/postfinancecheckout-ruby-sdk/models/transaction_user_interface_type.rb +38 -0
  343. data/lib/postfinancecheckout-ruby-sdk/models/transaction_void.rb +373 -0
  344. data/lib/postfinancecheckout-ruby-sdk/models/transaction_void_mode.rb +35 -0
  345. data/lib/postfinancecheckout-ruby-sdk/models/transaction_void_state.rb +37 -0
  346. data/lib/postfinancecheckout-ruby-sdk/models/two_factor_authentication_type.rb +235 -0
  347. data/lib/postfinancecheckout-ruby-sdk/models/user.rb +241 -0
  348. data/lib/postfinancecheckout-ruby-sdk/models/user_account_role.rb +241 -0
  349. data/lib/postfinancecheckout-ruby-sdk/models/user_space_role.rb +231 -0
  350. data/lib/postfinancecheckout-ruby-sdk/models/user_type.rb +38 -0
  351. data/lib/postfinancecheckout-ruby-sdk/models/webhook_identity.rb +256 -0
  352. data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener.rb +308 -0
  353. data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener_create.rb +278 -0
  354. data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener_entity.rb +213 -0
  355. data/lib/postfinancecheckout-ruby-sdk/models/webhook_listener_update.rb +268 -0
  356. data/lib/postfinancecheckout-ruby-sdk/models/webhook_url.rb +300 -0
  357. data/lib/postfinancecheckout-ruby-sdk/models/webhook_url_create.rb +250 -0
  358. data/lib/postfinancecheckout-ruby-sdk/models/webhook_url_update.rb +280 -0
  359. data/lib/postfinancecheckout-ruby-sdk/version.rb +20 -0
  360. data/postfinancecheckout-ruby-sdk.gemspec +44 -0
  361. data/test/condition_type_service_test.rb +22 -0
  362. data/test/transaction_create_service_test.rb +89 -0
  363. data/test/transaction_payment_page_service_test.rb +91 -0
  364. metadata +469 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: cf2a9b4bdafbd885ae7737a9c063842d6b60dac99b0b59413021ad36106cf369
4
+ data.tar.gz: 899b484a272715998dc51e631d248d63187398d0d076532fbf10aaf339721627
5
+ SHA512:
6
+ metadata.gz: 42eae58326df2f166026b710692384d7cb231c3af4b6d7472818b738778e4b62f05fc818357fb4d845de5efa40d7c6ba92d7cb15f8bd4e77acd3e46d19457123
7
+ data.tar.gz: 7c3292532b8fdb24b23ebfb3ba0465fc6b96aea5589d305134e4fae0a1fed93985ccb2080fa0e25d80c4227152366ae0e69a838cea5730ddb6ab55bd85cb2fb7
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 12.3.3'
7
+ gem 'test-unit', '~> 3.2.5'
8
+ end
data/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "{}"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2021 wallee AG
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
data/README.md ADDED
@@ -0,0 +1,137 @@
1
+ [![Build Status](https://travis-ci.org/pfpayments/ruby-sdk.svg?branch=master)](https://travis-ci.org/pfpayments/ruby-sdk)
2
+
3
+ # PostFinance Checkout Ruby Library
4
+
5
+ The PostFinance Checkout Ruby library wraps around the PostFinance Checkout API. This library facilitates your interaction with various services such as transactions, accounts, and subscriptions.
6
+
7
+ ## Documentation
8
+
9
+ [PostFinance Checkout Web Service API](https://checkout.postfinance.ch/doc/api/web-service)
10
+
11
+ ## Requirements
12
+
13
+ - Ruby 2.2+
14
+
15
+ ## Installation
16
+
17
+ # RubyGem install (recommended)
18
+
19
+ ```sh
20
+ $ gem install postfinancecheckout-ruby-sdk
21
+ ```
22
+
23
+ ## Usage
24
+ The library needs to be configured with your account's space id, user id, and secret key which are available in your [PostFinance Checkout
25
+ account dashboard](https://checkout.postfinance.ch/account/select). Set `space_id`, `user_id`, and `api_secret` to their values:
26
+
27
+ ### Configuring a Service
28
+
29
+ ```ruby
30
+ require 'postfinancecheckout-ruby-sdk'
31
+
32
+ space_id = 405
33
+ app_user_id = 512
34
+ app_user_key = "FKrO76r5VwJtBrqZawBspljbBNOxp5veKQQkOnZxucQ="
35
+
36
+ PostFinanceCheckout.configure do |config|
37
+ config.user_id = app_user_id
38
+ config.authentication_key = app_user_key
39
+ end
40
+
41
+ # TransactionService
42
+ transaction_service = PostFinanceCheckout::TransactionService.new
43
+ # TransactionPaymentPageService
44
+ transaction_payment_page_service = PostFinanceCheckout::TransactionPaymentPageService.new
45
+ ```
46
+
47
+ To get stated with sending transactions you can review the example below:
48
+
49
+ ```ruby
50
+ require 'postfinancecheckout-ruby-sdk'
51
+
52
+ space_id = 405
53
+ app_user_id = 512
54
+ app_user_key = "FKrO76r5VwJtBrqZawBspljbBNOxp5veKQQkOnZxucQ="
55
+
56
+ PostFinanceCheckout.configure do |config|
57
+ config.user_id = app_user_id
58
+ config.authentication_key = app_user_key
59
+ end
60
+
61
+ # TransactionService
62
+ transaction_service = PostFinanceCheckout::TransactionService.new
63
+ # TransactionPaymentPageService
64
+ transaction_payment_page_service = PostFinanceCheckout::TransactionPaymentPageService.new
65
+
66
+ transaction = PostFinanceCheckout::TransactionCreate.new({
67
+ billingAddress: PostFinanceCheckout::AddressCreate.new({
68
+ city: "City",
69
+ country: "US",
70
+ emailAddress: "billing@address.com",
71
+ familyName: "Family",
72
+ givenName: "Given",
73
+ postCode: "98100",
74
+ postalState: "WA",
75
+ street: "Street"
76
+ }),
77
+ currency: 'EUR',
78
+ customerEmailAddress: "test@example.com",
79
+ customerPresence: PostFinanceCheckout::CustomersPresence::VIRTUAL_PRESENT,
80
+ failedUrl: "http://localhost/failure",
81
+ invoiceMerchantReference: "order-1",
82
+ language: "en_US",
83
+ lineItems: [
84
+ PostFinanceCheckout::LineItemCreate.new({
85
+ amountIncludingTax: 29.60,
86
+ name: "Item 1",
87
+ quantity: 1,
88
+ shippingRequired: true,
89
+ sku: "sku-1",
90
+ taxes: [
91
+ PostFinanceCheckout::TaxCreate.new({
92
+ rate: 8,
93
+ title: "VAT"
94
+ })
95
+ ],
96
+ type: PostFinanceCheckout::LineItemType::PRODUCT,
97
+ uniqueId: "unique-id-item-1",
98
+ }),
99
+ PostFinanceCheckout::LineItemCreate.new({
100
+ amountIncludingTax: 5.60,
101
+ name: "Test Shipping",
102
+ quantity: 1,
103
+ shippingRequired: false,
104
+ sku: "test-shipping",
105
+ taxes: [
106
+ PostFinanceCheckout::TaxCreate.new({
107
+ rate: 8,
108
+ title: "VAT"
109
+ })
110
+ ],
111
+ type: PostFinanceCheckout::LineItemType::SHIPPING,
112
+ uniqueId: "unique-id-shipping-1",
113
+ }),
114
+ ],
115
+ merchantReference: "order-1",
116
+ shippingAddress: PostFinanceCheckout::AddressCreate.new({
117
+ city: "City",
118
+ country: "US",
119
+ emailAddress: "shipping@address.com",
120
+ familyName: "Family",
121
+ givenName: "Given",
122
+ postCode: "98100",
123
+ postalState: "WA",
124
+ street: "Street"
125
+ }),
126
+ shippingMethod: "Test Shipping",
127
+ successUrl: "http://localhost/success"
128
+ })
129
+
130
+ transaction = transaction_service.create(space_id, transaction)
131
+ payment_page_url = transaction_payment_page_service.payment_page_url(space_id, transaction.id)
132
+ # redirect to payment_page_url
133
+ ```
134
+
135
+ ## License
136
+
137
+ Please see the [license file](https://github.com/pfpayments/ruby-sdk/blob/master/LICENSE) for more information.
data/Rakefile ADDED
@@ -0,0 +1,13 @@
1
+ require 'rake/testtask'
2
+
3
+ Rake::TestTask.new do |t|
4
+ t.libs = ["lib"]
5
+ t.warning = true
6
+ t.verbose = true
7
+ t.test_files = FileList['test/*.rb']
8
+ end
9
+
10
+
11
+ task default: %w[test]
12
+
13
+
data/lib/.DS_Store ADDED
Binary file
@@ -0,0 +1,392 @@
1
+ =begin
2
+ The PostFinance Checkout API allows an easy interaction with the PostFinance Checkout web service.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ =end
17
+
18
+ # Common files
19
+ require 'postfinancecheckout-ruby-sdk/api_client'
20
+ require 'postfinancecheckout-ruby-sdk/api_error'
21
+ require 'postfinancecheckout-ruby-sdk/version'
22
+ require 'postfinancecheckout-ruby-sdk/configuration'
23
+
24
+ # Models
25
+ require 'postfinancecheckout-ruby-sdk/models/abstract_account_update'
26
+ require 'postfinancecheckout-ruby-sdk/models/abstract_application_user_update'
27
+ require 'postfinancecheckout-ruby-sdk/models/abstract_customer_active'
28
+ require 'postfinancecheckout-ruby-sdk/models/abstract_customer_address_active'
29
+ require 'postfinancecheckout-ruby-sdk/models/abstract_customer_comment_active'
30
+ require 'postfinancecheckout-ruby-sdk/models/abstract_human_user_update'
31
+ require 'postfinancecheckout-ruby-sdk/models/abstract_payment_link_update'
32
+ require 'postfinancecheckout-ruby-sdk/models/abstract_refund_comment_active'
33
+ require 'postfinancecheckout-ruby-sdk/models/abstract_shopify_subscription_product_update'
34
+ require 'postfinancecheckout-ruby-sdk/models/abstract_space_update'
35
+ require 'postfinancecheckout-ruby-sdk/models/abstract_token_update'
36
+ require 'postfinancecheckout-ruby-sdk/models/abstract_transaction_comment_active'
37
+ require 'postfinancecheckout-ruby-sdk/models/abstract_transaction_invoice_comment_active'
38
+ require 'postfinancecheckout-ruby-sdk/models/abstract_transaction_pending'
39
+ require 'postfinancecheckout-ruby-sdk/models/abstract_webhook_listener_update'
40
+ require 'postfinancecheckout-ruby-sdk/models/abstract_webhook_url_update'
41
+ require 'postfinancecheckout-ruby-sdk/models/account'
42
+ require 'postfinancecheckout-ruby-sdk/models/account_state'
43
+ require 'postfinancecheckout-ruby-sdk/models/account_type'
44
+ require 'postfinancecheckout-ruby-sdk/models/address'
45
+ require 'postfinancecheckout-ruby-sdk/models/address_create'
46
+ require 'postfinancecheckout-ruby-sdk/models/bank_account'
47
+ require 'postfinancecheckout-ruby-sdk/models/bank_account_environment'
48
+ require 'postfinancecheckout-ruby-sdk/models/bank_account_state'
49
+ require 'postfinancecheckout-ruby-sdk/models/bank_account_type'
50
+ require 'postfinancecheckout-ruby-sdk/models/bank_transaction'
51
+ require 'postfinancecheckout-ruby-sdk/models/bank_transaction_flow_direction'
52
+ require 'postfinancecheckout-ruby-sdk/models/bank_transaction_source'
53
+ require 'postfinancecheckout-ruby-sdk/models/bank_transaction_state'
54
+ require 'postfinancecheckout-ruby-sdk/models/bank_transaction_type'
55
+ require 'postfinancecheckout-ruby-sdk/models/charge_attempt_environment'
56
+ require 'postfinancecheckout-ruby-sdk/models/charge_attempt_state'
57
+ require 'postfinancecheckout-ruby-sdk/models/charge_flow'
58
+ require 'postfinancecheckout-ruby-sdk/models/charge_flow_level_configuration'
59
+ require 'postfinancecheckout-ruby-sdk/models/charge_flow_level_configuration_type'
60
+ require 'postfinancecheckout-ruby-sdk/models/charge_flow_level_state'
61
+ require 'postfinancecheckout-ruby-sdk/models/charge_state'
62
+ require 'postfinancecheckout-ruby-sdk/models/charge_type'
63
+ require 'postfinancecheckout-ruby-sdk/models/client_error'
64
+ require 'postfinancecheckout-ruby-sdk/models/client_error_type'
65
+ require 'postfinancecheckout-ruby-sdk/models/completion_line_item'
66
+ require 'postfinancecheckout-ruby-sdk/models/completion_line_item_create'
67
+ require 'postfinancecheckout-ruby-sdk/models/condition'
68
+ require 'postfinancecheckout-ruby-sdk/models/condition_type'
69
+ require 'postfinancecheckout-ruby-sdk/models/connector_invocation_stage'
70
+ require 'postfinancecheckout-ruby-sdk/models/creation_entity_state'
71
+ require 'postfinancecheckout-ruby-sdk/models/criteria_operator'
72
+ require 'postfinancecheckout-ruby-sdk/models/currency_bank_account'
73
+ require 'postfinancecheckout-ruby-sdk/models/customer'
74
+ require 'postfinancecheckout-ruby-sdk/models/customer_address'
75
+ require 'postfinancecheckout-ruby-sdk/models/customer_address_type'
76
+ require 'postfinancecheckout-ruby-sdk/models/customer_comment'
77
+ require 'postfinancecheckout-ruby-sdk/models/customer_postal_address'
78
+ require 'postfinancecheckout-ruby-sdk/models/customer_postal_address_create'
79
+ require 'postfinancecheckout-ruby-sdk/models/customers_presence'
80
+ require 'postfinancecheckout-ruby-sdk/models/data_collection_type'
81
+ require 'postfinancecheckout-ruby-sdk/models/database_translated_string'
82
+ require 'postfinancecheckout-ruby-sdk/models/database_translated_string_item'
83
+ require 'postfinancecheckout-ruby-sdk/models/delivery_indication_decision_reason'
84
+ require 'postfinancecheckout-ruby-sdk/models/delivery_indication_state'
85
+ require 'postfinancecheckout-ruby-sdk/models/document_template'
86
+ require 'postfinancecheckout-ruby-sdk/models/document_template_type'
87
+ require 'postfinancecheckout-ruby-sdk/models/document_template_type_group'
88
+ require 'postfinancecheckout-ruby-sdk/models/entity_export_request'
89
+ require 'postfinancecheckout-ruby-sdk/models/entity_query'
90
+ require 'postfinancecheckout-ruby-sdk/models/entity_query_filter'
91
+ require 'postfinancecheckout-ruby-sdk/models/entity_query_filter_type'
92
+ require 'postfinancecheckout-ruby-sdk/models/entity_query_order_by'
93
+ require 'postfinancecheckout-ruby-sdk/models/entity_query_order_by_type'
94
+ require 'postfinancecheckout-ruby-sdk/models/environment'
95
+ require 'postfinancecheckout-ruby-sdk/models/external_transfer_bank_transaction'
96
+ require 'postfinancecheckout-ruby-sdk/models/failure_category'
97
+ require 'postfinancecheckout-ruby-sdk/models/failure_reason'
98
+ require 'postfinancecheckout-ruby-sdk/models/feature'
99
+ require 'postfinancecheckout-ruby-sdk/models/feature_category'
100
+ require 'postfinancecheckout-ruby-sdk/models/gender'
101
+ require 'postfinancecheckout-ruby-sdk/models/human_user'
102
+ require 'postfinancecheckout-ruby-sdk/models/internal_transfer_bank_transaction'
103
+ require 'postfinancecheckout-ruby-sdk/models/label'
104
+ require 'postfinancecheckout-ruby-sdk/models/label_descriptor'
105
+ require 'postfinancecheckout-ruby-sdk/models/label_descriptor_category'
106
+ require 'postfinancecheckout-ruby-sdk/models/label_descriptor_group'
107
+ require 'postfinancecheckout-ruby-sdk/models/label_descriptor_type'
108
+ require 'postfinancecheckout-ruby-sdk/models/legal_organization_form'
109
+ require 'postfinancecheckout-ruby-sdk/models/line_item'
110
+ require 'postfinancecheckout-ruby-sdk/models/line_item_attribute'
111
+ require 'postfinancecheckout-ruby-sdk/models/line_item_attribute_create'
112
+ require 'postfinancecheckout-ruby-sdk/models/line_item_create'
113
+ require 'postfinancecheckout-ruby-sdk/models/line_item_reduction'
114
+ require 'postfinancecheckout-ruby-sdk/models/line_item_reduction_create'
115
+ require 'postfinancecheckout-ruby-sdk/models/line_item_type'
116
+ require 'postfinancecheckout-ruby-sdk/models/localized_string'
117
+ require 'postfinancecheckout-ruby-sdk/models/manual_task'
118
+ require 'postfinancecheckout-ruby-sdk/models/manual_task_action'
119
+ require 'postfinancecheckout-ruby-sdk/models/manual_task_action_style'
120
+ require 'postfinancecheckout-ruby-sdk/models/manual_task_state'
121
+ require 'postfinancecheckout-ruby-sdk/models/manual_task_type'
122
+ require 'postfinancecheckout-ruby-sdk/models/one_click_payment_mode'
123
+ require 'postfinancecheckout-ruby-sdk/models/payment_adjustment'
124
+ require 'postfinancecheckout-ruby-sdk/models/payment_adjustment_type'
125
+ require 'postfinancecheckout-ruby-sdk/models/payment_connector'
126
+ require 'postfinancecheckout-ruby-sdk/models/payment_connector_configuration'
127
+ require 'postfinancecheckout-ruby-sdk/models/payment_connector_feature'
128
+ require 'postfinancecheckout-ruby-sdk/models/payment_contract'
129
+ require 'postfinancecheckout-ruby-sdk/models/payment_contract_state'
130
+ require 'postfinancecheckout-ruby-sdk/models/payment_contract_type'
131
+ require 'postfinancecheckout-ruby-sdk/models/payment_information_hash'
132
+ require 'postfinancecheckout-ruby-sdk/models/payment_information_hash_type'
133
+ require 'postfinancecheckout-ruby-sdk/models/payment_link'
134
+ require 'postfinancecheckout-ruby-sdk/models/payment_link_address_handling_mode'
135
+ require 'postfinancecheckout-ruby-sdk/models/payment_link_protection_mode'
136
+ require 'postfinancecheckout-ruby-sdk/models/payment_link_update'
137
+ require 'postfinancecheckout-ruby-sdk/models/payment_method'
138
+ require 'postfinancecheckout-ruby-sdk/models/payment_method_brand'
139
+ require 'postfinancecheckout-ruby-sdk/models/payment_method_configuration'
140
+ require 'postfinancecheckout-ruby-sdk/models/payment_primary_risk_taker'
141
+ require 'postfinancecheckout-ruby-sdk/models/payment_processor'
142
+ require 'postfinancecheckout-ruby-sdk/models/payment_processor_configuration'
143
+ require 'postfinancecheckout-ruby-sdk/models/payment_terminal'
144
+ require 'postfinancecheckout-ruby-sdk/models/payment_terminal_address'
145
+ require 'postfinancecheckout-ruby-sdk/models/payment_terminal_configuration'
146
+ require 'postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_state'
147
+ require 'postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_version'
148
+ require 'postfinancecheckout-ruby-sdk/models/payment_terminal_configuration_version_state'
149
+ require 'postfinancecheckout-ruby-sdk/models/payment_terminal_location'
150
+ require 'postfinancecheckout-ruby-sdk/models/payment_terminal_location_state'
151
+ require 'postfinancecheckout-ruby-sdk/models/payment_terminal_location_version'
152
+ require 'postfinancecheckout-ruby-sdk/models/payment_terminal_location_version_state'
153
+ require 'postfinancecheckout-ruby-sdk/models/payment_terminal_receipt_type'
154
+ require 'postfinancecheckout-ruby-sdk/models/payment_terminal_state'
155
+ require 'postfinancecheckout-ruby-sdk/models/payment_terminal_type'
156
+ require 'postfinancecheckout-ruby-sdk/models/permission'
157
+ require 'postfinancecheckout-ruby-sdk/models/refund'
158
+ require 'postfinancecheckout-ruby-sdk/models/refund_comment'
159
+ require 'postfinancecheckout-ruby-sdk/models/refund_create'
160
+ require 'postfinancecheckout-ruby-sdk/models/refund_state'
161
+ require 'postfinancecheckout-ruby-sdk/models/refund_type'
162
+ require 'postfinancecheckout-ruby-sdk/models/rendered_document'
163
+ require 'postfinancecheckout-ruby-sdk/models/rendered_terminal_receipt'
164
+ require 'postfinancecheckout-ruby-sdk/models/resource_path'
165
+ require 'postfinancecheckout-ruby-sdk/models/resource_state'
166
+ require 'postfinancecheckout-ruby-sdk/models/rest_address_format'
167
+ require 'postfinancecheckout-ruby-sdk/models/rest_address_format_field'
168
+ require 'postfinancecheckout-ruby-sdk/models/rest_country'
169
+ require 'postfinancecheckout-ruby-sdk/models/rest_country_state'
170
+ require 'postfinancecheckout-ruby-sdk/models/rest_currency'
171
+ require 'postfinancecheckout-ruby-sdk/models/rest_language'
172
+ require 'postfinancecheckout-ruby-sdk/models/role'
173
+ require 'postfinancecheckout-ruby-sdk/models/role_state'
174
+ require 'postfinancecheckout-ruby-sdk/models/sales_channel'
175
+ require 'postfinancecheckout-ruby-sdk/models/scope'
176
+ require 'postfinancecheckout-ruby-sdk/models/server_error'
177
+ require 'postfinancecheckout-ruby-sdk/models/shopify_additional_line_item_data'
178
+ require 'postfinancecheckout-ruby-sdk/models/shopify_integration'
179
+ require 'postfinancecheckout-ruby-sdk/models/shopify_integration_payment_app_version'
180
+ require 'postfinancecheckout-ruby-sdk/models/shopify_integration_subscription_app_version'
181
+ require 'postfinancecheckout-ruby-sdk/models/shopify_recurring_order_state'
182
+ require 'postfinancecheckout-ruby-sdk/models/shopify_recurring_order_update_request'
183
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscriber'
184
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscriber_active'
185
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscriber_creation'
186
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscriber_state'
187
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription'
188
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_address_create'
189
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_billing_interval_unit'
190
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_creation_request'
191
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_model_billing_configuration'
192
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_model_item'
193
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_model_tax_line'
194
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_product'
195
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_product_pricing_option'
196
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_product_state'
197
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_state'
198
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension'
199
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_create'
200
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_initiator'
201
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_state'
202
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_suspension_type'
203
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_update_addresses_request'
204
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_update_request'
205
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_version'
206
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_version_item'
207
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_version_item_price_strategy'
208
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_version_state'
209
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_weekday'
210
+ require 'postfinancecheckout-ruby-sdk/models/shopify_tax_line'
211
+ require 'postfinancecheckout-ruby-sdk/models/shopify_transaction_state'
212
+ require 'postfinancecheckout-ruby-sdk/models/space'
213
+ require 'postfinancecheckout-ruby-sdk/models/space_address'
214
+ require 'postfinancecheckout-ruby-sdk/models/space_address_create'
215
+ require 'postfinancecheckout-ruby-sdk/models/space_view'
216
+ require 'postfinancecheckout-ruby-sdk/models/static_value'
217
+ require 'postfinancecheckout-ruby-sdk/models/tax'
218
+ require 'postfinancecheckout-ruby-sdk/models/tax_create'
219
+ require 'postfinancecheckout-ruby-sdk/models/tenant_database'
220
+ require 'postfinancecheckout-ruby-sdk/models/terminal_receipt_fetch_request'
221
+ require 'postfinancecheckout-ruby-sdk/models/terminal_receipt_format'
222
+ require 'postfinancecheckout-ruby-sdk/models/token'
223
+ require 'postfinancecheckout-ruby-sdk/models/token_version'
224
+ require 'postfinancecheckout-ruby-sdk/models/token_version_state'
225
+ require 'postfinancecheckout-ruby-sdk/models/token_version_type'
226
+ require 'postfinancecheckout-ruby-sdk/models/tokenization_mode'
227
+ require 'postfinancecheckout-ruby-sdk/models/transaction'
228
+ require 'postfinancecheckout-ruby-sdk/models/transaction_aware_entity'
229
+ require 'postfinancecheckout-ruby-sdk/models/transaction_comment'
230
+ require 'postfinancecheckout-ruby-sdk/models/transaction_completion_behavior'
231
+ require 'postfinancecheckout-ruby-sdk/models/transaction_completion_mode'
232
+ require 'postfinancecheckout-ruby-sdk/models/transaction_completion_request'
233
+ require 'postfinancecheckout-ruby-sdk/models/transaction_completion_state'
234
+ require 'postfinancecheckout-ruby-sdk/models/transaction_environment_selection_strategy'
235
+ require 'postfinancecheckout-ruby-sdk/models/transaction_group'
236
+ require 'postfinancecheckout-ruby-sdk/models/transaction_group_state'
237
+ require 'postfinancecheckout-ruby-sdk/models/transaction_invoice_comment'
238
+ require 'postfinancecheckout-ruby-sdk/models/transaction_invoice_replacement'
239
+ require 'postfinancecheckout-ruby-sdk/models/transaction_invoice_state'
240
+ require 'postfinancecheckout-ruby-sdk/models/transaction_line_item_update_request'
241
+ require 'postfinancecheckout-ruby-sdk/models/transaction_state'
242
+ require 'postfinancecheckout-ruby-sdk/models/transaction_user_interface_type'
243
+ require 'postfinancecheckout-ruby-sdk/models/transaction_void_mode'
244
+ require 'postfinancecheckout-ruby-sdk/models/transaction_void_state'
245
+ require 'postfinancecheckout-ruby-sdk/models/two_factor_authentication_type'
246
+ require 'postfinancecheckout-ruby-sdk/models/user'
247
+ require 'postfinancecheckout-ruby-sdk/models/user_account_role'
248
+ require 'postfinancecheckout-ruby-sdk/models/user_space_role'
249
+ require 'postfinancecheckout-ruby-sdk/models/user_type'
250
+ require 'postfinancecheckout-ruby-sdk/models/webhook_identity'
251
+ require 'postfinancecheckout-ruby-sdk/models/webhook_listener'
252
+ require 'postfinancecheckout-ruby-sdk/models/webhook_listener_entity'
253
+ require 'postfinancecheckout-ruby-sdk/models/webhook_url'
254
+ require 'postfinancecheckout-ruby-sdk/models/account_create'
255
+ require 'postfinancecheckout-ruby-sdk/models/account_update'
256
+ require 'postfinancecheckout-ruby-sdk/models/application_user'
257
+ require 'postfinancecheckout-ruby-sdk/models/application_user_create'
258
+ require 'postfinancecheckout-ruby-sdk/models/application_user_update'
259
+ require 'postfinancecheckout-ruby-sdk/models/charge'
260
+ require 'postfinancecheckout-ruby-sdk/models/charge_attempt'
261
+ require 'postfinancecheckout-ruby-sdk/models/charge_bank_transaction'
262
+ require 'postfinancecheckout-ruby-sdk/models/charge_flow_level'
263
+ require 'postfinancecheckout-ruby-sdk/models/charge_flow_level_payment_link'
264
+ require 'postfinancecheckout-ruby-sdk/models/connector_invocation'
265
+ require 'postfinancecheckout-ruby-sdk/models/customer_active'
266
+ require 'postfinancecheckout-ruby-sdk/models/customer_address_active'
267
+ require 'postfinancecheckout-ruby-sdk/models/customer_address_create'
268
+ require 'postfinancecheckout-ruby-sdk/models/customer_comment_active'
269
+ require 'postfinancecheckout-ruby-sdk/models/customer_comment_create'
270
+ require 'postfinancecheckout-ruby-sdk/models/customer_create'
271
+ require 'postfinancecheckout-ruby-sdk/models/delivery_indication'
272
+ require 'postfinancecheckout-ruby-sdk/models/human_user_create'
273
+ require 'postfinancecheckout-ruby-sdk/models/human_user_update'
274
+ require 'postfinancecheckout-ruby-sdk/models/payment_link_active'
275
+ require 'postfinancecheckout-ruby-sdk/models/payment_link_create'
276
+ require 'postfinancecheckout-ruby-sdk/models/refund_bank_transaction'
277
+ require 'postfinancecheckout-ruby-sdk/models/refund_comment_active'
278
+ require 'postfinancecheckout-ruby-sdk/models/refund_comment_create'
279
+ require 'postfinancecheckout-ruby-sdk/models/refund_recovery_bank_transaction'
280
+ require 'postfinancecheckout-ruby-sdk/models/shopify_recurring_order'
281
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_address'
282
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_product_create'
283
+ require 'postfinancecheckout-ruby-sdk/models/shopify_subscription_product_update'
284
+ require 'postfinancecheckout-ruby-sdk/models/shopify_transaction'
285
+ require 'postfinancecheckout-ruby-sdk/models/space_create'
286
+ require 'postfinancecheckout-ruby-sdk/models/space_update'
287
+ require 'postfinancecheckout-ruby-sdk/models/token_create'
288
+ require 'postfinancecheckout-ruby-sdk/models/token_update'
289
+ require 'postfinancecheckout-ruby-sdk/models/transaction_comment_active'
290
+ require 'postfinancecheckout-ruby-sdk/models/transaction_comment_create'
291
+ require 'postfinancecheckout-ruby-sdk/models/transaction_completion'
292
+ require 'postfinancecheckout-ruby-sdk/models/transaction_create'
293
+ require 'postfinancecheckout-ruby-sdk/models/transaction_invoice'
294
+ require 'postfinancecheckout-ruby-sdk/models/transaction_invoice_comment_active'
295
+ require 'postfinancecheckout-ruby-sdk/models/transaction_invoice_comment_create'
296
+ require 'postfinancecheckout-ruby-sdk/models/transaction_line_item_version'
297
+ require 'postfinancecheckout-ruby-sdk/models/transaction_pending'
298
+ require 'postfinancecheckout-ruby-sdk/models/transaction_void'
299
+ require 'postfinancecheckout-ruby-sdk/models/webhook_listener_create'
300
+ require 'postfinancecheckout-ruby-sdk/models/webhook_listener_update'
301
+ require 'postfinancecheckout-ruby-sdk/models/webhook_url_create'
302
+ require 'postfinancecheckout-ruby-sdk/models/webhook_url_update'
303
+ require 'postfinancecheckout-ruby-sdk/models/application_user_create_with_mac_key'
304
+
305
+ # APIs
306
+ require 'postfinancecheckout-ruby-sdk/api/account_service_api'
307
+ require 'postfinancecheckout-ruby-sdk/api/application_user_service_api'
308
+ require 'postfinancecheckout-ruby-sdk/api/bank_account_service_api'
309
+ require 'postfinancecheckout-ruby-sdk/api/bank_transaction_service_api'
310
+ require 'postfinancecheckout-ruby-sdk/api/charge_attempt_service_api'
311
+ require 'postfinancecheckout-ruby-sdk/api/charge_bank_transaction_service_api'
312
+ require 'postfinancecheckout-ruby-sdk/api/charge_flow_level_payment_link_service_api'
313
+ require 'postfinancecheckout-ruby-sdk/api/charge_flow_level_service_api'
314
+ require 'postfinancecheckout-ruby-sdk/api/charge_flow_service_api'
315
+ require 'postfinancecheckout-ruby-sdk/api/condition_type_service_api'
316
+ require 'postfinancecheckout-ruby-sdk/api/country_service_api'
317
+ require 'postfinancecheckout-ruby-sdk/api/country_state_service_api'
318
+ require 'postfinancecheckout-ruby-sdk/api/currency_bank_account_service_api'
319
+ require 'postfinancecheckout-ruby-sdk/api/currency_service_api'
320
+ require 'postfinancecheckout-ruby-sdk/api/customer_address_service_api'
321
+ require 'postfinancecheckout-ruby-sdk/api/customer_comment_service_api'
322
+ require 'postfinancecheckout-ruby-sdk/api/customer_service_api'
323
+ require 'postfinancecheckout-ruby-sdk/api/delivery_indication_service_api'
324
+ require 'postfinancecheckout-ruby-sdk/api/document_template_service_api'
325
+ require 'postfinancecheckout-ruby-sdk/api/document_template_type_service_api'
326
+ require 'postfinancecheckout-ruby-sdk/api/external_transfer_bank_transaction_service_api'
327
+ require 'postfinancecheckout-ruby-sdk/api/human_user_service_api'
328
+ require 'postfinancecheckout-ruby-sdk/api/internal_transfer_bank_transaction_service_api'
329
+ require 'postfinancecheckout-ruby-sdk/api/label_description_group_service_api'
330
+ require 'postfinancecheckout-ruby-sdk/api/label_description_service_api'
331
+ require 'postfinancecheckout-ruby-sdk/api/language_service_api'
332
+ require 'postfinancecheckout-ruby-sdk/api/legal_organization_form_service_api'
333
+ require 'postfinancecheckout-ruby-sdk/api/manual_task_service_api'
334
+ require 'postfinancecheckout-ruby-sdk/api/payment_connector_configuration_service_api'
335
+ require 'postfinancecheckout-ruby-sdk/api/payment_connector_service_api'
336
+ require 'postfinancecheckout-ruby-sdk/api/payment_link_service_api'
337
+ require 'postfinancecheckout-ruby-sdk/api/payment_method_brand_service_api'
338
+ require 'postfinancecheckout-ruby-sdk/api/payment_method_configuration_service_api'
339
+ require 'postfinancecheckout-ruby-sdk/api/payment_method_service_api'
340
+ require 'postfinancecheckout-ruby-sdk/api/payment_processor_configuration_service_api'
341
+ require 'postfinancecheckout-ruby-sdk/api/payment_processor_service_api'
342
+ require 'postfinancecheckout-ruby-sdk/api/payment_terminal_service_api'
343
+ require 'postfinancecheckout-ruby-sdk/api/payment_terminal_till_service_api'
344
+ require 'postfinancecheckout-ruby-sdk/api/permission_service_api'
345
+ require 'postfinancecheckout-ruby-sdk/api/refund_bank_transaction_service_api'
346
+ require 'postfinancecheckout-ruby-sdk/api/refund_comment_service_api'
347
+ require 'postfinancecheckout-ruby-sdk/api/refund_recovery_bank_transaction_service_api'
348
+ require 'postfinancecheckout-ruby-sdk/api/refund_service_api'
349
+ require 'postfinancecheckout-ruby-sdk/api/shopify_recurring_order_service_api'
350
+ require 'postfinancecheckout-ruby-sdk/api/shopify_subscriber_service_api'
351
+ require 'postfinancecheckout-ruby-sdk/api/shopify_subscription_product_service_api'
352
+ require 'postfinancecheckout-ruby-sdk/api/shopify_subscription_service_api'
353
+ require 'postfinancecheckout-ruby-sdk/api/shopify_subscription_suspension_service_api'
354
+ require 'postfinancecheckout-ruby-sdk/api/shopify_subscription_version_service_api'
355
+ require 'postfinancecheckout-ruby-sdk/api/shopify_transaction_service_api'
356
+ require 'postfinancecheckout-ruby-sdk/api/space_service_api'
357
+ require 'postfinancecheckout-ruby-sdk/api/static_value_service_api'
358
+ require 'postfinancecheckout-ruby-sdk/api/token_service_api'
359
+ require 'postfinancecheckout-ruby-sdk/api/token_version_service_api'
360
+ require 'postfinancecheckout-ruby-sdk/api/transaction_comment_service_api'
361
+ require 'postfinancecheckout-ruby-sdk/api/transaction_completion_service_api'
362
+ require 'postfinancecheckout-ruby-sdk/api/transaction_iframe_service_api'
363
+ require 'postfinancecheckout-ruby-sdk/api/transaction_invoice_comment_service_api'
364
+ require 'postfinancecheckout-ruby-sdk/api/transaction_invoice_service_api'
365
+ require 'postfinancecheckout-ruby-sdk/api/transaction_lightbox_service_api'
366
+ require 'postfinancecheckout-ruby-sdk/api/transaction_mobile_sdk_service_api'
367
+ require 'postfinancecheckout-ruby-sdk/api/transaction_payment_page_service_api'
368
+ require 'postfinancecheckout-ruby-sdk/api/transaction_service_api'
369
+ require 'postfinancecheckout-ruby-sdk/api/transaction_terminal_service_api'
370
+ require 'postfinancecheckout-ruby-sdk/api/transaction_void_service_api'
371
+ require 'postfinancecheckout-ruby-sdk/api/user_account_role_service_api'
372
+ require 'postfinancecheckout-ruby-sdk/api/user_space_role_service_api'
373
+ require 'postfinancecheckout-ruby-sdk/api/webhook_listener_service_api'
374
+ require 'postfinancecheckout-ruby-sdk/api/webhook_url_service_api'
375
+
376
+ module PostFinanceCheckout
377
+ class << self
378
+ # Customize default settings for the SDK using block.
379
+ # PostFinanceCheckout.configure do |config|
380
+ # config.user_id = "xxx"
381
+ # config.authentication_key = "xxx"
382
+ # end
383
+ # If no block given, return the default Configuration object.
384
+ def configure
385
+ if block_given?
386
+ yield(Configuration.default)
387
+ else
388
+ Configuration.default
389
+ end
390
+ end
391
+ end
392
+ end