diff --git a/app/services/permitted_attributes/business_address.rb b/app/services/permitted_attributes/business_address.rb new file mode 100644 index 0000000000..53eb64ceeb --- /dev/null +++ b/app/services/permitted_attributes/business_address.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module PermittedAttributes + class BusinessAddress + def self.attributes + [ + :business_name, :address1, :address2, + :city, :country_id, :state_id, :zipcode, + :phone + ] + end + end + end + \ No newline at end of file diff --git a/app/services/permitted_attributes/enterprise.rb b/app/services/permitted_attributes/enterprise.rb index a3f688c64d..dbae9dee32 100644 --- a/app/services/permitted_attributes/enterprise.rb +++ b/app/services/permitted_attributes/enterprise.rb @@ -17,6 +17,7 @@ module PermittedAttributes group_ids: [], user_ids: [], shipping_method_ids: [], payment_method_ids: [], address_attributes: PermittedAttributes::Address.attributes, + business_address_attributes: PermittedAttributes::BusinessAddress.attributes, producer_properties_attributes: [:id, :property_name, :value, :_destroy] ] end