spree_cm_commissioner 1.17.0.pre.pre2 → 1.17.0.pre.pre3
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 +4 -4
- data/Gemfile.lock +1 -1
- data/app/interactors/spree_cm_commissioner/vattanac_bank_initiator.rb +5 -1
- data/app/models/spree_cm_commissioner/vendor_place.rb +1 -1
- data/config/locales/en.yml +4 -0
- data/db/migrate/20250616084219_add_description_to_cm_vendor_place.rb +5 -0
- data/lib/spree_cm_commissioner/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1bc5947022ee577a504eb50f3925d1478041b9eabf5381f55c5695687bd06e0
|
4
|
+
data.tar.gz: 73484ea164c1d3b5f59c8d851b4e84896dcb981d580cc0b6f6bd23538faa74c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b170355243a3af6298edd5b6eb0c8f377c29f6c1086d90609545f64d4b421ddace073e33ffd73f29c616b0f92f01bd41f10b187ca1922f20467d448c7fcdbf6f
|
7
|
+
data.tar.gz: ceb31dc3e0592b825fdb5c4fe4b8027d9cfd961fd06b9321a3995790e8d5c1c8268a4f26464d137e5e59a97e599a3d70dbf33606bd185c64f2f5d5617f62c75b
|
data/Gemfile.lock
CHANGED
@@ -93,6 +93,10 @@ module SpreeCmCommissioner
|
|
93
93
|
context.fail!(message: "User creation failed: #{context.user.errors.full_messages.join(', ')}")
|
94
94
|
end
|
95
95
|
|
96
|
+
def disable_services
|
97
|
+
'bus,ferry'
|
98
|
+
end
|
99
|
+
|
96
100
|
def construct_data
|
97
101
|
user = context.user
|
98
102
|
|
@@ -101,7 +105,7 @@ module SpreeCmCommissioner
|
|
101
105
|
name: user.full_name,
|
102
106
|
phone: user.phone_number,
|
103
107
|
email: user.email,
|
104
|
-
webUrl: "#{Spree::Store.default.formatted_url}/vattanac_bank_web_app?session_id=#{session_id}"
|
108
|
+
webUrl: "#{Spree::Store.default.formatted_url}/vattanac_bank_web_app?session_id=#{session_id}&ds=#{CGI.escape(disable_services)}"
|
105
109
|
}
|
106
110
|
|
107
111
|
json_data = raw_data.to_json
|
@@ -7,7 +7,7 @@ module SpreeCmCommissioner
|
|
7
7
|
belongs_to :place, class_name: 'SpreeCmCommissioner::Place', optional: false
|
8
8
|
|
9
9
|
validates :place_type, presence: true
|
10
|
-
validates :
|
10
|
+
validates :place_id, uniqueness: { scope: %i[vendor_id place_type] }
|
11
11
|
|
12
12
|
accepts_nested_attributes_for :place, allow_destroy: true
|
13
13
|
|
data/config/locales/en.yml
CHANGED
@@ -459,6 +459,10 @@ en:
|
|
459
459
|
businesses_cant_be_blank: "Businesses can't be blank"
|
460
460
|
phone_number_cant_be_blank: "Phone number can't be blank"
|
461
461
|
quantity_cant_be_less_than_or_equal_to_zero: "Quantity can't be less or equal than 0"
|
462
|
+
spree_cm_commissioner/vendor_place:
|
463
|
+
attributes:
|
464
|
+
place_id:
|
465
|
+
taken: "has already existed with this place type"
|
462
466
|
|
463
467
|
mail:
|
464
468
|
order_mailer:
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_cm_commissioner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.17.0.pre.
|
4
|
+
version: 1.17.0.pre.pre3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- You
|
@@ -2510,6 +2510,7 @@ files:
|
|
2510
2510
|
- db/migrate/20250610080108_add_contact_to_cm_guests.rb
|
2511
2511
|
- db/migrate/20250611023548_add_country_code_to_guests.rb
|
2512
2512
|
- db/migrate/20250612035937_add_intel_phone_number_to_guests.rb
|
2513
|
+
- db/migrate/20250616084219_add_description_to_cm_vendor_place.rb
|
2513
2514
|
- docker-compose.yml
|
2514
2515
|
- docs/option_types/attr_types.md
|
2515
2516
|
- docs/private_key.pem
|