mobicom_candy 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c28ff011620eeeef6af49c7fd34ca187f48694b
4
- data.tar.gz: 6e47b62fa21e37c9ac79d95569dce95a34cdd7b1
3
+ metadata.gz: 7f81edcf1c132958a2534f84b5b20b38323d77f7
4
+ data.tar.gz: 0db403802d4ceec164438f0928a1ccfe67e909ac
5
5
  SHA512:
6
- metadata.gz: d4f0bc4a1f2339217444cb196c7c71b76a771f16dde1d9379fb25ba439c8382a98eade84400d16080cd52902265da0a70fc4c68fefe4483f127c52436ab5daac
7
- data.tar.gz: 211192c35c9fce5d43a6440f49d14f72341c8a257756be1dc40fc386b85864ad26497069c5a54c440ec0db5b8f9ba8a231e21cfde28fe66899755f0f17e7a7f1
6
+ metadata.gz: e74919f92bf90ba97f19bb2f8239617f106efd753c2f020f0eed964cc4e8bcd424d87d17a6cafa946707938713e67bb8c0b82d146473a771d6d7d00b7083748e
7
+ data.tar.gz: b1d53aa1d47caa8d2eb44e0b0e7c96ce3e83a02a5ab86bfe9b8b750620faafd0e8d011488914135bede6c5c7d4ed317c7bd5cc865427c53776a3a3dde784d186
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mobicom_candy (0.1.1)
4
+ mobicom_candy (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -70,10 +70,13 @@ module MobicomCandy
70
70
  # @param [String] tancode
71
71
  # @return [MobicomCandy::Entity]
72
72
  def sell_confirm(customer_id, system, amount, tancode)
73
- post('sellconfirm', 'customer.value' => customer_id, 'customer.system' => system, amount: amount, tancode: tancode)
73
+ post('sellconfirm', 'customer' => {
74
+ value: customer_id,
75
+ system: system
76
+ }, amount: amount, tancode: tancode)
74
77
  end
75
78
 
76
- # @param [String] customer_id
79
+ # @param [String] card_id
77
80
  # @param [String] system
78
81
  # @param [Decimal] amount
79
82
  # @param [String] pin
@@ -83,10 +86,10 @@ module MobicomCandy
83
86
  # @param [String] product
84
87
  # @param [String] product_type
85
88
  # @return [MobicomCandy::Entity]
86
- def sell_card(customer_id, system, amount, pin, description: nil, sms_prefix: nil, sms_suffix: nil, product: nil, product_type: nil)
89
+ def sell_card(card_id, system, amount, pin, description: nil, sms_prefix: nil, sms_suffix: nil, product: nil, product_type: nil)
87
90
  post('sellcard',
88
91
  'customer' => {
89
- value: customer_id,
92
+ value: card_id,
90
93
  system: system
91
94
  },
92
95
  amount: amount,
@@ -1,3 +1,3 @@
1
1
  module MobicomCandy
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobicom_candy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gundsambuu Natsagdorj