g5_integrations_updatable 0.0.8 → 0.0.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dc234f45b806642204f618570deacc29862937e
|
4
|
+
data.tar.gz: 7d16c46d161ae84943bf9a1bbf8005e8f8db3d7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb5e85c775bc1aa20573da21f094cd93c003d0480a8eadf8b889e60c6e5bdcc330bec7320db7eff0d4b3b81880d39dbb86fce7bea88469c57c77ec84960397c9
|
7
|
+
data.tar.gz: cbc06aff0918a7657cebc9c8d08d567d06fae629aa3f9e2f0447d3608e6f7ebd7d860ec24711014a4fb21c2f2a83a9f73a2b98f8b726afbbc4ffdeea4c8d2a10
|
@@ -10,12 +10,14 @@ module G5IntegrationsUpdatable
|
|
10
10
|
LEAD_RESERVATION = 'lead_reservation'
|
11
11
|
LEAD_INQUIRY = 'lead_inquiry'
|
12
12
|
LEAD_RESERVATION_WITH_FEE = 'lead_reservation_with_fee'
|
13
|
+
LEAD_SYNCHRONIZE = 'lead_synchronize'
|
13
14
|
|
14
15
|
scope :by_strategy_type, -> (vendor_strategy) { where(strategy_type: vendor_strategy) }
|
15
16
|
scope :by_inventory, -> { by_strategy_type(INVENTORY) }
|
16
17
|
scope :by_lead_reservation, -> { by_strategy_type(LEAD_RESERVATION) }
|
17
18
|
scope :by_lead_reservation_with_fee, -> { by_strategy_type(LEAD_RESERVATION_WITH_FEE) }
|
18
19
|
scope :by_lead_inquiry, -> { by_strategy_type(LEAD_INQUIRY) }
|
20
|
+
scope :by_lead_synchronize, -> { by_strategy_type(LEAD_SYNCHRONIZE) }
|
19
21
|
|
20
22
|
def to_param
|
21
23
|
urn
|
@@ -17,6 +17,10 @@ FactoryGirl.define do
|
|
17
17
|
strategy_type { G5IntegrationsUpdatable::LocationSetting::LEAD_RESERVATION }
|
18
18
|
end
|
19
19
|
|
20
|
+
factory :lead_synchronize_location_setting, parent: :location_setting do
|
21
|
+
strategy_type { G5IntegrationsUpdatable::LocationSetting::LEAD_SYNCHRONIZE }
|
22
|
+
end
|
23
|
+
|
20
24
|
factory :lead_reservation_with_fee_location_setting, parent: :location_setting do
|
21
25
|
strategy_type { G5IntegrationsUpdatable::LocationSetting::LEAD_RESERVATION_WITH_FEE }
|
22
26
|
end
|