Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .fernignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
lib/square_legacy/
lib/square_legacy.rb
Gemfile
Rakefile
Rakefile

lib/square/types/catalog_object_category.rb
lib/square/types/catalog_object_subscription_plan.rb
lib/square/types/catalog_object_item_option.rb
lib/square/types/catalog_object_modifier_list.rb
lib/square/types/catalog_object_item.rb
6 changes: 6 additions & 0 deletions lib/square/types/catalog_object_category.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ module Types
# to another category. For example, a clothing category can be assigned to a t-shirt item or
# be made as the parent category to the pants category.
class CatalogObjectCategory < Internal::Types::Model

# Manual Forward Declarations
class Square::Types::CatalogCategory < Internal::Types::Model; end
class Square::Types::CatalogCustomAttributeValue < Internal::Types::Model; end
class Square::Types::CatalogV1Id < Internal::Types::Model; end

field :id, String, optional: true, nullable: false
field :ordinal, Integer, optional: true, nullable: false
field :type, String, optional: false, nullable: false
Expand Down
6 changes: 6 additions & 0 deletions lib/square/types/catalog_object_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
module Square
module Types
class CatalogObjectItem < Internal::Types::Model

# Manual Forward Declarations
class Square::Types::CatalogItem < Internal::Types::Model; end
class Square::Types::CatalogCustomAttributeValue < Internal::Types::Model; end
class Square::Types::CatalogV1Id < Internal::Types::Model; end

field :type, String, optional: false, nullable: false
field :item_data, Square::Types::CatalogItem, optional: true, nullable: false
field :id, String, optional: false, nullable: false
Expand Down
6 changes: 6 additions & 0 deletions lib/square/types/catalog_object_item_option.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
module Square
module Types
class CatalogObjectItemOption < Internal::Types::Model

# Manual Forward Declarations
class Square::Types::CatalogItemOption < Internal::Types::Model; end
class Square::Types::CatalogCustomAttributeValue < Internal::Types::Model; end
class Square::Types::CatalogV1Id < Internal::Types::Model; end

field :type, String, optional: false, nullable: false
field :item_option_data, Square::Types::CatalogItemOption, optional: true, nullable: false
field :id, String, optional: false, nullable: false
Expand Down
6 changes: 6 additions & 0 deletions lib/square/types/catalog_object_modifier_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
module Square
module Types
class CatalogObjectModifierList < Internal::Types::Model

# Manual Forward Declarations
class Square::Types::CatalogModifierList < Internal::Types::Model; end
class Square::Types::CatalogCustomAttributeValue < Internal::Types::Model; end
class Square::Types::CatalogV1Id < Internal::Types::Model; end

field :type, String, optional: false, nullable: false
field :modifier_list_data, Square::Types::CatalogModifierList, optional: true, nullable: false
field :id, String, optional: false, nullable: false
Expand Down
6 changes: 6 additions & 0 deletions lib/square/types/catalog_object_subscription_plan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
module Square
module Types
class CatalogObjectSubscriptionPlan < Internal::Types::Model

# Manual Forward Declarations
class Square::Types::CatalogSubscriptionPlan < Internal::Types::Model; end
class Square::Types::CatalogCustomAttributeValue < Internal::Types::Model; end
class Square::Types::CatalogV1Id < Internal::Types::Model; end

field :type, String, optional: false, nullable: false
field :subscription_plan_data, Square::Types::CatalogSubscriptionPlan, optional: true, nullable: false
field :id, String, optional: false, nullable: false
Expand Down