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 +4 -4
- data/Gemfile.lock +7 -1
- data/lib/ap_ruby_sdk.rb +1 -0
- data/lib/ap_ruby_sdk/payment.rb +2 -1
- data/lib/ap_ruby_sdk/plan.rb +10 -4
- data/lib/ap_ruby_sdk/subscription.rb +7 -1
- data/lib/ap_ruby_sdk/transaction.rb +1 -0
- data/lib/ap_ruby_sdk/util.rb +1 -0
- data/lib/ap_ruby_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ffb644e7cc0feee803cbd2850a9368a32900438
|
4
|
+
data.tar.gz: 7ea208ba79e5ebb7f84634a59edd9c76bb5f64ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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'
|
data/lib/ap_ruby_sdk/payment.rb
CHANGED
data/lib/ap_ruby_sdk/plan.rb
CHANGED
@@ -4,12 +4,18 @@ module ApRubySdk
|
|
4
4
|
include ApRubySdk::ApiOperations::Retrieve
|
5
5
|
include ApRubySdk::ApiOperations::List
|
6
6
|
|
7
|
-
attr_accessor :
|
8
|
-
:
|
7
|
+
attr_accessor :name,
|
8
|
+
:description,
|
9
9
|
:amount,
|
10
10
|
:currency,
|
11
|
-
:
|
12
|
-
:
|
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
|
-
:
|
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)
|
data/lib/ap_ruby_sdk/util.rb
CHANGED
data/lib/ap_ruby_sdk/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|