Class: ProcessOut::UnsupportedFeatureBypass
- Inherits:
- 
      Object
      
        - Object
- ProcessOut::UnsupportedFeatureBypass
 
- Defined in:
- lib/processout/unsupported_feature_bypass.rb
Instance Attribute Summary collapse
- 
  
    
      #incremental_authorization  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute incremental_authorization. 
Instance Method Summary collapse
- 
  
    
      #fill_with_data(data)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    - Fills the object with data coming from the API Params: data
- 
Hashof data coming from the API.
 
- Fills the object with data coming from the API Params: 
- 
  
    
      #initialize(client, data = {})  ⇒ UnsupportedFeatureBypass 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    - Initializes the UnsupportedFeatureBypass object Params: client
- ProcessOutclient instance- data
- 
data that can be used to fill the object. 
 
 
- Initializes the UnsupportedFeatureBypass object Params: 
- 
  
    
      #new(data = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Create a new UnsupportedFeatureBypass using the current client. 
- 
  
    
      #prefill(data)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    - Prefills the object with the data passed as parameters Params: data
- 
Hashof data.
 
- Prefills the object with the data passed as parameters Params: 
- 
  
    
      #to_json(options)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Overrides the JSON marshaller to only send the fields we want. 
Constructor Details
#initialize(client, data = {}) ⇒ UnsupportedFeatureBypass
Initializes the UnsupportedFeatureBypass object Params:
- client
- 
ProcessOutclient instance
- data
- 
data that can be used to fill the object 
| 23 24 25 26 27 28 | # File 'lib/processout/unsupported_feature_bypass.rb', line 23 def initialize(client, data = {}) @client = client self. = data.fetch(:incremental_authorization, nil) end | 
Instance Attribute Details
#incremental_authorization ⇒ Object
Returns the value of attribute incremental_authorization.
| 11 12 13 | # File 'lib/processout/unsupported_feature_bypass.rb', line 11 def @incremental_authorization end | 
Instance Method Details
#fill_with_data(data) ⇒ Object
Fills the object with data coming from the API Params:
- data
- 
Hashof data coming from the API
| 45 46 47 48 49 50 51 52 53 54 | # File 'lib/processout/unsupported_feature_bypass.rb', line 45 def fill_with_data(data) if data.nil? return self end if data.include? "incremental_authorization" self. = data["incremental_authorization"] end self end | 
#new(data = {}) ⇒ Object
Create a new UnsupportedFeatureBypass using the current client
| 31 32 33 | # File 'lib/processout/unsupported_feature_bypass.rb', line 31 def new(data = {}) UnsupportedFeatureBypass.new(@client, data) end | 
#prefill(data) ⇒ Object
Prefills the object with the data passed as parameters Params:
- data
- 
Hashof data
| 59 60 61 62 63 64 65 66 | # File 'lib/processout/unsupported_feature_bypass.rb', line 59 def prefill(data) if data.nil? return self end self. = data.fetch(:incremental_authorization, self.) self end | 
#to_json(options) ⇒ Object
Overrides the JSON marshaller to only send the fields we want
| 36 37 38 39 40 | # File 'lib/processout/unsupported_feature_bypass.rb', line 36 def to_json() { "incremental_authorization": self., }.to_json end |