Class: ChargeBee::PaymentVoucher
- Defined in:
 - lib/chargebee/models/payment_voucher.rb
 
Defined Under Namespace
Classes: LinkedInvoice
Instance Attribute Summary collapse
- 
  
    
      #amount  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute amount.
 - 
  
    
      #currency_code  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute currency_code.
 - 
  
    
      #customer_id  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute customer_id.
 - 
  
    
      #date  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute date.
 - 
  
    
      #error_code  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute error_code.
 - 
  
    
      #error_text  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute error_text.
 - 
  
    
      #expires_at  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute expires_at.
 - 
  
    
      #gateway  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute gateway.
 - 
  
    
      #gateway_account_id  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute gateway_account_id.
 - 
  
    
      #id  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute id.
 - 
  
    
      #id_at_gateway  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute id_at_gateway.
 - 
  
    
      #linked_invoices  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute linked_invoices.
 - 
  
    
      #payload  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute payload.
 - 
  
    
      #payment_source_id  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute payment_source_id.
 - 
  
    
      #payment_voucher_type  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute payment_voucher_type.
 - 
  
    
      #resource_version  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute resource_version.
 - 
  
    
      #status  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute status.
 - 
  
    
      #subscription_id  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute subscription_id.
 - 
  
    
      #updated_at  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute updated_at.
 - 
  
    
      #url  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute url.
 
Class Method Summary collapse
- 
  
    
      .create(params, env = nil, headers = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
OPERATIONS ———–.
 - .payment_vouchers_for_customer(id, params = {}, env = nil, headers = {}) ⇒ Object
 - .payment_vouchers_for_invoice(id, params = {}, env = nil, headers = {}) ⇒ Object
 - .retrieve(id, env = nil, headers = {}) ⇒ Object
 
Methods inherited from Model
construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #replace_white_space_with_underscore, #to_s, uri_path
Constructor Details
This class inherits a constructor from ChargeBee::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ChargeBee::Model
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def amount @amount end  | 
  
#currency_code ⇒ Object
Returns the value of attribute currency_code.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def currency_code @currency_code end  | 
  
#customer_id ⇒ Object
Returns the value of attribute customer_id.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def customer_id @customer_id end  | 
  
#date ⇒ Object
Returns the value of attribute date.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def date @date end  | 
  
#error_code ⇒ Object
Returns the value of attribute error_code.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def error_code @error_code end  | 
  
#error_text ⇒ Object
Returns the value of attribute error_text.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def error_text @error_text end  | 
  
#expires_at ⇒ Object
Returns the value of attribute expires_at.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def expires_at @expires_at end  | 
  
#gateway ⇒ Object
Returns the value of attribute gateway.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def gateway @gateway end  | 
  
#gateway_account_id ⇒ Object
Returns the value of attribute gateway_account_id.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def gateway_account_id @gateway_account_id end  | 
  
#id ⇒ Object
Returns the value of attribute id.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def id @id end  | 
  
#id_at_gateway ⇒ Object
Returns the value of attribute id_at_gateway.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def id_at_gateway @id_at_gateway end  | 
  
#linked_invoices ⇒ Object
Returns the value of attribute linked_invoices.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def linked_invoices @linked_invoices end  | 
  
#payload ⇒ Object
Returns the value of attribute payload.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def payload @payload end  | 
  
#payment_source_id ⇒ Object
Returns the value of attribute payment_source_id.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def payment_source_id @payment_source_id end  | 
  
#payment_voucher_type ⇒ Object
Returns the value of attribute payment_voucher_type.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def payment_voucher_type @payment_voucher_type end  | 
  
#resource_version ⇒ Object
Returns the value of attribute resource_version.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def resource_version @resource_version end  | 
  
#status ⇒ Object
Returns the value of attribute status.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def status @status end  | 
  
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def subscription_id @subscription_id end  | 
  
#updated_at ⇒ Object
Returns the value of attribute updated_at.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def updated_at @updated_at end  | 
  
#url ⇒ Object
Returns the value of attribute url.
      8 9 10  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 8 def url @url end  | 
  
Class Method Details
.create(params, env = nil, headers = {}) ⇒ Object
OPERATIONS
      15 16 17  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 15 def self.create(params, env=nil, headers={}) Request.send('post', uri_path("payment_vouchers"), params, env, headers) end  | 
  
.payment_vouchers_for_customer(id, params = {}, env = nil, headers = {}) ⇒ Object
      27 28 29  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 27 def self.payment_vouchers_for_customer(id, params={}, env=nil, headers={}) Request.send('get', uri_path("customers",id.to_s,"payment_vouchers"), params, env, headers) end  | 
  
.payment_vouchers_for_invoice(id, params = {}, env = nil, headers = {}) ⇒ Object
      23 24 25  | 
    
      # File 'lib/chargebee/models/payment_voucher.rb', line 23 def self.payment_vouchers_for_invoice(id, params={}, env=nil, headers={}) Request.send('get', uri_path("invoices",id.to_s,"payment_vouchers"), params, env, headers) end  |