pcp-server-ruby-sdk 1.0.0 → 1.2.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 (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +28 -0
  3. data/README.md +9 -3
  4. data/api-definition.yaml +4803 -0
  5. data/lib/PCP-server-Ruby-SDK/endpoints/checkout_api_client.rb +24 -0
  6. data/lib/PCP-server-Ruby-SDK/endpoints/payment_execution_api_client.rb +47 -0
  7. data/lib/PCP-server-Ruby-SDK/endpoints/payment_information_api_client.rb +27 -2
  8. data/lib/PCP-server-Ruby-SDK/models/action_type.rb +34 -0
  9. data/lib/PCP-server-Ruby-SDK/models/api_error.rb +1 -1
  10. data/lib/PCP-server-Ruby-SDK/models/avs_result.rb +52 -0
  11. data/lib/PCP-server-Ruby-SDK/models/bank_account_information.rb +17 -5
  12. data/lib/PCP-server-Ruby-SDK/models/bank_payout_method_specific_input.rb +198 -0
  13. data/lib/PCP-server-Ruby-SDK/models/business_relation.rb +30 -0
  14. data/lib/PCP-server-Ruby-SDK/models/capture_output.rb +45 -41
  15. data/lib/PCP-server-Ruby-SDK/models/card_fraud_results.rb +3 -2
  16. data/lib/PCP-server-Ruby-SDK/models/card_recurrence_details.rb +5 -2
  17. data/lib/PCP-server-Ruby-SDK/models/customer.rb +21 -6
  18. data/lib/PCP-server-Ruby-SDK/models/customer_account.rb +51 -0
  19. data/lib/PCP-server-Ruby-SDK/models/financing_payment_method_specific_output.rb +43 -40
  20. data/lib/PCP-server-Ruby-SDK/models/merchant_action.rb +3 -2
  21. data/lib/PCP-server-Ruby-SDK/models/mobile_payment_method_specific_input.rb +16 -33
  22. data/lib/PCP-server-Ruby-SDK/models/mobile_payment_three_dsecure.rb +185 -0
  23. data/lib/PCP-server-Ruby-SDK/models/order_line_details_input.rb +12 -6
  24. data/lib/PCP-server-Ruby-SDK/models/{payment_product320_specific_input.rb → pause_payment_request.rb} +13 -31
  25. data/lib/PCP-server-Ruby-SDK/models/pause_payment_response.rb +192 -0
  26. data/lib/PCP-server-Ruby-SDK/models/payee.rb +212 -0
  27. data/lib/PCP-server-Ruby-SDK/models/payment_event.rb +14 -14
  28. data/lib/PCP-server-Ruby-SDK/models/payment_execution.rb +39 -5
  29. data/lib/PCP-server-Ruby-SDK/models/payment_information_refund_request.rb +212 -0
  30. data/lib/PCP-server-Ruby-SDK/models/payment_information_refund_response.rb +202 -0
  31. data/lib/PCP-server-Ruby-SDK/models/payment_information_response.rb +40 -25
  32. data/lib/PCP-server-Ruby-SDK/models/payment_instructions.rb +222 -0
  33. data/lib/PCP-server-Ruby-SDK/models/payment_product302_specific_input.rb +232 -0
  34. data/lib/PCP-server-Ruby-SDK/models/payout_output.rb +28 -24
  35. data/lib/PCP-server-Ruby-SDK/models/payout_response.rb +6 -25
  36. data/lib/PCP-server-Ruby-SDK/models/recurring_payment_sequence_indicator.rb +30 -0
  37. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_product840_specific_input.rb +14 -4
  38. data/lib/PCP-server-Ruby-SDK/models/refresh_payment_request.rb +192 -0
  39. data/lib/PCP-server-Ruby-SDK/models/refresh_type.rb +30 -0
  40. data/lib/PCP-server-Ruby-SDK/models/sepa_transfer_payment_product_772_specific_input.rb +192 -0
  41. data/lib/PCP-server-Ruby-SDK/models/status_value.rb +12 -10
  42. data/lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb +3 -1
  43. data/lib/PCP-server-Ruby-SDK/transformer/apple_pay_transformer.rb +2 -2
  44. data/lib/PCP-server-Ruby-SDK/version.rb +1 -1
  45. data/lib/PCP-server-Ruby-SDK.rb +24 -2
  46. data/package-lock.json +174 -245
  47. data/package.json +1 -1
  48. data/scripts.sh +7 -14
  49. data/spec/endpoints/checkout_api_client_spec.rb +51 -0
  50. data/spec/endpoints/payment_execution_api_client_spec.rb +102 -0
  51. data/spec/endpoints/payment_information_api_client_spec.rb +52 -0
  52. data/spec/transformer/apple_pay_transformer_spec.rb +1 -1
  53. data/spec/utils/server_meta_info_spec.rb +2 -2
  54. metadata +24 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6dccf9d92b9e9942fd05f6af72b37189fb67012bbe89f357dd214cdcedee7924
4
- data.tar.gz: e93c3c08cb536b5d69777cc95738b1e2a065fd8b25a6845256a9c6bdde5c5949
3
+ metadata.gz: '095fe63398bc28f8de4e8040e0aafae3140c77f1cfc706f29d4a1a505d242279'
4
+ data.tar.gz: 28c4a2ec2baceeb92d77c07ca74dbbc340845335d579878e7ff4930e0ca6255e
5
5
  SHA512:
6
- metadata.gz: 7c71a66fd105df74941e2533d144bd229a5e36a0f81ac2e1feebe580e807222a706158ae7c214eac104c0b403455a43c48f711be289fb969c6ef131e467cca5f
7
- data.tar.gz: cb5f32578f73f99073d58ee316f1efe38a10b02b2175596c5522f173d89d2b4b73dd06896e37e123f7a27d5882b9ad01042f1943a970c96a812aeb2f05807cf6
6
+ metadata.gz: 23e606c466218f6c646259598e9fc50f8c99bfa44b5a457d2aceee2ef4fedc9273337332128fedaeec05bbdb4cdbbe0babb2af1304ae099c8b4981e358ff2ddd
7
+ data.tar.gz: 0bea44e28cc1681047ddc73e0a3d4be47e241eeb4d0ed4d4229edecf15d2b89ba944dc1749efeea1601b3b24efd3a512593258b22ebfb4677a374dd992960fec
data/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ # [1.2.0](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/compare/v1.1.0...v1.2.0) (2025-05-26)
2
+
3
+ ### Documentation
4
+
5
+ * docs: clarify comment for category attribute in APIError class ([ccafb6db2bc474bb07a30a1fda7ff6e730a8137d](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/ccafb6db2bc474bb07a30a1fda7ff6e730a8137d))
6
+ * docs: improve comment clarity for tax_amount_per_unit attribute in OrderLineDetailsInput model ([37fcf28f22a1a9ccf93689c21c07f06d2e3249a8](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/37fcf28f22a1a9ccf93689c21c07f06d2e3249a8))
7
+ * docs: update docs ([a4b33ef94dc183847f5be0288c84312c0dd8cfba](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/a4b33ef94dc183847f5be0288c84312c0dd8cfba))
8
+ * docs: update README with new badge links and API version ([c69507cd4b9da665fb686576c0900570462fc1bf](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/c69507cd4b9da665fb686576c0900570462fc1bf))
9
+
10
+ ### Features
11
+
12
+ * feat: add BusinessRelation class and update customer model to use it ([68ab9fc5c41aad7f3f967b75b1ecdd0ac02cba63](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/68ab9fc5c41aad7f3f967b75b1ecdd0ac02cba63))
13
+ * feat: add CustomerAccount class and integrate it into Customer class ([ee1600ec78d66498cc758b4c931f510dd3ffb4c7](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/ee1600ec78d66498cc758b4c931f510dd3ffb4c7))
14
+ * feat: add fraud_net_id attribute to RedirectPaymentProduct840SpecificInput model ([27ec17cce2fb42eb37116790ce2dd106502487c0](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/27ec17cce2fb42eb37116790ce2dd106502487c0))
15
+ * feat: add RecurringPaymentSequenceIndicator class and update CardRecurrenceDetails to use it ([e2507f4328a297dc700fa1635029a1599fa58101](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/e2507f4328a297dc700fa1635029a1599fa58101))
16
+ * feat: implement ActionType class and update MerchantAction to use it ([8e259dc45f4e20ea0a10a351a3abdc86926b91f1](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/8e259dc45f4e20ea0a10a351a3abdc86926b91f1))
17
+ * feat: implement AvsResult enum class and update CardFraudResults to use it ([c0a40cc08aa878afaae93851be1619907e7c5e86](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/c0a40cc08aa878afaae93851be1619907e7c5e86))
18
+
19
+ # [1.1.0](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/compare/v1.0.0...v1.1.0) (2025-03-14)
20
+
21
+ ### Documentation
22
+
23
+ * docs: update readme ([39af578246533fda6b3bed100a4fbf66371885b7](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/39af578246533fda6b3bed100a4fbf66371885b7))
24
+
25
+ ### Features
26
+
27
+ * feat: implement api level 1.28.0 ([b26df0bc2da08cd900775c45bd64f5db120ede0a](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/b26df0bc2da08cd900775c45bd64f5db120ede0a))
28
+
1
29
  ## [0.0.1](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/compare/v0.0.6...v0.0.1) (2024-09-02)
2
30
 
3
31
  ### Bug Fixes
data/README.md CHANGED
@@ -2,10 +2,16 @@
2
2
 
3
3
  [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=PAYONE-GmbH_PCP-ServerSDK-ruby&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=PAYONE-GmbH_PCP-ServerSDK-ruby)
4
4
  [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=PAYONE-GmbH_PCP-ServerSDK-ruby&metric=coverage)](https://sonarcloud.io/summary/new_code?id=PAYONE-GmbH_PCP-ServerSDK-ruby)
5
- ![PyPI - Version](https://img.shields.io/pypi/v/pcp_serversdk_ruby)
6
- ![PyPI - Downloads](https://img.shields.io/pypi/dw/pcp_serversdk_ruby)
5
+ ![PyPI - Version](https://img.shields.io/gem/v/pcp-server-ruby-sdk)
6
+ ![PyPI - Downloads](https://img.shields.io/gem/dv/pcp-server-ruby-sdk/1.1.0)
7
+
8
+
9
+ Welcome to the Ruby SDK for the PAYONE Commerce Platform (api-version 1.35.0)! This repository contains a powerful, easy-to-use software development kit (SDK) designed to simplify the integration of online payment processing into your applications.
10
+
11
+ ## Requirements
12
+
13
+ This SDK requires Ruby 3.2 or later.
7
14
 
8
- Welcome to the Ruby SDK for the PAYONE Commerce Platform! This repository contains a powerful, easy-to-use software development kit (SDK) designed to simplify the integration of online payment processing into your applications.
9
15
 
10
16
  ## Table of Contents
11
17