Skip to content

Instantly share code, notes, and snippets.

@cored

cored/payload.rb Secret

Created September 13, 2017 00:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cored/7519467381731d4d1936bd9290b73160 to your computer and use it in GitHub Desktop.
Save cored/7519467381731d4d1936bd9290b73160 to your computer and use it in GitHub Desktop.
class TradingPartnerVariation < Dry::Struct
constructor_type :schema
attribute :trading_partner_item_number, Types::String.default("")
attribute :trading_partner_sku, Types::String.default("")
attribute :upc, Types::String.default("")
attribute :variation_sku, Types::String.default("")
attribute :department_class_code, Types::String.default("")
attribute :volume, Types::Coercible::Float.default(0.0)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment