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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/README.md +1 -1
- data/api-definition.yaml +438 -20
- data/lib/PCP-server-Ruby-SDK/endpoints/pay_by_link_api_client.rb +33 -0
- data/lib/PCP-server-Ruby-SDK/endpoints/payment_intent_api_client.rb +14 -1
- data/lib/PCP-server-Ruby-SDK/models/authentication_token.rb +6 -183
- data/lib/PCP-server-Ruby-SDK/models/create_pay_by_link_request.rb +12 -0
- data/lib/PCP-server-Ruby-SDK/models/create_pay_by_link_response.rb +13 -0
- data/lib/PCP-server-Ruby-SDK/models/create_payment_intent.rb +1 -1
- data/lib/PCP-server-Ruby-SDK/models/patch_payment_intent_request.rb +10 -0
- data/lib/PCP-server-Ruby-SDK/models/patch_payment_intent_response.rb +11 -0
- data/lib/PCP-server-Ruby-SDK/models/pay_link_status_value.rb +20 -0
- data/lib/PCP-server-Ruby-SDK/models/payment_information_response.rb +4 -0
- data/lib/PCP-server-Ruby-SDK/models/payment_link_order.rb +10 -0
- data/lib/PCP-server-Ruby-SDK/models/payment_link_specific_input.rb +19 -0
- data/lib/PCP-server-Ruby-SDK/models/payment_product840_customer_account_for_intent.rb +12 -0
- data/lib/PCP-server-Ruby-SDK/models/payment_product840_specific_output.rb +5 -6
- data/lib/PCP-server-Ruby-SDK/models/payment_product840_specific_output_for_intent.rb +5 -6
- data/lib/PCP-server-Ruby-SDK/models/payment_references_for_payment_intent.rb +11 -0
- data/lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_output_for_create_intent.rb +1 -1
- data/lib/PCP-server-Ruby-SDK/queries/get_checkouts_query.rb +5 -1
- data/lib/PCP-server-Ruby-SDK/version.rb +1 -1
- data/lib/PCP-server-Ruby-SDK.rb +10 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- data/spec/endpoints/pay_by_link_api_client_spec.rb +38 -0
- data/spec/endpoints/payment_information_api_client_spec.rb +9 -2
- data/spec/endpoints/payment_intent_api_client_spec.rb +35 -2
- data/spec/models/api_definition_conformance_spec.rb +28 -0
- data/spec/models/pay_by_link_models_spec.rb +50 -0
- data/spec/models/payment_intent_models_spec.rb +68 -0
- data/spec/queries/get_checkouts_query_spec.rb +15 -0
- metadata +24 -11
- data/lib/PCP-server-Ruby-SDK/models/payment_product840_specific_output_data.rb +0 -11
|
@@ -8,9 +8,15 @@ RSpec.describe PCPServerSDK::Endpoints::PaymentIntentApiClient do
|
|
|
8
8
|
|
|
9
9
|
describe '#create_payment_intent' do
|
|
10
10
|
it 'posts the payload and deserializes the response' do
|
|
11
|
-
payload = PCPServerSDK::Models::CreatePaymentIntentRequest.new
|
|
11
|
+
payload = PCPServerSDK::Models::CreatePaymentIntentRequest.new(
|
|
12
|
+
references: PCPServerSDK::Models::PaymentReferencesForPaymentIntent.new(merchant_reference: 'order-123')
|
|
13
|
+
)
|
|
12
14
|
response = double('Response', body: '{"paymentIntentOutput":{"paymentIntentId":"intent-1"}}', code: '201')
|
|
13
|
-
allow(client).to receive(:get_response)
|
|
15
|
+
allow(client).to receive(:get_response) do |_http, request|
|
|
16
|
+
expect(request).to be_a(Net::HTTP::Post)
|
|
17
|
+
expect(JSON.parse(request.body)).to eq('references' => { 'merchantReference' => 'order-123' })
|
|
18
|
+
response
|
|
19
|
+
end
|
|
14
20
|
|
|
15
21
|
result = client.create_payment_intent('merchant-1', payload)
|
|
16
22
|
|
|
@@ -40,4 +46,31 @@ RSpec.describe PCPServerSDK::Endpoints::PaymentIntentApiClient do
|
|
|
40
46
|
expect { client.get_payment_intent('merchant-1', nil) }.to raise_error(TypeError, 'Payment Intent ID is required')
|
|
41
47
|
end
|
|
42
48
|
end
|
|
49
|
+
|
|
50
|
+
describe '#patch_payment_intent' do
|
|
51
|
+
it 'patches the payment intent with a JSON body and deserializes the response' do
|
|
52
|
+
payload = PCPServerSDK::Models::PatchPaymentIntentRequest.new(
|
|
53
|
+
amount_of_money: PCPServerSDK::Models::AmountOfMoney.new(amount: 1500, currency_code: 'EUR')
|
|
54
|
+
)
|
|
55
|
+
response = double('Response', body: '{"paymentIntentOutput":{"paymentIntentId":"intent-1"}}', code: '200')
|
|
56
|
+
allow(client).to receive(:get_response) do |_http, request|
|
|
57
|
+
expect(request).to be_a(Net::HTTP::Patch)
|
|
58
|
+
expect(request.path).to eq('/v1/merchant-1/payment-intents/intent-1')
|
|
59
|
+
expect(request['Content-Type']).to eq('application/json')
|
|
60
|
+
expect(JSON.parse(request.body)).to eq('amountOfMoney' => { 'amount' => 1500, 'currencyCode' => 'EUR' })
|
|
61
|
+
response
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
result = client.patch_payment_intent('merchant-1', 'intent-1', payload)
|
|
65
|
+
|
|
66
|
+
expect(result).to be_a(PCPServerSDK::Models::PatchPaymentIntentResponse)
|
|
67
|
+
expect(result.payment_intent_output.payment_intent_id).to eq('intent-1')
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
it 'validates merchant ID, payment intent ID, and payload' do
|
|
71
|
+
expect { client.patch_payment_intent(nil, 'intent-1', {}) }.to raise_error(TypeError, 'Merchant ID is required')
|
|
72
|
+
expect { client.patch_payment_intent('merchant-1', nil, {}) }.to raise_error(TypeError, 'Payment Intent ID is required')
|
|
73
|
+
expect { client.patch_payment_intent('merchant-1', 'intent-1', nil) }.to raise_error(TypeError, 'Payload is required')
|
|
74
|
+
end
|
|
75
|
+
end
|
|
43
76
|
end
|
|
@@ -44,6 +44,34 @@ RSpec.describe 'OpenAPI model conformance' do
|
|
|
44
44
|
expect(mismatches).to be_empty
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
it 'uses the referenced object model for every object-valued schema property' do
|
|
48
|
+
mismatches = schemas.flat_map do |name, schema|
|
|
49
|
+
next [] unless schema['type'] == 'object'
|
|
50
|
+
|
|
51
|
+
model = PCPServerSDK::Models.const_get(name)
|
|
52
|
+
schema_properties_with_definitions(schema).filter_map do |property, definition|
|
|
53
|
+
reference = definition['$ref'] || definition.dig('items', '$ref')
|
|
54
|
+
next unless reference
|
|
55
|
+
|
|
56
|
+
referenced_name = reference.split('/').last
|
|
57
|
+
next unless schemas.fetch(referenced_name)['type'] == 'object'
|
|
58
|
+
|
|
59
|
+
expected = definition['type'] == 'array' ? "Array<#{referenced_name}>" : referenced_name
|
|
60
|
+
actual = model.openapi_types.fetch(model.attribute_map.key(property.to_sym)).to_s
|
|
61
|
+
"#{name}.#{property}: expected #{expected}, got #{actual}" unless actual == expected
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
expect(mismatches).to be_empty
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
def schema_properties_with_definitions(schema)
|
|
69
|
+
inherited = Array(schema['allOf']).each_with_object({}) do |parent, result|
|
|
70
|
+
result.merge!(schema_properties_with_definitions(parent['$ref'] ? schemas.fetch(parent['$ref'].split('/').last) : parent))
|
|
71
|
+
end
|
|
72
|
+
inherited.merge(schema.fetch('properties', {}))
|
|
73
|
+
end
|
|
74
|
+
|
|
47
75
|
it 'declares each direct allOf parent' do
|
|
48
76
|
mismatches = schemas.filter_map do |name, schema|
|
|
49
77
|
expected = Array(schema['allOf']).filter_map { |parent| parent['$ref']&.split('/')&.last }.sort
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require_relative '../../lib/PCP-server-Ruby-SDK'
|
|
3
|
+
|
|
4
|
+
RSpec.describe 'Pay-by-link models' do
|
|
5
|
+
it 'serializes required request properties and deserializes the response structure' do
|
|
6
|
+
request = PCPServerSDK::Models::CreatePayByLinkRequest.new(
|
|
7
|
+
payment_link_specific_input: PCPServerSDK::Models::PaymentLinkSpecificInput.new(
|
|
8
|
+
authorization_mode: 'SALE',
|
|
9
|
+
payment_methods: ['840'],
|
|
10
|
+
return_url: 'https://merchant.example/complete'
|
|
11
|
+
),
|
|
12
|
+
order_type: 'FULL',
|
|
13
|
+
order_references: PCPServerSDK::Models::References.new(merchant_reference: 'order-123')
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
expect(request.to_hash).to include(
|
|
17
|
+
paymentLinkSpecificInput: {
|
|
18
|
+
authorizationMode: 'SALE',
|
|
19
|
+
paymentMethods: ['840'],
|
|
20
|
+
returnUrl: 'https://merchant.example/complete'
|
|
21
|
+
},
|
|
22
|
+
orderType: 'FULL',
|
|
23
|
+
orderReferences: { merchantReference: 'order-123' }
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
response = PCPServerSDK::Models::CreatePayByLinkResponse.build_from_hash(
|
|
27
|
+
'expirationDate' => '2026-09-22T12:00:00Z',
|
|
28
|
+
'paymentLinkOrder' => {
|
|
29
|
+
'merchantReference' => 'order-123',
|
|
30
|
+
'amount' => { 'amount' => 1200, 'currencyCode' => 'EUR' }
|
|
31
|
+
},
|
|
32
|
+
'status' => 'ACTIVE',
|
|
33
|
+
'redirectionUrl' => 'https://commerce.example/pay/link',
|
|
34
|
+
'paymentLinkId' => '707ef15b-7a0a-48f2-b7d8-c95103418a9c'
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
expect(response.expiration_date).to be_a(Time)
|
|
38
|
+
expect(response.payment_link_order).to be_a(PCPServerSDK::Models::PaymentLinkOrder)
|
|
39
|
+
expect(response.payment_link_order.amount).to be_a(PCPServerSDK::Models::AmountOfMoney)
|
|
40
|
+
expect(response.payment_link_order.amount.amount).to eq(1200)
|
|
41
|
+
expect(response.payment_link_order.amount.currency_code).to eq('EUR')
|
|
42
|
+
expect(response.status).to eq('ACTIVE')
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
it 'enforces the required request fields from the OpenAPI schema' do
|
|
46
|
+
expect do
|
|
47
|
+
PCPServerSDK::Models::CreatePayByLinkRequest.new(order_type: 'FULL')
|
|
48
|
+
end.to raise_error(ArgumentError, 'payment_link_specific_input cannot be nil')
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -5,6 +5,7 @@ RSpec.describe 'Payment intent models' do
|
|
|
5
5
|
it 'deserializes and serializes nested payment intent data' do
|
|
6
6
|
request = PCPServerSDK::Models::CreatePaymentIntentRequest.build_from_hash(
|
|
7
7
|
'amountOfMoney' => { 'amount' => 1200, 'currencyCode' => 'EUR' },
|
|
8
|
+
'references' => { 'merchantReference' => 'subscription-123' },
|
|
8
9
|
'shoppingCart' => {
|
|
9
10
|
'items' => [{ 'invoiceData' => { 'description' => 'Subscription' } }]
|
|
10
11
|
},
|
|
@@ -18,8 +19,75 @@ RSpec.describe 'Payment intent models' do
|
|
|
18
19
|
)
|
|
19
20
|
|
|
20
21
|
expect(request.amount_of_money).to be_a(PCPServerSDK::Models::AmountOfMoney)
|
|
22
|
+
expect(request.references).to be_a(PCPServerSDK::Models::PaymentReferencesForPaymentIntent)
|
|
21
23
|
expect(request.shopping_cart.items.first).to be_a(PCPServerSDK::Models::CartItemData)
|
|
22
24
|
expect(request.payment_method_specific_input.redirect_payment_method_specific_input.requires_approval).to be(false)
|
|
23
25
|
expect(request.to_hash.dig(:shoppingCart, :items, 0, :invoiceData, :description)).to eq('Subscription')
|
|
24
26
|
end
|
|
27
|
+
|
|
28
|
+
it 'uses the payment-intent PayPal account structure' do
|
|
29
|
+
response = PCPServerSDK::Models::PaymentIntentResponse.build_from_hash(
|
|
30
|
+
'redirectPaymentMethodSpecificOutput' => {
|
|
31
|
+
'paymentProduct840SpecificOutput' => {
|
|
32
|
+
'customerAccount' => { 'emailAddress' => 'customer@example.com' }
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
customer_account = response.redirect_payment_method_specific_output.payment_product840_specific_output.customer_account
|
|
38
|
+
|
|
39
|
+
expect(customer_account).to be_a(PCPServerSDK::Models::PaymentProduct840CustomerAccountForIntent)
|
|
40
|
+
expect(customer_account.email_address).to eq('customer@example.com')
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
it 'uses the regular PayPal account structure outside payment intents' do
|
|
44
|
+
output = PCPServerSDK::Models::PaymentProduct840SpecificOutput.build_from_hash(
|
|
45
|
+
'customerAccount' => { 'payerId' => 'payer-123' }
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
expect(output.customer_account).to be_a(PCPServerSDK::Models::PaymentProduct840CustomerAccount)
|
|
49
|
+
expect(output.customer_account.payer_id).to eq('payer-123')
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
it 'serializes the patch request with the updated amount and shopping cart' do
|
|
53
|
+
request = PCPServerSDK::Models::PatchPaymentIntentRequest.build_from_hash(
|
|
54
|
+
'amountOfMoney' => { 'amount' => 1500, 'currencyCode' => 'EUR' },
|
|
55
|
+
'shoppingCart' => { 'items' => [{ 'invoiceData' => { 'description' => 'Updated item' } }] }
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
expect(request.amount_of_money).to be_a(PCPServerSDK::Models::AmountOfMoney)
|
|
59
|
+
expect(request.shopping_cart.items.first).to be_a(PCPServerSDK::Models::CartItemData)
|
|
60
|
+
expect(request.to_hash).to eq(
|
|
61
|
+
amountOfMoney: { amount: 1500, currencyCode: 'EUR' },
|
|
62
|
+
shoppingCart: { items: [{ invoiceData: { description: 'Updated item' } }] }
|
|
63
|
+
)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
it 'deserializes the patch response using the create response structure' do
|
|
67
|
+
response = PCPServerSDK::Models::PatchPaymentIntentResponse.build_from_hash(
|
|
68
|
+
'paymentIntentOutput' => { 'paymentIntentId' => 'intent-1' },
|
|
69
|
+
'shoppingCart' => { 'items' => [] }
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
expect(response).to be_a(PCPServerSDK::Models::CreatePaymentIntentResponse)
|
|
73
|
+
expect(response.payment_intent_output.payment_intent_id).to eq('intent-1')
|
|
74
|
+
expect(response.shopping_cart).to be_a(PCPServerSDK::Models::ShoppingCartData)
|
|
75
|
+
expect(response.to_hash.dig(:paymentIntentOutput, :paymentIntentId)).to eq('intent-1')
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
it 'uses redirectData in created payment intent output' do
|
|
79
|
+
response = PCPServerSDK::Models::CreatePaymentIntentResponse.build_from_hash(
|
|
80
|
+
'paymentIntentOutput' => {
|
|
81
|
+
'redirectPaymentMethodSpecificOutput' => {
|
|
82
|
+
'redirectData' => { 'redirectURL' => 'https://example.com/redirect' }
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
redirect_output = response.payment_intent_output.redirect_payment_method_specific_output
|
|
87
|
+
|
|
88
|
+
expect(redirect_output.redirect_data).to be_a(PCPServerSDK::Models::RedirectData)
|
|
89
|
+
expect(redirect_output.redirect_data.redirect_url).to eq('https://example.com/redirect')
|
|
90
|
+
expect(response.to_hash.dig(:paymentIntentOutput, :redirectPaymentMethodSpecificOutput, :redirectData))
|
|
91
|
+
.to eq(redirectURL: 'https://example.com/redirect')
|
|
92
|
+
end
|
|
25
93
|
end
|
|
@@ -181,4 +181,19 @@ RSpec.describe PCPServerSDK::Queries::GetCheckoutsQuery do
|
|
|
181
181
|
@query.company_information = 'Company XYZ'
|
|
182
182
|
expect(@query.to_query_map).to eq({ 'companyInformation' => 'Company XYZ' })
|
|
183
183
|
end
|
|
184
|
+
|
|
185
|
+
it 'should return query map with card_authorization_id' do
|
|
186
|
+
@query.card_authorization_id = 'authorization-123'
|
|
187
|
+
expect(@query.to_query_map).to eq({ 'cardAuthorizationId' => 'authorization-123' })
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
it 'should return query map with receipt_number' do
|
|
191
|
+
@query.receipt_number = 'receipt-123'
|
|
192
|
+
expect(@query.to_query_map).to eq({ 'receiptNumber' => 'receipt-123' })
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
it 'should return query map with trace_number' do
|
|
196
|
+
@query.trace_number = 'trace-123'
|
|
197
|
+
expect(@query.to_query_map).to eq({ 'traceNumber' => 'trace-123' })
|
|
198
|
+
end
|
|
184
199
|
end
|
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.15.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-09-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: net-http
|
|
@@ -107,6 +107,7 @@ files:
|
|
|
107
107
|
- lib/PCP-server-Ruby-SDK/endpoints/checkout_api_client.rb
|
|
108
108
|
- lib/PCP-server-Ruby-SDK/endpoints/commerce_case_api_client.rb
|
|
109
109
|
- lib/PCP-server-Ruby-SDK/endpoints/order_management_checkout_actions_api_client.rb
|
|
110
|
+
- lib/PCP-server-Ruby-SDK/endpoints/pay_by_link_api_client.rb
|
|
110
111
|
- lib/PCP-server-Ruby-SDK/endpoints/payment_execution_api_client.rb
|
|
111
112
|
- lib/PCP-server-Ruby-SDK/endpoints/payment_information_api_client.rb
|
|
112
113
|
- lib/PCP-server-Ruby-SDK/endpoints/payment_intent_api_client.rb
|
|
@@ -174,6 +175,8 @@ files:
|
|
|
174
175
|
- lib/PCP-server-Ruby-SDK/models/create_checkout_response.rb
|
|
175
176
|
- lib/PCP-server-Ruby-SDK/models/create_commerce_case_request.rb
|
|
176
177
|
- lib/PCP-server-Ruby-SDK/models/create_commerce_case_response.rb
|
|
178
|
+
- lib/PCP-server-Ruby-SDK/models/create_pay_by_link_request.rb
|
|
179
|
+
- lib/PCP-server-Ruby-SDK/models/create_pay_by_link_response.rb
|
|
177
180
|
- lib/PCP-server-Ruby-SDK/models/create_payment_intent.rb
|
|
178
181
|
- lib/PCP-server-Ruby-SDK/models/create_payment_intent_request.rb
|
|
179
182
|
- lib/PCP-server-Ruby-SDK/models/create_payment_intent_response.rb
|
|
@@ -213,8 +216,11 @@ files:
|
|
|
213
216
|
- lib/PCP-server-Ruby-SDK/models/order_type.rb
|
|
214
217
|
- lib/PCP-server-Ruby-SDK/models/patch_checkout_request.rb
|
|
215
218
|
- lib/PCP-server-Ruby-SDK/models/patch_commerce_case_request.rb
|
|
219
|
+
- lib/PCP-server-Ruby-SDK/models/patch_payment_intent_request.rb
|
|
220
|
+
- lib/PCP-server-Ruby-SDK/models/patch_payment_intent_response.rb
|
|
216
221
|
- lib/PCP-server-Ruby-SDK/models/pause_payment_request.rb
|
|
217
222
|
- lib/PCP-server-Ruby-SDK/models/pause_payment_response.rb
|
|
223
|
+
- lib/PCP-server-Ruby-SDK/models/pay_link_status_value.rb
|
|
218
224
|
- lib/PCP-server-Ruby-SDK/models/payee.rb
|
|
219
225
|
- lib/PCP-server-Ruby-SDK/models/payment_channel.rb
|
|
220
226
|
- lib/PCP-server-Ruby-SDK/models/payment_creation_output.rb
|
|
@@ -230,6 +236,8 @@ files:
|
|
|
230
236
|
- lib/PCP-server-Ruby-SDK/models/payment_intent_output.rb
|
|
231
237
|
- lib/PCP-server-Ruby-SDK/models/payment_intent_response.rb
|
|
232
238
|
- lib/PCP-server-Ruby-SDK/models/payment_intent_response_data.rb
|
|
239
|
+
- lib/PCP-server-Ruby-SDK/models/payment_link_order.rb
|
|
240
|
+
- lib/PCP-server-Ruby-SDK/models/payment_link_specific_input.rb
|
|
233
241
|
- lib/PCP-server-Ruby-SDK/models/payment_method_specific_input.rb
|
|
234
242
|
- lib/PCP-server-Ruby-SDK/models/payment_method_specific_input_for_intent.rb
|
|
235
243
|
- lib/PCP-server-Ruby-SDK/models/payment_output.rb
|
|
@@ -240,10 +248,11 @@ files:
|
|
|
240
248
|
- lib/PCP-server-Ruby-SDK/models/payment_product5002_specific_input.rb
|
|
241
249
|
- lib/PCP-server-Ruby-SDK/models/payment_product771_specific_output.rb
|
|
242
250
|
- lib/PCP-server-Ruby-SDK/models/payment_product840_customer_account.rb
|
|
251
|
+
- lib/PCP-server-Ruby-SDK/models/payment_product840_customer_account_for_intent.rb
|
|
243
252
|
- lib/PCP-server-Ruby-SDK/models/payment_product840_specific_output.rb
|
|
244
|
-
- lib/PCP-server-Ruby-SDK/models/payment_product840_specific_output_data.rb
|
|
245
253
|
- lib/PCP-server-Ruby-SDK/models/payment_product840_specific_output_for_intent.rb
|
|
246
254
|
- lib/PCP-server-Ruby-SDK/models/payment_references.rb
|
|
255
|
+
- lib/PCP-server-Ruby-SDK/models/payment_references_for_payment_intent.rb
|
|
247
256
|
- lib/PCP-server-Ruby-SDK/models/payment_references_for_refund.rb
|
|
248
257
|
- lib/PCP-server-Ruby-SDK/models/payment_response.rb
|
|
249
258
|
- lib/PCP-server-Ruby-SDK/models/payment_status_output.rb
|
|
@@ -314,6 +323,7 @@ files:
|
|
|
314
323
|
- spec/endpoints/checkout_api_client_spec.rb
|
|
315
324
|
- spec/endpoints/commerce_case_api_client_spec.rb
|
|
316
325
|
- spec/endpoints/order_management_checkout_actions_api_client_spec.rb
|
|
326
|
+
- spec/endpoints/pay_by_link_api_client_spec.rb
|
|
317
327
|
- spec/endpoints/payment_execution_api_client_spec.rb
|
|
318
328
|
- spec/endpoints/payment_information_api_client_spec.rb
|
|
319
329
|
- spec/endpoints/payment_intent_api_client_spec.rb
|
|
@@ -322,6 +332,7 @@ files:
|
|
|
322
332
|
- spec/errors/api_response_retrieval_exception_spec.rb
|
|
323
333
|
- spec/models/api_definition_conformance_spec.rb
|
|
324
334
|
- spec/models/model_base_spec.rb
|
|
335
|
+
- spec/models/pay_by_link_models_spec.rb
|
|
325
336
|
- spec/models/payment_intent_models_spec.rb
|
|
326
337
|
- spec/models/required_field_validation_spec.rb
|
|
327
338
|
- spec/queries/get_checkouts_query_spec.rb
|
|
@@ -355,23 +366,25 @@ specification_version: 4
|
|
|
355
366
|
summary: Commerce Platform API Ruby Gem
|
|
356
367
|
test_files:
|
|
357
368
|
- spec/communicator_configuration_spec.rb
|
|
358
|
-
- spec/endpoints/
|
|
359
|
-
- spec/endpoints/payment_information_api_client_spec.rb
|
|
360
|
-
- spec/endpoints/payment_execution_api_client_spec.rb
|
|
369
|
+
- spec/endpoints/base_api_client_spec.rb
|
|
361
370
|
- spec/endpoints/commerce_case_api_client_spec.rb
|
|
371
|
+
- spec/endpoints/payment_information_api_client_spec.rb
|
|
372
|
+
- spec/endpoints/order_management_checkout_actions_api_client_spec.rb
|
|
373
|
+
- spec/endpoints/pay_by_link_api_client_spec.rb
|
|
362
374
|
- spec/endpoints/authentication_api_client_spec.rb
|
|
363
|
-
- spec/endpoints/checkout_api_client_spec.rb
|
|
364
375
|
- spec/endpoints/payment_intent_api_client_spec.rb
|
|
365
|
-
- spec/endpoints/
|
|
376
|
+
- spec/endpoints/payment_execution_api_client_spec.rb
|
|
377
|
+
- spec/endpoints/checkout_api_client_spec.rb
|
|
366
378
|
- spec/errors/api_response_retrieval_exception_spec.rb
|
|
367
379
|
- spec/errors/api_error_response_exception_spec.rb
|
|
368
380
|
- spec/errors/api_exception_spec.rb
|
|
369
|
-
- spec/models/payment_intent_models_spec.rb
|
|
370
|
-
- spec/models/model_base_spec.rb
|
|
371
381
|
- spec/models/required_field_validation_spec.rb
|
|
372
382
|
- spec/models/api_definition_conformance_spec.rb
|
|
373
|
-
- spec/
|
|
383
|
+
- spec/models/payment_intent_models_spec.rb
|
|
384
|
+
- spec/models/model_base_spec.rb
|
|
385
|
+
- spec/models/pay_by_link_models_spec.rb
|
|
374
386
|
- spec/queries/get_commerce_cases_query_spec.rb
|
|
387
|
+
- spec/queries/get_checkouts_query_spec.rb
|
|
375
388
|
- spec/request_header_generator_spec.rb
|
|
376
389
|
- spec/spec_helper.rb
|
|
377
390
|
- spec/transformer/apple_pay_transformer_spec.rb
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
require_relative 'model_base'
|
|
2
|
-
|
|
3
|
-
module PCPServerSDK
|
|
4
|
-
module Models
|
|
5
|
-
class PaymentProduct840SpecificOutputData < ModelBase
|
|
6
|
-
attribute :billing_address, :billingAddress, :Address
|
|
7
|
-
attribute :customer_account, :customerAccount, :PaymentProduct840CustomerAccount
|
|
8
|
-
attribute :pay_pal_transaction_id, :payPalTransactionId, :String
|
|
9
|
-
end
|
|
10
|
-
end
|
|
11
|
-
end
|