Module: Elements::ObjectTypes

Defined in:
lib/elements/object_types.rb

Class Method Summary collapse

Class Method Details

.object_names_to_classesObject



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/elements/object_types.rb', line 5

def self.object_names_to_classes
  {
    Charge::OBJECT_NAME => Charge,
    Dispute::OBJECT_NAME => Dispute,
    Refund::OBJECT_NAME => Refund,
    PaymentMethod::OBJECT_NAME => PaymentMethod,
    PaymentMethodGateway::OBJECT_NAME => PaymentMethodGateway,
    Token::OBJECT_NAME => Token,
    CheckoutSession::OBJECT_NAME => CheckoutSession,
    Customer::OBJECT_NAME => Customer
  }
end