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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66c3780b4fe79816f85ce27656dc8afd84ab81bf4737a378d7dc8937e9f26c84
4
- data.tar.gz: 922850bada38ac2b5d336e7e019b3b6305cab593666821ea43bb5884aa20de07
3
+ metadata.gz: 3af27f2c73bd8b33e59476c4e60c0bfd64da1dfcc9dc48d05f573007af284bad
4
+ data.tar.gz: dd70a7fbe5961f2eda21e49e0bf5efc34d5b0a661fc7d059c0bbb5b8295b6c53
5
5
  SHA512:
6
- metadata.gz: ab51745ce2e660233b48e5c43e93aa89bb04b48337e64092943e8d7b37fbb7f99a59d71bf6f71c16e9a47cedc54cd13eeb530d064c3e9531090315f3dc4b6146
7
- data.tar.gz: 9ee18563c6c9d33df8ddd4061bad40e68017f739e723cae38187abbcebb018c915b1d5282d3e8b203c317e6357f2ef0b63d4b60c6ccde3a89efe37bb53dbc28f
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.2)
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.4)
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.4)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RallyUp
4
- VERSION = '1.0.2'
4
+ VERSION = '1.1.0'
5
5
  end
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.2
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: 2021-12-20 00:00:00.000000000 Z
11
+ date: 2023-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler