Class: PaypalServerSdk::ReauthorizeRequest
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- PaypalServerSdk::ReauthorizeRequest
- Defined in:
- lib/paypal_server_sdk/models/reauthorize_request.rb
Overview
Reauthorizes an authorized PayPal account payment, by ID. To ensure that funds are still available, reauthorize a payment after its initial three-day honor period expires. You can reauthorize a payment only once from days four to 29.<br/><br/>If 30 days have transpired since the date of the original authorization, you must create an authorized payment instead of reauthorizing the original authorized payment.<br/><br/>A reauthorized payment itself has a new honor period of three days.<br/><br/>You can reauthorize an authorized payment once. The allowed amount depends on context and geography, for example in US it is up to 115% of the original authorized amount, not to exceed an increase of $75 USD.<br/><br/>Supports only the ‘amount` request parameter.<blockquote><strong>Note:</strong> This request is currently not supported for Partner use cases.</blockquote>
Instance Attribute Summary collapse
-
#amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(amount: SKIP) ⇒ ReauthorizeRequest
constructor
A new instance of ReauthorizeRequest.
Methods inherited from BaseModel
Constructor Details
#initialize(amount: SKIP) ⇒ ReauthorizeRequest
Returns a new instance of ReauthorizeRequest.
47 48 49 |
# File 'lib/paypal_server_sdk/models/reauthorize_request.rb', line 47 def initialize(amount: SKIP) @amount = amount unless amount == SKIP end |
Instance Attribute Details
#amount ⇒ Money
The currency and amount for a financial transaction, such as a balance or payment due.
26 27 28 |
# File 'lib/paypal_server_sdk/models/reauthorize_request.rb', line 26 def amount @amount end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
52 53 54 55 56 57 58 59 60 |
# File 'lib/paypal_server_sdk/models/reauthorize_request.rb', line 52 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. amount = Money.from_hash(hash['amount']) if hash['amount'] # Create object from extracted values. ReauthorizeRequest.new(amount: amount) end |
.names ⇒ Object
A mapping from model property names to API property names.
29 30 31 32 33 |
# File 'lib/paypal_server_sdk/models/reauthorize_request.rb', line 29 def self.names @_hash = {} if @_hash.nil? @_hash['amount'] = 'amount' @_hash end |
.nullables ⇒ Object
An array for nullable fields
43 44 45 |
# File 'lib/paypal_server_sdk/models/reauthorize_request.rb', line 43 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
36 37 38 39 40 |
# File 'lib/paypal_server_sdk/models/reauthorize_request.rb', line 36 def self.optionals %w[ amount ] end |