paypal-server-sdk 0.6.0 → 0.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/LICENSE +34 -34
- data/README.md +19 -30
- data/lib/paypal_server_sdk/controllers/base_controller.rb +1 -1
- data/lib/paypal_server_sdk/controllers/orders_controller.rb +228 -234
- data/lib/paypal_server_sdk/controllers/payments_controller.rb +139 -91
- data/lib/paypal_server_sdk/controllers/vault_controller.rb +57 -57
- data/lib/paypal_server_sdk/exceptions/api_exception.rb +11 -0
- data/lib/paypal_server_sdk/exceptions/error_exception.rb +14 -0
- data/lib/paypal_server_sdk/exceptions/o_auth_provider_exception.rb +14 -0
- data/lib/paypal_server_sdk/models/activity_timestamps.rb +17 -6
- data/lib/paypal_server_sdk/models/address.rb +24 -9
- data/lib/paypal_server_sdk/models/amount_breakdown.rb +17 -0
- data/lib/paypal_server_sdk/models/amount_with_breakdown.rb +22 -9
- data/lib/paypal_server_sdk/models/apple_pay_attributes.rb +12 -0
- data/lib/paypal_server_sdk/models/apple_pay_attributes_response.rb +12 -0
- data/lib/paypal_server_sdk/models/apple_pay_card.rb +14 -0
- data/lib/paypal_server_sdk/models/apple_pay_card_response.rb +48 -6
- data/lib/paypal_server_sdk/models/apple_pay_decrypted_token_data.rb +16 -0
- data/lib/paypal_server_sdk/models/apple_pay_payment_data.rb +14 -0
- data/lib/paypal_server_sdk/models/apple_pay_payment_data_type.rb +6 -2
- data/lib/paypal_server_sdk/models/apple_pay_payment_object.rb +43 -7
- data/lib/paypal_server_sdk/models/apple_pay_payment_token.rb +12 -0
- data/lib/paypal_server_sdk/models/apple_pay_request.rb +27 -13
- data/lib/paypal_server_sdk/models/apple_pay_tokenized_card.rb +15 -0
- data/lib/paypal_server_sdk/models/assurance_details.rb +14 -0
- data/lib/paypal_server_sdk/models/authentication_response.rb +13 -0
- data/lib/paypal_server_sdk/models/authorization.rb +28 -9
- data/lib/paypal_server_sdk/models/authorization_incomplete_reason.rb +2 -2
- data/lib/paypal_server_sdk/models/authorization_status.rb +12 -6
- data/lib/paypal_server_sdk/models/authorization_status_details.rb +12 -0
- data/lib/paypal_server_sdk/models/authorization_status_with_details.rb +12 -0
- data/lib/paypal_server_sdk/models/authorization_with_additional_data.rb +29 -9
- data/lib/paypal_server_sdk/models/avs_code.rb +102 -71
- data/lib/paypal_server_sdk/models/bancontact_payment_object.rb +19 -5
- data/lib/paypal_server_sdk/models/bancontact_payment_request.rb +18 -5
- data/lib/paypal_server_sdk/models/base_model.rb +76 -28
- data/lib/paypal_server_sdk/models/billing_cycle.rb +129 -0
- data/lib/paypal_server_sdk/models/bin_details.rb +18 -5
- data/lib/paypal_server_sdk/models/blik_experience_context.rb +17 -0
- data/lib/paypal_server_sdk/models/blik_level0_payment_object.rb +12 -0
- data/lib/paypal_server_sdk/models/blik_one_click_payment_object.rb +12 -0
- data/lib/paypal_server_sdk/models/blik_one_click_payment_request.rb +15 -0
- data/lib/paypal_server_sdk/models/blik_payment_object.rb +22 -10
- data/lib/paypal_server_sdk/models/blik_payment_request.rb +24 -10
- data/lib/paypal_server_sdk/models/callback_configuration.rb +75 -0
- data/lib/paypal_server_sdk/models/callback_events.rb +27 -0
- data/lib/paypal_server_sdk/models/capture_incomplete_reason.rb +22 -14
- data/lib/paypal_server_sdk/models/capture_payment_instruction.rb +15 -0
- data/lib/paypal_server_sdk/models/capture_request.rb +17 -0
- data/lib/paypal_server_sdk/models/capture_status.rb +10 -6
- data/lib/paypal_server_sdk/models/capture_status_details.rb +12 -0
- data/lib/paypal_server_sdk/models/capture_status_with_details.rb +12 -0
- data/lib/paypal_server_sdk/models/captured_payment.rb +36 -10
- data/lib/paypal_server_sdk/models/card_attributes.rb +13 -0
- data/lib/paypal_server_sdk/models/card_attributes_response.rb +12 -0
- data/lib/paypal_server_sdk/models/card_authentication_response.rb +14 -2
- data/lib/paypal_server_sdk/models/card_brand.rb +29 -25
- data/lib/paypal_server_sdk/models/card_customer_information.rb +18 -5
- data/lib/paypal_server_sdk/models/card_experience_context.rb +12 -0
- data/lib/paypal_server_sdk/models/card_from_request.rb +12 -0
- data/lib/paypal_server_sdk/models/{card_response_entity.rb → card_payment_token_entity.rb} +37 -15
- data/lib/paypal_server_sdk/models/card_request.rb +32 -17
- data/lib/paypal_server_sdk/models/card_response.rb +43 -2
- data/lib/paypal_server_sdk/models/{address_details.rb → card_response_address.rb} +33 -57
- data/lib/paypal_server_sdk/models/card_stored_credential.rb +23 -7
- data/lib/paypal_server_sdk/models/card_supplementary_data.rb +13 -5
- data/lib/paypal_server_sdk/models/card_type.rb +5 -5
- data/lib/paypal_server_sdk/models/card_vault_response.rb +13 -0
- data/lib/paypal_server_sdk/models/card_verification.rb +16 -3
- data/lib/paypal_server_sdk/models/card_verification_details.rb +40 -11
- data/lib/paypal_server_sdk/models/card_verification_processor_response.rb +12 -0
- data/lib/paypal_server_sdk/models/card_verification_status.rb +23 -0
- data/lib/paypal_server_sdk/models/checkout_payment_intent.rb +10 -2
- data/lib/paypal_server_sdk/models/cobranded_card.rb +13 -0
- data/lib/paypal_server_sdk/models/confirm_order_request.rb +15 -15
- data/lib/paypal_server_sdk/models/{customer_request.rb → customer.rb} +18 -4
- data/lib/paypal_server_sdk/models/customer_information.rb +17 -5
- data/lib/paypal_server_sdk/models/customer_response.rb +76 -0
- data/lib/paypal_server_sdk/models/customer_vault_payment_tokens_response.rb +21 -4
- data/lib/paypal_server_sdk/models/cvv_code.rb +35 -27
- data/lib/paypal_server_sdk/models/disbursement_mode.rb +5 -2
- data/lib/paypal_server_sdk/models/dispute_category.rb +2 -2
- data/lib/paypal_server_sdk/models/eci_flag.rb +6 -8
- data/lib/paypal_server_sdk/models/enrollment_status.rb +11 -8
- data/lib/paypal_server_sdk/models/eps_payment_object.rb +17 -5
- data/lib/paypal_server_sdk/models/eps_payment_request.rb +18 -5
- data/lib/paypal_server_sdk/models/error_details.rb +15 -0
- data/lib/paypal_server_sdk/models/exchange_rate.rb +14 -0
- data/lib/paypal_server_sdk/models/experience_context.rb +15 -0
- data/lib/paypal_server_sdk/models/fulfillment_type.rb +36 -0
- data/lib/paypal_server_sdk/models/giropay_payment_object.rb +17 -5
- data/lib/paypal_server_sdk/models/giropay_payment_request.rb +18 -5
- data/lib/paypal_server_sdk/models/google_pay_authentication_method.rb +8 -2
- data/lib/paypal_server_sdk/models/google_pay_card.rb +128 -0
- data/lib/paypal_server_sdk/models/google_pay_card_response.rb +16 -0
- data/lib/paypal_server_sdk/models/google_pay_decrypted_token_data.rb +28 -2
- data/lib/paypal_server_sdk/models/google_pay_payment_method.rb +1 -1
- data/lib/paypal_server_sdk/models/google_pay_request.rb +22 -17
- data/lib/paypal_server_sdk/models/google_pay_request_card.rb +14 -0
- data/lib/paypal_server_sdk/models/google_pay_wallet_response.rb +18 -5
- data/lib/paypal_server_sdk/models/ideal_payment_object.rb +18 -5
- data/lib/paypal_server_sdk/models/ideal_payment_request.rb +18 -5
- data/lib/paypal_server_sdk/models/item.rb +17 -0
- data/lib/paypal_server_sdk/models/item_category.rb +6 -3
- data/lib/paypal_server_sdk/models/level2_card_processing_data.rb +12 -0
- data/lib/paypal_server_sdk/models/level3_card_processing_data.rb +17 -0
- data/lib/paypal_server_sdk/models/liability_shift_indicator.rb +3 -3
- data/lib/paypal_server_sdk/models/line_item.rb +21 -0
- data/lib/paypal_server_sdk/models/link_description.rb +12 -0
- data/lib/paypal_server_sdk/models/money.rb +16 -4
- data/lib/paypal_server_sdk/models/mybank_payment_object.rb +18 -5
- data/lib/paypal_server_sdk/models/mybank_payment_request.rb +18 -5
- data/lib/paypal_server_sdk/models/name.rb +12 -0
- data/lib/paypal_server_sdk/models/net_amount_breakdown_item.rb +14 -0
- data/lib/paypal_server_sdk/models/network_token.rb +15 -0
- data/lib/paypal_server_sdk/models/network_transaction_reference.rb +14 -0
- data/lib/paypal_server_sdk/models/network_transaction_reference_entity.rb +15 -3
- data/lib/paypal_server_sdk/models/one_time_charge.rb +118 -0
- data/lib/paypal_server_sdk/models/order.rb +28 -25
- data/lib/paypal_server_sdk/models/order_application_context.rb +40 -25
- data/lib/paypal_server_sdk/models/order_application_context_landing_page.rb +10 -3
- data/lib/paypal_server_sdk/models/order_application_context_shipping_preference.rb +14 -10
- data/lib/paypal_server_sdk/models/order_application_context_user_action.rb +11 -6
- data/lib/paypal_server_sdk/models/order_authorize_request.rb +12 -0
- data/lib/paypal_server_sdk/models/order_authorize_request_payment_source.rb +20 -9
- data/lib/paypal_server_sdk/models/order_authorize_response.rb +26 -23
- data/lib/paypal_server_sdk/models/order_authorize_response_payment_source.rb +14 -0
- data/lib/paypal_server_sdk/models/order_capture_request.rb +12 -0
- data/lib/paypal_server_sdk/models/order_capture_request_payment_source.rb +20 -9
- data/lib/paypal_server_sdk/models/order_confirm_application_context.rb +21 -8
- data/lib/paypal_server_sdk/models/order_request.rb +18 -4
- data/lib/paypal_server_sdk/models/order_status.rb +19 -6
- data/lib/paypal_server_sdk/models/order_tracker_item.rb +15 -0
- data/lib/paypal_server_sdk/models/order_tracker_request.rb +22 -5
- data/lib/paypal_server_sdk/models/order_tracker_response.rb +19 -6
- data/lib/paypal_server_sdk/models/order_tracker_status.rb +5 -2
- data/lib/paypal_server_sdk/models/order_update_callback_error_response.rb +89 -0
- data/lib/paypal_server_sdk/models/order_update_callback_error_response_details.rb +81 -0
- data/lib/paypal_server_sdk/models/order_update_callback_request.rb +111 -0
- data/lib/paypal_server_sdk/models/order_update_callback_response.rb +72 -0
- data/lib/paypal_server_sdk/models/order_update_callback_shipping_address.rb +107 -0
- data/lib/paypal_server_sdk/models/order_update_callback_shipping_option.rb +93 -0
- data/lib/paypal_server_sdk/models/{capture.rb → orders_capture.rb} +46 -22
- data/lib/paypal_server_sdk/models/orders_card_verification_method.rb +51 -0
- data/lib/paypal_server_sdk/models/p24_payment_object.rb +24 -10
- data/lib/paypal_server_sdk/models/p24_payment_request.rb +22 -10
- data/lib/paypal_server_sdk/models/pa_res_status.rb +16 -16
- data/lib/paypal_server_sdk/models/participant_metadata.rb +64 -0
- data/lib/paypal_server_sdk/models/patch.rb +20 -10
- data/lib/paypal_server_sdk/models/patch_op.rb +43 -6
- data/lib/paypal_server_sdk/models/payee_base.rb +17 -5
- data/lib/paypal_server_sdk/models/payee_payment_method_preference.rb +4 -2
- data/lib/paypal_server_sdk/models/payer.rb +20 -5
- data/lib/paypal_server_sdk/models/payer_base.rb +16 -5
- data/lib/paypal_server_sdk/models/payment_advice_code.rb +53 -8
- data/lib/paypal_server_sdk/models/payment_authorization.rb +32 -11
- data/lib/paypal_server_sdk/models/payment_collection.rb +16 -2
- data/lib/paypal_server_sdk/models/payment_initiator.rb +5 -2
- data/lib/paypal_server_sdk/models/payment_instruction.rb +16 -0
- data/lib/paypal_server_sdk/models/payment_method_preference.rb +14 -0
- data/lib/paypal_server_sdk/models/payment_source.rb +25 -9
- data/lib/paypal_server_sdk/models/payment_source_response.rb +19 -0
- data/lib/paypal_server_sdk/models/payment_supplementary_data.rb +12 -0
- data/lib/paypal_server_sdk/models/payment_token_request.rb +17 -3
- data/lib/paypal_server_sdk/models/payment_token_request_card.rb +17 -22
- data/lib/paypal_server_sdk/models/payment_token_request_payment_source.rb +12 -0
- data/lib/paypal_server_sdk/models/payment_token_response.rb +18 -3
- data/lib/paypal_server_sdk/models/payment_token_response_payment_source.rb +18 -14
- data/lib/paypal_server_sdk/models/payment_token_status.rb +36 -0
- data/lib/paypal_server_sdk/models/payments_capture.rb +252 -0
- data/lib/paypal_server_sdk/models/payments_payment_advice_code.rb +42 -0
- data/lib/paypal_server_sdk/models/payments_processor_response.rb +98 -0
- data/lib/paypal_server_sdk/models/paypal_experience_landing_page.rb +11 -3
- data/lib/paypal_server_sdk/models/paypal_experience_user_action.rb +9 -4
- data/lib/paypal_server_sdk/models/paypal_payment_token.rb +38 -8
- data/lib/paypal_server_sdk/models/paypal_payment_token_customer_type.rb +7 -3
- data/lib/paypal_server_sdk/models/paypal_payment_token_usage_type.rb +7 -3
- data/lib/paypal_server_sdk/models/paypal_wallet.rb +41 -11
- data/lib/paypal_server_sdk/models/paypal_wallet_account_verification_status.rb +6 -2
- data/lib/paypal_server_sdk/models/paypal_wallet_attributes.rb +12 -0
- data/lib/paypal_server_sdk/models/paypal_wallet_attributes_response.rb +12 -0
- data/lib/paypal_server_sdk/models/paypal_wallet_context_shipping_preference.rb +31 -0
- data/lib/paypal_server_sdk/models/paypal_wallet_customer.rb +18 -5
- data/lib/paypal_server_sdk/models/paypal_wallet_customer_request.rb +18 -5
- data/lib/paypal_server_sdk/models/paypal_wallet_experience_context.rb +45 -12
- data/lib/paypal_server_sdk/models/paypal_wallet_response.rb +39 -7
- data/lib/paypal_server_sdk/models/paypal_wallet_stored_credential.rb +98 -0
- data/lib/paypal_server_sdk/models/paypal_wallet_vault_instruction.rb +18 -1
- data/lib/paypal_server_sdk/models/paypal_wallet_vault_response.rb +13 -0
- data/lib/paypal_server_sdk/models/paypal_wallet_vault_status.rb +8 -3
- data/lib/paypal_server_sdk/models/phone.rb +14 -0
- data/lib/paypal_server_sdk/models/phone_number.rb +12 -0
- data/lib/paypal_server_sdk/models/phone_number_with_country_code.rb +15 -0
- data/lib/paypal_server_sdk/models/phone_with_type.rb +13 -0
- data/lib/paypal_server_sdk/models/plan.rb +102 -0
- data/lib/paypal_server_sdk/models/platform_fee.rb +12 -0
- data/lib/paypal_server_sdk/models/pricing_model.rb +28 -0
- data/lib/paypal_server_sdk/models/pricing_scheme.rb +84 -0
- data/lib/paypal_server_sdk/models/processor_response.rb +15 -0
- data/lib/paypal_server_sdk/models/processor_response_code.rb +312 -308
- data/lib/paypal_server_sdk/models/purchase_unit.rb +43 -25
- data/lib/paypal_server_sdk/models/purchase_unit_request.rb +36 -20
- data/lib/paypal_server_sdk/models/reauthorize_request.rb +19 -8
- data/lib/paypal_server_sdk/models/refund.rb +25 -6
- data/lib/paypal_server_sdk/models/refund_incomplete_reason.rb +2 -1
- data/lib/paypal_server_sdk/models/refund_payment_instruction.rb +12 -0
- data/lib/paypal_server_sdk/models/refund_platform_fee.rb +12 -0
- data/lib/paypal_server_sdk/models/refund_request.rb +17 -2
- data/lib/paypal_server_sdk/models/refund_status.rb +4 -4
- data/lib/paypal_server_sdk/models/refund_status_details.rb +12 -0
- data/lib/paypal_server_sdk/models/refund_status_with_details.rb +12 -0
- data/lib/paypal_server_sdk/models/related_identifiers.rb +14 -0
- data/lib/paypal_server_sdk/models/risk_supplementary_data.rb +63 -0
- data/lib/paypal_server_sdk/models/seller_payable_breakdown.rb +21 -0
- data/lib/paypal_server_sdk/models/seller_protection.rb +13 -0
- data/lib/paypal_server_sdk/models/seller_protection_status.rb +6 -3
- data/lib/paypal_server_sdk/models/seller_receivable_breakdown.rb +18 -0
- data/lib/paypal_server_sdk/models/setup_token_card_experience_context.rb +21 -5
- data/lib/paypal_server_sdk/models/setup_token_request.rb +17 -3
- data/lib/paypal_server_sdk/models/setup_token_request_card.rb +20 -18
- data/lib/paypal_server_sdk/models/setup_token_request_payment_source.rb +13 -0
- data/lib/paypal_server_sdk/models/setup_token_response.rb +23 -16
- data/lib/paypal_server_sdk/models/setup_token_response_card.rb +25 -3
- data/lib/paypal_server_sdk/models/setup_token_response_payment_source.rb +13 -0
- data/lib/paypal_server_sdk/models/shipment_carrier.rb +1594 -1295
- data/lib/paypal_server_sdk/models/shipping_details.rb +30 -3
- data/lib/paypal_server_sdk/models/shipping_name.rb +12 -0
- data/lib/paypal_server_sdk/models/shipping_option.rb +14 -0
- data/lib/paypal_server_sdk/models/shipping_options_purchase_unit.rb +102 -0
- data/lib/paypal_server_sdk/models/shipping_preference.rb +6 -3
- data/lib/paypal_server_sdk/models/shipping_type.rb +12 -4
- data/lib/paypal_server_sdk/models/shipping_with_tracking_details.rb +31 -3
- data/lib/paypal_server_sdk/models/sofort_payment_object.rb +18 -5
- data/lib/paypal_server_sdk/models/sofort_payment_request.rb +18 -5
- data/lib/paypal_server_sdk/models/standard_entry_class_code.rb +12 -4
- data/lib/paypal_server_sdk/models/store_in_vault_instruction.rb +2 -1
- data/lib/paypal_server_sdk/models/stored_payment_source.rb +23 -7
- data/lib/paypal_server_sdk/models/stored_payment_source_payment_type.rb +6 -3
- data/lib/paypal_server_sdk/models/stored_payment_source_usage_type.rb +6 -3
- data/lib/paypal_server_sdk/models/supplementary_data.rb +25 -7
- data/lib/paypal_server_sdk/models/supplementary_purchase_data.rb +13 -0
- data/lib/paypal_server_sdk/models/tax_id_type.rb +2 -2
- data/lib/paypal_server_sdk/models/tax_info.rb +12 -0
- data/lib/paypal_server_sdk/models/tenure_type.rb +28 -0
- data/lib/paypal_server_sdk/models/three_d_secure_authentication_response.rb +14 -0
- data/lib/paypal_server_sdk/models/three_d_secure_card_authentication_response.rb +89 -0
- data/lib/paypal_server_sdk/models/token.rb +12 -0
- data/lib/paypal_server_sdk/models/token_type.rb +2 -1
- data/lib/paypal_server_sdk/models/trustly_payment_object.rb +31 -6
- data/lib/paypal_server_sdk/models/trustly_payment_request.rb +30 -6
- data/lib/paypal_server_sdk/models/universal_product_code.rb +12 -0
- data/lib/paypal_server_sdk/models/upc_type.rb +14 -14
- data/lib/paypal_server_sdk/models/usage_pattern.rb +72 -0
- data/lib/paypal_server_sdk/models/vault_card_verification_method.rb +39 -0
- data/lib/paypal_server_sdk/models/vault_customer.rb +12 -0
- data/lib/paypal_server_sdk/models/vault_experience_context.rb +26 -7
- data/lib/paypal_server_sdk/models/vault_instruction.rb +12 -0
- data/lib/paypal_server_sdk/models/vault_instruction_action.rb +26 -0
- data/lib/paypal_server_sdk/models/vault_instruction_base.rb +12 -0
- data/lib/paypal_server_sdk/models/vault_paypal_wallet_request.rb +43 -4
- data/lib/paypal_server_sdk/models/vault_response.rb +13 -0
- data/lib/paypal_server_sdk/models/vault_response_customer.rb +86 -0
- data/lib/paypal_server_sdk/models/vault_status.rb +8 -3
- data/lib/paypal_server_sdk/models/vault_token_request.rb +13 -1
- data/lib/paypal_server_sdk/models/vault_token_request_type.rb +20 -0
- data/lib/paypal_server_sdk/models/vault_venmo_experience_context.rb +24 -6
- data/lib/paypal_server_sdk/models/vault_venmo_request.rb +31 -3
- data/lib/paypal_server_sdk/models/vaulted_digital_wallet.rb +29 -3
- data/lib/paypal_server_sdk/models/vaulted_digital_wallet_shipping_details.rb +27 -2
- data/lib/paypal_server_sdk/models/venmo_payment_token.rb +37 -8
- data/lib/paypal_server_sdk/models/venmo_payment_token_customer_type.rb +4 -2
- data/lib/paypal_server_sdk/models/venmo_payment_token_usage_pattern.rb +12 -6
- data/lib/paypal_server_sdk/models/venmo_payment_token_usage_type.rb +5 -2
- data/lib/paypal_server_sdk/models/venmo_wallet_additional_attributes.rb +12 -0
- data/lib/paypal_server_sdk/models/venmo_wallet_attributes_response.rb +12 -0
- data/lib/paypal_server_sdk/models/venmo_wallet_customer_information.rb +16 -5
- data/lib/paypal_server_sdk/models/venmo_wallet_experience_context.rb +34 -5
- data/lib/paypal_server_sdk/models/venmo_wallet_request.rb +21 -8
- data/lib/paypal_server_sdk/models/venmo_wallet_response.rb +21 -5
- data/lib/paypal_server_sdk/models/venmo_wallet_vault_attributes.rb +17 -0
- data/lib/paypal_server_sdk/utilities/file_wrapper.rb +14 -2
- data/lib/paypal_server_sdk.rb +183 -152
- metadata +42 -16
- data/lib/paypal_server_sdk/models/card_payment_token.rb +0 -166
- data/lib/paypal_server_sdk/models/card_verification_method.rb +0 -29
- data/lib/paypal_server_sdk/models/fullfillment_type.rb +0 -31
- data/lib/paypal_server_sdk/models/google_pay_card_attributes.rb +0 -51
- data/lib/paypal_server_sdk/models/payee.rb +0 -65
- data/lib/paypal_server_sdk/models/paypal_payment_token_usage_pattern.rb +0 -35
- data/lib/paypal_server_sdk/models/processing_instruction.rb +0 -23
- data/lib/paypal_server_sdk/models/token_request_type.rb +0 -23
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.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PayPal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apimatic_core_interfaces
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.3.
|
33
|
+
version: 0.3.11
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.3.
|
40
|
+
version: 0.3.11
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: apimatic_faraday_client_adapter
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,7 +82,6 @@ files:
|
|
82
82
|
- lib/paypal_server_sdk/logging/sdk_logger.rb
|
83
83
|
- lib/paypal_server_sdk/models/activity_timestamps.rb
|
84
84
|
- lib/paypal_server_sdk/models/address.rb
|
85
|
-
- lib/paypal_server_sdk/models/address_details.rb
|
86
85
|
- lib/paypal_server_sdk/models/amount_breakdown.rb
|
87
86
|
- lib/paypal_server_sdk/models/amount_with_breakdown.rb
|
88
87
|
- lib/paypal_server_sdk/models/apple_pay_attributes.rb
|
@@ -108,6 +107,7 @@ files:
|
|
108
107
|
- lib/paypal_server_sdk/models/bancontact_payment_object.rb
|
109
108
|
- lib/paypal_server_sdk/models/bancontact_payment_request.rb
|
110
109
|
- lib/paypal_server_sdk/models/base_model.rb
|
110
|
+
- lib/paypal_server_sdk/models/billing_cycle.rb
|
111
111
|
- lib/paypal_server_sdk/models/bin_details.rb
|
112
112
|
- lib/paypal_server_sdk/models/blik_experience_context.rb
|
113
113
|
- lib/paypal_server_sdk/models/blik_level0_payment_object.rb
|
@@ -115,7 +115,8 @@ files:
|
|
115
115
|
- lib/paypal_server_sdk/models/blik_one_click_payment_request.rb
|
116
116
|
- lib/paypal_server_sdk/models/blik_payment_object.rb
|
117
117
|
- lib/paypal_server_sdk/models/blik_payment_request.rb
|
118
|
-
- lib/paypal_server_sdk/models/
|
118
|
+
- lib/paypal_server_sdk/models/callback_configuration.rb
|
119
|
+
- lib/paypal_server_sdk/models/callback_events.rb
|
119
120
|
- lib/paypal_server_sdk/models/capture_incomplete_reason.rb
|
120
121
|
- lib/paypal_server_sdk/models/capture_payment_instruction.rb
|
121
122
|
- lib/paypal_server_sdk/models/capture_request.rb
|
@@ -130,23 +131,24 @@ files:
|
|
130
131
|
- lib/paypal_server_sdk/models/card_customer_information.rb
|
131
132
|
- lib/paypal_server_sdk/models/card_experience_context.rb
|
132
133
|
- lib/paypal_server_sdk/models/card_from_request.rb
|
133
|
-
- lib/paypal_server_sdk/models/
|
134
|
+
- lib/paypal_server_sdk/models/card_payment_token_entity.rb
|
134
135
|
- lib/paypal_server_sdk/models/card_request.rb
|
135
136
|
- lib/paypal_server_sdk/models/card_response.rb
|
136
|
-
- lib/paypal_server_sdk/models/
|
137
|
+
- lib/paypal_server_sdk/models/card_response_address.rb
|
137
138
|
- lib/paypal_server_sdk/models/card_stored_credential.rb
|
138
139
|
- lib/paypal_server_sdk/models/card_supplementary_data.rb
|
139
140
|
- lib/paypal_server_sdk/models/card_type.rb
|
140
141
|
- lib/paypal_server_sdk/models/card_vault_response.rb
|
141
142
|
- lib/paypal_server_sdk/models/card_verification.rb
|
142
143
|
- lib/paypal_server_sdk/models/card_verification_details.rb
|
143
|
-
- lib/paypal_server_sdk/models/card_verification_method.rb
|
144
144
|
- lib/paypal_server_sdk/models/card_verification_processor_response.rb
|
145
|
+
- lib/paypal_server_sdk/models/card_verification_status.rb
|
145
146
|
- lib/paypal_server_sdk/models/checkout_payment_intent.rb
|
146
147
|
- lib/paypal_server_sdk/models/cobranded_card.rb
|
147
148
|
- lib/paypal_server_sdk/models/confirm_order_request.rb
|
149
|
+
- lib/paypal_server_sdk/models/customer.rb
|
148
150
|
- lib/paypal_server_sdk/models/customer_information.rb
|
149
|
-
- lib/paypal_server_sdk/models/
|
151
|
+
- lib/paypal_server_sdk/models/customer_response.rb
|
150
152
|
- lib/paypal_server_sdk/models/customer_vault_payment_tokens_response.rb
|
151
153
|
- lib/paypal_server_sdk/models/cvv_code.rb
|
152
154
|
- lib/paypal_server_sdk/models/disbursement_mode.rb
|
@@ -158,11 +160,11 @@ files:
|
|
158
160
|
- lib/paypal_server_sdk/models/error_details.rb
|
159
161
|
- lib/paypal_server_sdk/models/exchange_rate.rb
|
160
162
|
- lib/paypal_server_sdk/models/experience_context.rb
|
161
|
-
- lib/paypal_server_sdk/models/
|
163
|
+
- lib/paypal_server_sdk/models/fulfillment_type.rb
|
162
164
|
- lib/paypal_server_sdk/models/giropay_payment_object.rb
|
163
165
|
- lib/paypal_server_sdk/models/giropay_payment_request.rb
|
164
166
|
- lib/paypal_server_sdk/models/google_pay_authentication_method.rb
|
165
|
-
- lib/paypal_server_sdk/models/
|
167
|
+
- lib/paypal_server_sdk/models/google_pay_card.rb
|
166
168
|
- lib/paypal_server_sdk/models/google_pay_card_response.rb
|
167
169
|
- lib/paypal_server_sdk/models/google_pay_decrypted_token_data.rb
|
168
170
|
- lib/paypal_server_sdk/models/google_pay_payment_method.rb
|
@@ -189,6 +191,7 @@ files:
|
|
189
191
|
- lib/paypal_server_sdk/models/network_transaction_reference_entity.rb
|
190
192
|
- lib/paypal_server_sdk/models/o_auth_provider_error.rb
|
191
193
|
- lib/paypal_server_sdk/models/o_auth_token.rb
|
194
|
+
- lib/paypal_server_sdk/models/one_time_charge.rb
|
192
195
|
- lib/paypal_server_sdk/models/order.rb
|
193
196
|
- lib/paypal_server_sdk/models/order_application_context.rb
|
194
197
|
- lib/paypal_server_sdk/models/order_application_context_landing_page.rb
|
@@ -207,12 +210,20 @@ files:
|
|
207
210
|
- lib/paypal_server_sdk/models/order_tracker_request.rb
|
208
211
|
- lib/paypal_server_sdk/models/order_tracker_response.rb
|
209
212
|
- lib/paypal_server_sdk/models/order_tracker_status.rb
|
213
|
+
- lib/paypal_server_sdk/models/order_update_callback_error_response.rb
|
214
|
+
- lib/paypal_server_sdk/models/order_update_callback_error_response_details.rb
|
215
|
+
- lib/paypal_server_sdk/models/order_update_callback_request.rb
|
216
|
+
- lib/paypal_server_sdk/models/order_update_callback_response.rb
|
217
|
+
- lib/paypal_server_sdk/models/order_update_callback_shipping_address.rb
|
218
|
+
- lib/paypal_server_sdk/models/order_update_callback_shipping_option.rb
|
219
|
+
- lib/paypal_server_sdk/models/orders_capture.rb
|
220
|
+
- lib/paypal_server_sdk/models/orders_card_verification_method.rb
|
210
221
|
- lib/paypal_server_sdk/models/p24_payment_object.rb
|
211
222
|
- lib/paypal_server_sdk/models/p24_payment_request.rb
|
212
223
|
- lib/paypal_server_sdk/models/pa_res_status.rb
|
224
|
+
- lib/paypal_server_sdk/models/participant_metadata.rb
|
213
225
|
- lib/paypal_server_sdk/models/patch.rb
|
214
226
|
- lib/paypal_server_sdk/models/patch_op.rb
|
215
|
-
- lib/paypal_server_sdk/models/payee.rb
|
216
227
|
- lib/paypal_server_sdk/models/payee_base.rb
|
217
228
|
- lib/paypal_server_sdk/models/payee_payment_method_preference.rb
|
218
229
|
- lib/paypal_server_sdk/models/payer.rb
|
@@ -231,20 +242,25 @@ files:
|
|
231
242
|
- lib/paypal_server_sdk/models/payment_token_request_payment_source.rb
|
232
243
|
- lib/paypal_server_sdk/models/payment_token_response.rb
|
233
244
|
- lib/paypal_server_sdk/models/payment_token_response_payment_source.rb
|
245
|
+
- lib/paypal_server_sdk/models/payment_token_status.rb
|
246
|
+
- lib/paypal_server_sdk/models/payments_capture.rb
|
247
|
+
- lib/paypal_server_sdk/models/payments_payment_advice_code.rb
|
248
|
+
- lib/paypal_server_sdk/models/payments_processor_response.rb
|
234
249
|
- lib/paypal_server_sdk/models/paypal_experience_landing_page.rb
|
235
250
|
- lib/paypal_server_sdk/models/paypal_experience_user_action.rb
|
236
251
|
- lib/paypal_server_sdk/models/paypal_payment_token.rb
|
237
252
|
- lib/paypal_server_sdk/models/paypal_payment_token_customer_type.rb
|
238
|
-
- lib/paypal_server_sdk/models/paypal_payment_token_usage_pattern.rb
|
239
253
|
- lib/paypal_server_sdk/models/paypal_payment_token_usage_type.rb
|
240
254
|
- lib/paypal_server_sdk/models/paypal_wallet.rb
|
241
255
|
- lib/paypal_server_sdk/models/paypal_wallet_account_verification_status.rb
|
242
256
|
- lib/paypal_server_sdk/models/paypal_wallet_attributes.rb
|
243
257
|
- lib/paypal_server_sdk/models/paypal_wallet_attributes_response.rb
|
258
|
+
- lib/paypal_server_sdk/models/paypal_wallet_context_shipping_preference.rb
|
244
259
|
- lib/paypal_server_sdk/models/paypal_wallet_customer.rb
|
245
260
|
- lib/paypal_server_sdk/models/paypal_wallet_customer_request.rb
|
246
261
|
- lib/paypal_server_sdk/models/paypal_wallet_experience_context.rb
|
247
262
|
- lib/paypal_server_sdk/models/paypal_wallet_response.rb
|
263
|
+
- lib/paypal_server_sdk/models/paypal_wallet_stored_credential.rb
|
248
264
|
- lib/paypal_server_sdk/models/paypal_wallet_vault_instruction.rb
|
249
265
|
- lib/paypal_server_sdk/models/paypal_wallet_vault_response.rb
|
250
266
|
- lib/paypal_server_sdk/models/paypal_wallet_vault_status.rb
|
@@ -253,8 +269,10 @@ files:
|
|
253
269
|
- lib/paypal_server_sdk/models/phone_number_with_country_code.rb
|
254
270
|
- lib/paypal_server_sdk/models/phone_type.rb
|
255
271
|
- lib/paypal_server_sdk/models/phone_with_type.rb
|
272
|
+
- lib/paypal_server_sdk/models/plan.rb
|
256
273
|
- lib/paypal_server_sdk/models/platform_fee.rb
|
257
|
-
- lib/paypal_server_sdk/models/
|
274
|
+
- lib/paypal_server_sdk/models/pricing_model.rb
|
275
|
+
- lib/paypal_server_sdk/models/pricing_scheme.rb
|
258
276
|
- lib/paypal_server_sdk/models/processor_response.rb
|
259
277
|
- lib/paypal_server_sdk/models/processor_response_code.rb
|
260
278
|
- lib/paypal_server_sdk/models/purchase_unit.rb
|
@@ -269,6 +287,7 @@ files:
|
|
269
287
|
- lib/paypal_server_sdk/models/refund_status_details.rb
|
270
288
|
- lib/paypal_server_sdk/models/refund_status_with_details.rb
|
271
289
|
- lib/paypal_server_sdk/models/related_identifiers.rb
|
290
|
+
- lib/paypal_server_sdk/models/risk_supplementary_data.rb
|
272
291
|
- lib/paypal_server_sdk/models/seller_payable_breakdown.rb
|
273
292
|
- lib/paypal_server_sdk/models/seller_protection.rb
|
274
293
|
- lib/paypal_server_sdk/models/seller_protection_status.rb
|
@@ -284,6 +303,7 @@ files:
|
|
284
303
|
- lib/paypal_server_sdk/models/shipping_details.rb
|
285
304
|
- lib/paypal_server_sdk/models/shipping_name.rb
|
286
305
|
- lib/paypal_server_sdk/models/shipping_option.rb
|
306
|
+
- lib/paypal_server_sdk/models/shipping_options_purchase_unit.rb
|
287
307
|
- lib/paypal_server_sdk/models/shipping_preference.rb
|
288
308
|
- lib/paypal_server_sdk/models/shipping_type.rb
|
289
309
|
- lib/paypal_server_sdk/models/shipping_with_tracking_details.rb
|
@@ -298,22 +318,28 @@ files:
|
|
298
318
|
- lib/paypal_server_sdk/models/supplementary_purchase_data.rb
|
299
319
|
- lib/paypal_server_sdk/models/tax_id_type.rb
|
300
320
|
- lib/paypal_server_sdk/models/tax_info.rb
|
321
|
+
- lib/paypal_server_sdk/models/tenure_type.rb
|
301
322
|
- lib/paypal_server_sdk/models/three_d_secure_authentication_response.rb
|
323
|
+
- lib/paypal_server_sdk/models/three_d_secure_card_authentication_response.rb
|
302
324
|
- lib/paypal_server_sdk/models/token.rb
|
303
|
-
- lib/paypal_server_sdk/models/token_request_type.rb
|
304
325
|
- lib/paypal_server_sdk/models/token_type.rb
|
305
326
|
- lib/paypal_server_sdk/models/trustly_payment_object.rb
|
306
327
|
- lib/paypal_server_sdk/models/trustly_payment_request.rb
|
307
328
|
- lib/paypal_server_sdk/models/universal_product_code.rb
|
308
329
|
- lib/paypal_server_sdk/models/upc_type.rb
|
330
|
+
- lib/paypal_server_sdk/models/usage_pattern.rb
|
331
|
+
- lib/paypal_server_sdk/models/vault_card_verification_method.rb
|
309
332
|
- lib/paypal_server_sdk/models/vault_customer.rb
|
310
333
|
- lib/paypal_server_sdk/models/vault_experience_context.rb
|
311
334
|
- lib/paypal_server_sdk/models/vault_instruction.rb
|
335
|
+
- lib/paypal_server_sdk/models/vault_instruction_action.rb
|
312
336
|
- lib/paypal_server_sdk/models/vault_instruction_base.rb
|
313
337
|
- lib/paypal_server_sdk/models/vault_paypal_wallet_request.rb
|
314
338
|
- lib/paypal_server_sdk/models/vault_response.rb
|
339
|
+
- lib/paypal_server_sdk/models/vault_response_customer.rb
|
315
340
|
- lib/paypal_server_sdk/models/vault_status.rb
|
316
341
|
- lib/paypal_server_sdk/models/vault_token_request.rb
|
342
|
+
- lib/paypal_server_sdk/models/vault_token_request_type.rb
|
317
343
|
- lib/paypal_server_sdk/models/vault_venmo_experience_context.rb
|
318
344
|
- lib/paypal_server_sdk/models/vault_venmo_request.rb
|
319
345
|
- lib/paypal_server_sdk/models/vaulted_digital_wallet.rb
|
@@ -1,166 +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
|
-
# Full representation of a Card Payment Token including network token.
|
8
|
-
class CardPaymentToken < BaseModel
|
9
|
-
SKIP = Object.new
|
10
|
-
private_constant :SKIP
|
11
|
-
|
12
|
-
# The card holder's name as it appears on the card.
|
13
|
-
# @return [String]
|
14
|
-
attr_accessor :name
|
15
|
-
|
16
|
-
# The last digits of the payment card.
|
17
|
-
# @return [String]
|
18
|
-
attr_accessor :last_digits
|
19
|
-
|
20
|
-
# The card network or brand. Applies to credit, debit, gift, and payment
|
21
|
-
# cards.
|
22
|
-
# @return [CardBrand]
|
23
|
-
attr_accessor :brand
|
24
|
-
|
25
|
-
# The year and month, in ISO-8601 `YYYY-MM` date format. See [Internet date
|
26
|
-
# and time format](https://tools.ietf.org/html/rfc3339#section-5.6).
|
27
|
-
# @return [String]
|
28
|
-
attr_accessor :expiry
|
29
|
-
|
30
|
-
# Address request details.
|
31
|
-
# @return [AddressDetails]
|
32
|
-
attr_accessor :billing_address
|
33
|
-
|
34
|
-
# Verification status of Card.
|
35
|
-
# @return [String]
|
36
|
-
attr_accessor :verification_status
|
37
|
-
|
38
|
-
# Card Verification details including the authorization details and 3D
|
39
|
-
# SECURE details.
|
40
|
-
# @return [CardVerificationDetails]
|
41
|
-
attr_accessor :verification
|
42
|
-
|
43
|
-
# Previous network transaction reference including id in response.
|
44
|
-
# @return [NetworkTransactionReferenceEntity]
|
45
|
-
attr_accessor :network_transaction_reference
|
46
|
-
|
47
|
-
# Results of Authentication such as 3D Secure.
|
48
|
-
# @return [CardAuthenticationResponse]
|
49
|
-
attr_accessor :authentication_result
|
50
|
-
|
51
|
-
# Bank Identification Number (BIN) details used to fund a payment.
|
52
|
-
# @return [BinDetails]
|
53
|
-
attr_accessor :bin_details
|
54
|
-
|
55
|
-
# Type of card. i.e Credit, Debit and so on.
|
56
|
-
# @return [CardType]
|
57
|
-
attr_accessor :type
|
58
|
-
|
59
|
-
# Type of card. i.e Credit, Debit and so on.
|
60
|
-
# @return [Object]
|
61
|
-
attr_accessor :network_token
|
62
|
-
|
63
|
-
# A mapping from model property names to API property names.
|
64
|
-
def self.names
|
65
|
-
@_hash = {} if @_hash.nil?
|
66
|
-
@_hash['name'] = 'name'
|
67
|
-
@_hash['last_digits'] = 'last_digits'
|
68
|
-
@_hash['brand'] = 'brand'
|
69
|
-
@_hash['expiry'] = 'expiry'
|
70
|
-
@_hash['billing_address'] = 'billing_address'
|
71
|
-
@_hash['verification_status'] = 'verification_status'
|
72
|
-
@_hash['verification'] = 'verification'
|
73
|
-
@_hash['network_transaction_reference'] =
|
74
|
-
'network_transaction_reference'
|
75
|
-
@_hash['authentication_result'] = 'authentication_result'
|
76
|
-
@_hash['bin_details'] = 'bin_details'
|
77
|
-
@_hash['type'] = 'type'
|
78
|
-
@_hash['network_token'] = 'network_token'
|
79
|
-
@_hash
|
80
|
-
end
|
81
|
-
|
82
|
-
# An array for optional fields
|
83
|
-
def self.optionals
|
84
|
-
%w[
|
85
|
-
name
|
86
|
-
last_digits
|
87
|
-
brand
|
88
|
-
expiry
|
89
|
-
billing_address
|
90
|
-
verification_status
|
91
|
-
verification
|
92
|
-
network_transaction_reference
|
93
|
-
authentication_result
|
94
|
-
bin_details
|
95
|
-
type
|
96
|
-
network_token
|
97
|
-
]
|
98
|
-
end
|
99
|
-
|
100
|
-
# An array for nullable fields
|
101
|
-
def self.nullables
|
102
|
-
[]
|
103
|
-
end
|
104
|
-
|
105
|
-
def initialize(name: SKIP, last_digits: SKIP, brand: SKIP, expiry: SKIP,
|
106
|
-
billing_address: SKIP, verification_status: SKIP,
|
107
|
-
verification: SKIP, network_transaction_reference: SKIP,
|
108
|
-
authentication_result: SKIP, bin_details: SKIP, type: SKIP,
|
109
|
-
network_token: SKIP)
|
110
|
-
@name = name unless name == SKIP
|
111
|
-
@last_digits = last_digits unless last_digits == SKIP
|
112
|
-
@brand = brand unless brand == SKIP
|
113
|
-
@expiry = expiry unless expiry == SKIP
|
114
|
-
@billing_address = billing_address unless billing_address == SKIP
|
115
|
-
@verification_status = verification_status unless verification_status == SKIP
|
116
|
-
@verification = verification unless verification == SKIP
|
117
|
-
unless network_transaction_reference == SKIP
|
118
|
-
@network_transaction_reference =
|
119
|
-
network_transaction_reference
|
120
|
-
end
|
121
|
-
@authentication_result = authentication_result unless authentication_result == SKIP
|
122
|
-
@bin_details = bin_details unless bin_details == SKIP
|
123
|
-
@type = type unless type == SKIP
|
124
|
-
@network_token = network_token unless network_token == SKIP
|
125
|
-
end
|
126
|
-
|
127
|
-
# Creates an instance of the object from a hash.
|
128
|
-
def self.from_hash(hash)
|
129
|
-
return nil unless hash
|
130
|
-
|
131
|
-
# Extract variables from the hash.
|
132
|
-
name = hash.key?('name') ? hash['name'] : SKIP
|
133
|
-
last_digits = hash.key?('last_digits') ? hash['last_digits'] : SKIP
|
134
|
-
brand = hash.key?('brand') ? hash['brand'] : SKIP
|
135
|
-
expiry = hash.key?('expiry') ? hash['expiry'] : SKIP
|
136
|
-
billing_address = AddressDetails.from_hash(hash['billing_address']) if
|
137
|
-
hash['billing_address']
|
138
|
-
verification_status =
|
139
|
-
hash.key?('verification_status') ? hash['verification_status'] : SKIP
|
140
|
-
verification = CardVerificationDetails.from_hash(hash['verification']) if
|
141
|
-
hash['verification']
|
142
|
-
if hash['network_transaction_reference']
|
143
|
-
network_transaction_reference = NetworkTransactionReferenceEntity.from_hash(hash['network_transaction_reference'])
|
144
|
-
end
|
145
|
-
authentication_result = CardAuthenticationResponse.from_hash(hash['authentication_result']) if
|
146
|
-
hash['authentication_result']
|
147
|
-
bin_details = BinDetails.from_hash(hash['bin_details']) if hash['bin_details']
|
148
|
-
type = hash.key?('type') ? hash['type'] : SKIP
|
149
|
-
network_token = hash.key?('network_token') ? hash['network_token'] : SKIP
|
150
|
-
|
151
|
-
# Create object from extracted values.
|
152
|
-
CardPaymentToken.new(name: name,
|
153
|
-
last_digits: last_digits,
|
154
|
-
brand: brand,
|
155
|
-
expiry: expiry,
|
156
|
-
billing_address: billing_address,
|
157
|
-
verification_status: verification_status,
|
158
|
-
verification: verification,
|
159
|
-
network_transaction_reference: network_transaction_reference,
|
160
|
-
authentication_result: authentication_result,
|
161
|
-
bin_details: bin_details,
|
162
|
-
type: type,
|
163
|
-
network_token: network_token)
|
164
|
-
end
|
165
|
-
end
|
166
|
-
end
|
@@ -1,29 +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 method used for card verification.
|
8
|
-
class CardVerificationMethod
|
9
|
-
CARD_VERIFICATION_METHOD = [
|
10
|
-
# TODO: Write general description for SCA_ALWAYS
|
11
|
-
SCA_ALWAYS = 'SCA_ALWAYS'.freeze,
|
12
|
-
|
13
|
-
# TODO: Write general description for SCA_WHEN_REQUIRED
|
14
|
-
SCA_WHEN_REQUIRED = 'SCA_WHEN_REQUIRED'.freeze,
|
15
|
-
|
16
|
-
# TODO: Write general description for ENUM_3D_SECURE
|
17
|
-
ENUM_3D_SECURE = '3D_SECURE'.freeze,
|
18
|
-
|
19
|
-
# TODO: Write general description for AVS_CVV
|
20
|
-
AVS_CVV = 'AVS_CVV'.freeze
|
21
|
-
].freeze
|
22
|
-
|
23
|
-
def self.validate(value)
|
24
|
-
return false if value.nil?
|
25
|
-
|
26
|
-
true
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,31 +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
|
-
# A classification for the method of purchase fulfillment (e.g shipping,
|
8
|
-
# in-store pickup, etc). Either `type` or `options` may be present, but not
|
9
|
-
# both.
|
10
|
-
class FullfillmentType
|
11
|
-
FULLFILLMENT_TYPE = [
|
12
|
-
# TODO: Write general description for SHIPPING
|
13
|
-
SHIPPING = 'SHIPPING'.freeze,
|
14
|
-
|
15
|
-
# TODO: Write general description for PICKUP_IN_PERSON
|
16
|
-
PICKUP_IN_PERSON = 'PICKUP_IN_PERSON'.freeze,
|
17
|
-
|
18
|
-
# TODO: Write general description for PICKUP_IN_STORE
|
19
|
-
PICKUP_IN_STORE = 'PICKUP_IN_STORE'.freeze,
|
20
|
-
|
21
|
-
# TODO: Write general description for PICKUP_FROM_PERSON
|
22
|
-
PICKUP_FROM_PERSON = 'PICKUP_FROM_PERSON'.freeze
|
23
|
-
].freeze
|
24
|
-
|
25
|
-
def self.validate(value)
|
26
|
-
return false if value.nil?
|
27
|
-
|
28
|
-
true
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
@@ -1,51 +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
|
-
# Additional attributes associated with the use of this card.
|
8
|
-
class GooglePayCardAttributes < BaseModel
|
9
|
-
SKIP = Object.new
|
10
|
-
private_constant :SKIP
|
11
|
-
|
12
|
-
# The API caller can opt in to verify the card through PayPal offered
|
13
|
-
# verification services (e.g. Smart Dollar Auth, 3DS).
|
14
|
-
# @return [CardVerification]
|
15
|
-
attr_accessor :verification
|
16
|
-
|
17
|
-
# A mapping from model property names to API property names.
|
18
|
-
def self.names
|
19
|
-
@_hash = {} if @_hash.nil?
|
20
|
-
@_hash['verification'] = 'verification'
|
21
|
-
@_hash
|
22
|
-
end
|
23
|
-
|
24
|
-
# An array for optional fields
|
25
|
-
def self.optionals
|
26
|
-
%w[
|
27
|
-
verification
|
28
|
-
]
|
29
|
-
end
|
30
|
-
|
31
|
-
# An array for nullable fields
|
32
|
-
def self.nullables
|
33
|
-
[]
|
34
|
-
end
|
35
|
-
|
36
|
-
def initialize(verification: SKIP)
|
37
|
-
@verification = verification unless verification == SKIP
|
38
|
-
end
|
39
|
-
|
40
|
-
# Creates an instance of the object from a hash.
|
41
|
-
def self.from_hash(hash)
|
42
|
-
return nil unless hash
|
43
|
-
|
44
|
-
# Extract variables from the hash.
|
45
|
-
verification = CardVerification.from_hash(hash['verification']) if hash['verification']
|
46
|
-
|
47
|
-
# Create object from extracted values.
|
48
|
-
GooglePayCardAttributes.new(verification: verification)
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
@@ -1,65 +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 merchant who receives the funds and fulfills the order. The merchant is
|
8
|
-
# also known as the payee., The details for the merchant who receives the
|
9
|
-
# funds and fulfills the order. The merchant is also known as the payee.
|
10
|
-
class Payee < BaseModel
|
11
|
-
SKIP = Object.new
|
12
|
-
private_constant :SKIP
|
13
|
-
|
14
|
-
# The internationalized email address.<blockquote><strong>Note:</strong> Up
|
15
|
-
# to 64 characters are allowed before and 255 characters are allowed after
|
16
|
-
# the <code>@</code> sign. However, the generally accepted maximum length
|
17
|
-
# for an email address is 254 characters. The pattern verifies that an
|
18
|
-
# unquoted <code>@</code> sign exists.</blockquote>
|
19
|
-
# @return [String]
|
20
|
-
attr_accessor :email_address
|
21
|
-
|
22
|
-
# The account identifier for a PayPal account.
|
23
|
-
# @return [String]
|
24
|
-
attr_accessor :merchant_id
|
25
|
-
|
26
|
-
# A mapping from model property names to API property names.
|
27
|
-
def self.names
|
28
|
-
@_hash = {} if @_hash.nil?
|
29
|
-
@_hash['email_address'] = 'email_address'
|
30
|
-
@_hash['merchant_id'] = 'merchant_id'
|
31
|
-
@_hash
|
32
|
-
end
|
33
|
-
|
34
|
-
# An array for optional fields
|
35
|
-
def self.optionals
|
36
|
-
%w[
|
37
|
-
email_address
|
38
|
-
merchant_id
|
39
|
-
]
|
40
|
-
end
|
41
|
-
|
42
|
-
# An array for nullable fields
|
43
|
-
def self.nullables
|
44
|
-
[]
|
45
|
-
end
|
46
|
-
|
47
|
-
def initialize(email_address: SKIP, merchant_id: SKIP)
|
48
|
-
@email_address = email_address unless email_address == SKIP
|
49
|
-
@merchant_id = merchant_id unless merchant_id == SKIP
|
50
|
-
end
|
51
|
-
|
52
|
-
# Creates an instance of the object from a hash.
|
53
|
-
def self.from_hash(hash)
|
54
|
-
return nil unless hash
|
55
|
-
|
56
|
-
# Extract variables from the hash.
|
57
|
-
email_address = hash.key?('email_address') ? hash['email_address'] : SKIP
|
58
|
-
merchant_id = hash.key?('merchant_id') ? hash['merchant_id'] : SKIP
|
59
|
-
|
60
|
-
# Create object from extracted values.
|
61
|
-
Payee.new(email_address: email_address,
|
62
|
-
merchant_id: merchant_id)
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
@@ -1,35 +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
|
-
# Expected business/pricing model for the billing agreement.
|
8
|
-
class PaypalPaymentTokenUsagePattern
|
9
|
-
PAYPAL_PAYMENT_TOKEN_USAGE_PATTERN = [
|
10
|
-
# TODO: Write general description for IMMEDIATE
|
11
|
-
IMMEDIATE = 'IMMEDIATE'.freeze,
|
12
|
-
|
13
|
-
# TODO: Write general description for DEFERRED
|
14
|
-
DEFERRED = 'DEFERRED'.freeze,
|
15
|
-
|
16
|
-
# TODO: Write general description for RECURRING_PREPAID
|
17
|
-
RECURRING_PREPAID = 'RECURRING_PREPAID'.freeze,
|
18
|
-
|
19
|
-
# TODO: Write general description for RECURRING_POSTPAID
|
20
|
-
RECURRING_POSTPAID = 'RECURRING_POSTPAID'.freeze,
|
21
|
-
|
22
|
-
# TODO: Write general description for THRESHOLD_PREPAID
|
23
|
-
THRESHOLD_PREPAID = 'THRESHOLD_PREPAID'.freeze,
|
24
|
-
|
25
|
-
# TODO: Write general description for THRESHOLD_POSTPAID
|
26
|
-
THRESHOLD_POSTPAID = 'THRESHOLD_POSTPAID'.freeze
|
27
|
-
].freeze
|
28
|
-
|
29
|
-
def self.validate(value)
|
30
|
-
return false if value.nil?
|
31
|
-
|
32
|
-
true
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -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
|
@@ -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 tokenization method that generated the ID.
|
8
|
-
class TokenRequestType
|
9
|
-
TOKEN_REQUEST_TYPE = [
|
10
|
-
# TODO: Write general description for SETUP_TOKEN
|
11
|
-
SETUP_TOKEN = 'SETUP_TOKEN'.freeze,
|
12
|
-
|
13
|
-
# TODO: Write general description for BILLING_AGREEMENT
|
14
|
-
BILLING_AGREEMENT = 'BILLING_AGREEMENT'.freeze
|
15
|
-
].freeze
|
16
|
-
|
17
|
-
def self.validate(value)
|
18
|
-
return false if value.nil?
|
19
|
-
|
20
|
-
true
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|