ap_ruby_sdk 0.1.2 → 0.1.3

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: fb915f29f7b64fb116403b25a6cceef8d590c62d
4
- data.tar.gz: 1bc2ba007d5399a684a5a48ca943f49623121b6c
3
+ metadata.gz: 2ffb644e7cc0feee803cbd2850a9368a32900438
4
+ data.tar.gz: 7ea208ba79e5ebb7f84634a59edd9c76bb5f64ac
5
5
  SHA512:
6
- metadata.gz: c23ca2e6a4c2290d024be60f89d315229168000acc34c4cf0bce569d009c08a305df18f51c751e65305a73fc7a6ff52a60826fca4a72a743a77c405120e0cab3
7
- data.tar.gz: 7edc6c5ff9551e339ab70effa9fc2a3e55ffdaca13cbb984e12f2ef9b90e7c6cc31a5a150e175f83dde5b9bdf78d3d751596f72d92636f5bbe1521af6ac472f3
6
+ metadata.gz: e766972d0c12baf557569f945678da40839adb16fbe1ca259b845ffc6a2b0f63f1c2c4a5e4eef4771c96d10e86045663490c3d1c66d3773562ec7e3f68207d20
7
+ data.tar.gz: 0aed3190ab651647c0a3d2746e42fd3b64c7644ee3e42b16b6dda623dace0167ab6cd592efb16b67dc516fc0044483540c7842407ffb311bd32a07a5d7822c58
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ap_ruby_sdk (0.1.2)
4
+ ap_ruby_sdk (0.1.3)
5
5
  oj
6
6
  rest-client (~> 1.8)
7
7
  webmock
@@ -48,3 +48,9 @@ DEPENDENCIES
48
48
  rake (~> 10.0)
49
49
  rest-client
50
50
  webmock
51
+
52
+ RUBY VERSION
53
+ ruby 2.2.1p85
54
+
55
+ BUNDLED WITH
56
+ 1.12.5
data/lib/ap_ruby_sdk.rb CHANGED
@@ -27,6 +27,7 @@ require 'ap_ruby_sdk/api_resource'
27
27
  require 'ap_ruby_sdk/customer'
28
28
  require 'ap_ruby_sdk/payment'
29
29
  require 'ap_ruby_sdk/transaction'
30
+ require 'ap_ruby_sdk/hosted_transaction'
30
31
  require 'ap_ruby_sdk/void'
31
32
  require 'ap_ruby_sdk/refund'
32
33
  require 'ap_ruby_sdk/redirect_urls'
@@ -11,7 +11,8 @@ module ApRubySdk
11
11
  :expirationYear,
12
12
  :expirationMonth,
13
13
  :creditCardType,
14
- :bic
14
+ :bic,
15
+ :pinCode
15
16
 
16
17
  end
17
18
  end
@@ -4,12 +4,18 @@ module ApRubySdk
4
4
  include ApRubySdk::ApiOperations::Retrieve
5
5
  include ApRubySdk::ApiOperations::List
6
6
 
7
- attr_accessor :interval,
8
- :period,
7
+ attr_accessor :name,
8
+ :description,
9
9
  :amount,
10
10
  :currency,
11
- :name,
12
- :description
11
+ :intervalUnit,
12
+ :intervalCount,
13
+ :billingCycles,
14
+ :isConversionRateFixed,
15
+ :ipAddress,
16
+ :trialPeriod,
17
+ :cancelSubscriptions
18
+
13
19
 
14
20
  def self.url
15
21
  '/plans'
@@ -10,7 +10,13 @@ module ApRubySdk
10
10
  :paymentId,
11
11
  :plan,
12
12
  :planId,
13
- :status
13
+ :amount,
14
+ :isConversionRateFixed,
15
+ :quantity,
16
+ :currentBillingCycle,
17
+ :ipAddress,
18
+ :status,
19
+ :phoneverification
14
20
 
15
21
  def customer=(customer)
16
22
  @customer = Customer.new(customer)
@@ -7,6 +7,7 @@ module ApRubySdk
7
7
  attr_accessor :customer,
8
8
  :customerId,
9
9
  :payment,
10
+ :paymentId,
10
11
  :token,
11
12
  :amount,
12
13
  :currency,
@@ -65,6 +65,7 @@ module ApRubySdk
65
65
  @object_classes ||= {
66
66
  '/customers' => Customer,
67
67
  '/transactions' => Transaction,
68
+ '/transactions/hosted' => HostedTransaction,
68
69
  '/phoneverification' => PhoneVerification,
69
70
  '/voids' => Void,
70
71
  '/plans' => Plan,
@@ -1,3 +1,3 @@
1
1
  module ApRubySdk
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ap_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marjan, Nenad
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-27 00:00:00.000000000 Z
11
+ date: 2017-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client