pcp-server-ruby-sdk 1.6.0 → 1.7.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/api-definition.yaml +169 -18
- data/lib/PCP-server-Ruby-SDK/models/apple_payment_data_token_header_information.rb +2 -0
- data/lib/PCP-server-Ruby-SDK/models/apple_payment_data_token_information.rb +6 -0
- data/lib/PCP-server-Ruby-SDK/models/bank_account_information.rb +0 -2
- data/lib/PCP-server-Ruby-SDK/models/bank_payout_method_specific_input.rb +0 -4
- data/lib/PCP-server-Ruby-SDK/models/capture_payment_request.rb +13 -4
- data/lib/PCP-server-Ruby-SDK/models/capture_payment_response.rb +13 -4
- data/lib/PCP-server-Ruby-SDK/models/cart_item_input.rb +13 -4
- data/lib/PCP-server-Ruby-SDK/models/cart_item_patch.rb +13 -4
- data/lib/PCP-server-Ruby-SDK/models/cart_item_result.rb +13 -4
- data/lib/PCP-server-Ruby-SDK/models/cart_item_supplier_references.rb +200 -0
- data/lib/PCP-server-Ruby-SDK/models/complete_payment_product840_specific_input.rb +2 -0
- data/lib/PCP-server-Ruby-SDK/models/create_payment_response.rb +13 -4
- data/lib/PCP-server-Ruby-SDK/models/deliver_request.rb +12 -4
- data/lib/PCP-server-Ruby-SDK/models/fund_distribution.rb +272 -0
- data/lib/PCP-server-Ruby-SDK/models/fund_split.rb +211 -0
- data/lib/PCP-server-Ruby-SDK/models/mobile_payment_method_specific_input.rb +13 -4
- data/lib/PCP-server-Ruby-SDK/models/mobile_payment_method_specific_output.rb +1 -1
- data/lib/PCP-server-Ruby-SDK/models/{network.rb → mobile_payment_network.rb} +4 -4
- data/lib/PCP-server-Ruby-SDK/models/order_request.rb +12 -4
- data/lib/PCP-server-Ruby-SDK/models/pause_payment_request.rb +5 -38
- data/lib/PCP-server-Ruby-SDK/models/payment_execution.rb +15 -4
- data/lib/PCP-server-Ruby-SDK/models/payment_execution_specific_input.rb +13 -4
- data/lib/PCP-server-Ruby-SDK/models/payment_product302_specific_input.rb +1 -1
- data/lib/PCP-server-Ruby-SDK/models/payment_product5002_specific_input.rb +209 -0
- data/lib/PCP-server-Ruby-SDK/models/refund_payment_response.rb +12 -4
- data/lib/PCP-server-Ruby-SDK/models/refund_request.rb +13 -4
- data/lib/PCP-server-Ruby-SDK/models/return_request.rb +204 -191
- data/lib/PCP-server-Ruby-SDK/transformer/apple_pay_transformer.rb +2 -2
- data/lib/PCP-server-Ruby-SDK/version.rb +1 -1
- data/lib/PCP-server-Ruby-SDK.rb +5 -1
- data/package-lock.json +2 -3
- data/package.json +1 -1
- data/scripts.sh +2 -2
- data/spec/transformer/apple_pay_transformer_spec.rb +1 -1
- metadata +11 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c0ea89d073c69a388c9bbda183be36804ad4c7adc58f429b4a5116a142a9eaa7
|
|
4
|
+
data.tar.gz: 43443c15fd138d9319ecaa0144ab037aa140fa0e486232a37015f30dbe67612e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5de7cb8d8d6beccbc4e4b597a632e8bda52247787dd8120168dc4490a86ea7480bf33c6a261797fcf31a8fae6d40b514a5c1e2b8aba45459ef65083cdad81107
|
|
7
|
+
data.tar.gz: 600c3a586d560d3d2ab457cd66fa0834b6634bb7f02e9b9fd8244cd4297b0af1b32400f669e4fdfb0e7fe32cb6ef8a0b971a8bb620ff40db1c2f79a3787c4bf8
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# [1.7.0](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/compare/v1.6.0...v1.7.0) (2026-02-26)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* feat: add changes for api version 1.48.0 ([bbe4de3af627849633d092eae9b798a9051c16ef](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/commit/bbe4de3af627849633d092eae9b798a9051c16ef))
|
|
6
|
+
|
|
1
7
|
# [1.6.0](https://github.com/PAYONE-GmbH/PCP-ServerSDK-ruby/compare/v1.5.0...v1.6.0) (2026-02-02)
|
|
2
8
|
|
|
3
9
|
* feat: add support for ruby 4.0
|
data/api-definition.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: "3.0.3"
|
|
2
2
|
|
|
3
3
|
info:
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.48.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.
|
|
@@ -2222,6 +2222,8 @@ components:
|
|
|
2222
2222
|
$ref: "#/components/schemas/PaymentReferences"
|
|
2223
2223
|
delivery:
|
|
2224
2224
|
$ref: "#/components/schemas/DeliveryInformation"
|
|
2225
|
+
fundSplit:
|
|
2226
|
+
$ref: "#/components/schemas/FundSplit"
|
|
2225
2227
|
CapturePaymentResponse:
|
|
2226
2228
|
type: object
|
|
2227
2229
|
additionalProperties: false
|
|
@@ -2232,6 +2234,8 @@ components:
|
|
|
2232
2234
|
$ref: "#/components/schemas/StatusValue"
|
|
2233
2235
|
statusOutput:
|
|
2234
2236
|
$ref: "#/components/schemas/PaymentStatusOutput"
|
|
2237
|
+
fundSplit:
|
|
2238
|
+
$ref: "#/components/schemas/FundSplit"
|
|
2235
2239
|
id:
|
|
2236
2240
|
type: string
|
|
2237
2241
|
description: Unique payment transaction identifier of the payment gateway.
|
|
@@ -2460,6 +2464,8 @@ components:
|
|
|
2460
2464
|
$ref: "#/components/schemas/CartItemInvoiceData"
|
|
2461
2465
|
orderLineDetails:
|
|
2462
2466
|
$ref: "#/components/schemas/OrderLineDetailsInput"
|
|
2467
|
+
supplierReferences:
|
|
2468
|
+
$ref: "#/components/schemas/CartItemSupplierReferences"
|
|
2463
2469
|
CartItemInvoiceData:
|
|
2464
2470
|
type: object
|
|
2465
2471
|
description: Object containing the line items of the invoice or shopping cart.
|
|
@@ -2481,6 +2487,8 @@ components:
|
|
|
2481
2487
|
$ref: "#/components/schemas/CartItemInvoiceData"
|
|
2482
2488
|
orderLineDetails:
|
|
2483
2489
|
$ref: "#/components/schemas/OrderLineDetailsPatch"
|
|
2490
|
+
supplierReferences:
|
|
2491
|
+
$ref: "#/components/schemas/CartItemSupplierReferences"
|
|
2484
2492
|
CartItemResult:
|
|
2485
2493
|
type: object
|
|
2486
2494
|
description: This object contains information of all items in the cart.
|
|
@@ -2491,6 +2499,8 @@ components:
|
|
|
2491
2499
|
$ref: "#/components/schemas/CartItemInvoiceData"
|
|
2492
2500
|
orderLineDetails:
|
|
2493
2501
|
$ref: "#/components/schemas/OrderLineDetailsResult"
|
|
2502
|
+
supplierReferences:
|
|
2503
|
+
$ref: "#/components/schemas/CartItemSupplierReferences"
|
|
2494
2504
|
CartItemStatus:
|
|
2495
2505
|
type: string
|
|
2496
2506
|
enum:
|
|
@@ -2500,6 +2510,23 @@ components:
|
|
|
2500
2510
|
- RETURNED
|
|
2501
2511
|
- WAITING_FOR_PAYMENT
|
|
2502
2512
|
description: Indicates in which status the line item is
|
|
2513
|
+
CartItemSupplierReferences:
|
|
2514
|
+
type: object
|
|
2515
|
+
description: |
|
|
2516
|
+
This object contains references of the seller of the cart item.
|
|
2517
|
+
additionalProperties: false
|
|
2518
|
+
properties:
|
|
2519
|
+
supplierId:
|
|
2520
|
+
type: string
|
|
2521
|
+
description: Unique identifier for the supplier.
|
|
2522
|
+
maxLength: 64
|
|
2523
|
+
example: "5678"
|
|
2524
|
+
orderReference:
|
|
2525
|
+
type: string
|
|
2526
|
+
description: |-
|
|
2527
|
+
Reference of the order for the supplier.
|
|
2528
|
+
maxLength: 64
|
|
2529
|
+
example: "Order-5678"
|
|
2503
2530
|
CheckoutResponse:
|
|
2504
2531
|
type: object
|
|
2505
2532
|
xml:
|
|
@@ -2849,6 +2876,8 @@ components:
|
|
|
2849
2876
|
$ref: "#/components/schemas/MerchantAction"
|
|
2850
2877
|
payment:
|
|
2851
2878
|
$ref: "#/components/schemas/PaymentResponse"
|
|
2879
|
+
fundSplit:
|
|
2880
|
+
$ref: "#/components/schemas/FundSplit"
|
|
2852
2881
|
paymentExecutionId:
|
|
2853
2882
|
description: reference to the paymentExecution.
|
|
2854
2883
|
type: string
|
|
@@ -3024,6 +3053,8 @@ components:
|
|
|
3024
3053
|
type: array
|
|
3025
3054
|
items:
|
|
3026
3055
|
$ref: "#/components/schemas/DeliverItem"
|
|
3056
|
+
fundSplit:
|
|
3057
|
+
$ref: "#/components/schemas/FundSplit"
|
|
3027
3058
|
DeliverResponse:
|
|
3028
3059
|
type: object
|
|
3029
3060
|
properties:
|
|
@@ -3142,6 +3173,75 @@ components:
|
|
|
3142
3173
|
$ref: "#/components/schemas/PaymentProduct3391SpecificOutput"
|
|
3143
3174
|
paymentInstructions:
|
|
3144
3175
|
$ref: "#/components/schemas/PaymentInstructions"
|
|
3176
|
+
FundDistribution:
|
|
3177
|
+
type: object
|
|
3178
|
+
description: Instructions for distributing funds to multiple sellers or partners in a marketplace context.
|
|
3179
|
+
additionalProperties: false
|
|
3180
|
+
properties:
|
|
3181
|
+
id:
|
|
3182
|
+
type: string
|
|
3183
|
+
format: UUID
|
|
3184
|
+
readOnly: true
|
|
3185
|
+
accountId:
|
|
3186
|
+
type: string
|
|
3187
|
+
description: >-
|
|
3188
|
+
Unique identifier of the beneficiary (seller/partner/sub-account) to receive funds (e.g., payout account ID).
|
|
3189
|
+
description:
|
|
3190
|
+
type: string
|
|
3191
|
+
description: Human-readable description for reconciliation. Appears on reports.
|
|
3192
|
+
example: "Commission for order #ORD-2025-0001"
|
|
3193
|
+
maxLength: 128
|
|
3194
|
+
amount:
|
|
3195
|
+
type: integer
|
|
3196
|
+
description: Amount in cents and always having 2 decimals, in the currency of the original transaction
|
|
3197
|
+
format: int64
|
|
3198
|
+
maximum: 999999999999
|
|
3199
|
+
minimum: 1
|
|
3200
|
+
example: 1000
|
|
3201
|
+
type:
|
|
3202
|
+
type: string
|
|
3203
|
+
format: string
|
|
3204
|
+
description: Classification or purpose of the fund distribution to the receiving account within a given order.
|
|
3205
|
+
enum:
|
|
3206
|
+
- SELLER_REVENUE
|
|
3207
|
+
- COMMISSION_FEE
|
|
3208
|
+
- SHIPPING_COSTS
|
|
3209
|
+
- TAX
|
|
3210
|
+
- PLATFORM_FEE
|
|
3211
|
+
- OTHER
|
|
3212
|
+
merchantReference:
|
|
3213
|
+
type: string
|
|
3214
|
+
description: Unique reference of the part of the fund/payment to be distributed that is also returned for reporting and reconciliation purposes.
|
|
3215
|
+
maxLength: 40
|
|
3216
|
+
example: customer-order-1234
|
|
3217
|
+
merchantParameters:
|
|
3218
|
+
type: string
|
|
3219
|
+
maxLength: 1000
|
|
3220
|
+
description: >-
|
|
3221
|
+
It allows you to store additional parameters for the transaction in JSON format.
|
|
3222
|
+
This field must not contain any personal data.
|
|
3223
|
+
example: "{'marketplaceOrderId':'ORD-2025-0001','sellerId':'seller-789'}"
|
|
3224
|
+
required:
|
|
3225
|
+
- accountId
|
|
3226
|
+
- amount
|
|
3227
|
+
- type
|
|
3228
|
+
FundSplit:
|
|
3229
|
+
type: object
|
|
3230
|
+
description: Instructions for distributing funds to multiple sellers or partners in a marketplace context.
|
|
3231
|
+
additionalProperties: false
|
|
3232
|
+
properties:
|
|
3233
|
+
id:
|
|
3234
|
+
type: string
|
|
3235
|
+
format: UUID
|
|
3236
|
+
readOnly: true
|
|
3237
|
+
paymentEventId:
|
|
3238
|
+
type: string
|
|
3239
|
+
format: UUID
|
|
3240
|
+
readOnly: true
|
|
3241
|
+
fundDistributions:
|
|
3242
|
+
type: array
|
|
3243
|
+
items:
|
|
3244
|
+
$ref: "#/components/schemas/FundDistribution"
|
|
3145
3245
|
InstallmentOption:
|
|
3146
3246
|
type: object
|
|
3147
3247
|
properties:
|
|
@@ -3283,6 +3383,8 @@ components:
|
|
|
3283
3383
|
$ref: "#/components/schemas/MobilePaymentThreeDSecure"
|
|
3284
3384
|
paymentProduct302SpecificInput:
|
|
3285
3385
|
$ref: "#/components/schemas/PaymentProduct302SpecificInput"
|
|
3386
|
+
paymentProduct5002SpecificInput:
|
|
3387
|
+
$ref: "#/components/schemas/PaymentProduct5002SpecificInput"
|
|
3286
3388
|
MobilePaymentMethodSpecificOutput:
|
|
3287
3389
|
type: object
|
|
3288
3390
|
description: Object containing the mobile payment method details.
|
|
@@ -3306,6 +3408,24 @@ components:
|
|
|
3306
3408
|
network:
|
|
3307
3409
|
type: string
|
|
3308
3410
|
description: The card network that was used for a mobile payment method operation
|
|
3411
|
+
MobilePaymentNetwork:
|
|
3412
|
+
type: string
|
|
3413
|
+
description: |-
|
|
3414
|
+
Network/Scheme of the card used for the payment.
|
|
3415
|
+
* MASTERCARD
|
|
3416
|
+
* VISA
|
|
3417
|
+
* AMEX
|
|
3418
|
+
* GIROCARD
|
|
3419
|
+
* DISCOVER (not supported yet)
|
|
3420
|
+
* JCB (not supported yet)
|
|
3421
|
+
enum:
|
|
3422
|
+
- MASTERCARD
|
|
3423
|
+
- VISA
|
|
3424
|
+
- AMEX
|
|
3425
|
+
- GIROCARD
|
|
3426
|
+
- DISCOVER
|
|
3427
|
+
- JCB
|
|
3428
|
+
example: MASTERCARD
|
|
3309
3429
|
MobilePaymentThreeDSecure:
|
|
3310
3430
|
type: object
|
|
3311
3431
|
description: |-
|
|
@@ -3490,6 +3610,8 @@ components:
|
|
|
3490
3610
|
$ref: "#/components/schemas/OrderItem"
|
|
3491
3611
|
paymentMethodSpecificInput:
|
|
3492
3612
|
$ref: "#/components/schemas/PaymentMethodSpecificInput"
|
|
3613
|
+
fundSplit:
|
|
3614
|
+
$ref: "#/components/schemas/FundSplit"
|
|
3493
3615
|
OrderResponse:
|
|
3494
3616
|
type: object
|
|
3495
3617
|
description: Object that contains details on the created payment in case one has been created.
|
|
@@ -3516,6 +3638,7 @@ components:
|
|
|
3516
3638
|
enum:
|
|
3517
3639
|
- FULL
|
|
3518
3640
|
- PARTIAL
|
|
3641
|
+
readOnly: true
|
|
3519
3642
|
PatchCheckoutRequest:
|
|
3520
3643
|
type: object
|
|
3521
3644
|
description: |
|
|
@@ -3613,6 +3736,22 @@ components:
|
|
|
3613
3736
|
example: Customer complained
|
|
3614
3737
|
paymentInstructions:
|
|
3615
3738
|
$ref: "#/components/schemas/PaymentInstructions"
|
|
3739
|
+
paymentEventId:
|
|
3740
|
+
type: string
|
|
3741
|
+
format: UUID
|
|
3742
|
+
readOnly: true
|
|
3743
|
+
creationDateTime:
|
|
3744
|
+
type: string
|
|
3745
|
+
format: date-time
|
|
3746
|
+
readOnly: true
|
|
3747
|
+
description: |-
|
|
3748
|
+
The date and time when the payment event was created.
|
|
3749
|
+
|
|
3750
|
+
Format will be in one of the following formats:
|
|
3751
|
+
* YYYY-MM-DD'T'HH:mm:ss'Z'
|
|
3752
|
+
* YYYY-MM-DD'T'HH:mm:ss+XX:XX
|
|
3753
|
+
* YYYY-MM-DD'T'HH:mm:ss-XX:XX
|
|
3754
|
+
example: 2022-01-01T00:00:00Z
|
|
3616
3755
|
PaymentExecution:
|
|
3617
3756
|
type: object
|
|
3618
3757
|
description: |-
|
|
@@ -3673,6 +3812,10 @@ components:
|
|
|
3673
3812
|
type: array
|
|
3674
3813
|
items:
|
|
3675
3814
|
$ref: "#/components/schemas/PaymentEvent"
|
|
3815
|
+
fundSplits:
|
|
3816
|
+
type: array
|
|
3817
|
+
items:
|
|
3818
|
+
$ref: "#/components/schemas/FundSplit"
|
|
3676
3819
|
PaymentExecutionRequest:
|
|
3677
3820
|
type: object
|
|
3678
3821
|
description: |
|
|
@@ -3702,6 +3845,8 @@ components:
|
|
|
3702
3845
|
$ref: "#/components/schemas/ShoppingCartInput"
|
|
3703
3846
|
paymentReferences:
|
|
3704
3847
|
$ref: "#/components/schemas/References"
|
|
3848
|
+
fundSplit:
|
|
3849
|
+
$ref: "#/components/schemas/FundSplit"
|
|
3705
3850
|
required:
|
|
3706
3851
|
- paymentReferences
|
|
3707
3852
|
PaymentInformationRefundRequest:
|
|
@@ -3929,23 +4074,7 @@ components:
|
|
|
3929
4074
|
- MASS_ENABLEMENT
|
|
3930
4075
|
example: MASS_ENABLEMENT
|
|
3931
4076
|
network:
|
|
3932
|
-
|
|
3933
|
-
description: |-
|
|
3934
|
-
Network/Scheme of the card used for the payment.
|
|
3935
|
-
* MASTERCARD
|
|
3936
|
-
* VISA
|
|
3937
|
-
* AMEX
|
|
3938
|
-
* GIROCARD
|
|
3939
|
-
* DISCOVER (not supported yet)
|
|
3940
|
-
* JCB (not supported yet)
|
|
3941
|
-
enum:
|
|
3942
|
-
- MASTERCARD
|
|
3943
|
-
- VISA
|
|
3944
|
-
- AMEX
|
|
3945
|
-
- GIROCARD
|
|
3946
|
-
- DISCOVER
|
|
3947
|
-
- JCB
|
|
3948
|
-
example: GIROCARD
|
|
4077
|
+
$ref: "#/components/schemas/MobilePaymentNetwork"
|
|
3949
4078
|
token:
|
|
3950
4079
|
$ref: "#/components/schemas/ApplePaymentDataTokenInformation"
|
|
3951
4080
|
domainName:
|
|
@@ -3986,6 +4115,22 @@ components:
|
|
|
3986
4115
|
$ref: "#/components/schemas/BankAccountInformation"
|
|
3987
4116
|
required:
|
|
3988
4117
|
- bankAccountInformation
|
|
4118
|
+
PaymentProduct5002SpecificInput:
|
|
4119
|
+
type: object
|
|
4120
|
+
description: Object containing additional Information needed for Click To Pay processing.
|
|
4121
|
+
properties:
|
|
4122
|
+
network:
|
|
4123
|
+
$ref: "#/components/schemas/MobilePaymentNetwork"
|
|
4124
|
+
paymentCheckoutData:
|
|
4125
|
+
type: string
|
|
4126
|
+
description: |-
|
|
4127
|
+
JWS Token Value (checkoutResponseSignature) as received in the Checkout Response on Client Side, Base64URL encoded.
|
|
4128
|
+
example: rhHAQUrR118u[...]cwDw==
|
|
4129
|
+
srcDpaId:
|
|
4130
|
+
type: string
|
|
4131
|
+
description: |-
|
|
4132
|
+
DPA Identifier provided by PAYONE during client side initialization for the corresponding card type selected by the end consumer in the Click to Pay flow.
|
|
4133
|
+
maxLength: 64
|
|
3989
4134
|
PaymentProduct771SpecificOutput:
|
|
3990
4135
|
type: object
|
|
3991
4136
|
description: Output that is SEPA Direct Debit specific (i.e. the used mandate).
|
|
@@ -4496,6 +4641,8 @@ components:
|
|
|
4496
4641
|
$ref: "#/components/schemas/StatusValue"
|
|
4497
4642
|
statusOutput:
|
|
4498
4643
|
$ref: "#/components/schemas/PaymentStatusOutput"
|
|
4644
|
+
fundSplit:
|
|
4645
|
+
$ref: "#/components/schemas/FundSplit"
|
|
4499
4646
|
id:
|
|
4500
4647
|
type: string
|
|
4501
4648
|
description: Unique payment transaction identifier of the payment gateway.
|
|
@@ -4514,6 +4661,8 @@ components:
|
|
|
4514
4661
|
$ref: "#/components/schemas/PaymentReferences"
|
|
4515
4662
|
return:
|
|
4516
4663
|
$ref: "#/components/schemas/ReturnInformation"
|
|
4664
|
+
fundSplit:
|
|
4665
|
+
$ref: "#/components/schemas/FundSplit"
|
|
4517
4666
|
ReturnInformation:
|
|
4518
4667
|
type: object
|
|
4519
4668
|
description: |-
|
|
@@ -4575,6 +4724,8 @@ components:
|
|
|
4575
4724
|
type: array
|
|
4576
4725
|
items:
|
|
4577
4726
|
$ref: "#/components/schemas/ReturnItem"
|
|
4727
|
+
fundSplit:
|
|
4728
|
+
$ref: "#/components/schemas/FundSplit"
|
|
4578
4729
|
ReturnResponse:
|
|
4579
4730
|
type: object
|
|
4580
4731
|
properties:
|
|
@@ -81,14 +81,20 @@ module PCPServerSDK
|
|
|
81
81
|
|
|
82
82
|
if attributes.key?(:'version')
|
|
83
83
|
self.version = attributes[:'version']
|
|
84
|
+
else
|
|
85
|
+
self.version = nil
|
|
84
86
|
end
|
|
85
87
|
|
|
86
88
|
if attributes.key?(:'signature')
|
|
87
89
|
self.signature = attributes[:'signature']
|
|
90
|
+
else
|
|
91
|
+
self.signature = nil
|
|
88
92
|
end
|
|
89
93
|
|
|
90
94
|
if attributes.key?(:'header')
|
|
91
95
|
self.header = attributes[:'header']
|
|
96
|
+
else
|
|
97
|
+
self.header = nil
|
|
92
98
|
end
|
|
93
99
|
end
|
|
94
100
|
|
|
@@ -54,14 +54,10 @@ module PCPServerSDK
|
|
|
54
54
|
|
|
55
55
|
if attributes.key?(:'payment_product_id')
|
|
56
56
|
self.payment_product_id = attributes[:'payment_product_id']
|
|
57
|
-
else
|
|
58
|
-
self.payment_product_id = nil
|
|
59
57
|
end
|
|
60
58
|
|
|
61
59
|
if attributes.key?(:'payment_product772_specific_input')
|
|
62
60
|
self.payment_product772_specific_input = attributes[:'payment_product772_specific_input']
|
|
63
|
-
else
|
|
64
|
-
self.payment_product772_specific_input = nil
|
|
65
61
|
end
|
|
66
62
|
end
|
|
67
63
|
|
|
@@ -17,6 +17,8 @@ module PCPServerSDK
|
|
|
17
17
|
|
|
18
18
|
attr_accessor :delivery
|
|
19
19
|
|
|
20
|
+
attr_accessor :fund_split
|
|
21
|
+
|
|
20
22
|
class EnumAttributeValidator
|
|
21
23
|
attr_reader :datatype
|
|
22
24
|
attr_reader :allowable_values
|
|
@@ -46,7 +48,8 @@ module PCPServerSDK
|
|
|
46
48
|
:'is_final' => :'isFinal',
|
|
47
49
|
:'cancellation_reason' => :'cancellationReason',
|
|
48
50
|
:'references' => :'references',
|
|
49
|
-
:'delivery' => :'delivery'
|
|
51
|
+
:'delivery' => :'delivery',
|
|
52
|
+
:'fund_split' => :'fundSplit'
|
|
50
53
|
}
|
|
51
54
|
end
|
|
52
55
|
|
|
@@ -62,7 +65,8 @@ module PCPServerSDK
|
|
|
62
65
|
:'is_final' => :'Boolean',
|
|
63
66
|
:'cancellation_reason' => :'CancellationReason',
|
|
64
67
|
:'references' => :'PaymentReferences',
|
|
65
|
-
:'delivery' => :'DeliveryInformation'
|
|
68
|
+
:'delivery' => :'DeliveryInformation',
|
|
69
|
+
:'fund_split' => :'FundSplit'
|
|
66
70
|
}
|
|
67
71
|
end
|
|
68
72
|
|
|
@@ -108,6 +112,10 @@ module PCPServerSDK
|
|
|
108
112
|
if attributes.key?(:'delivery')
|
|
109
113
|
self.delivery = attributes[:'delivery']
|
|
110
114
|
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'fund_split')
|
|
117
|
+
self.fund_split = attributes[:'fund_split']
|
|
118
|
+
end
|
|
111
119
|
end
|
|
112
120
|
|
|
113
121
|
# Checks equality by comparing each attribute.
|
|
@@ -119,7 +127,8 @@ module PCPServerSDK
|
|
|
119
127
|
is_final == o.is_final &&
|
|
120
128
|
cancellation_reason == o.cancellation_reason &&
|
|
121
129
|
references == o.references &&
|
|
122
|
-
delivery == o.delivery
|
|
130
|
+
delivery == o.delivery &&
|
|
131
|
+
fund_split == o.fund_split
|
|
123
132
|
end
|
|
124
133
|
|
|
125
134
|
# @see the `==` method
|
|
@@ -131,7 +140,7 @@ module PCPServerSDK
|
|
|
131
140
|
# Calculates hash code according to all attributes.
|
|
132
141
|
# @return [Integer] Hash code
|
|
133
142
|
def hash
|
|
134
|
-
[amount, is_final, cancellation_reason, references, delivery].hash
|
|
143
|
+
[amount, is_final, cancellation_reason, references, delivery, fund_split].hash
|
|
135
144
|
end
|
|
136
145
|
|
|
137
146
|
# Builds the object from hash
|
|
@@ -13,6 +13,8 @@ module PCPServerSDK
|
|
|
13
13
|
# Unique payment transaction identifier of the payment gateway.
|
|
14
14
|
attr_accessor :id
|
|
15
15
|
|
|
16
|
+
attr_accessor :fund_split
|
|
17
|
+
|
|
16
18
|
class EnumAttributeValidator
|
|
17
19
|
attr_reader :datatype
|
|
18
20
|
attr_reader :allowable_values
|
|
@@ -41,7 +43,8 @@ module PCPServerSDK
|
|
|
41
43
|
:'capture_output' => :'captureOutput',
|
|
42
44
|
:'status' => :'status',
|
|
43
45
|
:'status_output' => :'statusOutput',
|
|
44
|
-
:'id' => :'id'
|
|
46
|
+
:'id' => :'id',
|
|
47
|
+
:'fund_split' => :'fundSplit'
|
|
45
48
|
}
|
|
46
49
|
end
|
|
47
50
|
|
|
@@ -56,7 +59,8 @@ module PCPServerSDK
|
|
|
56
59
|
:'capture_output' => :'CaptureOutput',
|
|
57
60
|
:'status' => :'StatusValue',
|
|
58
61
|
:'status_output' => :'PaymentStatusOutput',
|
|
59
|
-
:'id' => :'String'
|
|
62
|
+
:'id' => :'String',
|
|
63
|
+
:'fund_split' => :'FundSplit'
|
|
60
64
|
}
|
|
61
65
|
end
|
|
62
66
|
|
|
@@ -96,6 +100,10 @@ module PCPServerSDK
|
|
|
96
100
|
if attributes.key?(:'id')
|
|
97
101
|
self.id = attributes[:'id']
|
|
98
102
|
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'fund_split')
|
|
105
|
+
self.fund_split = attributes[:'fund_split']
|
|
106
|
+
end
|
|
99
107
|
end
|
|
100
108
|
|
|
101
109
|
# Checks equality by comparing each attribute.
|
|
@@ -106,7 +114,8 @@ module PCPServerSDK
|
|
|
106
114
|
capture_output == o.capture_output &&
|
|
107
115
|
status == o.status &&
|
|
108
116
|
status_output == o.status_output &&
|
|
109
|
-
id == o.id
|
|
117
|
+
id == o.id &&
|
|
118
|
+
fund_split == o.fund_split
|
|
110
119
|
end
|
|
111
120
|
|
|
112
121
|
# @see the `==` method
|
|
@@ -118,7 +127,7 @@ module PCPServerSDK
|
|
|
118
127
|
# Calculates hash code according to all attributes.
|
|
119
128
|
# @return [Integer] Hash code
|
|
120
129
|
def hash
|
|
121
|
-
[capture_output, status, status_output, id].hash
|
|
130
|
+
[capture_output, status, status_output, id, fund_split].hash
|
|
122
131
|
end
|
|
123
132
|
|
|
124
133
|
# Builds the object from hash
|
|
@@ -9,11 +9,14 @@ module PCPServerSDK
|
|
|
9
9
|
|
|
10
10
|
attr_accessor :order_line_details
|
|
11
11
|
|
|
12
|
+
attr_accessor :supplier_references
|
|
13
|
+
|
|
12
14
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
13
15
|
def self.attribute_map
|
|
14
16
|
{
|
|
15
17
|
:'invoice_data' => :'invoiceData',
|
|
16
|
-
:'order_line_details' => :'orderLineDetails'
|
|
18
|
+
:'order_line_details' => :'orderLineDetails',
|
|
19
|
+
:'supplier_references' => :'supplierReferences'
|
|
17
20
|
}
|
|
18
21
|
end
|
|
19
22
|
|
|
@@ -26,7 +29,8 @@ module PCPServerSDK
|
|
|
26
29
|
def self.openapi_types
|
|
27
30
|
{
|
|
28
31
|
:'invoice_data' => :'CartItemInvoiceData',
|
|
29
|
-
:'order_line_details' => :'OrderLineDetailsInput'
|
|
32
|
+
:'order_line_details' => :'OrderLineDetailsInput',
|
|
33
|
+
:'supplier_references' => :'CartItemSupplierReferences'
|
|
30
34
|
}
|
|
31
35
|
end
|
|
32
36
|
|
|
@@ -58,6 +62,10 @@ module PCPServerSDK
|
|
|
58
62
|
if attributes.key?(:'order_line_details')
|
|
59
63
|
self.order_line_details = attributes[:'order_line_details']
|
|
60
64
|
end
|
|
65
|
+
|
|
66
|
+
if attributes.key?(:'supplier_references')
|
|
67
|
+
self.supplier_references = attributes[:'supplier_references']
|
|
68
|
+
end
|
|
61
69
|
end
|
|
62
70
|
|
|
63
71
|
# Checks equality by comparing each attribute.
|
|
@@ -66,7 +74,8 @@ module PCPServerSDK
|
|
|
66
74
|
return true if self.equal?(o)
|
|
67
75
|
self.class == o.class &&
|
|
68
76
|
invoice_data == o.invoice_data &&
|
|
69
|
-
order_line_details == o.order_line_details
|
|
77
|
+
order_line_details == o.order_line_details &&
|
|
78
|
+
supplier_references == o.supplier_references
|
|
70
79
|
end
|
|
71
80
|
|
|
72
81
|
# @see the `==` method
|
|
@@ -78,7 +87,7 @@ module PCPServerSDK
|
|
|
78
87
|
# Calculates hash code according to all attributes.
|
|
79
88
|
# @return [Integer] Hash code
|
|
80
89
|
def hash
|
|
81
|
-
[invoice_data, order_line_details].hash
|
|
90
|
+
[invoice_data, order_line_details, supplier_references].hash
|
|
82
91
|
end
|
|
83
92
|
|
|
84
93
|
# Builds the object from hash
|
|
@@ -9,11 +9,14 @@ module PCPServerSDK
|
|
|
9
9
|
|
|
10
10
|
attr_accessor :order_line_details
|
|
11
11
|
|
|
12
|
+
attr_accessor :supplier_references
|
|
13
|
+
|
|
12
14
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
13
15
|
def self.attribute_map
|
|
14
16
|
{
|
|
15
17
|
:'invoice_data' => :'invoiceData',
|
|
16
|
-
:'order_line_details' => :'orderLineDetails'
|
|
18
|
+
:'order_line_details' => :'orderLineDetails',
|
|
19
|
+
:'supplier_references' => :'supplierReferences'
|
|
17
20
|
}
|
|
18
21
|
end
|
|
19
22
|
|
|
@@ -26,7 +29,8 @@ module PCPServerSDK
|
|
|
26
29
|
def self.openapi_types
|
|
27
30
|
{
|
|
28
31
|
:'invoice_data' => :'CartItemInvoiceData',
|
|
29
|
-
:'order_line_details' => :'OrderLineDetailsPatch'
|
|
32
|
+
:'order_line_details' => :'OrderLineDetailsPatch',
|
|
33
|
+
:'supplier_references' => :'CartItemSupplierReferences'
|
|
30
34
|
}
|
|
31
35
|
end
|
|
32
36
|
|
|
@@ -58,6 +62,10 @@ module PCPServerSDK
|
|
|
58
62
|
if attributes.key?(:'order_line_details')
|
|
59
63
|
self.order_line_details = attributes[:'order_line_details']
|
|
60
64
|
end
|
|
65
|
+
|
|
66
|
+
if attributes.key?(:'supplier_references')
|
|
67
|
+
self.supplier_references = attributes[:'supplier_references']
|
|
68
|
+
end
|
|
61
69
|
end
|
|
62
70
|
|
|
63
71
|
# Checks equality by comparing each attribute.
|
|
@@ -66,7 +74,8 @@ module PCPServerSDK
|
|
|
66
74
|
return true if self.equal?(o)
|
|
67
75
|
self.class == o.class &&
|
|
68
76
|
invoice_data == o.invoice_data &&
|
|
69
|
-
order_line_details == o.order_line_details
|
|
77
|
+
order_line_details == o.order_line_details &&
|
|
78
|
+
supplier_references == o.supplier_references
|
|
70
79
|
end
|
|
71
80
|
|
|
72
81
|
# @see the `==` method
|
|
@@ -78,7 +87,7 @@ module PCPServerSDK
|
|
|
78
87
|
# Calculates hash code according to all attributes.
|
|
79
88
|
# @return [Integer] Hash code
|
|
80
89
|
def hash
|
|
81
|
-
[invoice_data, order_line_details].hash
|
|
90
|
+
[invoice_data, order_line_details, supplier_references].hash
|
|
82
91
|
end
|
|
83
92
|
|
|
84
93
|
# Builds the object from hash
|