Sha256: 25031803b797ae67d6c377d37175d56ab8dd35734418f9f867cbc28a8d5470ec

Contents?: true

Size: 1.84 KB

Versions: 4

Compression:

Stored size: 1.84 KB

Contents

module OpenActive
  module Models
    module Schema
      class LoanOrCredit < ::OpenActive::Models::Schema::FinancialProduct
        # @!attribute type
        # @return [String]
        def type
          "schema:LoanOrCredit"
        end

        # @return [String,URI]
        define_property :loan_type, as: "loanType", types: [
          "string",
          "URI",
        ]

        # @return [Boolean,nil]
        define_property :recourse_loan, as: "recourseLoan", types: [
          "bool",
          "null",
        ]

        # @return [OpenActive::Models::Schema::RepaymentSpecification]
        define_property :loan_repayment_form, as: "loanRepaymentForm", types: [
          "OpenActive::Models::Schema::RepaymentSpecification",
        ]

        # @return [ActiveSupport::Duration,nil]
        define_property :grace_period, as: "gracePeriod", types: [
          "DateInterval",
          "null",
        ]

        # @return [Boolean,nil]
        define_property :renegotiable_loan, as: "renegotiableLoan", types: [
          "bool",
          "null",
        ]

        # @return [OpenActive::Models::Schema::Thing,String]
        define_property :required_collateral, as: "requiredCollateral", types: [
          "OpenActive::Models::Schema::Thing",
          "string",
        ]

        # @return [BigDecimal,OpenActive::Models::Schema::MonetaryAmount,nil]
        define_property :amount, as: "amount", types: [
          "Number",
          "OpenActive::Models::Schema::MonetaryAmount",
          "null",
        ]

        # @return [String]
        define_property :currency, as: "currency", types: [
          "string",
        ]

        # @return [OpenActive::Models::Schema::QuantitativeValue]
        define_property :loan_term, as: "loanTerm", types: [
          "OpenActive::Models::Schema::QuantitativeValue",
        ]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openactive-0.1.2 lib/openactive/models/schema/loan_or_credit.rb
openactive-0.1.1 lib/openactive/models/schema/loan_or_credit.rb
openactive-0.1.0 lib/openactive/models/schema/loan_or_credit.rb
openactive-0.1.0.rc1 lib/openactive/models/schema/loan_or_credit.rb