rally_up 1.0.2 → 1.1.0
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: 3af27f2c73bd8b33e59476c4e60c0bfd64da1dfcc9dc48d05f573007af284bad
|
4
|
+
data.tar.gz: dd70a7fbe5961f2eda21e49e0bf5efc34d5b0a661fc7d059c0bbb5b8295b6c53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5af8383f16203e045444a141f0ae308bab1957efc177e4dc49bfb7d7eb7cc552274887a7be0c676b6f3e75e86c29a9f82849b384bad5646e8afe8b61219723f
|
7
|
+
data.tar.gz: 792b74686ce10f2974c74ed734f66b4ee3c4b864b4c83513eea281fd1607f1fbafe8716f2aca12c186b1d977725a49100d928e3b2b88ba4e81aa307eb1dea374
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rally_up (1.0
|
4
|
+
rally_up (1.1.0)
|
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).to_h
|
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.0
|
4
|
+
version: 1.1.0
|
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-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|