Sha256: 92ead61ccd24a89f7b9884442436c3891c47e4bd5241215bb3fe2413a00be476

Contents?: true

Size: 736 Bytes

Versions: 12

Compression:

Stored size: 736 Bytes

Contents

module EventbriteSDK
  class Order < Resource
    resource_path 'orders/:id'

    # Defines order#resend_confirmation_email and order#refund
    #
    # When an event has an id the POST is made, otherwise we return false
    # POSTS to order/:id/(resend_confirmation_email|refunds)
    define_api_actions :resend_confirmation_email, { refund: :refunds }

    has_many :attendees, object_class: 'Attendee'
    belongs_to :event, object_class: 'Event'

    schema_definition do
      string 'name'
      string 'first_name'
      string 'last_name'
      string 'email'
      string 'costs'
      datetime 'created', read_only: true
      datetime 'changed', read_only: true
      string 'resource_uri', read_only: true
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
eventbrite_sdk-3.1.1 lib/eventbrite_sdk/order.rb
eventbrite_sdk-3.1.0 lib/eventbrite_sdk/order.rb
eventbrite_sdk-3.0.11 lib/eventbrite_sdk/order.rb
eventbrite_sdk-3.0.10 lib/eventbrite_sdk/order.rb
eventbrite_sdk-3.0.9 lib/eventbrite_sdk/order.rb
eventbrite_sdk-3.0.8 lib/eventbrite_sdk/order.rb
eventbrite_sdk-3.0.7 lib/eventbrite_sdk/order.rb
eventbrite_sdk-3.0.6 lib/eventbrite_sdk/order.rb
eventbrite_sdk-3.0.5 lib/eventbrite_sdk/order.rb
eventbrite_sdk-3.0.4 lib/eventbrite_sdk/order.rb
eventbrite_sdk-3.0.3 lib/eventbrite_sdk/order.rb
eventbrite_sdk-3.0.2 lib/eventbrite_sdk/order.rb