Skip to content

Commit bcb3b6a

Browse files
committed
Merge pull request #3 from ashwch/1.1-fixes
1.1 fixes
2 parents e3063e2 + 24d1ae1 commit bcb3b6a

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ end
8585
```
8686
or
8787
```ruby
88-
new_link_params = {title: 'API link 3', description: 'My dummy offer via API', currency: 'INR', quantity: 20}
88+
new_link_params = {base_price: 199, title: 'API link 3', description: 'My dummy offer via API', currency: 'INR', quantity: 20}
8989
new_link = client.create_link(new_link_params)
9090
```
9191

@@ -129,7 +129,7 @@ Details are documented [here](https://www.instamojo.com/developers/rest/#toc-pay
129129

130130
#### Get Payments
131131
```ruby
132-
client.payments
132+
client.payments_list
133133
#=> Returns array of Payment objects
134134
```
135135
#### Detail or status of a payment
@@ -165,7 +165,7 @@ client.payment_request_status('payment_request_id_goes_here')
165165

166166
#### Get Refunds
167167
```ruby
168-
refunds = client.refunds
168+
refunds = client.refunds_list
169169
#=> Returns array of Refund objects
170170
```
171171

@@ -200,7 +200,7 @@ refund.reload!
200200
```
201201
or
202202
```ruby
203-
refunds = client.refunds
203+
refunds = client.refunds_list
204204
refund = refunds.last
205205
refund.reload #=> refetches the refund from server
206206
#=> Instamojo Refund(id: C5c0751269, status: 'Refunded' payment_id: MOJO5c04000J30502939, refund_amount: 100)

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Jeweler::Tasks.new do |gem|
1717
gem.name = "Instamojo-rb"
1818
gem.homepage = "https://github.com/AnkurGel/Instamojo-rb"
1919
gem.license = "MIT"
20-
gem.summary = %Q{Instamojo Ruby library - Assists you to programmatically create, edit and delete links on Instamojo}
20+
gem.summary = %Q{Instamojo Ruby library - Assists you to programmatically create, edit and delete offers on Instamojo}
2121
gem.description = %Q{Instamojo Ruby library - Assists you to programmatically create, edit and delete offers on Instamojo. Also supports payments request, listing and status}
2222
gem.email = "[email protected]"
2323
gem.authors = ["Ankur Goel"]

lib/client/refund.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module Instamojo
33
=begin example
44
{
55
"refund_amount" => "100",
6-
"updated_at" => "2015-12-07T11:01:37.851Z",
76
"payment_id" => "MOJO5c04000J30502939",
87
"body" => "Customer isn't satisfied with the quality",
98
"status" => "Refunded",
@@ -15,7 +14,7 @@ module Instamojo
1514
=end
1615

1716
class Refund
18-
attr_accessor :id, :payment_id, :status, :type, :body, :refund_amount, :total_amount, :created_at, :updated_at
17+
attr_accessor :id, :payment_id, :status, :type, :body, :refund_amount, :total_amount, :created_at
1918

2019
attr_reader :original
2120

0 commit comments

Comments
 (0)