moyasar 0.6.4 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9862490dc56ef2b68ff1ef2360b90a2b82d5b0d2
4
- data.tar.gz: 4e2d39952fb39caca9081bad50c672e33af2ab17
3
+ metadata.gz: 1dac4f41b1a5b0035f577020211209837405025c
4
+ data.tar.gz: 89cfa103640483e72295ca99ea2b2e5719cd7bd3
5
5
  SHA512:
6
- metadata.gz: 0e2681882484d94a8aa5ba8d958596e61166d5df21a17a32a96e0fcb92104b78b5cc5cf24049653758b6dafcfabde200b9fdfd1a0beef840fe0f0fd1ea2eb7a6
7
- data.tar.gz: a21ce4d54dc367e77db6db6695e48d1e9ce2ce96847513987be2bb7138a27cefa641c6cfa4b96945d62465e279b54a49097b6fb73b3c4448edca6053178c2740
6
+ metadata.gz: 1172b1ddd4a063fce231e12621a2f87c68f7ba7b6f05657625a79495aafe5a7d9f87274bb3974e8a390ae773a0544822255874c3491cef798e612c614a7e4906
7
+ data.tar.gz: 28111a55edc5c3fa4bfe6938d199e80c98de5468a2292d1c523a81a0307e1668e386fc9e889a50098d76d047811490240a16896a3670cd1b019675ce02aa85b6
@@ -3,7 +3,7 @@ module Moyasar
3
3
  include Moyasar::Actions::Refund
4
4
 
5
5
  attr_reader :id, :status, :amount, :amount_format, :fee, :fee_format, :currency, :invoice_id,
6
- :source, :refunded, :refunded_at, :ip, :created_at, :updated_at
6
+ :source, :refunded, :refunded_at, :ip, :created_at, :updated_at, :callback_url
7
7
  attr_accessor :description
8
8
 
9
9
  def initialize(attrs = {})
@@ -26,8 +26,8 @@ module Moyasar
26
26
 
27
27
  class << self
28
28
 
29
- def create(source:, amount:, currency: 'SAR', description: nil, invoice_id: nil)
30
- params = {amount: amount, currency: currency, description: description, source: source, invoice_id: invoice_id}
29
+ def create(source:, amount:, currency: 'SAR', description: nil, invoice_id: nil, callback_url: nil)
30
+ params = {amount: amount, currency: currency, description: description, source: source, invoice_id: invoice_id, callback_url: callback_url}
31
31
  super(params)
32
32
  end
33
33
 
@@ -1,6 +1,6 @@
1
1
  module Moyasar
2
2
  class CreditCard < Source
3
- attr_reader :company, :name, :number, :message
3
+ attr_reader :company, :name, :number, :message, :transaction_url
4
4
 
5
5
  def ==(other)
6
6
  return unless other.instance_of? CreditCard
@@ -1,3 +1,3 @@
1
1
  module Moyasar
2
- VERSION = '0.6.4'
2
+ VERSION = '0.6.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moyasar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdulaziz AlShetwi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-18 00:00:00.000000000 Z
11
+ date: 2017-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler