paypal-server-sdk 0.5.2 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -18
  3. data/lib/paypal_server_sdk/controllers/base_controller.rb +1 -1
  4. data/lib/paypal_server_sdk/controllers/orders_controller.rb +64 -25
  5. data/lib/paypal_server_sdk/controllers/payments_controller.rb +53 -26
  6. data/lib/paypal_server_sdk/controllers/vault_controller.rb +4 -4
  7. data/lib/paypal_server_sdk/models/avs_code.rb +1 -1
  8. data/lib/paypal_server_sdk/models/blik_experience_context.rb +2 -2
  9. data/lib/paypal_server_sdk/models/blik_level0_payment_object.rb +2 -2
  10. data/lib/paypal_server_sdk/models/blik_one_click_payment_object.rb +2 -2
  11. data/lib/paypal_server_sdk/models/blik_one_click_payment_request.rb +2 -2
  12. data/lib/paypal_server_sdk/models/blik_payment_object.rb +4 -4
  13. data/lib/paypal_server_sdk/models/blik_payment_request.rb +8 -8
  14. data/lib/paypal_server_sdk/models/card_verification_details.rb +15 -2
  15. data/lib/paypal_server_sdk/models/card_verification_processor_response.rb +2 -2
  16. data/lib/paypal_server_sdk/models/confirm_order_request.rb +5 -8
  17. data/lib/paypal_server_sdk/models/cvv_code.rb +1 -1
  18. data/lib/paypal_server_sdk/models/eci_flag.rb +1 -1
  19. data/lib/paypal_server_sdk/models/eps_payment_object.rb +2 -2
  20. data/lib/paypal_server_sdk/models/eps_payment_request.rb +2 -2
  21. data/lib/paypal_server_sdk/models/{fullfillment_type.rb → fulfillment_type.rb} +2 -2
  22. data/lib/paypal_server_sdk/models/google_pay_card.rb +114 -0
  23. data/lib/paypal_server_sdk/models/google_pay_decrypted_token_data.rb +11 -2
  24. data/lib/paypal_server_sdk/models/ideal_payment_object.rb +2 -2
  25. data/lib/paypal_server_sdk/models/ideal_payment_request.rb +2 -2
  26. data/lib/paypal_server_sdk/models/link_description.rb +1 -1
  27. data/lib/paypal_server_sdk/models/link_http_method.rb +1 -1
  28. data/lib/paypal_server_sdk/models/{my_bank_payment_object.rb → mybank_payment_object.rb} +2 -2
  29. data/lib/paypal_server_sdk/models/{my_bank_payment_request.rb → mybank_payment_request.rb} +2 -2
  30. data/lib/paypal_server_sdk/models/network_token.rb +1 -1
  31. data/lib/paypal_server_sdk/models/order.rb +12 -12
  32. data/lib/paypal_server_sdk/models/order_authorize_request_payment_source.rb +2 -2
  33. data/lib/paypal_server_sdk/models/order_authorize_response.rb +10 -10
  34. data/lib/paypal_server_sdk/models/order_authorize_response_payment_source.rb +2 -2
  35. data/lib/paypal_server_sdk/models/order_capture_request_payment_source.rb +2 -2
  36. data/lib/paypal_server_sdk/models/pa_res_status.rb +1 -1
  37. data/lib/paypal_server_sdk/models/payment_source.rb +10 -10
  38. data/lib/paypal_server_sdk/models/payment_source_response.rb +10 -10
  39. data/lib/paypal_server_sdk/models/payment_token_response_payment_source.rb +2 -2
  40. data/lib/paypal_server_sdk/models/{pay_pal_experience_landing_page.rb → paypal_experience_landing_page.rb} +2 -2
  41. data/lib/paypal_server_sdk/models/{pay_pal_experience_user_action.rb → paypal_experience_user_action.rb} +2 -2
  42. data/lib/paypal_server_sdk/models/{pay_pal_payment_token.rb → paypal_payment_token.rb} +3 -3
  43. data/lib/paypal_server_sdk/models/{pay_pal_payment_token_customer_type.rb → paypal_payment_token_customer_type.rb} +2 -2
  44. data/lib/paypal_server_sdk/models/{pay_pal_payment_token_usage_pattern.rb → paypal_payment_token_usage_pattern.rb} +2 -2
  45. data/lib/paypal_server_sdk/models/{pay_pal_payment_token_usage_type.rb → paypal_payment_token_usage_type.rb} +2 -2
  46. data/lib/paypal_server_sdk/models/{pay_pal_wallet.rb → paypal_wallet.rb} +6 -6
  47. data/lib/paypal_server_sdk/models/{pay_pal_wallet_account_verification_status.rb → paypal_wallet_account_verification_status.rb} +2 -2
  48. data/lib/paypal_server_sdk/models/{pay_pal_wallet_attributes.rb → paypal_wallet_attributes.rb} +6 -6
  49. data/lib/paypal_server_sdk/models/{pay_pal_wallet_attributes_response.rb → paypal_wallet_attributes_response.rb} +4 -4
  50. data/lib/paypal_server_sdk/models/{pay_pal_wallet_customer.rb → paypal_wallet_customer.rb} +2 -2
  51. data/lib/paypal_server_sdk/models/{pay_pal_wallet_customer_request.rb → paypal_wallet_customer_request.rb} +3 -3
  52. data/lib/paypal_server_sdk/models/{pay_pal_wallet_experience_context.rb → paypal_wallet_experience_context.rb} +8 -8
  53. data/lib/paypal_server_sdk/models/{pay_pal_wallet_response.rb → paypal_wallet_response.rb} +5 -5
  54. data/lib/paypal_server_sdk/models/{pay_pal_wallet_vault_instruction.rb → paypal_wallet_vault_instruction.rb} +8 -8
  55. data/lib/paypal_server_sdk/models/{pay_pal_wallet_vault_response.rb → paypal_wallet_vault_response.rb} +5 -5
  56. data/lib/paypal_server_sdk/models/{pay_pal_wallet_vault_status.rb → paypal_wallet_vault_status.rb} +2 -2
  57. data/lib/paypal_server_sdk/models/portable_postal_address_medium_grained.rb +116 -0
  58. data/lib/paypal_server_sdk/models/processor_response.rb +2 -2
  59. data/lib/paypal_server_sdk/models/setup_token_request_payment_source.rb +2 -2
  60. data/lib/paypal_server_sdk/models/setup_token_response_payment_source.rb +2 -2
  61. data/lib/paypal_server_sdk/models/shipment_carrier.rb +325 -1
  62. data/lib/paypal_server_sdk/models/shipping_details.rb +1 -1
  63. data/lib/paypal_server_sdk/models/shipping_with_tracking_details.rb +1 -1
  64. data/lib/paypal_server_sdk/models/three_d_secure_authentication_response.rb +1 -1
  65. data/lib/paypal_server_sdk/models/universal_product_code.rb +1 -1
  66. data/lib/paypal_server_sdk/models/upc_type.rb +1 -1
  67. data/lib/paypal_server_sdk/models/{vault_pay_pal_wallet_request.rb → vault_paypal_wallet_request.rb} +2 -2
  68. data/lib/paypal_server_sdk/models/vaulted_digital_wallet_shipping_details.rb +1 -1
  69. data/lib/paypal_server_sdk.rb +24 -22
  70. metadata +25 -24
  71. data/lib/paypal_server_sdk/models/processing_instruction.rb +0 -23
@@ -94,8 +94,8 @@ require_relative 'paypal_server_sdk/models/level2_card_processing_data'
94
94
  require_relative 'paypal_server_sdk/models/level3_card_processing_data'
95
95
  require_relative 'paypal_server_sdk/models/line_item'
96
96
  require_relative 'paypal_server_sdk/models/money'
97
- require_relative 'paypal_server_sdk/models/my_bank_payment_object'
98
- require_relative 'paypal_server_sdk/models/my_bank_payment_request'
97
+ require_relative 'paypal_server_sdk/models/mybank_payment_object'
98
+ require_relative 'paypal_server_sdk/models/mybank_payment_request'
99
99
  require_relative 'paypal_server_sdk/models/net_amount_breakdown_item'
100
100
  require_relative 'paypal_server_sdk/models/network_token'
101
101
  require_relative 'paypal_server_sdk/models/network_transaction_reference'
@@ -119,13 +119,13 @@ require_relative 'paypal_server_sdk/models/payment_instruction'
119
119
  require_relative 'paypal_server_sdk/models/payment_method_preference'
120
120
  require_relative 'paypal_server_sdk/models/payment_source'
121
121
  require_relative 'paypal_server_sdk/models/payment_source_response'
122
- require_relative 'paypal_server_sdk/models/pay_pal_wallet'
123
- require_relative 'paypal_server_sdk/models/pay_pal_wallet_attributes'
124
- require_relative 'paypal_server_sdk/models/pay_pal_wallet_attributes_response'
125
- require_relative 'paypal_server_sdk/models/pay_pal_wallet_customer'
126
- require_relative 'paypal_server_sdk/models/pay_pal_wallet_experience_context'
127
- require_relative 'paypal_server_sdk/models/pay_pal_wallet_response'
128
- require_relative 'paypal_server_sdk/models/pay_pal_wallet_vault_response'
122
+ require_relative 'paypal_server_sdk/models/paypal_wallet'
123
+ require_relative 'paypal_server_sdk/models/paypal_wallet_attributes'
124
+ require_relative 'paypal_server_sdk/models/paypal_wallet_attributes_response'
125
+ require_relative 'paypal_server_sdk/models/paypal_wallet_customer'
126
+ require_relative 'paypal_server_sdk/models/paypal_wallet_experience_context'
127
+ require_relative 'paypal_server_sdk/models/paypal_wallet_response'
128
+ require_relative 'paypal_server_sdk/models/paypal_wallet_vault_response'
129
129
  require_relative 'paypal_server_sdk/models/phone_number'
130
130
  require_relative 'paypal_server_sdk/models/phone_with_type'
131
131
  require_relative 'paypal_server_sdk/models/processor_response'
@@ -164,6 +164,7 @@ require_relative 'paypal_server_sdk/models/venmo_wallet_request'
164
164
  require_relative 'paypal_server_sdk/models/venmo_wallet_response'
165
165
  require_relative 'paypal_server_sdk/models/address'
166
166
  require_relative 'paypal_server_sdk/models/apple_pay_tokenized_card'
167
+ require_relative 'paypal_server_sdk/models/google_pay_card'
167
168
  require_relative 'paypal_server_sdk/models/google_pay_card_attributes'
168
169
  require_relative 'paypal_server_sdk/models/google_pay_request_card'
169
170
  require_relative 'paypal_server_sdk/models/name'
@@ -172,9 +173,11 @@ require_relative 'paypal_server_sdk/models/' \
172
173
  require_relative 'paypal_server_sdk/models/' \
173
174
  'order_authorize_response_payment_source'
174
175
  require_relative 'paypal_server_sdk/models/order_capture_request_payment_source'
175
- require_relative 'paypal_server_sdk/models/pay_pal_wallet_customer_request'
176
- require_relative 'paypal_server_sdk/models/pay_pal_wallet_vault_instruction'
176
+ require_relative 'paypal_server_sdk/models/paypal_wallet_customer_request'
177
+ require_relative 'paypal_server_sdk/models/paypal_wallet_vault_instruction'
177
178
  require_relative 'paypal_server_sdk/models/phone_number_with_country_code'
179
+ require_relative 'paypal_server_sdk/models/' \
180
+ 'portable_postal_address_medium_grained'
178
181
  require_relative 'paypal_server_sdk/models/shipping_name'
179
182
  require_relative 'paypal_server_sdk/models/vault_customer'
180
183
  require_relative 'paypal_server_sdk/models/venmo_wallet_customer_information'
@@ -204,8 +207,8 @@ require_relative 'paypal_server_sdk/models/' \
204
207
  'payment_token_response_payment_source'
205
208
  require_relative 'paypal_server_sdk/models/payment_token_request'
206
209
  require_relative 'paypal_server_sdk/models/payment_token_response'
207
- require_relative 'paypal_server_sdk/models/vault_pay_pal_wallet_request'
208
- require_relative 'paypal_server_sdk/models/pay_pal_payment_token'
210
+ require_relative 'paypal_server_sdk/models/vault_paypal_wallet_request'
211
+ require_relative 'paypal_server_sdk/models/paypal_payment_token'
209
212
  require_relative 'paypal_server_sdk/models/phone'
210
213
  require_relative 'paypal_server_sdk/models/setup_token_request'
211
214
  require_relative 'paypal_server_sdk/models/setup_token_response'
@@ -239,7 +242,6 @@ require_relative 'paypal_server_sdk/models/pa_res_status'
239
242
  require_relative 'paypal_server_sdk/models/payee_payment_method_preference'
240
243
  require_relative 'paypal_server_sdk/models/payment_initiator'
241
244
  require_relative 'paypal_server_sdk/models/phone_type'
242
- require_relative 'paypal_server_sdk/models/processing_instruction'
243
245
  require_relative 'paypal_server_sdk/models/shipment_carrier'
244
246
  require_relative 'paypal_server_sdk/models/shipping_type'
245
247
  require_relative 'paypal_server_sdk/models/store_in_vault_instruction'
@@ -254,7 +256,7 @@ require_relative 'paypal_server_sdk/models/capture_incomplete_reason'
254
256
  require_relative 'paypal_server_sdk/models/capture_status'
255
257
  require_relative 'paypal_server_sdk/models/card_verification_method'
256
258
  require_relative 'paypal_server_sdk/models/cvv_code'
257
- require_relative 'paypal_server_sdk/models/fullfillment_type'
259
+ require_relative 'paypal_server_sdk/models/fulfillment_type'
258
260
  require_relative 'paypal_server_sdk/models/google_pay_authentication_method'
259
261
  require_relative 'paypal_server_sdk/models/google_pay_payment_method'
260
262
  require_relative 'paypal_server_sdk/models/item_category'
@@ -267,14 +269,14 @@ require_relative 'paypal_server_sdk/models/' \
267
269
  'order_application_context_user_action'
268
270
  require_relative 'paypal_server_sdk/models/patch_op'
269
271
  require_relative 'paypal_server_sdk/models/payment_advice_code'
270
- require_relative 'paypal_server_sdk/models/pay_pal_experience_landing_page'
271
- require_relative 'paypal_server_sdk/models/pay_pal_experience_user_action'
272
- require_relative 'paypal_server_sdk/models/pay_pal_payment_token_customer_type'
273
- require_relative 'paypal_server_sdk/models/pay_pal_payment_token_usage_pattern'
274
- require_relative 'paypal_server_sdk/models/pay_pal_payment_token_usage_type'
272
+ require_relative 'paypal_server_sdk/models/paypal_experience_landing_page'
273
+ require_relative 'paypal_server_sdk/models/paypal_experience_user_action'
274
+ require_relative 'paypal_server_sdk/models/paypal_payment_token_customer_type'
275
+ require_relative 'paypal_server_sdk/models/paypal_payment_token_usage_pattern'
276
+ require_relative 'paypal_server_sdk/models/paypal_payment_token_usage_type'
275
277
  require_relative 'paypal_server_sdk/models/' \
276
- 'pay_pal_wallet_account_verification_status'
277
- require_relative 'paypal_server_sdk/models/pay_pal_wallet_vault_status'
278
+ 'paypal_wallet_account_verification_status'
279
+ require_relative 'paypal_server_sdk/models/paypal_wallet_vault_status'
278
280
  require_relative 'paypal_server_sdk/models/processor_response_code'
279
281
  require_relative 'paypal_server_sdk/models/refund_incomplete_reason'
280
282
  require_relative 'paypal_server_sdk/models/refund_status'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paypal-server-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-01 00:00:00.000000000 Z
11
+ date: 2024-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apimatic_core_interfaces
@@ -158,10 +158,11 @@ files:
158
158
  - lib/paypal_server_sdk/models/error_details.rb
159
159
  - lib/paypal_server_sdk/models/exchange_rate.rb
160
160
  - lib/paypal_server_sdk/models/experience_context.rb
161
- - lib/paypal_server_sdk/models/fullfillment_type.rb
161
+ - lib/paypal_server_sdk/models/fulfillment_type.rb
162
162
  - lib/paypal_server_sdk/models/giropay_payment_object.rb
163
163
  - lib/paypal_server_sdk/models/giropay_payment_request.rb
164
164
  - lib/paypal_server_sdk/models/google_pay_authentication_method.rb
165
+ - lib/paypal_server_sdk/models/google_pay_card.rb
165
166
  - lib/paypal_server_sdk/models/google_pay_card_attributes.rb
166
167
  - lib/paypal_server_sdk/models/google_pay_card_response.rb
167
168
  - lib/paypal_server_sdk/models/google_pay_decrypted_token_data.rb
@@ -180,8 +181,8 @@ files:
180
181
  - lib/paypal_server_sdk/models/link_description.rb
181
182
  - lib/paypal_server_sdk/models/link_http_method.rb
182
183
  - lib/paypal_server_sdk/models/money.rb
183
- - lib/paypal_server_sdk/models/my_bank_payment_object.rb
184
- - lib/paypal_server_sdk/models/my_bank_payment_request.rb
184
+ - lib/paypal_server_sdk/models/mybank_payment_object.rb
185
+ - lib/paypal_server_sdk/models/mybank_payment_request.rb
185
186
  - lib/paypal_server_sdk/models/name.rb
186
187
  - lib/paypal_server_sdk/models/net_amount_breakdown_item.rb
187
188
  - lib/paypal_server_sdk/models/network_token.rb
@@ -212,23 +213,6 @@ files:
212
213
  - lib/paypal_server_sdk/models/pa_res_status.rb
213
214
  - lib/paypal_server_sdk/models/patch.rb
214
215
  - lib/paypal_server_sdk/models/patch_op.rb
215
- - lib/paypal_server_sdk/models/pay_pal_experience_landing_page.rb
216
- - lib/paypal_server_sdk/models/pay_pal_experience_user_action.rb
217
- - lib/paypal_server_sdk/models/pay_pal_payment_token.rb
218
- - lib/paypal_server_sdk/models/pay_pal_payment_token_customer_type.rb
219
- - lib/paypal_server_sdk/models/pay_pal_payment_token_usage_pattern.rb
220
- - lib/paypal_server_sdk/models/pay_pal_payment_token_usage_type.rb
221
- - lib/paypal_server_sdk/models/pay_pal_wallet.rb
222
- - lib/paypal_server_sdk/models/pay_pal_wallet_account_verification_status.rb
223
- - lib/paypal_server_sdk/models/pay_pal_wallet_attributes.rb
224
- - lib/paypal_server_sdk/models/pay_pal_wallet_attributes_response.rb
225
- - lib/paypal_server_sdk/models/pay_pal_wallet_customer.rb
226
- - lib/paypal_server_sdk/models/pay_pal_wallet_customer_request.rb
227
- - lib/paypal_server_sdk/models/pay_pal_wallet_experience_context.rb
228
- - lib/paypal_server_sdk/models/pay_pal_wallet_response.rb
229
- - lib/paypal_server_sdk/models/pay_pal_wallet_vault_instruction.rb
230
- - lib/paypal_server_sdk/models/pay_pal_wallet_vault_response.rb
231
- - lib/paypal_server_sdk/models/pay_pal_wallet_vault_status.rb
232
216
  - lib/paypal_server_sdk/models/payee.rb
233
217
  - lib/paypal_server_sdk/models/payee_base.rb
234
218
  - lib/paypal_server_sdk/models/payee_payment_method_preference.rb
@@ -248,13 +232,30 @@ files:
248
232
  - lib/paypal_server_sdk/models/payment_token_request_payment_source.rb
249
233
  - lib/paypal_server_sdk/models/payment_token_response.rb
250
234
  - lib/paypal_server_sdk/models/payment_token_response_payment_source.rb
235
+ - lib/paypal_server_sdk/models/paypal_experience_landing_page.rb
236
+ - lib/paypal_server_sdk/models/paypal_experience_user_action.rb
237
+ - lib/paypal_server_sdk/models/paypal_payment_token.rb
238
+ - lib/paypal_server_sdk/models/paypal_payment_token_customer_type.rb
239
+ - lib/paypal_server_sdk/models/paypal_payment_token_usage_pattern.rb
240
+ - lib/paypal_server_sdk/models/paypal_payment_token_usage_type.rb
241
+ - lib/paypal_server_sdk/models/paypal_wallet.rb
242
+ - lib/paypal_server_sdk/models/paypal_wallet_account_verification_status.rb
243
+ - lib/paypal_server_sdk/models/paypal_wallet_attributes.rb
244
+ - lib/paypal_server_sdk/models/paypal_wallet_attributes_response.rb
245
+ - lib/paypal_server_sdk/models/paypal_wallet_customer.rb
246
+ - lib/paypal_server_sdk/models/paypal_wallet_customer_request.rb
247
+ - lib/paypal_server_sdk/models/paypal_wallet_experience_context.rb
248
+ - lib/paypal_server_sdk/models/paypal_wallet_response.rb
249
+ - lib/paypal_server_sdk/models/paypal_wallet_vault_instruction.rb
250
+ - lib/paypal_server_sdk/models/paypal_wallet_vault_response.rb
251
+ - lib/paypal_server_sdk/models/paypal_wallet_vault_status.rb
251
252
  - lib/paypal_server_sdk/models/phone.rb
252
253
  - lib/paypal_server_sdk/models/phone_number.rb
253
254
  - lib/paypal_server_sdk/models/phone_number_with_country_code.rb
254
255
  - lib/paypal_server_sdk/models/phone_type.rb
255
256
  - lib/paypal_server_sdk/models/phone_with_type.rb
256
257
  - lib/paypal_server_sdk/models/platform_fee.rb
257
- - lib/paypal_server_sdk/models/processing_instruction.rb
258
+ - lib/paypal_server_sdk/models/portable_postal_address_medium_grained.rb
258
259
  - lib/paypal_server_sdk/models/processor_response.rb
259
260
  - lib/paypal_server_sdk/models/processor_response_code.rb
260
261
  - lib/paypal_server_sdk/models/purchase_unit.rb
@@ -310,7 +311,7 @@ files:
310
311
  - lib/paypal_server_sdk/models/vault_experience_context.rb
311
312
  - lib/paypal_server_sdk/models/vault_instruction.rb
312
313
  - lib/paypal_server_sdk/models/vault_instruction_base.rb
313
- - lib/paypal_server_sdk/models/vault_pay_pal_wallet_request.rb
314
+ - lib/paypal_server_sdk/models/vault_paypal_wallet_request.rb
314
315
  - lib/paypal_server_sdk/models/vault_response.rb
315
316
  - lib/paypal_server_sdk/models/vault_status.rb
316
317
  - lib/paypal_server_sdk/models/vault_token_request.rb
@@ -1,23 +0,0 @@
1
- # paypal_server_sdk
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- module PaypalServerSdk
7
- # The instruction to process an order.
8
- class ProcessingInstruction
9
- PROCESSING_INSTRUCTION = [
10
- # TODO: Write general description for ORDER_COMPLETE_ON_PAYMENT_APPROVAL
11
- ORDER_COMPLETE_ON_PAYMENT_APPROVAL = 'ORDER_COMPLETE_ON_PAYMENT_APPROVAL'.freeze,
12
-
13
- # TODO: Write general description for NO_INSTRUCTION
14
- NO_INSTRUCTION = 'NO_INSTRUCTION'.freeze
15
- ].freeze
16
-
17
- def self.validate(value)
18
- return false if value.nil?
19
-
20
- true
21
- end
22
- end
23
- end