zoho_hub 0.1.21 → 0.1.22

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bef57cd4ee9e81ead51f5bffec15c05428ece527014bf0d1cc8b68e1674f1e4
4
- data.tar.gz: 1821d02482af55ee1e8f646372b2ee3d502a2aefe7320d7cffae25c70483894f
3
+ metadata.gz: 616736c1921a9a47f5f76f224bb96a047eaa334753bac8e98e99098d3bdad523
4
+ data.tar.gz: 6553050e9757769bd8d52595e14dff67b5423efaab91d893650b433bf24caabe
5
5
  SHA512:
6
- metadata.gz: a1169d827f96c290e368b0cb79a5390ef670eb939f94fc14eee26f5d678f25c5c03bcaa827354dce5b34a5961406a5482a72777a2b496a0619363553b094cc40
7
- data.tar.gz: 22d127612237d82e84c79aa9f8602df456bfd4a06d3e1ff7a3b469242aca12974b15e8e924bf983910746d3324411fa230db9306e4af0e27c69665f00533e484
6
+ metadata.gz: dd9e063237a240929bfdc99bba7c28f9e469141c65ae5cfb63c59dbe03f571ff2efc3108cb2eef682572f3508f213446450258591418f9e979b610029401283b
7
+ data.tar.gz: 306172118271ddbfae497945c2bee8e32448a11873275f7e07957b09bed414073f9acf4f281e5e65788d65b820d3ad6d78cbd6cdd77facfae9685924ede96e60
@@ -11,6 +11,7 @@ module ZohoHub
11
11
  attributes :campaign_id, :account_id, :contact_id, :campaign_detail, :reviewers_comment
12
12
  attributes :accounting_software, :banking_provider
13
13
  attributes :guarantee_types, :home_ownership_status
14
+ attributes :accountant_id, :vat_registration
14
15
 
15
16
  DEFAULTS = {
16
17
  currency: 'GBP',
@@ -25,7 +26,8 @@ module ZohoHub
25
26
  code: :Project_Ref_No,
26
27
  description: :Project_description,
27
28
  employee_count: :Number_of_Employees,
28
- use_proceeds: :use_proceeds
29
+ use_proceeds: :use_proceeds,
30
+ vat_registration: :Pick_List_15
29
31
  )
30
32
 
31
33
  def initialize(params)
@@ -39,6 +41,7 @@ module ZohoHub
39
41
  @account_id ||= params.dig(:Account_Name, :id)
40
42
  @contact_id ||= params.dig(:Contact_Name, :id)
41
43
  @campaign_id ||= params.dig(:Campaign_Source, :id)
44
+ @accountant_id ||= params.dig(:Accountant_Name, :id)
42
45
  end
43
46
 
44
47
  def to_params
@@ -47,6 +50,7 @@ module ZohoHub
47
50
  params[:Campaign_Source] = { id: @campaign_id } if @campaign_id
48
51
  params[:Account_Name] = { id: @account_id } if @account_id
49
52
  params[:Contact_Name] = { id: @contact_id } if @contact_id
53
+ params[:Accountant_Name] = { id: @accountant_id } if @accountant_id
50
54
 
51
55
  params
52
56
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZohoHub
4
- VERSION = '0.1.21'
4
+ VERSION = '0.1.22'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zoho_hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Otero
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-08 00:00:00.000000000 Z
11
+ date: 2020-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport