Sha256: 94f1e85237ab69bad92d21ef0bbff95c069511ef84e4df7a24cf762da52f2a74

Contents?: true

Size: 1.25 KB

Versions: 3

Compression:

Stored size: 1.25 KB

Contents

require_relative '../../common/jsonifier'

module MangoModel

  # Mandate entity
  class Mandate < EntityBase
    include MangoPay::Jsonifier

    # [String] ID of the concerned bank account
    attr_accessor :bank_account_id

    # [String] Its owner's ID
    attr_accessor :user_id

    # [String] URL to redirect to after payment (whether or not successful)
    attr_accessor :return_url

    # [String] URL which to redirect users to for them to proceed
    # with the payment
    attr_accessor :redirect_url

    # [String] URL where the mandate can be downloaded
    attr_accessor :document_url

    # [MandateCultureCode] ISO code of the language to use for the mandate
    # confirmation page
    attr_accessor :culture

    # [MandateScheme] Its type, will only be set once the mandate
    # has been submitted
    attr_accessor :scheme

    # [MandateStatus] Its status
    attr_accessor :status

    # [String] Its result code
    attr_accessor :result_code

    # [String] Explanation of its result
    attr_accessor :result_message

    # [MandateExecutionType] Execution type for its creation
    attr_accessor :execution_type

    # [MandateType] Its type
    attr_accessor :mandate_type

    # [String] Its banking reference
    attr_accessor :bank_reference
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mangopay-v4-4.1.0 lib/mangopay/model/entity/mandate.rb
mangopay-v4-4.0.2 lib/mangopay/model/entity/mandate.rb
mangopay-v4-4.0.1 lib/mangopay/model/entity/mandate.rb