Sha256: 9865b8d7aa81ca255dda25734478ddcfbabf0287b4f9de1802cf19d97e539998

Contents?: true

Size: 1.38 KB

Versions: 6

Compression:

Stored size: 1.38 KB

Contents

module OpenActive
  module Models
    #
    # Error Use Case: The available capacity required to book a specific Opportunity is reserved by a lease held by another Customer.  If the `OrderItem` is repeated (for multiple attendees) this error MUST only be included in the API response against the `OrderItem`s which are in excess of the capacity but which are reserved by the lease of another Customer - for example in an Opportunity with a `remainingAttendeeCapacity` of 3, with 1 additional space held by another lease, then for an `OrderQuote` with 9 `OrderItem`s related to it, this error would only be emitted against 1 of the `OrderItem`s, with `OpportunityHasInsufficientCapacityError` emitted against the other 5 of the `OrderItem`s. This helps a Customer to know whether they should try again.
    #
    # This type is derived from https://schema.org/Thing, which means that any of this type's properties within schema.org may also be used.
    class OpportunityCapacityIsReservedByLeaseError < ::OpenActive::Models::OpenBookingError
      # @!attribute type
      # @return [String]
      def type
        "OpportunityCapacityIsReservedByLeaseError"
      end

      # @return [String]
      define_property :name, as: "name", types: [
        "string",
      ]

      # @return [int,nil]
      define_property :status_code, as: "statusCode", types: [
        "int",
        "null",
      ]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
openactive-0.5.0 lib/openactive/models/opportunity_capacity_is_reserved_by_lease_error.rb
openactive-0.4.0 lib/openactive/models/opportunity_capacity_is_reserved_by_lease_error.rb
openactive-0.3.0 lib/openactive/models/opportunity_capacity_is_reserved_by_lease_error.rb
openactive-0.2.2 lib/openactive/models/opportunity_capacity_is_reserved_by_lease_error.rb
openactive-0.2.1 lib/openactive/models/opportunity_capacity_is_reserved_by_lease_error.rb
openactive-0.2.0 lib/openactive/models/opportunity_capacity_is_reserved_by_lease_error.rb