rally_up 1.0.2 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/lib/rally_up/partner/organization.rb +8 -0
- data/lib/rally_up/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02fd709c14dea026425ed2e14f6281e3d1981d250c9225788734d1721b62a41e
|
4
|
+
data.tar.gz: 4d1876fec96e3079a35ce2c9840cf66583e42934d1df1af9d18983b54fa83540
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaac5f6125c5d5eb74c89975c4a625cb7450c4283a90ee7d361d05af73b9d95526d221a92bd7f6f5d71be6c204fe305e4f4f945d77b21d75ebb6db8ad12dbbbb
|
7
|
+
data.tar.gz: 3d9ddb024a79091c45db8279176179a6c95cf522e2df48df53a8c69a360a5620c6cf6a526103f3d30f7856ac5b2923ecae5b84a4dc0c1e746bb04f1865603a9d
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rally_up (1.
|
4
|
+
rally_up (1.1.1)
|
5
5
|
http (~> 4.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -15,7 +15,7 @@ GEM
|
|
15
15
|
diff-lcs (1.4.4)
|
16
16
|
domain_name (0.5.20190701)
|
17
17
|
unf (>= 0.0.5, < 1.0.0)
|
18
|
-
ffi (1.15.
|
18
|
+
ffi (1.15.5)
|
19
19
|
ffi-compiler (1.0.1)
|
20
20
|
ffi (>= 1.0.0)
|
21
21
|
rake
|
@@ -25,7 +25,7 @@ GEM
|
|
25
25
|
http-cookie (~> 1.0)
|
26
26
|
http-form_data (~> 2.2)
|
27
27
|
http-parser (~> 1.2.0)
|
28
|
-
http-cookie (1.0.
|
28
|
+
http-cookie (1.0.5)
|
29
29
|
domain_name (~> 0.5)
|
30
30
|
http-form_data (2.3.0)
|
31
31
|
http-parser (1.2.3)
|
@@ -52,7 +52,7 @@ GEM
|
|
52
52
|
rspec-support (3.10.3)
|
53
53
|
unf (0.1.4)
|
54
54
|
unf_ext
|
55
|
-
unf_ext (0.0.8)
|
55
|
+
unf_ext (0.0.8.2)
|
56
56
|
webmock (3.14.0)
|
57
57
|
addressable (>= 2.8.0)
|
58
58
|
crack (>= 0.3.2)
|
@@ -68,6 +68,14 @@ module RallyUp
|
|
68
68
|
json = RallyUp::Partner.json(:get, "/v1/partnerapi/organizations/#{id}")
|
69
69
|
new(json[:Result].to_h)
|
70
70
|
end
|
71
|
+
|
72
|
+
def set_on_behalf_of(id:, on_behalf_of:)
|
73
|
+
RallyUp::Partner.request(:post, '/v1/partnerapi/setonbehalfaccount', params: {
|
74
|
+
OrganizationId: id,
|
75
|
+
StripeOnBehalfAccountId: on_behalf_of
|
76
|
+
})
|
77
|
+
new(Id: id)
|
78
|
+
end
|
71
79
|
end
|
72
80
|
end
|
73
81
|
end
|
data/lib/rally_up/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rally_up
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Richey
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|