active_campaign_webhooks 0.3.0 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) 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 +21 -21
  12. data/lib/active_campaign/webhooks/request/form.rb +2 -2
  13. data/lib/active_campaign/webhooks/request/forward.rb +2 -2
  14. data/lib/active_campaign/webhooks/request/forward_request.rb +2 -2
  15. data/lib/active_campaign/webhooks/request/link.rb +2 -2
  16. data/lib/active_campaign/webhooks/request/open_request.rb +2 -2
  17. data/lib/active_campaign/webhooks/request/pipeline.rb +2 -2
  18. data/lib/active_campaign/webhooks/request/reply_request.rb +2 -2
  19. data/lib/active_campaign/webhooks/request/sent_request.rb +2 -2
  20. data/lib/active_campaign/webhooks/request/share.rb +2 -2
  21. data/lib/active_campaign/webhooks/request/share_request.rb +2 -2
  22. data/lib/active_campaign/webhooks/request/stage.rb +2 -2
  23. data/lib/active_campaign/webhooks/request/subscribe_request.rb +2 -2
  24. data/lib/active_campaign/webhooks/request/task.rb +4 -4
  25. data/lib/active_campaign/webhooks/request/tasktype.rb +2 -2
  26. data/lib/active_campaign/webhooks/request/unsubscribe_request.rb +2 -2
  27. data/lib/active_campaign/webhooks/version.rb +1 -1
  28. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9780bd69114fc941e7dbec7a47350def2d330f927f2bfb2ab1abf43957b25b5a
4
- data.tar.gz: 0325d378d3d74f57f34fe761f6f51212df985fd933e34ceaadec40032f6eff4f
3
+ metadata.gz: 3c47c35aab81851fc5f730d590aa27c5057e6c8eab637611c79ad932541a5c29
4
+ data.tar.gz: ead058e76b7e9a96a3e500b2b1d76dbb0b4c217aeb28e3f5946d25baab923868
5
5
  SHA512:
6
- metadata.gz: 177a1ba68dab623c4289626c3d63c75cd83c6e50ba648f040a8265542ef0901ade96d3f0606e5b964196713936508353ae7df08f6c1a0addbd56bb478f3e93cf
7
- data.tar.gz: 6f965a026c03fb2b8da37bd3823ecd27b604284e7c00df7f909f20d641f88dfe2cc205c89f08017dd4c9a5bb21d3a447e0de763f44500932d027ded9df95e351
6
+ metadata.gz: a3b2ab0573d943e10e8bafe1f88756fda4069f6c939fcd6556a7c0673975968373fca74e09108960257077c45f5f97d6ad1471e7a7bbc9b2f7e05833a07e18cd
7
+ data.tar.gz: 48eb7023976716415f360395264ae56537e119bd94191297da7a325d9f773ecde4b72059354428597c9d17d25fa59df4649fd68861289643ec69e2be9a560aa7
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_campaign_webhooks (0.3.0)
4
+ active_campaign_webhooks (0.3.5)
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,40 +5,42 @@ 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]
29
31
  attribute :title
30
- # @return [String]
31
- attribute :customer_acct_name
32
+ # @return [DateTime]
33
+ attribute :create_date, :DateTime
32
34
  # @return [String]
33
35
  attribute :stage_title
34
- # @return [Number]
35
- attribute :pipelineid, :Number
36
+ # @return [Integer]
37
+ attribute :pipelineid, :Integer
36
38
  # @return [String]
37
39
  attribute :note
38
- # @return [Number]
39
- attribute :contactid, :Number
40
- # @return [Number]
41
- attribute :status, :Number
40
+ # @return [Integer]
41
+ attribute :contactid, :Integer
42
+ # @return [Integer]
43
+ attribute :status, :Integer
42
44
  # @return [String]
43
45
  attribute :contact_firstname
44
46
  # @return [String]
@@ -46,8 +48,6 @@ module ActiveCampaign
46
48
  # @return [String]
47
49
  attribute :contact_avatar
48
50
  # @return [Float]
49
- attribute :age, :Float
50
- # @return [Float]
51
51
  attribute :value, :Float
52
52
  # @return [String]
53
53
  attribute :owner_firstname
@@ -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.0'
5
+ VERSION = '0.3.5'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_campaign_webhooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Boyne