bucket_cake 4.0.0 → 5.0.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
  SHA1:
3
- metadata.gz: 22f025faf42512d5898c9e5937c839072bd92bd5
4
- data.tar.gz: 7f22328a60b9880adf55053dc8d88c9d2445128c
3
+ metadata.gz: c52d8b4c151f5ad2af7f12b7e17dfac67295577f
4
+ data.tar.gz: 042fe4cbe711b16b8248768e79280e0db719ef9d
5
5
  SHA512:
6
- metadata.gz: 001b1b56fa08f99116250c2a0b102c9cd5a83973a3d4fd28a1647b85eb76962edd0b0cebc675901e223fd7bb2942e370eee66f5d979f57f908536449a3e507e8
7
- data.tar.gz: f0952ab6ae93dfa002d4ec0d3e08908d98358241b14a4adbf05aa90c1374cc6b0c8d0bb42af9959215c315d9da5f44efb7510cd1f8d557d1b97685d594a57189
6
+ metadata.gz: 0358a64b9fe6fd249a380f9a00a6a969bd9755c7ec981c3fd2ed4066cb40b5f295b2331117c37b6425d6b1a3ac49bb07ecc556f350383a857020acee809f8ba2
7
+ data.tar.gz: fb46eff22dab8da1e105c2d9ce394d56a10b2a68881a5eaacf909a4e349c07a8bdae1924db9148526138904f61a0b45a757e77b4ecb743d220d7a77f804d342b
@@ -0,0 +1,32 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: advertisers.proto
3
+
4
+
5
+ Google::Protobuf::DescriptorPool.generated_pool.build do
6
+ add_message "cakeproto.Advertiser" do
7
+ optional :id, :int64, 1
8
+ optional :name, :string, 2
9
+ optional :account_manager, :message, 3, "cakeproto.IdName"
10
+ optional :account_status, :message, 4, "cakeproto.IdName"
11
+ optional :street1, :string, 5
12
+ optional :street2, :string, 6
13
+ optional :city, :string, 7
14
+ optional :state, :string, 8
15
+ optional :zip_code, :string, 9
16
+ optional :country, :string, 10
17
+ optional :website, :string, 11
18
+ repeated :contacts, :message, 12, "cakeproto.Contact"
19
+ repeated :tags, :message, 13, "cakeproto.IdName"
20
+ repeated :suppression_lists, :message, 14, "cakeproto.SuppressionList"
21
+ repeated :blacklists, :message, 15, "cakeproto.Blacklist"
22
+ optional :billing_cycle, :message, 16, "cakeproto.IdName"
23
+ optional :quickbooks_id, :string, 17
24
+ optional :online_signup, :bool, 18
25
+ optional :date_created, :message, 19, "cakeproto.TimeWithZone"
26
+ optional :notes, :string, 20
27
+ end
28
+ end
29
+
30
+ module Cakeproto
31
+ Advertiser = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Advertiser").msgclass
32
+ end
@@ -0,0 +1,64 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: affiliates.proto
3
+
4
+
5
+ Google::Protobuf::DescriptorPool.generated_pool.build do
6
+ add_message "cakeproto.Affiliate" do
7
+ optional :id, :int64, 1
8
+ optional :name, :string, 2
9
+ optional :tier, :message, 3, "cakeproto.IdName"
10
+ optional :account_manager, :message, 4, "cakeproto.IdName"
11
+ optional :account_status, :message, 5, "cakeproto.IdName"
12
+ optional :street1, :string, 6
13
+ optional :street2, :string, 7
14
+ optional :city, :string, 8
15
+ optional :state, :string, 9
16
+ optional :zip_code, :string, 10
17
+ optional :country, :string, 11
18
+ optional :website, :string, 12
19
+ optional :payment_type, :message, 13, "cakeproto.Affiliate.PaymentType"
20
+ repeated :contacts, :message, 14, "cakeproto.Contact"
21
+ repeated :tags, :message, 15, "cakeproto.IdName"
22
+ repeated :traffic_price_formats, :message, 16, "cakeproto.IdName"
23
+ repeated :traffic_media_types, :message, 17, "cakeproto.MediaType"
24
+ repeated :traffic_vertical_categories, :message, 18, "cakeproto.IdName"
25
+ repeated :traffic_countries, :message, 19, "cakeproto.Country"
26
+ optional :minimum_payment_threshold, :double, 20
27
+ optional :auto_payment_fee, :double, 21
28
+ optional :payment_to, :string, 22
29
+ optional :tax_class, :string, 23
30
+ optional :ssn_tax_id, :string, 24
31
+ optional :pay_vat, :bool, 25
32
+ optional :swift_iban, :string, 26
33
+ optional :referrals_enabled, :bool, 27
34
+ optional :referred_by_affiliate, :message, 28, "cakeproto.IdName"
35
+ optional :referral_info, :string, 29
36
+ optional :billing_cycle, :message, 30, "cakeproto.IdName"
37
+ optional :currency, :message, 31, "cakeproto.Currency"
38
+ optional :currency_payment_setting, :message, 32, "cakeproto.IdName"
39
+ optional :online_signup, :bool, 33
40
+ optional :pay_for_conversions, :bool, 34
41
+ optional :review, :bool, 35
42
+ optional :review_new_subaffiliates, :bool, 36
43
+ optional :suppression, :bool, 37
44
+ optional :pixel_info, :message, 38, "cakeproto.PixelInfo"
45
+ optional :fire_global_pixel, :bool, 39
46
+ repeated :blacklists, :message, 40, "cakeproto.Blacklist"
47
+ optional :redirect_domain_override, :string, 41
48
+ optional :auto_approve_campaigns, :bool, 42
49
+ optional :auto_approve_pixels, :bool, 43
50
+ optional :hide_offers, :bool, 44
51
+ optional :date_created, :message, 45, "cakeproto.TimeWithZone"
52
+ optional :notes, :string, 46
53
+ end
54
+ add_message "cakeproto.Affiliate.PaymentType" do
55
+ optional :id, :int64, 1
56
+ optional :name, :string, 2
57
+ optional :info, :string, 3
58
+ end
59
+ end
60
+
61
+ module Cakeproto
62
+ Affiliate = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Affiliate").msgclass
63
+ Affiliate::PaymentType = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Affiliate.PaymentType").msgclass
64
+ end
@@ -0,0 +1,58 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: campaigns.proto
3
+
4
+
5
+ Google::Protobuf::DescriptorPool.generated_pool.build do
6
+ add_message "cakeproto.Campaign" do
7
+ optional :id, :int64, 1
8
+ optional :type, :message, 2, "cakeproto.IdName"
9
+ optional :affiliate, :message, 3, "cakeproto.IdName"
10
+ optional :offer, :message, 4, "cakeproto.IdName"
11
+ optional :offer_contract, :message, 5, "cakeproto.IdName"
12
+ optional :original, :bool, 6
13
+ repeated :blocked_sub_affiliates, :message, 7, "cakeproto.IdName"
14
+ repeated :blocked_creatives, :message, 8, "cakeproto.IdName"
15
+ optional :account_status, :message, 9, "cakeproto.IdName"
16
+ optional :currency, :message, 10, "cakeproto.Currency"
17
+ optional :media_type, :message, 11, "cakeproto.IdName"
18
+ optional :link_display_type, :message, 12, "cakeproto.IdName"
19
+ repeated :event_overrides, :message, 13, "cakeproto.EventOverride"
20
+ optional :date_contacted, :message, 14, "cakeproto.TimeWithZone"
21
+ optional :date_io_sent, :message, 15, "cakeproto.TimeWithZone"
22
+ optional :date_io_signed, :message, 16, "cakeproto.TimeWithZone"
23
+ optional :date_creative_sent, :message, 17, "cakeproto.TimeWithZone"
24
+ optional :date_pixel_placed, :message, 18, "cakeproto.TimeWithZone"
25
+ repeated :payouts, :message, 19, "cakeproto.HistorizedMoney"
26
+ optional :paid, :bool, 20
27
+ optional :paid_redirects, :bool, 21
28
+ optional :disable_prepop_appending, :bool, 22
29
+ optional :redirect_domain, :string, 23
30
+ optional :click_cap, :message, 24, "cakeproto.Cap"
31
+ optional :conversion_cap, :message, 25, "cakeproto.Cap"
32
+ optional :pixel_info, :message, 26, "cakeproto.PixelInfo"
33
+ optional :disable_upsells, :bool, 27
34
+ optional :paid_upsells, :bool, 28
35
+ optional :paid_upsells_same_session_only, :bool, 29
36
+ optional :clear_session_on_conversion, :bool, 30
37
+ repeated :upsells, :message, 31, "cakeproto.Upsell"
38
+ repeated :voucher_codes, :message, 32, "cakeproto.Campaign.VoucherCode"
39
+ optional :test_link, :string, 33
40
+ optional :redirect_offer, :message, 34, "cakeproto.IdName"
41
+ optional :redirect404, :bool, 35
42
+ optional :date_created, :message, 36, "cakeproto.TimeWithZone"
43
+ optional :expiration_date, :message, 37, "cakeproto.TimeWithZone"
44
+ optional :notes, :string, 38
45
+ end
46
+ add_message "cakeproto.Campaign.VoucherCode" do
47
+ optional :name, :string, 1
48
+ optional :creative, :message, 2, "cakeproto.IdName"
49
+ optional :start_date, :message, 3, "cakeproto.TimeWithZone"
50
+ optional :expiration_date, :message, 4, "cakeproto.TimeWithZone"
51
+ optional :active, :bool, 5
52
+ end
53
+ end
54
+
55
+ module Cakeproto
56
+ Campaign = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Campaign").msgclass
57
+ Campaign::VoucherCode = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Campaign.VoucherCode").msgclass
58
+ end
@@ -0,0 +1,26 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: cap_states.proto
3
+
4
+
5
+ Google::Protobuf::DescriptorPool.generated_pool.build do
6
+ add_message "cakeproto.CapState" do
7
+ optional :advertiser, :message, 1, "cakeproto.IdName"
8
+ optional :offer, :message, 2, "cakeproto.IdName"
9
+ optional :offer_contract, :message, 3, "cakeproto.IdName"
10
+ optional :affiliate, :message, 4, "cakeproto.IdName"
11
+ optional :campaign_id, :int64, 5
12
+ optional :entity, :string, 6
13
+ optional :type, :message, 7, "cakeproto.IdName"
14
+ optional :interval, :message, 8, "cakeproto.IdName"
15
+ optional :active, :bool, 9
16
+ optional :start_date, :message, 10, "cakeproto.TimeWithZone"
17
+ optional :end_date, :message, 11, "cakeproto.TimeWithZone"
18
+ optional :current, :int64, 12
19
+ optional :limit, :message, 14, "cakeproto.MaybeInt"
20
+ optional :limit_DEPRECATED, :int64, 13
21
+ end
22
+ end
23
+
24
+ module Cakeproto
25
+ CapState = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.CapState").msgclass
26
+ end
@@ -0,0 +1,37 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: clicks.proto
3
+
4
+
5
+ Google::Protobuf::DescriptorPool.generated_pool.build do
6
+ add_message "cakeproto.Click" do
7
+ optional :id, :int64, 1
8
+ optional :visitor_id, :int64, 2
9
+ optional :request_session_id, :int64, 3
10
+ optional :click_date, :message, 4, "cakeproto.TimeWithZone"
11
+ optional :affiliate, :message, 5, "cakeproto.IdName"
12
+ optional :advertiser, :message, 6, "cakeproto.IdName"
13
+ optional :offer, :message, 7, "cakeproto.IdName"
14
+ optional :offer_contract, :message, 8, "cakeproto.IdName"
15
+ optional :campaign_id, :int64, 9
16
+ optional :creative, :message, 10, "cakeproto.IdName"
17
+ optional :sub_id1, :string, 11
18
+ optional :sub_id2, :string, 12
19
+ optional :sub_id3, :string, 13
20
+ optional :sub_id4, :string, 14
21
+ optional :sub_id5, :string, 15
22
+ optional :ip_address, :string, 16
23
+ optional :user_agent, :string, 17
24
+ optional :referrer_url, :string, 18
25
+ optional :request_url, :string, 19
26
+ optional :redirect_url, :string, 20
27
+ optional :country, :message, 21, "cakeproto.Country"
28
+ optional :region, :message, 22, "cakeproto.Region"
29
+ optional :isp, :message, 23, "cakeproto.IdName"
30
+ optional :disposition, :string, 24
31
+ optional :paid_action, :int64, 25
32
+ end
33
+ end
34
+
35
+ module Cakeproto
36
+ Click = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Click").msgclass
37
+ end
@@ -0,0 +1,154 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: common.proto
3
+
4
+
5
+ Google::Protobuf::DescriptorPool.generated_pool.build do
6
+ add_message "cakeproto.IdName" do
7
+ optional :id, :int64, 1
8
+ optional :name, :string, 2
9
+ end
10
+ add_message "cakeproto.TimeWithZone" do
11
+ optional :unix_seconds, :int64, 1
12
+ optional :timezone_location, :string, 2
13
+ end
14
+ add_message "cakeproto.Currency" do
15
+ optional :id, :int64, 1
16
+ optional :symbol, :string, 2
17
+ optional :name, :string, 3
18
+ optional :abbr, :string, 4
19
+ end
20
+ add_message "cakeproto.PixelInfo" do
21
+ optional :html, :string, 1
22
+ optional :hash_type, :message, 2, "cakeproto.IdName"
23
+ optional :postback_url, :string, 3
24
+ optional :postback_delay_ms, :int64, 4
25
+ end
26
+ add_message "cakeproto.Money" do
27
+ optional :is_percentage, :bool, 1
28
+ optional :amount, :double, 2
29
+ optional :formatted_amount, :string, 3
30
+ end
31
+ add_message "cakeproto.MoneyWithCurrency" do
32
+ optional :currency_id, :int64, 1
33
+ optional :amount, :double, 2
34
+ optional :formatted_amount, :string, 3
35
+ end
36
+ add_message "cakeproto.MediaType" do
37
+ optional :id, :int64, 1
38
+ optional :name, :string, 2
39
+ optional :category_id, :int64, 3
40
+ optional :category_name, :string, 4
41
+ end
42
+ add_message "cakeproto.Country" do
43
+ optional :code, :string, 1
44
+ optional :name, :string, 2
45
+ end
46
+ add_message "cakeproto.Region" do
47
+ optional :code, :string, 1
48
+ optional :name, :string, 2
49
+ end
50
+ add_message "cakeproto.SuppressionList" do
51
+ optional :id, :int64, 1
52
+ optional :name, :string, 2
53
+ optional :type, :message, 3, "cakeproto.IdName"
54
+ optional :md5_only, :bool, 4
55
+ optional :date_created, :message, 5, "cakeproto.TimeWithZone"
56
+ optional :date_updated, :message, 6, "cakeproto.TimeWithZone"
57
+ optional :list_location, :string, 7
58
+ end
59
+ add_message "cakeproto.Contact" do
60
+ optional :id, :int64, 1
61
+ optional :type, :message, 2, "cakeproto.IdName"
62
+ optional :role, :message, 3, "cakeproto.IdName"
63
+ optional :first_name, :string, 4
64
+ optional :last_name, :string, 5
65
+ optional :email_address, :string, 6
66
+ optional :title, :string, 7
67
+ optional :phone_work, :string, 8
68
+ optional :phone_cell, :string, 9
69
+ optional :phone_fax, :string, 10
70
+ optional :im_service, :string, 11
71
+ optional :im_name, :string, 12
72
+ optional :include_in_mass_emails, :bool, 13
73
+ optional :notes, :string, 14
74
+ end
75
+ add_message "cakeproto.Blacklist" do
76
+ optional :advertiser, :message, 1, "cakeproto.IdName"
77
+ optional :offer, :message, 2, "cakeproto.IdName"
78
+ optional :affiliate, :message, 3, "cakeproto.IdName"
79
+ optional :sub_affiliate, :message, 4, "cakeproto.IdName"
80
+ optional :reason, :message, 5, "cakeproto.IdName"
81
+ optional :type, :message, 6, "cakeproto.IdName"
82
+ optional :date_created, :message, 7, "cakeproto.TimeWithZone"
83
+ end
84
+ add_message "cakeproto.Cap" do
85
+ optional :limit, :int64, 1
86
+ optional :interval, :message, 2, "cakeproto.IdName"
87
+ optional :start_date, :message, 3, "cakeproto.TimeWithZone"
88
+ optional :review_no_redirect, :bool, 4
89
+ end
90
+ add_message "cakeproto.HistorizedMoney" do
91
+ optional :current, :bool, 1
92
+ optional :start_date, :message, 2, "cakeproto.TimeWithZone"
93
+ optional :money, :message, 3, "cakeproto.Money"
94
+ optional :notes, :string, 4
95
+ end
96
+ add_message "cakeproto.EventOverride" do
97
+ optional :id, :int64, 1
98
+ optional :name, :string, 2
99
+ optional :active, :bool, 3
100
+ optional :payout_fallback, :string, 4
101
+ optional :received_fallback, :string, 5
102
+ optional :cap, :message, 6, "cakeproto.Cap"
103
+ optional :start_date, :message, 7, "cakeproto.TimeWithZone"
104
+ optional :review_no_redirect, :bool, 8
105
+ end
106
+ add_message "cakeproto.Upsell" do
107
+ optional :offer_contract, :message, 1, "cakeproto.IdName"
108
+ optional :creative, :message, 2, "cakeproto.IdName"
109
+ optional :order, :int64, 3
110
+ optional :top_html, :string, 4
111
+ optional :bottom_html, :string, 5
112
+ optional :prepop_link, :bool, 6
113
+ end
114
+ add_message "cakeproto.ExchangeRate" do
115
+ optional :base_currency, :message, 1, "cakeproto.Currency"
116
+ optional :quote_currency, :message, 2, "cakeproto.Currency"
117
+ optional :start_date, :message, 3, "cakeproto.TimeWithZone"
118
+ optional :end_date, :message, 4, "cakeproto.TimeWithZone"
119
+ optional :rate, :double, 5
120
+ end
121
+ add_message "cakeproto.Disposition" do
122
+ optional :id, :int64, 1
123
+ optional :name, :string, 2
124
+ optional :type, :message, 3, "cakeproto.IdName"
125
+ optional :contact, :string, 4
126
+ optional :disposition_date, :message, 5, "cakeproto.TimeWithZone"
127
+ end
128
+ add_message "cakeproto.MaybeInt" do
129
+ optional :value, :int64, 1
130
+ optional :has_value, :bool, 2
131
+ end
132
+ end
133
+
134
+ module Cakeproto
135
+ IdName = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.IdName").msgclass
136
+ TimeWithZone = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.TimeWithZone").msgclass
137
+ Currency = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Currency").msgclass
138
+ PixelInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.PixelInfo").msgclass
139
+ Money = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Money").msgclass
140
+ MoneyWithCurrency = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.MoneyWithCurrency").msgclass
141
+ MediaType = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.MediaType").msgclass
142
+ Country = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Country").msgclass
143
+ Region = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Region").msgclass
144
+ SuppressionList = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.SuppressionList").msgclass
145
+ Contact = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Contact").msgclass
146
+ Blacklist = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Blacklist").msgclass
147
+ Cap = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Cap").msgclass
148
+ HistorizedMoney = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.HistorizedMoney").msgclass
149
+ EventOverride = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.EventOverride").msgclass
150
+ Upsell = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Upsell").msgclass
151
+ ExchangeRate = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.ExchangeRate").msgclass
152
+ Disposition = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Disposition").msgclass
153
+ MaybeInt = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.MaybeInt").msgclass
154
+ end
@@ -0,0 +1,19 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: conversion_changes.proto
3
+
4
+
5
+ Google::Protobuf::DescriptorPool.generated_pool.build do
6
+ add_message "cakeproto.ConversionChange" do
7
+ optional :id, :int64, 1
8
+ optional :conversion_date, :message, 2, "cakeproto.TimeWithZone"
9
+ optional :last_updated, :message, 3, "cakeproto.TimeWithZone"
10
+ optional :paid, :message, 4, "cakeproto.MoneyWithCurrency"
11
+ optional :received, :message, 5, "cakeproto.MoneyWithCurrency"
12
+ optional :current_disposition, :message, 6, "cakeproto.Disposition"
13
+ optional :note, :string, 7
14
+ end
15
+ end
16
+
17
+ module Cakeproto
18
+ ConversionChange = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.ConversionChange").msgclass
19
+ end
@@ -0,0 +1,50 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: conversions.proto
3
+
4
+
5
+ Google::Protobuf::DescriptorPool.generated_pool.build do
6
+ add_message "cakeproto.Conversion" do
7
+ optional :id, :int64, 1
8
+ optional :visitor_id, :int64, 2
9
+ optional :request_session_id, :int64, 3
10
+ optional :click_id, :int64, 4
11
+ optional :click_request_session_id, :int64, 5
12
+ optional :conversion_date, :message, 6, "cakeproto.TimeWithZone"
13
+ optional :click_date, :message, 7, "cakeproto.TimeWithZone"
14
+ optional :last_updated, :message, 8, "cakeproto.TimeWithZone"
15
+ optional :event, :message, 9, "cakeproto.IdName"
16
+ optional :affiliate, :message, 10, "cakeproto.IdName"
17
+ optional :advertiser, :message, 11, "cakeproto.IdName"
18
+ optional :offer, :message, 12, "cakeproto.IdName"
19
+ optional :offer_contract, :message, 13, "cakeproto.IdName"
20
+ optional :campaign_id, :int64, 14
21
+ optional :campaign_type, :message, 15, "cakeproto.IdName"
22
+ optional :creative, :message, 16, "cakeproto.IdName"
23
+ optional :sub_id1, :string, 17
24
+ optional :sub_id2, :string, 18
25
+ optional :sub_id3, :string, 19
26
+ optional :sub_id4, :string, 20
27
+ optional :sub_id5, :string, 21
28
+ optional :ip_address, :string, 22
29
+ optional :click_ip_address, :string, 36
30
+ optional :user_agent, :string, 23
31
+ optional :click_user_agent, :string, 37
32
+ optional :source_type, :string, 24
33
+ optional :price_format, :message, 25, "cakeproto.IdName"
34
+ optional :paid, :message, 26, "cakeproto.MoneyWithCurrency"
35
+ optional :received, :message, 27, "cakeproto.MoneyWithCurrency"
36
+ optional :step_reached, :int64, 28
37
+ optional :transaction_id, :string, 29
38
+ optional :current_disposition, :message, 30, "cakeproto.Disposition"
39
+ optional :order_total, :message, 38, "cakeproto.MoneyWithCurrency"
40
+ optional :country, :message, 31, "cakeproto.Country"
41
+ optional :region, :message, 32, "cakeproto.Region"
42
+ optional :language, :message, 33, "cakeproto.IdName"
43
+ optional :isp, :message, 34, "cakeproto.IdName"
44
+ optional :note, :string, 35
45
+ end
46
+ end
47
+
48
+ module Cakeproto
49
+ Conversion = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Conversion").msgclass
50
+ end
@@ -0,0 +1,32 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: creatives.proto
3
+
4
+
5
+ Google::Protobuf::DescriptorPool.generated_pool.build do
6
+ add_message "cakeproto.Creative" do
7
+ optional :id, :int64, 1
8
+ optional :name, :string, 2
9
+ optional :offer_id, :int64, 3
10
+ optional :type, :message, 4, "cakeproto.IdName"
11
+ optional :status, :message, 5, "cakeproto.IdName"
12
+ optional :offer_link_override, :string, 6
13
+ optional :width, :int64, 7
14
+ optional :height, :int64, 8
15
+ repeated :files, :message, 9, "cakeproto.Creative.File"
16
+ optional :date_created, :message, 10, "cakeproto.TimeWithZone"
17
+ optional :expiration_date, :message, 11, "cakeproto.TimeWithZone"
18
+ optional :notes, :string, 12
19
+ end
20
+ add_message "cakeproto.Creative.File" do
21
+ optional :id, :int64, 1
22
+ optional :name, :string, 2
23
+ optional :link, :string, 3
24
+ optional :preview, :bool, 4
25
+ optional :date_created, :message, 5, "cakeproto.TimeWithZone"
26
+ end
27
+ end
28
+
29
+ module Cakeproto
30
+ Creative = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Creative").msgclass
31
+ Creative::File = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Creative.File").msgclass
32
+ end
@@ -0,0 +1,98 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: offers.proto
3
+
4
+
5
+ Google::Protobuf::DescriptorPool.generated_pool.build do
6
+ add_message "cakeproto.Offer" do
7
+ optional :id, :int64, 1
8
+ optional :name, :string, 2
9
+ optional :advertiser, :message, 3, "cakeproto.IdName"
10
+ optional :vertical, :message, 4, "cakeproto.IdName"
11
+ optional :type, :message, 5, "cakeproto.IdName"
12
+ optional :status, :message, 6, "cakeproto.IdName"
13
+ optional :hidden, :bool, 7
14
+ optional :image_link, :string, 8
15
+ optional :default_contract_id, :int64, 9
16
+ repeated :contracts, :message, 10, "cakeproto.Offer.Contract"
17
+ repeated :tiers, :message, 11, "cakeproto.Offer.Tier"
18
+ repeated :tags, :message, 12, "cakeproto.IdName"
19
+ repeated :allowed_media_types, :message, 13, "cakeproto.MediaType"
20
+ optional :currency, :message, 14, "cakeproto.Currency"
21
+ optional :ssl, :bool, 15
22
+ optional :click_cap, :message, 16, "cakeproto.Cap"
23
+ optional :conversion_cap, :message, 17, "cakeproto.Cap"
24
+ optional :click_cookie_days, :int64, 18
25
+ optional :impression_cookie_days, :int64, 19
26
+ optional :enable_view_thru_conversions, :bool, 20
27
+ optional :click_trumps_impression, :bool, 21
28
+ optional :disable_click_deduplication, :bool, 22
29
+ optional :disable_impression_deduplication, :bool, 23
30
+ optional :voucher_code_attribution, :message, 24, "cakeproto.IdName"
31
+ optional :last_touch, :bool, 25
32
+ optional :enable_transaction_id_deduplication, :bool, 26
33
+ optional :conversions_from_whitelist_only, :bool, 27
34
+ optional :pixel_info, :message, 28, "cakeproto.PixelInfo"
35
+ optional :fire_global_pixel, :bool, 29
36
+ optional :fire_pixel_on_non_paid_conversions, :bool, 30
37
+ optional :disable_prepop_appending, :bool, 31
38
+ optional :redirect_offer, :message, 32, "cakeproto.IdName"
39
+ optional :redirect404, :bool, 33
40
+ optional :session_regeneration_seconds, :int64, 34
41
+ optional :session_regeneration_type, :message, 35, "cakeproto.IdName"
42
+ optional :suppression_list, :message, 36, "cakeproto.SuppressionList"
43
+ optional :unsubscribe_link, :string, 37
44
+ optional :preview_link, :string, 38
45
+ optional :description, :string, 39
46
+ optional :restrictions, :string, 40
47
+ optional :advertiser_extended_terms, :string, 41
48
+ optional :testing_instructions, :string, 42
49
+ optional :from_lines, :string, 43
50
+ optional :subject_lines, :string, 44
51
+ repeated :upsells, :message, 45, "cakeproto.Upsell"
52
+ optional :thankyou_html, :string, 46
53
+ optional :notes, :string, 47
54
+ optional :date_created, :message, 48, "cakeproto.TimeWithZone"
55
+ optional :expiration_date, :message, 49, "cakeproto.TimeWithZone"
56
+ end
57
+ add_message "cakeproto.Offer.Contract" do
58
+ optional :id, :int64, 1
59
+ optional :name, :string, 2
60
+ optional :price_format, :message, 3, "cakeproto.IdName"
61
+ optional :current_payout, :message, 4, "cakeproto.Money"
62
+ optional :current_received, :message, 5, "cakeproto.Money"
63
+ optional :offer_link, :string, 6
64
+ optional :thankyou_link, :string, 7
65
+ optional :hidden, :bool, 8
66
+ optional :targeting_method, :message, 9, "cakeproto.IdName"
67
+ repeated :event_overrides, :message, 10, "cakeproto.EventOverride"
68
+ repeated :payouts, :message, 11, "cakeproto.HistorizedMoney"
69
+ repeated :prices_received, :message, 12, "cakeproto.HistorizedMoney"
70
+ repeated :allowed_countries, :message, 13, "cakeproto.Offer.Contract.GeoTarget"
71
+ repeated :disallowed_countries, :message, 14, "cakeproto.Offer.Contract.GeoTarget"
72
+ repeated :rules, :message, 15, "cakeproto.Offer.Contract.Rule"
73
+ end
74
+ add_message "cakeproto.Offer.Contract.Rule" do
75
+ optional :id, :int64, 1
76
+ optional :name, :string, 2
77
+ optional :order, :int64, 3
78
+ optional :active, :bool, 4
79
+ optional :redirect_offer, :message, 5, "cakeproto.IdName"
80
+ end
81
+ add_message "cakeproto.Offer.Contract.GeoTarget" do
82
+ optional :country, :message, 1, "cakeproto.Country"
83
+ optional :redirect_contract, :message, 2, "cakeproto.IdName"
84
+ end
85
+ add_message "cakeproto.Offer.Tier" do
86
+ optional :price_format, :message, 1, "cakeproto.IdName"
87
+ optional :affiliate_tier, :message, 2, "cakeproto.IdName"
88
+ optional :contract, :message, 3, "cakeproto.IdName"
89
+ end
90
+ end
91
+
92
+ module Cakeproto
93
+ Offer = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Offer").msgclass
94
+ Offer::Contract = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Offer.Contract").msgclass
95
+ Offer::Contract::Rule = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Offer.Contract.Rule").msgclass
96
+ Offer::Contract::GeoTarget = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Offer.Contract.GeoTarget").msgclass
97
+ Offer::Tier = Google::Protobuf::DescriptorPool.generated_pool.lookup("cakeproto.Offer.Tier").msgclass
98
+ end
@@ -4,5 +4,10 @@ module Cakeproto
4
4
  def value_if_present
5
5
  value if has_value?
6
6
  end
7
+
8
+ # For backwards-compatibility and RSpec matchers.
9
+ def has_value?
10
+ has_value
11
+ end
7
12
  end
8
13
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module BucketCake
3
- VERSION = '4.0.0'
3
+ VERSION = '5.0.0'
4
4
  end
data/lib/bucket_cake.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  require 'aws-sdk'
3
3
  require 'zip'
4
- require 'protobuf'
4
+ require 'google/protobuf'
5
5
  require 'active_support/time'
6
6
 
7
7
  require 'bucket_cake/version'
@@ -9,16 +9,16 @@ require 'bucket_cake/source'
9
9
  require 'bucket_cake/decoder'
10
10
  require 'bucket_cake/base'
11
11
 
12
- require 'bucket_cake/proto/common.pb'
13
- require 'bucket_cake/proto/advertisers.pb'
14
- require 'bucket_cake/proto/affiliates.pb'
15
- require 'bucket_cake/proto/campaigns.pb'
16
- require 'bucket_cake/proto/creatives.pb'
17
- require 'bucket_cake/proto/offers.pb'
18
- require 'bucket_cake/proto/clicks.pb'
19
- require 'bucket_cake/proto/conversions.pb'
20
- require 'bucket_cake/proto/conversion_changes.pb'
21
- require 'bucket_cake/proto/cap_states.pb'
12
+ require 'bucket_cake/proto/common_pb'
13
+ require 'bucket_cake/proto/advertisers_pb'
14
+ require 'bucket_cake/proto/affiliates_pb'
15
+ require 'bucket_cake/proto/campaigns_pb'
16
+ require 'bucket_cake/proto/creatives_pb'
17
+ require 'bucket_cake/proto/offers_pb'
18
+ require 'bucket_cake/proto/clicks_pb'
19
+ require 'bucket_cake/proto/conversions_pb'
20
+ require 'bucket_cake/proto/conversion_changes_pb'
21
+ require 'bucket_cake/proto/cap_states_pb'
22
22
 
23
23
  require 'bucket_cake/proto_ext/time_with_zone'
24
24
  require 'bucket_cake/proto_ext/maybe_int'
@@ -27,8 +27,6 @@ require 'bucket_cake/entities'
27
27
  require 'bucket_cake/values'
28
28
  require 'bucket_cake/facts'
29
29
 
30
- Protobuf.ignore_unknown_fields = false
31
-
32
30
  module BucketCake
33
31
  CURSOR_REGEXP = %r{\A\d{4}/\d{2}/\d{2}/\d{6}\z}
34
32
  end