Commit 1b72250
authored
update_organization stripe_customer_id param + .rbenv update (#346)
* Update .ruby-version
Problem:
Upon opening this repo, I tried to run `rbenv install` to install the
ruby version required for this project. I was met with the following
error as Ruby 3.0.2 is EOL.
`BUILD FAILED (macOS 15.2 on arm64 using ruby-build 20250115)`
Solution:
I noticed in one of the vcr tests that the user agent was using Ruby
3.1.4. After updating the .ruby-version to 3.1.4 (Which is what I am
assuming the last engineer used), `rbenv install` worked properly and I
was able to bundle and begin contribution.
* Add stripe_customer_id to update_organization
Adds stripe_customer_id as an optional param to update_organization.
This was added in a similar fashion to the node js implementation
(https://workos.com/docs/reference/organization/update) and to match
the initial entitlements documentation
(https://workos.com/docs/user-management/entitlements/use-the-entitlements-in-your-application).
Consumers should now be able to simply call
WorkOS::Organization.update_organization() with a stripe_customer_id to
setup stipe entitlements with their WorkOS orgs.1 parent 3ba8ec0 commit 1b72250
File tree
5 files changed
+110
-4
lines changed- lib/workos
- spec
- lib/workos
- support/fixtures/vcr_cassettes/organization
5 files changed
+110
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
11 | 19 | | |
12 | 20 | | |
13 | 21 | | |
| |||
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
| 27 | + | |
19 | 28 | | |
20 | 29 | | |
21 | 30 | | |
| |||
26 | 35 | | |
27 | 36 | | |
28 | 37 | | |
| 38 | + | |
29 | 39 | | |
30 | 40 | | |
31 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| 141 | + | |
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
298 | 313 | | |
299 | 314 | | |
300 | 315 | | |
| |||
Lines changed: 78 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments