pcp-server-ruby-sdk 1.12.0 → 1.13.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 (168) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/api-definition.yaml +323 -41
  5. data/lib/PCP-server-Ruby-SDK/endpoints/payment_intent_api_client.rb +37 -0
  6. data/lib/PCP-server-Ruby-SDK/models/address.rb +9 -237
  7. data/lib/PCP-server-Ruby-SDK/models/address_personal.rb +10 -246
  8. data/lib/PCP-server-Ruby-SDK/models/amount_of_money.rb +4 -195
  9. data/lib/PCP-server-Ruby-SDK/models/api_error.rb +27 -232
  10. data/lib/PCP-server-Ruby-SDK/models/apple_payment_data_token_header_information.rb +6 -194
  11. data/lib/PCP-server-Ruby-SDK/models/apple_payment_data_token_information.rb +8 -229
  12. data/lib/PCP-server-Ruby-SDK/models/bank_account_information.rb +11 -207
  13. data/lib/PCP-server-Ruby-SDK/models/bank_payout_method_specific_input.rb +4 -187
  14. data/lib/PCP-server-Ruby-SDK/models/cancel_item.rb +6 -195
  15. data/lib/PCP-server-Ruby-SDK/models/cancel_payment_request.rb +6 -222
  16. data/lib/PCP-server-Ruby-SDK/models/cancel_payment_response.rb +4 -190
  17. data/lib/PCP-server-Ruby-SDK/models/cancel_request.rb +6 -224
  18. data/lib/PCP-server-Ruby-SDK/models/cancel_response.rb +4 -190
  19. data/lib/PCP-server-Ruby-SDK/models/capture_output.rb +9 -214
  20. data/lib/PCP-server-Ruby-SDK/models/capture_payment_request.rb +14 -253
  21. data/lib/PCP-server-Ruby-SDK/models/capture_payment_response.rb +7 -239
  22. data/lib/PCP-server-Ruby-SDK/models/card_fraud_results.rb +29 -184
  23. data/lib/PCP-server-Ruby-SDK/models/card_info.rb +3 -182
  24. data/lib/PCP-server-Ruby-SDK/models/card_payment_details.rb +8 -210
  25. data/lib/PCP-server-Ruby-SDK/models/card_payment_method_specific_input.rb +32 -307
  26. data/lib/PCP-server-Ruby-SDK/models/card_payment_method_specific_output.rb +6 -210
  27. data/lib/PCP-server-Ruby-SDK/models/card_recurrence_details.rb +12 -186
  28. data/lib/PCP-server-Ruby-SDK/models/cart_item_data.rb +10 -0
  29. data/lib/PCP-server-Ruby-SDK/models/cart_item_input.rb +5 -198
  30. data/lib/PCP-server-Ruby-SDK/models/cart_item_invoice_data.rb +5 -184
  31. data/lib/PCP-server-Ruby-SDK/models/cart_item_order_status.rb +4 -213
  32. data/lib/PCP-server-Ruby-SDK/models/cart_item_patch.rb +5 -200
  33. data/lib/PCP-server-Ruby-SDK/models/cart_item_result.rb +5 -200
  34. data/lib/PCP-server-Ruby-SDK/models/cart_item_supplier_references.rb +6 -195
  35. data/lib/PCP-server-Ruby-SDK/models/checkout_references.rb +4 -192
  36. data/lib/PCP-server-Ruby-SDK/models/checkout_response.rb +15 -319
  37. data/lib/PCP-server-Ruby-SDK/models/checkouts_response.rb +4 -193
  38. data/lib/PCP-server-Ruby-SDK/models/company_information.rb +3 -182
  39. data/lib/PCP-server-Ruby-SDK/models/complete_financing_payment_method_specific_input.rb +12 -202
  40. data/lib/PCP-server-Ruby-SDK/models/complete_order_request.rb +3 -181
  41. data/lib/PCP-server-Ruby-SDK/models/complete_payment_method_specific_input.rb +4 -191
  42. data/lib/PCP-server-Ruby-SDK/models/complete_payment_product840_specific_input.rb +7 -226
  43. data/lib/PCP-server-Ruby-SDK/models/complete_payment_request.rb +6 -209
  44. data/lib/PCP-server-Ruby-SDK/models/complete_payment_response.rb +5 -199
  45. data/lib/PCP-server-Ruby-SDK/models/complete_redirect_payment_method_specific_input.rb +4 -192
  46. data/lib/PCP-server-Ruby-SDK/models/contact_details.rb +4 -191
  47. data/lib/PCP-server-Ruby-SDK/models/create_checkout_request.rb +13 -240
  48. data/lib/PCP-server-Ruby-SDK/models/create_checkout_response.rb +16 -307
  49. data/lib/PCP-server-Ruby-SDK/models/create_commerce_case_response.rb +7 -219
  50. data/lib/PCP-server-Ruby-SDK/models/create_payment_intent.rb +11 -0
  51. data/lib/PCP-server-Ruby-SDK/models/create_payment_intent_request.rb +13 -0
  52. data/lib/PCP-server-Ruby-SDK/models/create_payment_intent_response.rb +10 -0
  53. data/lib/PCP-server-Ruby-SDK/models/create_payment_response.rb +7 -218
  54. data/lib/PCP-server-Ruby-SDK/models/customer.rb +28 -260
  55. data/lib/PCP-server-Ruby-SDK/models/customer_account.rb +10 -44
  56. data/lib/PCP-server-Ruby-SDK/models/customer_device.rb +8 -209
  57. data/lib/PCP-server-Ruby-SDK/models/deliver_item.rb +6 -195
  58. data/lib/PCP-server-Ruby-SDK/models/deliver_request.rb +10 -246
  59. data/lib/PCP-server-Ruby-SDK/models/deliver_response.rb +4 -191
  60. data/lib/PCP-server-Ruby-SDK/models/delivery_information.rb +3 -185
  61. data/lib/PCP-server-Ruby-SDK/models/error_response.rb +4 -193
  62. data/lib/PCP-server-Ruby-SDK/models/financing_payment_method_specific_input.rb +15 -203
  63. data/lib/PCP-server-Ruby-SDK/models/financing_payment_method_specific_output.rb +10 -196
  64. data/lib/PCP-server-Ruby-SDK/models/fund_distribution.rb +12 -263
  65. data/lib/PCP-server-Ruby-SDK/models/fund_split.rb +5 -205
  66. data/lib/PCP-server-Ruby-SDK/models/fund_split_request.rb +3 -147
  67. data/lib/PCP-server-Ruby-SDK/models/fund_split_response.rb +10 -174
  68. data/lib/PCP-server-Ruby-SDK/models/installment_option.rb +13 -273
  69. data/lib/PCP-server-Ruby-SDK/models/link_information.rb +4 -196
  70. data/lib/PCP-server-Ruby-SDK/models/merchant_action.rb +16 -194
  71. data/lib/PCP-server-Ruby-SDK/models/mobile_payment_method_specific_input.rb +13 -246
  72. data/lib/PCP-server-Ruby-SDK/models/mobile_payment_method_specific_output.rb +7 -219
  73. data/lib/PCP-server-Ruby-SDK/models/mobile_payment_three_dsecure.rb +3 -179
  74. data/lib/PCP-server-Ruby-SDK/models/model_base.rb +147 -0
  75. data/lib/PCP-server-Ruby-SDK/models/order.rb +7 -221
  76. data/lib/PCP-server-Ruby-SDK/models/order_item.rb +6 -197
  77. data/lib/PCP-server-Ruby-SDK/models/order_line_details_input.rb +29 -305
  78. data/lib/PCP-server-Ruby-SDK/models/order_line_details_patch.rb +5 -326
  79. data/lib/PCP-server-Ruby-SDK/models/order_line_details_result.rb +5 -326
  80. data/lib/PCP-server-Ruby-SDK/models/order_request.rb +7 -244
  81. data/lib/PCP-server-Ruby-SDK/models/order_response.rb +4 -192
  82. data/lib/PCP-server-Ruby-SDK/models/patch_checkout_request.rb +8 -228
  83. data/lib/PCP-server-Ruby-SDK/models/patch_commerce_case_request.rb +3 -183
  84. data/lib/PCP-server-Ruby-SDK/models/pause_payment_request.rb +2 -165
  85. data/lib/PCP-server-Ruby-SDK/models/pause_payment_response.rb +3 -186
  86. data/lib/PCP-server-Ruby-SDK/models/payee.rb +6 -204
  87. data/lib/PCP-server-Ruby-SDK/models/payment_creation_output.rb +3 -183
  88. data/lib/PCP-server-Ruby-SDK/models/payment_event.rb +19 -274
  89. data/lib/PCP-server-Ruby-SDK/models/payment_execution.rb +29 -335
  90. data/lib/PCP-server-Ruby-SDK/models/payment_execution_request.rb +4 -191
  91. data/lib/PCP-server-Ruby-SDK/models/payment_execution_specific_input.rb +6 -212
  92. data/lib/PCP-server-Ruby-SDK/models/payment_information_refund_request.rb +7 -205
  93. data/lib/PCP-server-Ruby-SDK/models/payment_information_refund_response.rb +5 -196
  94. data/lib/PCP-server-Ruby-SDK/models/payment_information_request.rb +10 -249
  95. data/lib/PCP-server-Ruby-SDK/models/payment_information_response.rb +30 -314
  96. data/lib/PCP-server-Ruby-SDK/models/payment_instructions.rb +8 -214
  97. data/lib/PCP-server-Ruby-SDK/models/payment_intent_output.rb +13 -0
  98. data/lib/PCP-server-Ruby-SDK/models/payment_intent_response.rb +13 -0
  99. data/lib/PCP-server-Ruby-SDK/models/payment_intent_response_data.rb +12 -0
  100. data/lib/PCP-server-Ruby-SDK/models/payment_method_specific_input.rb +9 -261
  101. data/lib/PCP-server-Ruby-SDK/models/payment_method_specific_input_for_intent.rb +9 -0
  102. data/lib/PCP-server-Ruby-SDK/models/payment_output.rb +11 -255
  103. data/lib/PCP-server-Ruby-SDK/models/payment_product302_specific_input.rb +11 -225
  104. data/lib/PCP-server-Ruby-SDK/models/payment_product3391_specific_input.rb +6 -197
  105. data/lib/PCP-server-Ruby-SDK/models/payment_product3391_specific_output.rb +3 -185
  106. data/lib/PCP-server-Ruby-SDK/models/payment_product3392_specific_input.rb +3 -185
  107. data/lib/PCP-server-Ruby-SDK/models/payment_product5002_specific_input.rb +7 -203
  108. data/lib/PCP-server-Ruby-SDK/models/payment_product771_specific_output.rb +3 -183
  109. data/lib/PCP-server-Ruby-SDK/models/payment_product840_customer_account.rb +6 -210
  110. data/lib/PCP-server-Ruby-SDK/models/payment_product840_specific_output.rb +5 -209
  111. data/lib/PCP-server-Ruby-SDK/models/payment_product840_specific_output_data.rb +11 -0
  112. data/lib/PCP-server-Ruby-SDK/models/payment_product840_specific_output_for_intent.rb +13 -0
  113. data/lib/PCP-server-Ruby-SDK/models/payment_references.rb +6 -184
  114. data/lib/PCP-server-Ruby-SDK/models/payment_references_for_refund.rb +12 -197
  115. data/lib/PCP-server-Ruby-SDK/models/payment_response.rb +6 -234
  116. data/lib/PCP-server-Ruby-SDK/models/payment_status_output.rb +6 -234
  117. data/lib/PCP-server-Ruby-SDK/models/payout_output.rb +5 -205
  118. data/lib/PCP-server-Ruby-SDK/models/payout_response.rb +6 -215
  119. data/lib/PCP-server-Ruby-SDK/models/personal_information.rb +11 -227
  120. data/lib/PCP-server-Ruby-SDK/models/personal_name.rb +5 -201
  121. data/lib/PCP-server-Ruby-SDK/models/positive_amount_of_money.rb +4 -196
  122. data/lib/PCP-server-Ruby-SDK/models/processing_mandate_information.rb +9 -254
  123. data/lib/PCP-server-Ruby-SDK/models/redirect_data.rb +3 -183
  124. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_input.rb +14 -249
  125. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_input_for_intent.rb +12 -0
  126. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_output.rb +6 -211
  127. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_output_for_create_intent.rb +12 -0
  128. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_output_for_intent.rb +10 -0
  129. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_product840_specific_input.rb +6 -205
  130. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_product840_specific_input_data.rb +10 -0
  131. data/lib/PCP-server-Ruby-SDK/models/redirect_payment_product900_specific_input.rb +12 -177
  132. data/lib/PCP-server-Ruby-SDK/models/redirection_data.rb +11 -186
  133. data/lib/PCP-server-Ruby-SDK/models/references.rb +47 -205
  134. data/lib/PCP-server-Ruby-SDK/models/refresh_payment_request.rb +3 -186
  135. data/lib/PCP-server-Ruby-SDK/models/refund_error_response.rb +4 -193
  136. data/lib/PCP-server-Ruby-SDK/models/refund_output.rb +8 -211
  137. data/lib/PCP-server-Ruby-SDK/models/refund_payment_response.rb +7 -242
  138. data/lib/PCP-server-Ruby-SDK/models/refund_request.rb +6 -210
  139. data/lib/PCP-server-Ruby-SDK/models/return_information.rb +4 -194
  140. data/lib/PCP-server-Ruby-SDK/models/return_item.rb +6 -196
  141. data/lib/PCP-server-Ruby-SDK/models/return_request.rb +6 -234
  142. data/lib/PCP-server-Ruby-SDK/models/return_response.rb +4 -191
  143. data/lib/PCP-server-Ruby-SDK/models/sepa_direct_debit_payment_method_specific_input.rb +4 -193
  144. data/lib/PCP-server-Ruby-SDK/models/sepa_direct_debit_payment_method_specific_output.rb +4 -193
  145. data/lib/PCP-server-Ruby-SDK/models/sepa_direct_debit_payment_product771_specific_input.rb +4 -192
  146. data/lib/PCP-server-Ruby-SDK/models/sepa_transfer_payment_product_772_specific_input.rb +3 -186
  147. data/lib/PCP-server-Ruby-SDK/models/shipping.rb +3 -183
  148. data/lib/PCP-server-Ruby-SDK/models/shipping_address.rb +14 -0
  149. data/lib/PCP-server-Ruby-SDK/models/shopping_cart_data.rb +9 -0
  150. data/lib/PCP-server-Ruby-SDK/models/shopping_cart_input.rb +3 -185
  151. data/lib/PCP-server-Ruby-SDK/models/shopping_cart_patch.rb +3 -185
  152. data/lib/PCP-server-Ruby-SDK/models/shopping_cart_result.rb +3 -185
  153. data/lib/PCP-server-Ruby-SDK/models/status_output.rb +21 -264
  154. data/lib/PCP-server-Ruby-SDK/models/three_d_secure_results.rb +6 -226
  155. data/lib/PCP-server-Ruby-SDK/version.rb +1 -1
  156. data/lib/PCP-server-Ruby-SDK.rb +18 -0
  157. data/package-lock.json +2 -2
  158. data/package.json +1 -1
  159. data/scripts/convert_models_to_model_base.rb +128 -0
  160. data/spec/endpoints/payment_intent_api_client_spec.rb +43 -0
  161. data/spec/models/api_definition_conformance_spec.rb +88 -0
  162. data/spec/models/model_base_spec.rb +87 -0
  163. data/spec/models/payment_intent_models_spec.rb +25 -0
  164. data/spec/models/required_field_validation_spec.rb +5 -5
  165. metadata +35 -11
  166. data/lib/PCP-server-Ruby-SDK/models/action_type.rb +0 -34
  167. data/lib/PCP-server-Ruby-SDK/models/avs_result.rb +0 -52
  168. data/lib/PCP-server-Ruby-SDK/models/business_relation.rb +0 -30
@@ -0,0 +1,25 @@
1
+ require 'spec_helper'
2
+ require_relative '../../lib/PCP-server-Ruby-SDK'
3
+
4
+ RSpec.describe 'Payment intent models' do
5
+ it 'deserializes and serializes nested payment intent data' do
6
+ request = PCPServerSDK::Models::CreatePaymentIntentRequest.build_from_hash(
7
+ 'amountOfMoney' => { 'amount' => 1200, 'currencyCode' => 'EUR' },
8
+ 'shoppingCart' => {
9
+ 'items' => [{ 'invoiceData' => { 'description' => 'Subscription' } }]
10
+ },
11
+ 'paymentMethodSpecificInput' => {
12
+ 'redirectPaymentMethodSpecificInput' => {
13
+ 'requiresApproval' => false,
14
+ 'paymentProductId' => 840,
15
+ 'paymentProduct840SpecificInput' => { 'javaScriptSdkFlow' => true }
16
+ }
17
+ }
18
+ )
19
+
20
+ expect(request.amount_of_money).to be_a(PCPServerSDK::Models::AmountOfMoney)
21
+ expect(request.shopping_cart.items.first).to be_a(PCPServerSDK::Models::CartItemData)
22
+ expect(request.payment_method_specific_input.redirect_payment_method_specific_input.requires_approval).to be(false)
23
+ expect(request.to_hash.dig(:shoppingCart, :items, 0, :invoiceData, :description)).to eq('Subscription')
24
+ end
25
+ end
@@ -275,7 +275,7 @@ RSpec.describe 'required field validation' do
275
275
  describe PCPServerSDK::Models::FundDistribution do
276
276
  it 'rejects partially initialized models missing the first required field' do
277
277
  expect do
278
- described_class.new(amount: 100, type: 'COMMISSION')
278
+ described_class.new(amount: 100, type: 'COMMISSION_FEE')
279
279
  end.to raise_error(ArgumentError, 'account_id cannot be nil')
280
280
  end
281
281
 
@@ -463,7 +463,7 @@ RSpec.describe 'required field validation' do
463
463
  let(:fund_split) do
464
464
  PCPServerSDK::Models::FundSplit.new(
465
465
  fund_distributions: [
466
- PCPServerSDK::Models::FundDistribution.new(account_id: 'account-1', amount: 100, type: 'MARKETPLACE')
466
+ PCPServerSDK::Models::FundDistribution.new(account_id: 'account-1', amount: 100, type: 'COMMISSION_FEE')
467
467
  ]
468
468
  )
469
469
  end
@@ -478,7 +478,7 @@ RSpec.describe 'required field validation' do
478
478
  {
479
479
  accountId: 'account-1',
480
480
  amount: 100,
481
- type: 'MARKETPLACE'
481
+ type: 'COMMISSION_FEE'
482
482
  }
483
483
  ]
484
484
  }
@@ -493,7 +493,7 @@ RSpec.describe 'required field validation' do
493
493
  {
494
494
  'accountId' => 'account-1',
495
495
  'amount' => 100,
496
- 'type' => 'MARKETPLACE'
496
+ 'type' => 'COMMISSION_FEE'
497
497
  }
498
498
  ]
499
499
  }
@@ -512,7 +512,7 @@ RSpec.describe 'required field validation' do
512
512
  {
513
513
  'accountId' => 'account-1',
514
514
  'amount' => 100,
515
- 'type' => 'MARKETPLACE'
515
+ 'type' => 'COMMISSION_FEE'
516
516
  }
517
517
  ]
518
518
  }
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.12.0
4
+ version: 1.13.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-07-08 00:00:00.000000000 Z
11
+ date: 2026-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-http
@@ -109,10 +109,10 @@ files:
109
109
  - lib/PCP-server-Ruby-SDK/endpoints/order_management_checkout_actions_api_client.rb
110
110
  - lib/PCP-server-Ruby-SDK/endpoints/payment_execution_api_client.rb
111
111
  - lib/PCP-server-Ruby-SDK/endpoints/payment_information_api_client.rb
112
+ - lib/PCP-server-Ruby-SDK/endpoints/payment_intent_api_client.rb
112
113
  - lib/PCP-server-Ruby-SDK/errors/api_error_response_exception.rb
113
114
  - lib/PCP-server-Ruby-SDK/errors/api_exception.rb
114
115
  - lib/PCP-server-Ruby-SDK/errors/api_response_retrieval_exception.rb
115
- - lib/PCP-server-Ruby-SDK/models/action_type.rb
116
116
  - lib/PCP-server-Ruby-SDK/models/address.rb
117
117
  - lib/PCP-server-Ruby-SDK/models/address_personal.rb
118
118
  - lib/PCP-server-Ruby-SDK/models/allowed_payment_actions.rb
@@ -130,10 +130,8 @@ files:
130
130
  - lib/PCP-server-Ruby-SDK/models/applepay/apple_pay_payment_token.rb
131
131
  - lib/PCP-server-Ruby-SDK/models/authentication_token.rb
132
132
  - lib/PCP-server-Ruby-SDK/models/authorization_mode.rb
133
- - lib/PCP-server-Ruby-SDK/models/avs_result.rb
134
133
  - lib/PCP-server-Ruby-SDK/models/bank_account_information.rb
135
134
  - lib/PCP-server-Ruby-SDK/models/bank_payout_method_specific_input.rb
136
- - lib/PCP-server-Ruby-SDK/models/business_relation.rb
137
135
  - lib/PCP-server-Ruby-SDK/models/cancel_item.rb
138
136
  - lib/PCP-server-Ruby-SDK/models/cancel_payment_request.rb
139
137
  - lib/PCP-server-Ruby-SDK/models/cancel_payment_response.rb
@@ -150,6 +148,7 @@ files:
150
148
  - lib/PCP-server-Ruby-SDK/models/card_payment_method_specific_input.rb
151
149
  - lib/PCP-server-Ruby-SDK/models/card_payment_method_specific_output.rb
152
150
  - lib/PCP-server-Ruby-SDK/models/card_recurrence_details.rb
151
+ - lib/PCP-server-Ruby-SDK/models/cart_item_data.rb
153
152
  - lib/PCP-server-Ruby-SDK/models/cart_item_input.rb
154
153
  - lib/PCP-server-Ruby-SDK/models/cart_item_invoice_data.rb
155
154
  - lib/PCP-server-Ruby-SDK/models/cart_item_order_status.rb
@@ -175,6 +174,9 @@ files:
175
174
  - lib/PCP-server-Ruby-SDK/models/create_checkout_response.rb
176
175
  - lib/PCP-server-Ruby-SDK/models/create_commerce_case_request.rb
177
176
  - lib/PCP-server-Ruby-SDK/models/create_commerce_case_response.rb
177
+ - lib/PCP-server-Ruby-SDK/models/create_payment_intent.rb
178
+ - lib/PCP-server-Ruby-SDK/models/create_payment_intent_request.rb
179
+ - lib/PCP-server-Ruby-SDK/models/create_payment_intent_response.rb
178
180
  - lib/PCP-server-Ruby-SDK/models/create_payment_response.rb
179
181
  - lib/PCP-server-Ruby-SDK/models/customer.rb
180
182
  - lib/PCP-server-Ruby-SDK/models/customer_account.rb
@@ -200,6 +202,7 @@ files:
200
202
  - lib/PCP-server-Ruby-SDK/models/mobile_payment_method_specific_output.rb
201
203
  - lib/PCP-server-Ruby-SDK/models/mobile_payment_network.rb
202
204
  - lib/PCP-server-Ruby-SDK/models/mobile_payment_three_dsecure.rb
205
+ - lib/PCP-server-Ruby-SDK/models/model_base.rb
203
206
  - lib/PCP-server-Ruby-SDK/models/order.rb
204
207
  - lib/PCP-server-Ruby-SDK/models/order_item.rb
205
208
  - lib/PCP-server-Ruby-SDK/models/order_line_details_input.rb
@@ -224,7 +227,11 @@ files:
224
227
  - lib/PCP-server-Ruby-SDK/models/payment_information_request.rb
225
228
  - lib/PCP-server-Ruby-SDK/models/payment_information_response.rb
226
229
  - lib/PCP-server-Ruby-SDK/models/payment_instructions.rb
230
+ - lib/PCP-server-Ruby-SDK/models/payment_intent_output.rb
231
+ - lib/PCP-server-Ruby-SDK/models/payment_intent_response.rb
232
+ - lib/PCP-server-Ruby-SDK/models/payment_intent_response_data.rb
227
233
  - lib/PCP-server-Ruby-SDK/models/payment_method_specific_input.rb
234
+ - lib/PCP-server-Ruby-SDK/models/payment_method_specific_input_for_intent.rb
228
235
  - lib/PCP-server-Ruby-SDK/models/payment_output.rb
229
236
  - lib/PCP-server-Ruby-SDK/models/payment_product302_specific_input.rb
230
237
  - lib/PCP-server-Ruby-SDK/models/payment_product3391_specific_input.rb
@@ -234,6 +241,8 @@ files:
234
241
  - lib/PCP-server-Ruby-SDK/models/payment_product771_specific_output.rb
235
242
  - lib/PCP-server-Ruby-SDK/models/payment_product840_customer_account.rb
236
243
  - 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
+ - lib/PCP-server-Ruby-SDK/models/payment_product840_specific_output_for_intent.rb
237
246
  - lib/PCP-server-Ruby-SDK/models/payment_references.rb
238
247
  - lib/PCP-server-Ruby-SDK/models/payment_references_for_refund.rb
239
248
  - lib/PCP-server-Ruby-SDK/models/payment_response.rb
@@ -249,8 +258,12 @@ files:
249
258
  - lib/PCP-server-Ruby-SDK/models/recurring_payment_sequence_indicator.rb
250
259
  - lib/PCP-server-Ruby-SDK/models/redirect_data.rb
251
260
  - lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_input.rb
261
+ - lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_input_for_intent.rb
252
262
  - lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_output.rb
263
+ - lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_output_for_create_intent.rb
264
+ - lib/PCP-server-Ruby-SDK/models/redirect_payment_method_specific_output_for_intent.rb
253
265
  - lib/PCP-server-Ruby-SDK/models/redirect_payment_product840_specific_input.rb
266
+ - lib/PCP-server-Ruby-SDK/models/redirect_payment_product840_specific_input_data.rb
254
267
  - lib/PCP-server-Ruby-SDK/models/redirect_payment_product900_specific_input.rb
255
268
  - lib/PCP-server-Ruby-SDK/models/redirection_data.rb
256
269
  - lib/PCP-server-Ruby-SDK/models/references.rb
@@ -271,6 +284,8 @@ files:
271
284
  - lib/PCP-server-Ruby-SDK/models/sepa_direct_debit_payment_product771_specific_input.rb
272
285
  - lib/PCP-server-Ruby-SDK/models/sepa_transfer_payment_product_772_specific_input.rb
273
286
  - lib/PCP-server-Ruby-SDK/models/shipping.rb
287
+ - lib/PCP-server-Ruby-SDK/models/shipping_address.rb
288
+ - lib/PCP-server-Ruby-SDK/models/shopping_cart_data.rb
274
289
  - lib/PCP-server-Ruby-SDK/models/shopping_cart_input.rb
275
290
  - lib/PCP-server-Ruby-SDK/models/shopping_cart_patch.rb
276
291
  - lib/PCP-server-Ruby-SDK/models/shopping_cart_result.rb
@@ -291,6 +306,7 @@ files:
291
306
  - package-lock.json
292
307
  - package.json
293
308
  - scripts.sh
309
+ - scripts/convert_models_to_model_base.rb
294
310
  - sonar-project.properties
295
311
  - spec/communicator_configuration_spec.rb
296
312
  - spec/endpoints/authentication_api_client_spec.rb
@@ -300,9 +316,13 @@ files:
300
316
  - spec/endpoints/order_management_checkout_actions_api_client_spec.rb
301
317
  - spec/endpoints/payment_execution_api_client_spec.rb
302
318
  - spec/endpoints/payment_information_api_client_spec.rb
319
+ - spec/endpoints/payment_intent_api_client_spec.rb
303
320
  - spec/errors/api_error_response_exception_spec.rb
304
321
  - spec/errors/api_exception_spec.rb
305
322
  - spec/errors/api_response_retrieval_exception_spec.rb
323
+ - spec/models/api_definition_conformance_spec.rb
324
+ - spec/models/model_base_spec.rb
325
+ - spec/models/payment_intent_models_spec.rb
306
326
  - spec/models/required_field_validation_spec.rb
307
327
  - spec/queries/get_checkouts_query_spec.rb
308
328
  - spec/queries/get_commerce_cases_query_spec.rb
@@ -335,19 +355,23 @@ specification_version: 4
335
355
  summary: Commerce Platform API Ruby Gem
336
356
  test_files:
337
357
  - spec/communicator_configuration_spec.rb
358
+ - spec/endpoints/order_management_checkout_actions_api_client_spec.rb
359
+ - spec/endpoints/payment_information_api_client_spec.rb
338
360
  - spec/endpoints/payment_execution_api_client_spec.rb
339
- - spec/endpoints/base_api_client_spec.rb
340
361
  - spec/endpoints/commerce_case_api_client_spec.rb
341
- - spec/endpoints/checkout_api_client_spec.rb
342
- - spec/endpoints/payment_information_api_client_spec.rb
343
- - spec/endpoints/order_management_checkout_actions_api_client_spec.rb
344
362
  - spec/endpoints/authentication_api_client_spec.rb
363
+ - spec/endpoints/checkout_api_client_spec.rb
364
+ - spec/endpoints/payment_intent_api_client_spec.rb
365
+ - spec/endpoints/base_api_client_spec.rb
366
+ - spec/errors/api_response_retrieval_exception_spec.rb
345
367
  - spec/errors/api_error_response_exception_spec.rb
346
368
  - spec/errors/api_exception_spec.rb
347
- - spec/errors/api_response_retrieval_exception_spec.rb
369
+ - spec/models/payment_intent_models_spec.rb
370
+ - spec/models/model_base_spec.rb
348
371
  - spec/models/required_field_validation_spec.rb
349
- - spec/queries/get_commerce_cases_query_spec.rb
372
+ - spec/models/api_definition_conformance_spec.rb
350
373
  - spec/queries/get_checkouts_query_spec.rb
374
+ - spec/queries/get_commerce_cases_query_spec.rb
351
375
  - spec/request_header_generator_spec.rb
352
376
  - spec/spec_helper.rb
353
377
  - spec/transformer/apple_pay_transformer_spec.rb
@@ -1,34 +0,0 @@
1
- require 'date'
2
- require 'time'
3
-
4
- module PCPServerSDK
5
- module Models
6
- class ActionType
7
- REDIRECT = "REDIRECT".freeze # The customer needs to be redirected using the details found in redirectData
8
- SHOW_FORM = "SHOW_FORM".freeze # The customer needs to be shown a form with the fields found in formFields
9
- SHOW_INSTRUCTIONS = "SHOW_INSTRUCTIONS".freeze # The customer needs to be shown payment instruction using the details found in showData
10
- SHOW_TRANSACTION_RESULTS = "SHOW_TRANSACTION_RESULTS".freeze # The customer needs to be shown the transaction results using the details found in showData
11
- MOBILE_THREEDS_CHALLENGE = "MOBILE_THREEDS_CHALLENGE".freeze # The customer needs to complete a challenge as part of the 3D Secure authentication inside your mobile app
12
- CALL_THIRD_PARTY = "CALL_THIRD_PARTY".freeze # The merchant needs to call a third party using the data found in thirdPartyData
13
-
14
- def self.all_vars
15
- @all_vars ||= [REDIRECT, SHOW_FORM, SHOW_INSTRUCTIONS, SHOW_TRANSACTION_RESULTS, MOBILE_THREEDS_CHALLENGE, CALL_THIRD_PARTY].freeze
16
- end
17
-
18
- # Builds the enum from string
19
- # @param [String] The enum value in the form of the string
20
- # @return [String] The enum value
21
- def self.build_from_hash(value)
22
- new.build_from_hash(value)
23
- end
24
-
25
- # Builds the enum from string
26
- # @param [String] The enum value in the form of the string
27
- # @return [String] The enum value
28
- def build_from_hash(value)
29
- return value if ActionType.all_vars.include?(value)
30
- raise "Invalid ENUM value #{value} for class #ActionType"
31
- end
32
- end
33
- end
34
- end
@@ -1,52 +0,0 @@
1
- require 'date'
2
- require 'time'
3
-
4
- module PCPServerSDK
5
- module Models
6
- class AvsResult
7
- A = "A".freeze # Address (Street) matches, Zip does not
8
- B = "B".freeze # Street address match for international transactions—Postal code not verified due to incompatible formats
9
- C = "C".freeze # Street address and postal code not verified for international transaction due to incompatible formats
10
- D = "D".freeze # Street address and postal code match for international transaction, cardholder name is incorrect
11
- E = "E".freeze # AVS error
12
- F = "F".freeze # Address does match and five digit ZIP code does match (UK only)
13
- G = "G".freeze # Address information is unavailable; international transaction; non-AVS participant
14
- H = "H".freeze # Billing address and postal code match, cardholder name is incorrect (Amex)
15
- I = "I".freeze # Address information not verified for international transaction
16
- K = "K".freeze # Cardholder name matches (Amex)
17
- L = "L".freeze # Cardholder name and postal code match (Amex)
18
- M = "M".freeze # Cardholder name, street address, and postal code match for international transaction
19
- N = "N".freeze # No Match on Address (Street) or Zip
20
- O = "O".freeze # Cardholder name and address match (Amex)
21
- P = "P".freeze # Postal codes match for international transaction—Street address not verified due to incompatible formats
22
- Q = "Q".freeze # Billing address matches, cardholder is incorrect (Amex)
23
- R = "R".freeze # Retry, System unavailable or Timed out
24
- S = "S".freeze # Service not supported by issuer
25
- U = "U".freeze # Address information is unavailable
26
- W = "W".freeze # 9 digit Zip matches, Address (Street) does not
27
- X = "X".freeze # Exact AVS Match
28
- Y = "Y".freeze # Address (Street) and 5 digit Zip match
29
- Z = "Z".freeze # 5 digit Zip matches, Address (Street) does not
30
- ZERO = "0".freeze # No service available
31
-
32
- def self.all_vars
33
- @all_vars ||= [A, B, C, D, E, F, G, H, I, K, L, M, N, O, P, Q, R, S, U, W, X, Y, Z, ZERO].freeze
34
- end
35
-
36
- # Builds the enum from string
37
- # @param [String] The enum value in the form of the string
38
- # @return [String] The enum value
39
- def self.build_from_hash(value)
40
- new.build_from_hash(value)
41
- end
42
-
43
- # Builds the enum from string
44
- # @param [String] The enum value in the form of the string
45
- # @return [String] The enum value
46
- def build_from_hash(value)
47
- return value if AvsResult.all_vars.include?(value)
48
- raise "Invalid ENUM value #{value} for class #AvsResult"
49
- end
50
- end
51
- end
52
- end
@@ -1,30 +0,0 @@
1
- require 'date'
2
- require 'time'
3
-
4
- module PCPServerSDK
5
- module Models
6
- class BusinessRelation
7
- B2C = "B2C".freeze # Indicates business to consumer
8
- B2B = "B2B".freeze # Indicates business to business
9
-
10
- def self.all_vars
11
- @all_vars ||= [B2C, B2B].freeze
12
- end
13
-
14
- # Builds the enum from string
15
- # @param [String] The enum value in the form of the string
16
- # @return [String] The enum value
17
- def self.build_from_hash(value)
18
- new.build_from_hash(value)
19
- end
20
-
21
- # Builds the enum from string
22
- # @param [String] The enum value in the form of the string
23
- # @return [String] The enum value
24
- def build_from_hash(value)
25
- return value if BusinessRelation.all_vars.include?(value)
26
- raise "Invalid ENUM value #{value} for class #BusinessRelation"
27
- end
28
- end
29
- end
30
- end