active_campaign_webhooks 0.3.1 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/active_campaign/webhooks/request/account.rb +2 -2
  4. data/lib/active_campaign/webhooks/request/account_contact.rb +6 -6
  5. data/lib/active_campaign/webhooks/request/account_contact_removed.rb +6 -6
  6. data/lib/active_campaign/webhooks/request/base_request.rb +2 -2
  7. data/lib/active_campaign/webhooks/request/campaign.rb +6 -6
  8. data/lib/active_campaign/webhooks/request/click_request.rb +2 -2
  9. data/lib/active_campaign/webhooks/request/contact.rb +3 -5
  10. data/lib/active_campaign/webhooks/request/contact_tag_added_request.rb +2 -2
  11. data/lib/active_campaign/webhooks/request/deal.rb +19 -21
  12. data/lib/active_campaign/webhooks/request/deal_update_request.rb +2 -0
  13. data/lib/active_campaign/webhooks/request/form.rb +2 -2
  14. data/lib/active_campaign/webhooks/request/forward.rb +2 -2
  15. data/lib/active_campaign/webhooks/request/forward_request.rb +2 -2
  16. data/lib/active_campaign/webhooks/request/link.rb +2 -2
  17. data/lib/active_campaign/webhooks/request/open_request.rb +2 -2
  18. data/lib/active_campaign/webhooks/request/pipeline.rb +2 -2
  19. data/lib/active_campaign/webhooks/request/reply_request.rb +2 -2
  20. data/lib/active_campaign/webhooks/request/sent_request.rb +2 -2
  21. data/lib/active_campaign/webhooks/request/share.rb +2 -2
  22. data/lib/active_campaign/webhooks/request/share_request.rb +2 -2
  23. data/lib/active_campaign/webhooks/request/stage.rb +2 -2
  24. data/lib/active_campaign/webhooks/request/subscribe_request.rb +2 -2
  25. data/lib/active_campaign/webhooks/request/task.rb +4 -4
  26. data/lib/active_campaign/webhooks/request/tasktype.rb +2 -2
  27. data/lib/active_campaign/webhooks/request/unsubscribe_request.rb +2 -2
  28. data/lib/active_campaign/webhooks/version.rb +1 -1
  29. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3b6c8ab25e084f18d71c756de475396084b18e09f8ea370d18485139d517331
4
- data.tar.gz: b359ef2a3c355ea4f12833ac92f7bde7b84349d2b66653c8e60195d8018b821f
3
+ metadata.gz: 859504f75153d3bfe3864ca9167b30f581c47ec97c2e2fdbe33a310ed0ecd6fa
4
+ data.tar.gz: e4e2aa2f303a3f330faae1fc4d54afd2725cecd49584e22cfb2dd778b8777740
5
5
  SHA512:
6
- metadata.gz: 12b4bbec42323b6f542fefa93ddca97506fc1109dfa4c4922362b2834b4cfc8907867f438711b6485e08b4ec08ddd75ffd0153f3dbeb323253160e13bc549b0f
7
- data.tar.gz: dd9e05e31c2a8824d53f35c3da3accd3aa76778037320c4369866be1b0f2a81b5b023750e133ebcb3082fe45a9fb12423b5c73ad6e6ca3c6b20c9e8b2425f7b2
6
+ metadata.gz: e7b80f0a391c1fca45e7778e0b9d2dd1c9d5b1f63a4020b75ecca21c784ff4fd5b79e0c6903b0e20c1d7ea1b8ccbf1ab130cd0ed7129b3d1019f0a8039d82ae0
7
+ data.tar.gz: '059af66f4e64ff35086bbe4208b0aef050a58d7ca20853f8ef8a9d622150ffd75539503fa32076641a9090c1e6680f831053bd858c7badc038ed2e90900fc19a'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_campaign_webhooks (0.3.1)
4
+ active_campaign_webhooks (0.3.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -5,8 +5,8 @@ module ActiveCampaign
5
5
  module Request
6
6
  # AC Request Struct Account
7
7
  class Account < BaseRecord
8
- # @return [Number]
9
- attribute :id, :Number
8
+ # @return [Integer]
9
+ attribute :id, :Integer
10
10
  # @return [String]
11
11
  attribute :account_name
12
12
  # @return [String]
@@ -5,12 +5,12 @@ module ActiveCampaign
5
5
  module Request
6
6
  # AC Request Struct AccountContact
7
7
  class AccountContact < BaseRecord
8
- # @return [Number]
9
- attribute :id, :Number
10
- # @return [Number]
11
- attribute :account, :Number
12
- # @return [Number]
13
- attribute :contact, :Number
8
+ # @return [Integer]
9
+ attribute :id, :Integer
10
+ # @return [Integer]
11
+ attribute :account, :Integer
12
+ # @return [Integer]
13
+ attribute :contact, :Integer
14
14
  # @return [String]
15
15
  attribute :job_title
16
16
  end
@@ -5,12 +5,12 @@ module ActiveCampaign
5
5
  module Request
6
6
  # AC Request Struct AccountContactRemoved
7
7
  class AccountContactRemoved < BaseRecord
8
- # @return [Number]
9
- attribute :id, :Number
10
- # @return [Number]
11
- attribute :account, :Number
12
- # @return [Number]
13
- attribute :contact, :Number
8
+ # @return [Integer]
9
+ attribute :id, :Integer
10
+ # @return [Integer]
11
+ attribute :account, :Integer
12
+ # @return [Integer]
13
+ attribute :contact, :Integer
14
14
  end
15
15
  end
16
16
  end
@@ -13,8 +13,8 @@ module ActiveCampaign
13
13
  attribute :initiated_from
14
14
  # @return [String]
15
15
  attribute :initiated_by
16
- # @return [Number]
17
- attribute :list, :Number
16
+ # @return [Integer]
17
+ attribute :list, :Integer
18
18
  end
19
19
  end
20
20
  end
@@ -5,12 +5,12 @@ module ActiveCampaign
5
5
  module Request
6
6
  # AC Request Struct Campaign
7
7
  class Campaign < BaseRecord
8
- # @return [Number]
9
- attribute :id, :Number
10
- # @return [Number]
11
- attribute :status, :Number
12
- # @return [Number]
13
- attribute :recipients, :Number
8
+ # @return [Integer]
9
+ attribute :id, :Integer
10
+ # @return [Integer]
11
+ attribute :status, :Integer
12
+ # @return [Integer]
13
+ attribute :recipients, :Integer
14
14
  # @return [String]
15
15
  attribute :webcopy_url
16
16
  end
@@ -7,8 +7,8 @@ module ActiveCampaign
7
7
  class ClickRequest < BaseRecord
8
8
  # @return [String]
9
9
  attribute :url
10
- # @return [Number]
11
- attribute :list, :Number
10
+ # @return [Integer]
11
+ attribute :list, :Integer
12
12
  # @return [Campaign]
13
13
  attribute :campaign, :Campaign
14
14
  # @return [Contact]
@@ -11,8 +11,8 @@ module ActiveCampaign
11
11
  attribute :first_name
12
12
  # @return [String]
13
13
  attribute :last_name
14
- # @return [Number]
15
- attribute :id, :Number
14
+ # @return [Integer]
15
+ attribute :id, :Integer
16
16
  # @return [String]
17
17
  attribute :tags
18
18
  # @return [String]
@@ -20,9 +20,7 @@ module ActiveCampaign
20
20
  # @return [String]
21
21
  attribute :phone
22
22
  # @return [String]
23
- attribute :customer_acct_name
24
- # @return [Number]
25
- attribute :customer_acct_id, :Number
23
+ attribute :orgname
26
24
  # @return [Hash]
27
25
  attribute :fields
28
26
  end
@@ -7,8 +7,8 @@ module ActiveCampaign
7
7
  class ContactTagAddedRequest < BaseRequest
8
8
  # @return [String]
9
9
  attribute :url
10
- # @return [Number]
11
- attribute :list, :Number
10
+ # @return [Integer]
11
+ attribute :list, :Integer
12
12
  # @return [String]
13
13
  attribute :tag
14
14
  # @return [Contact]
@@ -5,24 +5,26 @@ module ActiveCampaign
5
5
  module Request
6
6
  # AC Request Struct Deal
7
7
  class Deal < BaseRecord
8
- STATUS_OPEN = '0'
9
- STATUS_WON = '1'
10
- STATUS_LOST = '2'
8
+ STATUS_OPEN = 0
9
+ STATUS_WON = 1
10
+ STATUS_LOST = 2
11
11
 
12
12
  # @return [String]
13
13
  attribute :currency_symbol
14
14
  # @return [String]
15
15
  attribute :currency
16
- # @return [Number]
17
- attribute :customer_acct_id, :Number
18
- # @return [Number]
19
- attribute :stageid, :Number
20
- # @return [Number]
21
- attribute :owner, :Number
16
+ # @return [Integer]
17
+ attribute :orgid, :Integer
18
+ # @return [String]
19
+ attribute :orgname
20
+ # @return [Integer]
21
+ attribute :stageid, :Integer
22
+ # @return [Integer]
23
+ attribute :owner, :Integer
22
24
  # @return [String]
23
25
  attribute :contact_lastname
24
- # @return [Number]
25
- attribute :id, :Number
26
+ # @return [Integer]
27
+ attribute :id, :Integer
26
28
  # @return [String]
27
29
  attribute :pipeline_title
28
30
  # @return [String]
@@ -30,17 +32,15 @@ module ActiveCampaign
30
32
  # @return [DateTime]
31
33
  attribute :create_date, :DateTime
32
34
  # @return [String]
33
- attribute :customer_acct_name
34
- # @return [String]
35
35
  attribute :stage_title
36
- # @return [Number]
37
- attribute :pipelineid, :Number
36
+ # @return [Integer]
37
+ attribute :pipelineid, :Integer
38
38
  # @return [String]
39
39
  attribute :note
40
- # @return [Number]
41
- attribute :contactid, :Number
42
- # @return [Number]
43
- attribute :status, :Number
40
+ # @return [Integer]
41
+ attribute :contactid, :Integer
42
+ # @return [Integer]
43
+ attribute :status, :Integer
44
44
  # @return [String]
45
45
  attribute :contact_firstname
46
46
  # @return [String]
@@ -48,8 +48,6 @@ module ActiveCampaign
48
48
  # @return [String]
49
49
  attribute :contact_avatar
50
50
  # @return [Float]
51
- attribute :age, :Float
52
- # @return [Float]
53
51
  attribute :value, :Float
54
52
  # @return [String]
55
53
  attribute :owner_firstname
@@ -7,6 +7,8 @@ module ActiveCampaign
7
7
  class DealUpdateRequest < BaseRequest
8
8
  # @return [Deal]
9
9
  attribute :deal, :Deal
10
+ # @return [Contact]
11
+ attribute :contact, :Contact
10
12
  # @return [Hash]
11
13
  attribute :updated_fields
12
14
  end
@@ -5,8 +5,8 @@ module ActiveCampaign
5
5
  module Request
6
6
  # AC Request Struct Form
7
7
  class Form < BaseRecord
8
- # @return [Number]
9
- attribute :id, :Number
8
+ # @return [Integer]
9
+ attribute :id, :Integer
10
10
  end
11
11
  end
12
12
  end
@@ -5,8 +5,8 @@ module ActiveCampaign
5
5
  module Request
6
6
  # AC Request Struct Forward
7
7
  class Forward < BaseRecord
8
- # @return [Number]
9
- attribute :count, :Number
8
+ # @return [Integer]
9
+ attribute :count, :Integer
10
10
  end
11
11
  end
12
12
  end
@@ -7,8 +7,8 @@ module ActiveCampaign
7
7
  class ForwardRequest < BaseRequest
8
8
  # @return [String]
9
9
  attribute :url
10
- # @return [Number]
11
- attribute :list, :Number
10
+ # @return [Integer]
11
+ attribute :list, :Integer
12
12
  # @return [Campaign]
13
13
  attribute :campaign, :Campaign
14
14
  # @return [Contact]
@@ -5,8 +5,8 @@ module ActiveCampaign
5
5
  module Request
6
6
  # AC Request Struct Link
7
7
  class Link < BaseRecord
8
- # @return [Number]
9
- attribute :id, :Number
8
+ # @return [Integer]
9
+ attribute :id, :Integer
10
10
  # @return [String]
11
11
  attribute :url
12
12
  end
@@ -7,8 +7,8 @@ module ActiveCampaign
7
7
  class OpenRequest < BaseRequest
8
8
  # @return [String]
9
9
  attribute :url
10
- # @return [Number]
11
- attribute :list, :Number
10
+ # @return [Integer]
11
+ attribute :list, :Integer
12
12
  # @return [Campaign]
13
13
  attribute :campaign, :Campaign
14
14
  # @return [Contact]
@@ -5,8 +5,8 @@ module ActiveCampaign
5
5
  module Request
6
6
  # AC Request Struct Pipeline
7
7
  class Pipeline < BaseRecord
8
- # @return [Number]
9
- attribute :id, :Number
8
+ # @return [Integer]
9
+ attribute :id, :Integer
10
10
  # @return [String]
11
11
  attribute :title
12
12
  end
@@ -7,8 +7,8 @@ module ActiveCampaign
7
7
  class ReplyRequest < BaseRequest
8
8
  # @return [String]
9
9
  attribute :url
10
- # @return [Number]
11
- attribute :list, :Number
10
+ # @return [Integer]
11
+ attribute :list, :Integer
12
12
  # @return [Campaign]
13
13
  attribute :campaign, :Campaign
14
14
  # @return [Contact]
@@ -7,8 +7,8 @@ module ActiveCampaign
7
7
  class SentRequest < BaseRequest
8
8
  # @return [String]
9
9
  attribute :url
10
- # @return [Number]
11
- attribute :list, :Number
10
+ # @return [Integer]
11
+ attribute :list, :Integer
12
12
  # @return [Campaign]
13
13
  attribute :campaign, :Campaign
14
14
  end
@@ -7,8 +7,8 @@ module ActiveCampaign
7
7
  class Share < BaseRecord
8
8
  # @return [String]
9
9
  attribute :network
10
- # @return [Number]
11
- attribute :network_id, :Number
10
+ # @return [Integer]
11
+ attribute :network_id, :Integer
12
12
  # @return [String]
13
13
  attribute :content
14
14
  end
@@ -7,8 +7,8 @@ module ActiveCampaign
7
7
  class ShareRequest < BaseRequest
8
8
  # @return [String]
9
9
  attribute :url
10
- # @return [Number]
11
- attribute :list, :Number
10
+ # @return [Integer]
11
+ attribute :list, :Integer
12
12
  # @return [Campaign]
13
13
  attribute :campaign, :Campaign
14
14
  # @return [Contact]
@@ -5,8 +5,8 @@ module ActiveCampaign
5
5
  module Request
6
6
  # AC Request Struct Share
7
7
  class Stage < BaseRecord
8
- # @return [Number]
9
- attribute :id, :Number
8
+ # @return [Integer]
9
+ attribute :id, :Integer
10
10
  # @return [String]
11
11
  attribute :title
12
12
  # @return [String]
@@ -7,8 +7,8 @@ module ActiveCampaign
7
7
  class SubscribeRequest < BaseRequest
8
8
  # @return [String]
9
9
  attribute :url
10
- # @return [Number]
11
- attribute :list, :Number
10
+ # @return [Integer]
11
+ attribute :list, :Integer
12
12
  # @return [Form]
13
13
  attribute :form, :Form
14
14
  # @return [Contact]
@@ -7,8 +7,8 @@ module ActiveCampaign
7
7
  class Task < BaseRecord
8
8
  # @return [String]
9
9
  attribute :note
10
- # @return [Number]
11
- attribute :id, :Number
10
+ # @return [Integer]
11
+ attribute :id, :Integer
12
12
  # @return [DateTime]
13
13
  attribute :duedate, :DateTime
14
14
  # @return [DateTime]
@@ -17,8 +17,8 @@ module ActiveCampaign
17
17
  attribute :type_title
18
18
  # @return [String]
19
19
  attribute :title
20
- # @return [Number]
21
- attribute :type_id, :Number
20
+ # @return [Integer]
21
+ attribute :type_id, :Integer
22
22
  end
23
23
  end
24
24
  end
@@ -5,8 +5,8 @@ module ActiveCampaign
5
5
  module Request
6
6
  # AC Request Struct Tasktype
7
7
  class Tasktype < BaseRecord
8
- # @return [Number]
9
- attribute :id, :Number
8
+ # @return [Integer]
9
+ attribute :id, :Integer
10
10
  # @return [String]
11
11
  attribute :title
12
12
  end
@@ -7,8 +7,8 @@ module ActiveCampaign
7
7
  class UnsubscribeRequest < BaseRequest
8
8
  # @return [String]
9
9
  attribute :url
10
- # @return [Number]
11
- attribute :list, :Number
10
+ # @return [Integer]
11
+ attribute :list, :Integer
12
12
  # @return [Campaign]
13
13
  attribute :form, :Campaign
14
14
  # @return [Campaign]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveCampaign
4
4
  module Webhooks
5
- VERSION = '0.3.1'
5
+ VERSION = '0.3.6'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_campaign_webhooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Boyne
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-11 00:00:00.000000000 Z
11
+ date: 2020-10-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: