pcp-server-ruby-sdk 1.13.0 → 1.15.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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/README.md +1 -1
  4. data/api-definition.yaml +438 -20
  5. data/lib/PCP-server-Ruby-SDK/endpoints/pay_by_link_api_client.rb +33 -0
  6. data/lib/PCP-server-Ruby-SDK/endpoints/payment_intent_api_client.rb +14 -1
  7. data/lib/PCP-server-Ruby-SDK/models/authentication_token.rb +6 -183
  8. data/lib/PCP-server-Ruby-SDK/models/create_pay_by_link_request.rb +12 -0
  9. data/lib/PCP-server-Ruby-SDK/models/create_pay_by_link_response.rb +13 -0
  10. data/lib/PCP-server-Ruby-SDK/models/create_payment_intent.rb +1 -1
  11. data/lib/PCP-server-Ruby-SDK/models/patch_payment_intent_request.rb +10 -0
  12. data/lib/PCP-server-Ruby-SDK/models/patch_payment_intent_response.rb +11 -0
  13. data/lib/PCP-server-Ruby-SDK/models/pay_link_status_value.rb +20 -0
  14. data/lib/PCP-server-Ruby-SDK/models/payment_information_response.rb +4 -0
  15. data/lib/PCP-server-Ruby-SDK/models/payment_link_order.rb +10 -0
  16. data/lib/PCP-server-Ruby-SDK/models/payment_link_specific_input.rb +19 -0
  17. data/lib/PCP-server-Ruby-SDK/models/payment_product840_customer_account_for_intent.rb +12 -0
  18. data/lib/PCP-server-Ruby-SDK/models/payment_product840_specific_output.rb +5 -6
  19. data/lib/PCP-server-Ruby-SDK/models/payment_product840_specific_output_for_intent.rb +5 -6
  20. data/lib/PCP-server-Ruby-SDK/models/payment_references_for_payment_intent.rb +11 -0
  21. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_output_for_create_intent.rb +1 -1
  22. data/lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb +5 -1
  23. data/lib/PCP-server-Ruby-SDK/version.rb +1 -1
  24. data/lib/PCP-server-Ruby-SDK.rb +10 -1
  25. data/package-lock.json +2 -2
  26. data/package.json +1 -1
  27. data/spec/endpoints/pay_by_link_api_client_spec.rb +38 -0
  28. data/spec/endpoints/payment_information_api_client_spec.rb +9 -2
  29. data/spec/endpoints/payment_intent_api_client_spec.rb +35 -2
  30. data/spec/models/api_definition_conformance_spec.rb +28 -0
  31. data/spec/models/pay_by_link_models_spec.rb +50 -0
  32. data/spec/models/payment_intent_models_spec.rb +68 -0
  33. data/spec/queries/get_checkouts_query_spec.rb +15 -0
  34. metadata +24 -11
  35. data/lib/PCP-server-Ruby-SDK/models/payment_product840_specific_output_data.rb +0 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1a9875fc08007fe360fc31df9900dc68079bf5d2f36f5d45506afcddf1ffd78
4
- data.tar.gz: cd2ca48761ba4ca6ae6b5dff334eac7071dc3782204c935bb270aca291668ce9
3
+ metadata.gz: a779b55f0ba292acb462e86972bee172c0dbe1194127ea000d34cd04fbc78b7f
4
+ data.tar.gz: 715810d8be9a4d671e5322141126d63d7b1591160bea3d237e5f8781f6ca7144
5
5
  SHA512:
6
- metadata.gz: df7bc19cb5a08913bfb6d3fc8999e80b265df84c2a5e13d3e6f66622b703a6fbcf36617a7e2e1b4d1b041157a78643241069d8768fffd8dcc320c0c1d968a279
7
- data.tar.gz: 12300375a10d05501deee7cd489fcdee071d60d5c96c87dd201a926a4874221b824667d522a0708e227edb07cc3db9feb4c10704e0d1f9762e6a7132bd82ac71
6
+ metadata.gz: 70248e428268925ee8d1d7c8d870a39a8767c55d8f7496bfb8c2428572fa2db5cf1411245d6ebf49ce980ac935c0fce98f37f56393f9be68c81f7ad70e3ddd0e
7
+ data.tar.gz: b218b8c61b79382c2bb07547f69b0c25de92cca20a38c6b590eff23b2451eee39ffa48cd6ae5085c3fdc87ceafe8dc875d1503fe4c59443ae0e6a31fabc38fc2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # [1.15.0](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/compare/v1.14.0...v1.15.0) (2026-09-30)
2
+
3
+ ### Features
4
+
5
+ * feat: update API version to 1.71.0 ([2b215c238a54b39f550be522571fadd981a76a65](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/2b215c238a54b39f550be522571fadd981a76a65))
6
+
7
+ # [1.14.0](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/compare/v1.13.0...v1.14.0) (2026-09-21)
8
+
9
+ ### Features
10
+
11
+ * feat: update API version to 1.65.0 ([5bcf38718a57a8ab82e0ccd0ddb783cd4a9b2b34](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/5bcf38718a57a8ab82e0ccd0ddb783cd4a9b2b34))
12
+
1
13
  # [1.13.0](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/compare/v1.12.0...v1.13.0) (2026-07-23)
2
14
 
3
15
  ### Features
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  ![PyPI - Downloads](https://img.shields.io/gem/dv/pcp-server-ruby-sdk/1.1.0)
7
7
 
8
8
 
9
- Welcome to the Ruby SDK for the PAYONE Commerce Platform (api-version 1.61.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.
9
+ Welcome to the Ruby SDK for the PAYONE Commerce Platform (api-version 1.71.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
10
 
11
11
  ## Requirements
12
12
 
data/api-definition.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  openapi: "3.0.3"
2
2
 
3
3
  info:
4
- version: 1.61.0
4
+ version: 1.71.0
5
5
  title: "Commerce Platform API"
6
6
  description: |
7
7
  RESTful API for the creation of Commerce Cases with Checkouts and the execution of Payments.
@@ -27,6 +27,48 @@ tags:
27
27
  description: Resource for operations on Payment Intent.
28
28
 
29
29
  paths:
30
+ /v1/{merchantId}/authentication-tokens:
31
+ post:
32
+ summary: Generate a authentication JWT token
33
+ operationId: generateAuthToken
34
+ tags:
35
+ - Authentication
36
+ parameters:
37
+ - name: merchantId
38
+ in: path
39
+ description: The Merchant Id
40
+ required: true
41
+ schema:
42
+ type: string
43
+ - in: header
44
+ name: X-Request-ID
45
+ required: false
46
+ description: Identifier for this request as provided by the client. Will be used
47
+ in all log statements
48
+ schema:
49
+ type: string
50
+ format: uuid
51
+ responses:
52
+ '201':
53
+ description: Successfully generated authentication token
54
+ content:
55
+ application/json:
56
+ schema:
57
+ $ref: '#/components/schemas/AuthenticationToken'
58
+ '400':
59
+ x-nullable: true
60
+ description: Exception when creating DirectAPIKey with unknown or invalid parameters.
61
+ content:
62
+ application/json:
63
+ schema:
64
+ $ref: '#/components/schemas/ErrorResponse'
65
+ '500':
66
+ x-nullable: true
67
+ description: Server error when creating authentication token.
68
+ content:
69
+ application/json:
70
+ schema:
71
+ $ref: '#/components/schemas/ErrorResponse'
30
72
  '/v1/{merchantId}/commerce-cases':
31
73
  post:
32
74
  summary: Create a Commerce Case
@@ -178,7 +220,7 @@ paths:
178
220
  $ref: '#/components/schemas/ErrorResponse'
179
221
  '/v1/{merchantId}/commerce-cases/{commerceCaseId}/checkouts/{checkoutId}/order':
180
222
  post:
181
- summary: Creates an Order that will automatially execute a Payment
223
+ summary: Creates an Order that will automatically execute a Payment
182
224
  description: |
183
225
  This endpoint can be used to create an Order that automatically executes a payment for the respective Checkout.
184
226
  The Order request requires items within the ShoppingCart and can be made for a partial or the entire
@@ -622,6 +664,9 @@ paths:
622
664
  - $ref: '#/components/parameters/companyInformation'
623
665
  - $ref: '#/components/parameters/terminalId'
624
666
  - $ref: '#/components/parameters/reportingToken'
667
+ - $ref: '#/components/parameters/cardAuthorizationId'
668
+ - $ref: '#/components/parameters/receiptNumber'
669
+ - $ref: '#/components/parameters/traceNumber'
625
670
  responses:
626
671
  '200':
627
672
  x-nullable: true
@@ -638,6 +683,57 @@ paths:
638
683
  application/json:
639
684
  schema:
640
685
  $ref: '#/components/schemas/ErrorResponse'
686
+ '/v1/{merchantId}/commerce-cases/{commerceCaseId}/checkouts/{checkoutId}/pay-by-link':
687
+ post:
688
+ summary: "Create a pay-link"
689
+ description: |-
690
+ This endpoint can be used to create a pay-link using which customer can make payment for the check out.
691
+ tags:
692
+ - PaybyLink
693
+ operationId: createPayByLink
694
+ parameters:
695
+ - $ref: '#/components/parameters/merchantIdPath'
696
+ - $ref: '#/components/parameters/commerceCaseIdPath'
697
+ - $ref: '#/components/parameters/checkoutIdPath'
698
+ requestBody:
699
+ required: true
700
+ content:
701
+ application/json:
702
+ schema:
703
+ $ref: '#/components/schemas/CreatePayByLinkRequest'
704
+ responses:
705
+ '201':
706
+ description: |-
707
+ The response contains the details of the created pay-link.
708
+ content:
709
+ application/json:
710
+ schema:
711
+ $ref: '#/components/schemas/CreatePayByLinkResponse'
712
+ '404':
713
+ description: |-
714
+ No matching data found for the given input parameters.
715
+ content:
716
+ application/json:
717
+ schema:
718
+ $ref: '#/components/schemas/ErrorResponse'
719
+ '500':
720
+ description: Internal server exception
721
+ content:
722
+ application/json:
723
+ schema:
724
+ $ref: '#/components/schemas/ErrorResponse'
725
+ '503':
726
+ description: Service unavailable.
727
+ content:
728
+ application/json:
729
+ schema:
730
+ $ref: '#/components/schemas/ErrorResponse'
731
+ '400':
732
+ description: "Data validation errors"
733
+ content:
734
+ application/json:
735
+ schema:
736
+ $ref: '#/components/schemas/ErrorResponse'
641
737
  '/v1/{merchantId}/commerce-cases/{commerceCaseId}/checkouts/{checkoutId}':
642
738
  get:
643
739
  summary: Get Checkout Details
@@ -1482,7 +1578,7 @@ paths:
1482
1578
  This endpoint can be used to create a payment intent for PayPal payment method.
1483
1579
  tags:
1484
1580
  - PaymentIntent
1485
- operationId: createPaymentIntemt
1581
+ operationId: createPaymentIntent
1486
1582
  parameters:
1487
1583
  - $ref: '#/components/parameters/merchantIdPath'
1488
1584
  requestBody:
@@ -1494,7 +1590,7 @@ paths:
1494
1590
  responses:
1495
1591
  '201':
1496
1592
  x-nullable: true
1497
- description: The response contains the reference of the created Payment Intent.
1593
+ description: The response contains the created Payment Intent, including its reference.
1498
1594
  content:
1499
1595
  application/json:
1500
1596
  schema:
@@ -1541,7 +1637,7 @@ paths:
1541
1637
  responses:
1542
1638
  '200':
1543
1639
  x-nullable: true
1544
- description: The response contains the reference of the created Payment Intent.
1640
+ description: The response contains the Payment Intent.
1545
1641
  content:
1546
1642
  application/json:
1547
1643
  schema:
@@ -1553,9 +1649,49 @@ paths:
1553
1649
  application/json:
1554
1650
  schema:
1555
1651
  $ref: '#/components/schemas/ErrorResponse'
1652
+ patch:
1653
+ summary: Update a Payment Intent
1654
+ description: |-
1655
+ This endpoint can be used to update the shopping cart and amount of money of a payment intent.
1656
+ tags:
1657
+ - PaymentIntent
1658
+ operationId: patchPaymentIntent
1659
+ parameters:
1660
+ - $ref: '#/components/parameters/merchantIdPath'
1661
+ - $ref: '#/components/parameters/paymentIntentId'
1662
+ requestBody:
1663
+ required: true
1664
+ content:
1665
+ application/json:
1666
+ schema:
1667
+ $ref: '#/components/schemas/PatchPaymentIntentRequest'
1668
+ responses:
1669
+ '200':
1670
+ x-nullable: true
1671
+ description: The response contains the updated Payment Intent.
1672
+ content:
1673
+ application/json:
1674
+ schema:
1675
+ $ref: '#/components/schemas/PatchPaymentIntentResponse'
1676
+ '404':
1677
+ x-nullable: true
1678
+ description: Payment not found
1679
+ content:
1680
+ application/json:
1681
+ schema:
1682
+ $ref: '#/components/schemas/ErrorResponse'
1556
1683
 
1557
1684
  components:
1558
1685
  parameters:
1686
+ cardAuthorizationId:
1687
+ in: query
1688
+ name: cardAuthorizationId
1689
+ description: |-
1690
+ Filter your results by the authorization ID assigned to the card payment.
1691
+ schema:
1692
+ type: string
1693
+ maxLength: 8
1694
+ example: 260042
1559
1695
  checkoutIdPath:
1560
1696
  in: path
1561
1697
  name: checkoutId
@@ -1614,7 +1750,6 @@ components:
1614
1750
  Format YYYYMMDD
1615
1751
  schema:
1616
1752
  type: string
1617
- maxLength: 8
1618
1753
  pattern: ^((19|20|21)\d{6})?$
1619
1754
  example: 20041101
1620
1755
  email:
@@ -1853,6 +1988,15 @@ components:
1853
1988
  type: string
1854
1989
  x-trim-at: 20
1855
1990
  example: '+1234567890'
1991
+ receiptNumber:
1992
+ in: query
1993
+ name: receiptNumber
1994
+ description: |-
1995
+ Filter your results by the receipt number set by the terminal.
1996
+ schema:
1997
+ type: string
1998
+ maxLength: 40
1999
+ example: 0321
1856
2000
  reportingToken:
1857
2001
  in: query
1858
2002
  name: reportingToken
@@ -1984,6 +2128,15 @@ components:
1984
2128
  maximum: 999999999999
1985
2129
  minimum: 0
1986
2130
  example: 1000
2131
+ traceNumber:
2132
+ in: query
2133
+ name: traceNumber
2134
+ description: |-
2135
+ Filter your results by the trace number set by the terminal.
2136
+ schema:
2137
+ type: string
2138
+ maxLength: 40
2139
+ example: 012345
1987
2140
  schemas:
1988
2141
  Address:
1989
2142
  type: object
@@ -2221,6 +2374,7 @@ components:
2221
2374
  * SALE - The payment creation results in an authorization that is already captured at the moment of approval.
2222
2375
 
2223
2376
  If the parameter is not provided in the request, the default value will be PRE_AUTHORIZATION
2377
+ default: PRE_AUTHORIZATION
2224
2378
  BankAccountInformation:
2225
2379
  type: object
2226
2380
  description: Object containing information about the end customer's bank account.
@@ -3115,9 +3269,11 @@ components:
3115
3269
  amountOfMoney:
3116
3270
  $ref: '#/components/schemas/AmountOfMoney'
3117
3271
  references:
3118
- $ref: '#/components/schemas/PaymentReferences'
3272
+ $ref: '#/components/schemas/PaymentReferencesForPaymentIntent'
3119
3273
  shoppingCart:
3120
3274
  $ref: '#/components/schemas/ShoppingCartData'
3275
+ required:
3276
+ - references
3121
3277
  CreatePaymentIntentRequest:
3122
3278
  title: PaymentIntentRequest
3123
3279
  type: object
@@ -3990,6 +4146,24 @@ components:
3990
4146
  properties:
3991
4147
  customer:
3992
4148
  $ref: '#/components/schemas/Customer'
4149
+ PatchPaymentIntentRequest:
4150
+ title: PaymentIntentRequest
4151
+ type: object
4152
+ description: |
4153
+ Object containing details for updating a payment intent.
4154
+ additionalProperties: false
4155
+ properties:
4156
+ amountOfMoney:
4157
+ $ref: '#/components/schemas/AmountOfMoney'
4158
+ shoppingCart:
4159
+ $ref: '#/components/schemas/ShoppingCartData'
4160
+ PatchPaymentIntentResponse:
4161
+ title: PaymentIntentResponse
4162
+ type: object
4163
+ description: Object containing details on the updated payment intent.
4164
+ additionalProperties: false
4165
+ allOf:
4166
+ - $ref: '#/components/schemas/CreatePaymentIntentResponse'
3993
4167
  PausePaymentRequest:
3994
4168
  type: object
3995
4169
  description: Request to pause a payment for a specific payment method.
@@ -4285,6 +4459,18 @@ components:
4285
4459
  (e.g. card present payments, cash payments or payments processed by other payment providers).
4286
4460
  maxLength: 40
4287
4461
  example: 6a891660b8cf16edaeb26f87d86f0b2f
4462
+ traceNumber:
4463
+ type: string
4464
+ description: Tracenumber that is incremented by the terminal by 1 for every transaction request.
4465
+ It is printed on the customer receipt. Usually it has an upper limit and restarts by 0 or 1 if the upper limit is reached.
4466
+ maxLength: 40
4467
+ example: "012345"
4468
+ receiptNumber:
4469
+ type: string
4470
+ description: Receiptnumber, that is incremented by 1 by the terminal for every successful financial transaction.
4471
+ It is printed on the customer receipt. Usually it has an upper limit and restarts by 0 or 1 if the upper limit is reached.
4472
+ maxLength: 40
4473
+ example: "0321"
4288
4474
  creationDateTime:
4289
4475
  type: string
4290
4476
  format: date-time
@@ -4537,17 +4723,29 @@ components:
4537
4723
  type: string
4538
4724
  description: Surname of the PayPal account holder
4539
4725
  example: Doe
4540
- PaymentProduct840SpecificOutput:
4726
+ PaymentProduct840CustomerAccountForIntent:
4541
4727
  type: object
4542
4728
  description: |
4543
- PayPal (payment product 840) specific details.
4544
- allOf:
4545
- - $ref: '#/components/schemas/PaymentProduct840SpecificOutputData'
4729
+ Object containing the details of the PayPal account.
4546
4730
  additionalProperties: false
4547
4731
  properties:
4548
- shippingAddress:
4549
- $ref: '#/components/schemas/Address'
4550
- PaymentProduct840SpecificOutputData:
4732
+ companyName:
4733
+ type: string
4734
+ description: Name of the company in case the PayPal account is owned by a business
4735
+ example: Customer Company Name
4736
+ firstName:
4737
+ type: string
4738
+ description: First name of the PayPal account holder
4739
+ example: John
4740
+ surname:
4741
+ type: string
4742
+ description: Surname of the PayPal account holder
4743
+ example: Doe
4744
+ emailAddress:
4745
+ type: string
4746
+ description: Email address of the customer
4747
+ maxLength: 70
4748
+ PaymentProduct840SpecificOutput:
4551
4749
  type: object
4552
4750
  description: |
4553
4751
  PayPal (payment product 840) specific details.
@@ -4559,14 +4757,20 @@ components:
4559
4757
  $ref: '#/components/schemas/PaymentProduct840CustomerAccount'
4560
4758
  payPalTransactionId:
4561
4759
  $ref: '#/components/schemas/PayPalTransactionId'
4760
+ shippingAddress:
4761
+ $ref: '#/components/schemas/Address'
4562
4762
  PaymentProduct840SpecificOutputForIntent:
4563
4763
  type: object
4564
4764
  description: |
4565
4765
  PayPal (payment product 840) specific details.
4566
- allOf:
4567
- - $ref: '#/components/schemas/PaymentProduct840SpecificOutputData'
4568
4766
  additionalProperties: false
4569
4767
  properties:
4768
+ billingAddress:
4769
+ $ref: '#/components/schemas/Address'
4770
+ customerAccount:
4771
+ $ref: '#/components/schemas/PaymentProduct840CustomerAccountForIntent'
4772
+ payPalTransactionId:
4773
+ $ref: '#/components/schemas/PayPalTransactionId'
4570
4774
  shippingAddress:
4571
4775
  $ref: '#/components/schemas/ShippingAddress'
4572
4776
  PaymentProductId:
@@ -4590,6 +4794,15 @@ components:
4590
4794
  If provided for captures or refunds, it must be unique per Checkout.
4591
4795
  maxLength: 20
4592
4796
  example: your-order-6372
4797
+ PaymentReferencesForPaymentIntent:
4798
+ description: |-
4799
+ Object that holds all reference properties that are linked to this transaction.
4800
+ Extends the standard PaymentReferences by making merchantReference mandatory when creating a payment intent.
4801
+ allOf:
4802
+ - $ref: '#/components/schemas/PaymentReferences'
4803
+ - type: object
4804
+ required:
4805
+ - merchantReference
4593
4806
  PaymentReferencesForRefund:
4594
4807
  type: object
4595
4808
  description: |-
@@ -4705,7 +4918,6 @@ components:
4705
4918
  description: |-
4706
4919
  The date of birth of the customer of the recipient of the loan.
4707
4920
  Format YYYYMMDD
4708
- maxLength: 8
4709
4921
  pattern: ^((19|20|21)\d{6})?$
4710
4922
  gender:
4711
4923
  type: string
@@ -4820,7 +5032,7 @@ components:
4820
5032
  redirectURL:
4821
5033
  type: string
4822
5034
  description: The URL that the customer should be redirected to. Be sure to redirect using the GET method
4823
- example: https://example-mandate-signing-url.com\
5035
+ example: https://example-redirect-url.com
4824
5036
  RedirectionData:
4825
5037
  type: object
4826
5038
  description: Object containing browser specific redirection related data.
@@ -4925,8 +5137,8 @@ components:
4925
5137
  $ref: '#/components/schemas/PaymentProductId'
4926
5138
  paymentProduct840SpecificOutput:
4927
5139
  $ref: '#/components/schemas/RedirectPaymentProduct840SpecificInputData'
4928
- redirectionData:
4929
- $ref: '#/components/schemas/RedirectionData'
5140
+ redirectData:
5141
+ $ref: '#/components/schemas/RedirectData'
4930
5142
  RedirectPaymentMethodSpecificOutputForIntent:
4931
5143
  title: redirectPaymentMethodSpecificOutput
4932
5144
  type: object
@@ -5490,3 +5702,209 @@ components:
5490
5702
  - first
5491
5703
  - subsequent
5492
5704
  x-enum-to-string: false
5705
+ CreatePayByLinkRequest:
5706
+ type: object
5707
+ description: Request object for pay-link generation.
5708
+ properties:
5709
+ paymentLinkSpecificInput:
5710
+ $ref: '#/components/schemas/PaymentLinkSpecificInput'
5711
+ orderType:
5712
+ $ref: '#/components/schemas/OrderType'
5713
+ items:
5714
+ type: array
5715
+ items:
5716
+ $ref: '#/components/schemas/OrderItem'
5717
+ orderReferences:
5718
+ $ref: '#/components/schemas/References'
5719
+ required:
5720
+ - paymentLinkSpecificInput
5721
+ - orderType
5722
+ - orderReferences
5723
+ PaymentLinkSpecificInput:
5724
+ type: object
5725
+ description: Object containing the specific input details for generating Pay-link
5726
+ properties:
5727
+ expirationDate:
5728
+ type: string
5729
+ format: date-time
5730
+ description: |-
5731
+ If provided it overwrites 24 h default validity.
5732
+ Date and time in RFC3339 format after which Items (Checkouts or Commerce-Cases, depending on the context) should be included in the request. Accepted formats are:
5733
+ YYYY-MM-DD'T'HH:mm:ss'Z'
5734
+ YYYY-MM-DD'T'HH:mm:ss+XX:XX
5735
+ YYYY-MM-DD'T'HH:mm:ss-XX:XX
5736
+ YYYY-MM-DD'T'HH:mm'Z'
5737
+ YYYY-MM-DD'T'HH:mm+XX:XX
5738
+ YYYY-MM-DD'T'HH:mm-XX:XX
5739
+ All other formats may be ignored by the system.
5740
+ some examples:
5741
+ YYYY-MM-DDThh:mm:ssZ:
5742
+ value: 2022-11-10T13:34:23Z
5743
+ YYYY-MM-DDThh:mm:ss+XX:XX:
5744
+ value: 2022-11-10T14:34:23+01:00
5745
+ authorizationMode:
5746
+ $ref: '#/components/schemas/AuthorizationMode'
5747
+ paymentMethods:
5748
+ type: array
5749
+ items:
5750
+ $ref: '#/components/schemas/PaymentMethodId'
5751
+ description: List of supported Payment product identifiers
5752
+ example: [ 1,2,3,390 ]
5753
+ bnplId:
5754
+ type: string
5755
+ description: Dedicated ID to be known when the page is generated to display the BNPL payment methods in order to create a dedicated identification token.
5756
+ example: 18323
5757
+ returnUrl:
5758
+ type: string
5759
+ format: uri
5760
+ pattern: '^(https?|ftp)://[^\s/$.?#].[^\s]*$'
5761
+ description: |-
5762
+ The URL that the customer is redirect to after the payment flow has finished. You can add any number of key
5763
+ value pairs in the query string that, for instance help you to identify the customer when they return to
5764
+ your site. Please note that we will also append some additional key value pairs that will also help you with
5765
+ this identification process.
5766
+ Note: The provided URL should be absolute and contain the protocol to use, e.g. http:// or https://. For use
5767
+ on mobile devices a custom protocol can be used in the form of protocol://. This protocol must be registered
5768
+ on the device first.
5769
+ URLs without a protocol will be rejected.
5770
+ maxLength: 2048
5771
+ example: "https://shop.url/orderfinishedetc"
5772
+ logoUrl:
5773
+ type: string
5774
+ format: uri
5775
+ pattern: '^(https?|ftp)://[^\s/$.?#].[^\s]*$'
5776
+ description: To be used If the Merchant wants the customer to see his Logo ( special size need to be defined )
5777
+ maxLength: 2048
5778
+ example: "https://shop.url/orderfinishedetc"
5779
+ autoRedirection:
5780
+ type: boolean
5781
+ example: true
5782
+ description: |-
5783
+ with the cases:
5784
+ If is false and ReturnURl is not present, then no Button is displayed for shopper to come back
5785
+ If is false but ReturnUrl is present then, a button will be displayed with a custom message if user wants to go back to merchant
5786
+ If is True, no button will be displayed, and when payment is completed, user is returned back to a landing page on the merchant side using the returnUrl|
5787
+ termsUrl:
5788
+ type: string
5789
+ format: uri
5790
+ pattern: '^(https?|ftp)://[^\s/$.?#].[^\s]*$'
5791
+ description: |-
5792
+ Url to show the customer terms & conditions content
5793
+ maxLength: 2048
5794
+ example: "https://shop.url/tersmandconditions"
5795
+ retryNumber:
5796
+ type: integer
5797
+ format: int64
5798
+ description: Number of times to retry the back end apis, if not specified by default 3 retries
5799
+ example: 4
5800
+ minimum: 1
5801
+ maximum: 20
5802
+ merchantName:
5803
+ $ref: '#/components/schemas/MerchantName'
5804
+ merchantOrigin:
5805
+ $ref: '#/components/schemas/MerchantOrigin'
5806
+ required:
5807
+ - authorizationMode
5808
+ - paymentMethods
5809
+ PaymentMethodId:
5810
+ type: string
5811
+ description: Payment method identifier used by the payment engine.
5812
+ CreatePayByLinkResponse:
5813
+ type: object
5814
+ description: Object containing details about created Pay-link.
5815
+ additionalProperties: false
5816
+ properties:
5817
+ expirationDate:
5818
+ type: string
5819
+ format: date-time
5820
+ description: |-
5821
+ If provided it overwrites 24 h default validity.
5822
+ Date and time in RFC3339 format after which Items (Checkouts or Commerce-Cases, depending on the context) should be included in the request. Accepted formats are:
5823
+ YYYY-MM-DD'T'HH:mm:ss'Z'
5824
+ YYYY-MM-DD'T'HH:mm:ss+XX:XX
5825
+ YYYY-MM-DD'T'HH:mm:ss-XX:XX
5826
+ YYYY-MM-DD'T'HH:mm'Z'
5827
+ YYYY-MM-DD'T'HH:mm+XX:XX
5828
+ YYYY-MM-DD'T'HH:mm-XX:XX
5829
+ All other formats may be ignored by the system.
5830
+ some examples:
5831
+ YYYY-MM-DDThh:mm:ssZ:
5832
+ value: 2022-11-10T13:34:23Z
5833
+ YYYY-MM-DDThh:mm:ss+XX:XX:
5834
+ value: 2022-11-10T14:34:23+01:00
5835
+ paymentLinkOrder:
5836
+ $ref: "#/components/schemas/PaymentLinkOrder"
5837
+ status:
5838
+ $ref: '#/components/schemas/PayLinkStatusValue'
5839
+ redirectionUrl:
5840
+ type: string
5841
+ example: "https://commerceplatformURL/25296588-4ddc-4632-9818-532840d49780"
5842
+ paymentLinkId:
5843
+ type: string
5844
+ format: UUID
5845
+ description: Unique identifier for the pay-link
5846
+ PaymentLinkOrder:
5847
+ type: object
5848
+ properties:
5849
+ merchantReference:
5850
+ type: string
5851
+ example: "Order-20250119112400"
5852
+ amount:
5853
+ type: object
5854
+ properties:
5855
+ amount:
5856
+ type: integer
5857
+ format: int64
5858
+ example: 30200
5859
+ description: Total amount of money to be paid
5860
+ currencyCode:
5861
+ type: string
5862
+ description: Currency code (e.g., EUR)
5863
+ PayLinkStatusValue:
5864
+ type: string
5865
+ description: enum for pay-link status
5866
+ enum:
5867
+ - ACTIVE
5868
+ - PAID
5869
+ - EXPIRED
5870
+ - REDIRECTED
5871
+ MerchantName:
5872
+ type: string
5873
+ description: >-
5874
+ The canonical name of the merchant that initiates the checkout,
5875
+ per your records. This name needs to be suitable for display.
5876
+ Don't localize the name.
5877
+ example: "TestMerchant"
5878
+ MerchantOrigin:
5879
+ type: string
5880
+ description: >-
5881
+ The fully qualified domain of the merchant who made the request.
5882
+ Make this string the hostname of the merchant's website where the
5883
+ checkout initiation occurs. For international (non-ASCII) domains,
5884
+ use Punycode. For example, if the merchant domain is google.rf,
5885
+ provide an origin value of xn-c1aay4a.xn-p1ai. The string can
5886
+ include an optional port number if it doesn't use a standard HTTP
5887
+ or HTTPS port value.
5888
+ example: "merchant.example.com"
5889
+ AuthenticationToken:
5890
+ type: object
5891
+ properties:
5892
+ token:
5893
+ type: string
5894
+ description: The JWT authentication token
5895
+ example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
5896
+ id:
5897
+ type: string
5898
+ format: uuid
5899
+ description: The unique identifier of the JWT authentication token
5900
+ example: "b311ea35-57c9-4118-8712-9a5bd253eb37"
5901
+ creationDate:
5902
+ type: string
5903
+ format: date-time
5904
+ description: The creation date of the JWT authentication token. Format YYYY-MM-DD'T'HH:mm:ss'Z'
5905
+ example: "2023-10-01T00:00:00.000Z"
5906
+ expirationDate:
5907
+ type: string
5908
+ format: date-time
5909
+ description: The expiration date of the JWT authentication token. Format YYYY-MM-DD'T'HH:mm:ss'Z'
5910
+ example: "2024-01-01T00:00:00.000Z"