Class: PaypalServerSdk::ProcessingInstruction
- Inherits:
-
Object
- Object
- PaypalServerSdk::ProcessingInstruction
- Defined in:
- lib/paypal_server_sdk/models/processing_instruction.rb
Overview
The instruction to process an order.
Constant Summary collapse
- PROCESSING_INSTRUCTION =
[ # API Caller expects the Order to be auto completed (i.e. for PayPal to # authorize or capture depending on the intent) on completion of payer # approval. This option is not relevant for payment_source that typically # do not require a payer approval or interaction. This option is currently # only available for the following payment_source: Alipay, BANCOMAT Pay, # Bancontact, BLIK, boletobancario, eps, giropay, GrabPay, iDEAL, MB WAY # Multibanco, MyBank, OXXO, P24, PayU, PUI, SafetyPay, SatisPay, Swish, # Sofort, Trustly, Verkkopankki, WeChat Pay ORDER_COMPLETE_ON_PAYMENT_APPROVAL = 'ORDER_COMPLETE_ON_PAYMENT_APPROVAL'.freeze ].freeze
Class Method Summary collapse
- .from_value(value, default_value = ORDER_COMPLETE_ON_PAYMENT_APPROVAL) ⇒ Object
- .validate(value) ⇒ Object
Class Method Details
.from_value(value, default_value = ORDER_COMPLETE_ON_PAYMENT_APPROVAL) ⇒ Object
27 28 29 30 31 |
# File 'lib/paypal_server_sdk/models/processing_instruction.rb', line 27 def self.from_value(value, default_value = ORDER_COMPLETE_ON_PAYMENT_APPROVAL) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
21 22 23 24 25 |
# File 'lib/paypal_server_sdk/models/processing_instruction.rb', line 21 def self.validate(value) return false if value.nil? true end |