Sha256: d4bdd7238e8c6d9998682195703316f7462d38603408927af72d2b0094f911b9

Contents?: true

Size: 1.38 KB

Versions: 5

Compression:

Stored size: 1.38 KB

Contents

module DwollaSwagger
  # 
  class TransferRequestBody < BaseObject
    attr_accessor :_links, :amount, :metadata, :fees
    # attribute mapping from ruby-style variable name to JSON key
    def self.attribute_map
      {
        
        # 
        :'_links' => :'_links',
        
        # 
        :'amount' => :'amount',
        
        # 
        :'metadata' => :'metadata',
        
        # 
        :'fees' => :'fees'
        
      }
    end

    # attribute type
    def self.swagger_types
      {
        :'_links' => :'map[string,HalLink]',
        :'amount' => :'Amount',
        :'metadata' => :'object',
        :'fees' => :'array[FacilitatorFeeRequest]'
        
      }
    end

    def initialize(attributes = {})
      return if !attributes.is_a?(Hash) || attributes.empty?

      # convert string to symbol for hash key
      attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}

      
      if attributes[:'_links']
        if (value = attributes[:'_links']).is_a?(Array)
          @_links = value
        end
      end
      
      if attributes[:'amount']
        @amount = attributes[:'amount']
      end
      
      if attributes[:'metadata']
        @metadata = attributes[:'metadata']
      end
      
      if attributes[:'fees']
        if (value = attributes[:'fees']).is_a?(Array)
          @fees = value
        end
      end
      
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dwolla_swagger-1.0.12 lib/dwolla_swagger/models/transfer_request_body.rb
dwolla_swagger-1.0.11 lib/dwolla_swagger/models/transfer_request_body.rb
dwolla_swagger-1.0.10 lib/dwolla_swagger/models/transfer_request_body.rb
dwolla_swagger-1.0.9 lib/dwolla_swagger/models/transfer_request_body.rb
dwolla_swagger-1.0.8 lib/dwolla_swagger/models/transfer_request_body.rb