bitodeme 0.2.1 → 0.2.2

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: 18c367fed4a1734871f0730600f60d1e2f0f2728
4
- data.tar.gz: 69d820b6b5b915ea30939b9b726220b64023fb68
3
+ metadata.gz: 2896c132359edd6c76e84076763b5abaf4f813dd
4
+ data.tar.gz: b2afeadc2a57c1a53396a42bfefc5d68f90b276b
5
5
  SHA512:
6
- metadata.gz: a9426ce03647d0a65cda41fefc35368e388c4fdc664a031a3f4df77f49cfd81a30b8edf2cf7ac45f3fc55a3852a8189a74ab69c9e7c234af29594a66c88a7745
7
- data.tar.gz: 5ad6ca70a5a4754dd429689953c62280c568e1f60051038c96e2609c2ef3004c6e6587f0c08a7d768c9a1d1c07fe05e9c0da55a331da571798d046f9441c5ee3
6
+ metadata.gz: c045982654c4737aa596feea20d1d5f2f0aa746abe723f1546935ceb1667eaf731784f5e0199d25df3b680133d632234687fb7c348637ef2aa0ec8ca89d82c06
7
+ data.tar.gz: b5eefc048e711cd74073270b52d3865349d86f001347fd5d790f9865e667b83a217cbca8f2340a6b0e0d7a32142419aece6925392293f8b3c85250406b188bbb
data/README.md CHANGED
@@ -86,13 +86,19 @@ invoice = Bitodeme.invoice('id')
86
86
 
87
87
  Build & create an invoice
88
88
  ```ruby
89
+ require 'securerandom'
90
+ my_unique_order_id = SecureRandom.hex
91
+
89
92
  invoice =
90
93
  Bitodeme.build_invoice(
91
94
  name: 'Virtual game gold',
92
95
  description: 'Buy a game gold',
93
96
  original_amount: 16.7,
94
97
  original_currency_code: 'USD',
95
- external_id: 'SomeUniqId',
98
+ external_id: my_unique_order_id,
99
+ notify_url: 'https://requestb.in/1hfs3rr1',
100
+ return_url: 'https://requestb.in/1hfs3rr1',
101
+ cancel_return_url: 'https://requestb.in/xyz',
96
102
  purchasable: {}
97
103
  )
98
104
 
@@ -13,6 +13,9 @@ module Bitodeme
13
13
  # Amount
14
14
  attr_reader :amount
15
15
 
16
+ # Cancellation return url
17
+ attr_reader :cancel_return_url
18
+
16
19
  # Created at in milliseconds
17
20
  attr_reader :created_at
18
21
 
@@ -37,6 +40,9 @@ module Bitodeme
37
40
  # Name/title
38
41
  attr_reader :name
39
42
 
43
+ # Notify url
44
+ attr_reader :notify_url
45
+
40
46
  # Original amount
41
47
  attr_reader :original_amount
42
48
 
@@ -46,6 +52,9 @@ module Bitodeme
46
52
  # Is it purchasable
47
53
  attr_reader :purchasable
48
54
 
55
+ # Successful payment return url
56
+ attr_reader :return_url
57
+
49
58
  # Updated at in milliseconds
50
59
  attr_reader :updated_at
51
60
 
@@ -1,3 +1,3 @@
1
1
  module Bitodeme
2
- VERSION = '0.2.1'.freeze
2
+ VERSION = '0.2.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitodeme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bitodeme Integrations Team