flexops 1.1.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexops
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - FlexOps, LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-19 00:00:00.000000000 Z
11
+ date: 2026-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -66,20 +66,20 @@ files:
66
66
  - lib/flexops.rb
67
67
  - lib/flexops/client.rb
68
68
  - lib/flexops/errors.rb
69
+ - lib/flexops/hazmat_classification.rb
69
70
  - lib/flexops/http.rb
70
71
  - lib/flexops/resources/analytics.rb
71
- - lib/flexops/resources/api_keys.rb
72
72
  - lib/flexops/resources/auth.rb
73
+ - lib/flexops/resources/carbon_offsets.rb
73
74
  - lib/flexops/resources/carriers.rb
74
75
  - lib/flexops/resources/email_templates.rb
75
76
  - lib/flexops/resources/hs_codes.rb
76
77
  - lib/flexops/resources/insurance.rb
77
78
  - lib/flexops/resources/inventory.rb
78
- - lib/flexops/resources/offsets.rb
79
79
  - lib/flexops/resources/orders.rb
80
80
  - lib/flexops/resources/pickups.rb
81
81
  - lib/flexops/resources/recurring_shipments.rb
82
- - lib/flexops/resources/reports.rb
82
+ - lib/flexops/resources/report_schedules.rb
83
83
  - lib/flexops/resources/returns.rb
84
84
  - lib/flexops/resources/rules.rb
85
85
  - lib/flexops/resources/scan_forms.rb
@@ -88,6 +88,8 @@ files:
88
88
  - lib/flexops/resources/webhooks.rb
89
89
  - lib/flexops/resources/workspaces.rb
90
90
  - lib/flexops/version.rb
91
+ - lib/flexops/webhook_event_type.rb
92
+ - lib/flexops/workspace_role.rb
91
93
  homepage: https://github.com/BillEisenman/flexops-sdk-ruby
92
94
  licenses:
93
95
  - MIT
@@ -1,40 +0,0 @@
1
- # ***********************************************************************
2
- # Package : flexops
3
- # Author : FlexOps, LLC
4
- # Created : 2026-03-08
5
- #
6
- # Copyright (c) 2021-2026 by FlexOps, LLC. All rights reserved.
7
- # ***********************************************************************
8
-
9
- module FlexOps
10
- module Resources
11
- class ApiKeys
12
- def initialize(http, ws_id_proc)
13
- @http = http
14
- @ws_id = ws_id_proc
15
- end
16
-
17
- def list
18
- @http.get("#{ws_path}/api-keys")
19
- end
20
-
21
- def create(request)
22
- @http.post("#{ws_path}/api-keys", body: request)
23
- end
24
-
25
- def revoke(key_id)
26
- @http.delete("#{ws_path}/api-keys/#{key_id}")
27
- end
28
-
29
- def rotate(key_id)
30
- @http.post("#{ws_path}/api-keys/#{key_id}/rotate")
31
- end
32
-
33
- private
34
-
35
- def ws_path
36
- "/api/workspaces/#{@ws_id.call}"
37
- end
38
- end
39
- end
40
- end
@@ -1,38 +0,0 @@
1
- # ***********************************************************************
2
- # Package : flexops
3
- # Author : FlexOps, LLC
4
- # Created : 2026-03-31
5
- #
6
- # Copyright (c) 2021-2026 by FlexOps, LLC. All rights reserved.
7
- # ***********************************************************************
8
-
9
- # frozen_string_literal: true
10
-
11
- module FlexOps
12
- module Resources
13
- class Offsets
14
- def initialize(http, ws_id_proc)
15
- @http = http
16
- @ws_id = ws_id_proc
17
- end
18
-
19
- def offset(label_id)
20
- @http.post("#{ws_path}/shipping/labels/#{label_id}/offset")
21
- end
22
-
23
- def get_emissions(label_id)
24
- @http.get("#{ws_path}/shipping/labels/#{label_id}/emissions")
25
- end
26
-
27
- def batch_offset(label_ids)
28
- @http.post("#{ws_path}/shipping/labels/offset/batch", body: { labelIds: label_ids })
29
- end
30
-
31
- private
32
-
33
- def ws_path
34
- "/api/workspaces/#{@ws_id.call}"
35
- end
36
- end
37
- end
38
- end
@@ -1,46 +0,0 @@
1
- # ***********************************************************************
2
- # Package : flexops
3
- # Author : FlexOps, LLC
4
- # Created : 2026-03-31
5
- #
6
- # Copyright (c) 2021-2026 by FlexOps, LLC. All rights reserved.
7
- # ***********************************************************************
8
-
9
- # frozen_string_literal: true
10
-
11
- module FlexOps
12
- module Resources
13
- class Reports
14
- def initialize(http, ws_id_proc)
15
- @http = http
16
- @ws_id = ws_id_proc
17
- end
18
-
19
- def list
20
- @http.get("#{ws_path}/report-schedules/")
21
- end
22
-
23
- def get(id)
24
- @http.get("#{ws_path}/report-schedules/#{id}")
25
- end
26
-
27
- def create(request)
28
- @http.post("#{ws_path}/report-schedules/", body: request)
29
- end
30
-
31
- def update(id, request)
32
- @http.put("#{ws_path}/report-schedules/#{id}", body: request)
33
- end
34
-
35
- def delete(id)
36
- @http.delete("#{ws_path}/report-schedules/#{id}")
37
- end
38
-
39
- private
40
-
41
- def ws_path
42
- "/api/workspaces/#{@ws_id.call}"
43
- end
44
- end
45
- end
46
- end