class Mollie::PaymentLink

Attributes

amount[R]
archived[RW]
created_at[R]
description[RW]
expires_at[R]
id[RW]
mode[RW]
paid_at[R]
profile_id[RW]
redirect_url[RW]
updated_at[R]
webhook_url[RW]

Public Class Methods

embedded_resource_name(_parent_id = nil) click to toggle source
# File lib/mollie/payment_link.rb, line 20
def self.embedded_resource_name(_parent_id = nil)
  "payment_links"
end
resource_name(_parent_id = nil) click to toggle source
# File lib/mollie/payment_link.rb, line 24
def self.resource_name(_parent_id = nil)
  "payment-links"
end

Public Instance Methods

amount=(amount) click to toggle source
# File lib/mollie/payment_link.rb, line 28
def amount=(amount)
  @amount = Mollie::Amount.new(amount)
end
archived?() click to toggle source
# File lib/mollie/payment_link.rb, line 32
def archived?
  archived
end
created_at=(created_at) click to toggle source
# File lib/mollie/payment_link.rb, line 36
def created_at=(created_at)
  @created_at = Time.parse(created_at.to_s)
end
expires_at=(expires_at) click to toggle source
# File lib/mollie/payment_link.rb, line 52
def expires_at=(expires_at)
  @expires_at = Time.parse(expires_at.to_s)
rescue
  nil
end
paid_at=(paid_at) click to toggle source
payments(options = {}) click to toggle source
# File lib/mollie/payment_link.rb, line 62
def payments(options = {})
  resource_url = Util.extract_url(links, "self")
  payments_url = File.join(resource_url, "/payments")

  response = Mollie::Client.instance.perform_http_call("GET", payments_url, nil, {}, options)
  Mollie::List.new(response, Mollie::Payment)
end
updated_at=(updated_at) click to toggle source
# File lib/mollie/payment_link.rb, line 46
def updated_at=(updated_at)
  @updated_at = Time.parse(updated_at.to_s)
rescue
  nil
end