vng 3.3.2 → 3.4.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: 3c0af9c8607d71fa3aa223f74a1a89961370b23bd9281e823edcf15c76144b06
4
- data.tar.gz: ff11b94c1ddb0b616ebc2750af6d18bdc8a76ed6b1781c48b93a4c487c1bbe3f
3
+ metadata.gz: 82efc2a53c1701fc7eb085e9288eb19f5aad31bd8c6b53a741b7df6f7f3614fb
4
+ data.tar.gz: ce64e32bef02da3d05f0bb2abe617d43fb3e6a88e5f9ef17b7513d7436de0be6
5
5
  SHA512:
6
- metadata.gz: 684bb3e62c20b3c4c89a2bbf26c2ab52c17a4ea8345838ecdc566e75d0b645d389e2f7559a8c3288dcfdc17332103f2dd4a3f42e0bf730ace0d42a5c3c565853
7
- data.tar.gz: d983ecf12bcd1e98baa4e720ee2b9963fa71197503e2d9db52a856bf1ec80947c022ef296d63a8b6daaa5dfd88ad8c58a9ec4288f243bc7e3cc1cd008ecbc7c6
6
+ metadata.gz: 6d0ea75c0ed1a0597ceeaead6523c2cc1e398127bf6bf52a738f82ccbeb92fe7d1dcc8821beee09716a20976878f2b62c0797e225742215b39aba2ef4237f824
7
+ data.tar.gz: a483291bb5db42d991b3574dca10786f617dd6f7c263142430d926bd9c2cd3a238f01e72ddc655c0c3fdfa70c59f834ccbf8ad4d901b1dec61c3150a8d271cb5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [3.4.0] - 2025-01-22
2
+
3
+ - Add WorkOrder#route_id
4
+
1
5
  ## [3.3.2] - 2025-01-22
2
6
 
3
7
  - Don't assume isActive is returned as a boolean
data/lib/vng/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vng
2
- VERSION = '3.3.2'
2
+ VERSION = '3.4.0'
3
3
  end
@@ -5,9 +5,9 @@ module Vng
5
5
  class WorkOrder < Resource
6
6
  PATH = '/api/v1/data/WorkOrders/'
7
7
 
8
- attr_reader :id, :scheduled_on, :price, :discount, :tax, :tip, :duration, :total
8
+ attr_reader :id, :scheduled_on, :price, :discount, :tax, :tip, :duration, :total, :route_id
9
9
 
10
- def initialize(id:, scheduled_on: nil, price: nil, discount: nil, tax: nil, tip: nil, duration: nil, total: nil)
10
+ def initialize(id:, scheduled_on: nil, price: nil, discount: nil, tax: nil, tip: nil, duration: nil, total: nil, route_id: nil)
11
11
  @id = id
12
12
  @scheduled_on = scheduled_on
13
13
  @price = price
@@ -16,6 +16,7 @@ module Vng
16
16
  @tip = tip
17
17
  @duration = duration
18
18
  @total = total
19
+ @route_id = route_id
19
20
  end
20
21
 
21
22
  def self.create(lock_id:, client_id:, contact_id:, location_id:, duration:, summary:, line_items:)
@@ -56,8 +57,9 @@ module Vng
56
57
  tip = BigDecimal(value_for_field body, 810)
57
58
  duration = Integer(value_for_field body, 186)
58
59
  total = BigDecimal(value_for_field body, 9835)
60
+ route_id = value_for_relation body, 'route'
59
61
 
60
- new id:, scheduled_on:, price:, discount:, tax:, tip:, duration:, total:
62
+ new id:, scheduled_on:, price:, discount:, tax:, tip:, duration:, total:, route_id:
61
63
  end
62
64
  end
63
65
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vng
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.2
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob