pcp-server-ruby-sdk 1.6.0 → 1.8.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 +12 -0
- data/api-definition.yaml +5012 -4842
- 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/cancel_payment_request.rb +8 -0
- 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_order_request.rb +187 -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_line_details_input.rb +2 -1
- data/lib/PCP-server-Ruby-SDK/models/order_line_details_patch.rb +11 -1
- data/lib/PCP-server-Ruby-SDK/models/order_line_details_result.rb +11 -1
- 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_event.rb +34 -4
- 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/payment_references_for_refund.rb +198 -0
- data/lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_input.rb +4 -14
- data/lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_output.rb +4 -14
- data/lib/PCP-server-Ruby-SDK/models/refund_payment_response.rb +12 -4
- data/lib/PCP-server-Ruby-SDK/models/refund_request.rb +14 -5
- 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 +7 -1
- data/package-lock.json +16 -3
- data/package.json +1 -1
- data/scripts.sh +2 -2
- data/spec/transformer/apple_pay_transformer_spec.rb +1 -1
- metadata +13 -7
data/package.json
CHANGED
data/scripts.sh
CHANGED
|
@@ -41,8 +41,8 @@ version() {
|
|
|
41
41
|
PACKAGE_LOCK_JSON_PATH="./package-lock.json"
|
|
42
42
|
|
|
43
43
|
sed -i '' "s/VERSION = '.*'/VERSION = '$NEW_VERSION'/" "$VERSION_FILE_PATH"
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
jq --arg v "$NEW_VERSION" '.version = $v' ${PACKAGE_JSON_PATH} > ${PACKAGE_JSON_PATH}.tmp && mv ${PACKAGE_JSON_PATH}.tmp ${PACKAGE_JSON_PATH}
|
|
45
|
+
jq --arg v "$NEW_VERSION" '.version = $v | .packages[""].version = $v' ${PACKAGE_LOCK_JSON_PATH} > ${PACKAGE_LOCK_JSON_PATH}.tmp && mv ${PACKAGE_LOCK_JSON_PATH}.tmp ${PACKAGE_LOCK_JSON_PATH}
|
|
46
46
|
|
|
47
47
|
# Commit and tag the changes
|
|
48
48
|
git add $PACKAGE_JSON_PATH
|
|
@@ -47,7 +47,7 @@ RSpec.describe 'PCPServerSDK::Transformer::transform_apple_pay_payment_to_mobile
|
|
|
47
47
|
public_key_hash: 'publicKeyHash123',
|
|
48
48
|
ephemeral_key: 'ephemeralPublicKey123',
|
|
49
49
|
payment_product302_specific_input: PCPServerSDK::Models::PaymentProduct302SpecificInput.new(
|
|
50
|
-
network: PCPServerSDK::Models::
|
|
50
|
+
network: PCPServerSDK::Models::MobilePaymentNetwork.from_string('VISA'),
|
|
51
51
|
token: PCPServerSDK::Models::ApplePaymentDataTokenInformation.new(
|
|
52
52
|
version: PCPServerSDK::Models::ApplePaymentTokenVersion.from_string('EC_V1'),
|
|
53
53
|
signature: 'signature123',
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pcp-server-ruby-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- PAYONE GmbH
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-04-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: net-http
|
|
@@ -156,12 +156,14 @@ files:
|
|
|
156
156
|
- lib/PCP-server-Ruby-SDK/models/cart_item_patch.rb
|
|
157
157
|
- lib/PCP-server-Ruby-SDK/models/cart_item_result.rb
|
|
158
158
|
- lib/PCP-server-Ruby-SDK/models/cart_item_status.rb
|
|
159
|
+
- lib/PCP-server-Ruby-SDK/models/cart_item_supplier_references.rb
|
|
159
160
|
- lib/PCP-server-Ruby-SDK/models/checkout_references.rb
|
|
160
161
|
- lib/PCP-server-Ruby-SDK/models/checkout_response.rb
|
|
161
162
|
- lib/PCP-server-Ruby-SDK/models/checkouts_response.rb
|
|
162
163
|
- lib/PCP-server-Ruby-SDK/models/commerce_case_response.rb
|
|
163
164
|
- lib/PCP-server-Ruby-SDK/models/company_information.rb
|
|
164
165
|
- lib/PCP-server-Ruby-SDK/models/complete_financing_payment_method_specific_input.rb
|
|
166
|
+
- lib/PCP-server-Ruby-SDK/models/complete_order_request.rb
|
|
165
167
|
- lib/PCP-server-Ruby-SDK/models/complete_payment_method_specific_input.rb
|
|
166
168
|
- lib/PCP-server-Ruby-SDK/models/complete_payment_product840_specific_input.rb
|
|
167
169
|
- lib/PCP-server-Ruby-SDK/models/complete_payment_request.rb
|
|
@@ -185,14 +187,16 @@ files:
|
|
|
185
187
|
- lib/PCP-server-Ruby-SDK/models/extended_checkout_status.rb
|
|
186
188
|
- lib/PCP-server-Ruby-SDK/models/financing_payment_method_specific_input.rb
|
|
187
189
|
- lib/PCP-server-Ruby-SDK/models/financing_payment_method_specific_output.rb
|
|
190
|
+
- lib/PCP-server-Ruby-SDK/models/fund_distribution.rb
|
|
191
|
+
- lib/PCP-server-Ruby-SDK/models/fund_split.rb
|
|
188
192
|
- lib/PCP-server-Ruby-SDK/models/installment_option.rb
|
|
189
193
|
- lib/PCP-server-Ruby-SDK/models/link_information.rb
|
|
190
194
|
- lib/PCP-server-Ruby-SDK/models/mandate_recurrence_type.rb
|
|
191
195
|
- lib/PCP-server-Ruby-SDK/models/merchant_action.rb
|
|
192
196
|
- lib/PCP-server-Ruby-SDK/models/mobile_payment_method_specific_input.rb
|
|
193
197
|
- lib/PCP-server-Ruby-SDK/models/mobile_payment_method_specific_output.rb
|
|
198
|
+
- lib/PCP-server-Ruby-SDK/models/mobile_payment_network.rb
|
|
194
199
|
- lib/PCP-server-Ruby-SDK/models/mobile_payment_three_dsecure.rb
|
|
195
|
-
- lib/PCP-server-Ruby-SDK/models/network.rb
|
|
196
200
|
- lib/PCP-server-Ruby-SDK/models/order.rb
|
|
197
201
|
- lib/PCP-server-Ruby-SDK/models/order_item.rb
|
|
198
202
|
- lib/PCP-server-Ruby-SDK/models/order_line_details_input.rb
|
|
@@ -223,10 +227,12 @@ files:
|
|
|
223
227
|
- lib/PCP-server-Ruby-SDK/models/payment_product3391_specific_input.rb
|
|
224
228
|
- lib/PCP-server-Ruby-SDK/models/payment_product3391_specific_output.rb
|
|
225
229
|
- lib/PCP-server-Ruby-SDK/models/payment_product3392_specific_input.rb
|
|
230
|
+
- lib/PCP-server-Ruby-SDK/models/payment_product5002_specific_input.rb
|
|
226
231
|
- lib/PCP-server-Ruby-SDK/models/payment_product771_specific_output.rb
|
|
227
232
|
- lib/PCP-server-Ruby-SDK/models/payment_product840_customer_account.rb
|
|
228
233
|
- lib/PCP-server-Ruby-SDK/models/payment_product840_specific_output.rb
|
|
229
234
|
- lib/PCP-server-Ruby-SDK/models/payment_references.rb
|
|
235
|
+
- lib/PCP-server-Ruby-SDK/models/payment_references_for_refund.rb
|
|
230
236
|
- lib/PCP-server-Ruby-SDK/models/payment_response.rb
|
|
231
237
|
- lib/PCP-server-Ruby-SDK/models/payment_status_output.rb
|
|
232
238
|
- lib/PCP-server-Ruby-SDK/models/payment_type.rb
|
|
@@ -323,18 +329,18 @@ specification_version: 4
|
|
|
323
329
|
summary: Commerce Platform API Ruby Gem
|
|
324
330
|
test_files:
|
|
325
331
|
- spec/communicator_configuration_spec.rb
|
|
326
|
-
- spec/endpoints/payment_execution_api_client_spec.rb
|
|
327
|
-
- spec/endpoints/order_management_checkout_actions_api_client_spec.rb
|
|
328
332
|
- spec/endpoints/payment_information_api_client_spec.rb
|
|
333
|
+
- spec/endpoints/authentication_api_client_spec.rb
|
|
329
334
|
- spec/endpoints/base_api_client_spec.rb
|
|
330
335
|
- spec/endpoints/commerce_case_api_client_spec.rb
|
|
331
|
-
- spec/endpoints/
|
|
336
|
+
- spec/endpoints/order_management_checkout_actions_api_client_spec.rb
|
|
332
337
|
- spec/endpoints/checkout_api_client_spec.rb
|
|
338
|
+
- spec/endpoints/payment_execution_api_client_spec.rb
|
|
333
339
|
- spec/errors/api_response_retrieval_exception_spec.rb
|
|
334
340
|
- spec/errors/api_exception_spec.rb
|
|
335
341
|
- spec/errors/api_error_response_exception_spec.rb
|
|
336
|
-
- spec/queries/get_checkouts_query_spec.rb
|
|
337
342
|
- spec/queries/get_commerce_cases_query_spec.rb
|
|
343
|
+
- spec/queries/get_checkouts_query_spec.rb
|
|
338
344
|
- spec/request_header_generator_spec.rb
|
|
339
345
|
- spec/spec_helper.rb
|
|
340
346
|
- spec/transformer/apple_pay_transformer_spec.rb
|