Class: ApRubySdk::Subscription

Inherits:
ApiResource show all
Includes:
ApiOperations::Create, ApiOperations::List, ApiOperations::Retrieve
Defined in:
lib/ap_ruby_sdk/subscription.rb

Instance Attribute Summary collapse

Attributes inherited from ApiResource

#mode

Attributes inherited from BaseModel

#created, #id, #mode, #updated

Class Method Summary collapse

Methods included from ApiOperations::Retrieve

included

Methods included from ApiOperations::List

included

Methods included from ApiOperations::Create

included

Methods inherited from ApiResource

construct_object, url_with_prefix

Methods inherited from BaseModel

#attributes=, #initialize, #to_json

Constructor Details

This class inherits a constructor from ApRubySdk::BaseModel

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



7
8
9
# File 'lib/ap_ruby_sdk/subscription.rb', line 7

def amount
  @amount
end

#currentBillingCycleObject

Returns the value of attribute currentBillingCycle.



7
8
9
# File 'lib/ap_ruby_sdk/subscription.rb', line 7

def currentBillingCycle
  @currentBillingCycle
end

#customerObject

Returns the value of attribute customer.



7
8
9
# File 'lib/ap_ruby_sdk/subscription.rb', line 7

def customer
  @customer
end

#customerIdObject

Returns the value of attribute customerId.



7
8
9
# File 'lib/ap_ruby_sdk/subscription.rb', line 7

def customerId
  @customerId
end

#ipAddressObject

Returns the value of attribute ipAddress.



7
8
9
# File 'lib/ap_ruby_sdk/subscription.rb', line 7

def ipAddress
  @ipAddress
end

#isConversionRateFixedObject

Returns the value of attribute isConversionRateFixed.



7
8
9
# File 'lib/ap_ruby_sdk/subscription.rb', line 7

def isConversionRateFixed
  @isConversionRateFixed
end

#paymentObject

Returns the value of attribute payment.



7
8
9
# File 'lib/ap_ruby_sdk/subscription.rb', line 7

def payment
  @payment
end

#paymentIdObject

Returns the value of attribute paymentId.



7
8
9
# File 'lib/ap_ruby_sdk/subscription.rb', line 7

def paymentId
  @paymentId
end

#phoneverificationObject

Returns the value of attribute phoneverification.



7
8
9
# File 'lib/ap_ruby_sdk/subscription.rb', line 7

def phoneverification
  @phoneverification
end

#planObject

Returns the value of attribute plan.



7
8
9
# File 'lib/ap_ruby_sdk/subscription.rb', line 7

def plan
  @plan
end

#planIdObject

Returns the value of attribute planId.



7
8
9
# File 'lib/ap_ruby_sdk/subscription.rb', line 7

def planId
  @planId
end

#quantityObject

Returns the value of attribute quantity.



7
8
9
# File 'lib/ap_ruby_sdk/subscription.rb', line 7

def quantity
  @quantity
end

#statusObject

Returns the value of attribute status.



7
8
9
# File 'lib/ap_ruby_sdk/subscription.rb', line 7

def status
  @status
end

Class Method Details

.list_membersObject



37
38
39
# File 'lib/ap_ruby_sdk/subscription.rb', line 37

def self.list_members
  :subscriptions
end

.urlObject



33
34
35
# File 'lib/ap_ruby_sdk/subscription.rb', line 33

def self.url
  '/subscriptions'
end