Class: Vindi::Client

Inherits:
Object
  • Object
show all
Includes:
Configuration, Request, Rest
Defined in:
lib/vindi/client.rb

Instance Attribute Summary

Attributes included from Configuration

#api_endpoint, #connection_options, #default_media_type, #key, #middleware, #user_agent

Instance Method Summary collapse

Methods included from Rest::MerchantUser

#create_merchant_user, #delete_merchant_user, #list_merchant_users, #merchant_user, #reactivate_merchant_user, #update_merchant_user

Methods included from Rest::User

#current_user

Methods included from Rest::Role

#list_roles

Methods included from Rest::Merchant

#current_merchant, #list_merchants, #merchant

Methods included from Rest::Issue

#issue, #list_issues, #update_issue

Methods included from Rest::Notification

#create_notification, #create_notification_item, #delete_notification, #delete_notification_item, #list_notification_items, #list_notifications, #notification, #update_notification

Methods included from Rest::ExportBatch

#approve_export_batch, #create_export_batch, #export_batch, #list_export_batches

Methods included from Rest::ImportBatch

#create_import_batch, #import_batch, #list_import_batches

Methods included from Rest::Message

#create_message, #list_messages, #message

Methods included from Rest::Invoice

#create_invoice, #delete_invoice, #invoice, #list_invoices, #retry_invoice

Methods included from Rest::Movement

#create_movement

Methods included from Rest::Usage

#create_usage, #delete_usage

Methods included from Rest::PaymentProfile

#create_payment_profile, #delete_payment_profile, #list_payment_profiles, #payment_profile

Methods included from Rest::Transaction

#create_transaction, #list_transactions, #transaction, #update_transaction

Methods included from Rest::Charge

#capture_charge, #charge, #delete_charge, #fraud_review, #list_charges, #perform_charge, #refund_charge, #reissue_charge, #update_charge

Methods included from Rest::BillItem

#bill_item

Methods included from Rest::Bill

#approve_bill, #bill, #charge_bill, #create_bill, #create_invoice_from_bill, #delete_bill, #list_bills, #update_bill

Methods included from Rest::Period

#create_period_bill, #list_period_usages, #list_periods, #period, #update_period

Methods included from Rest::ProductItem

#create_product_item, #delete_product_item, #product_item, #update_product_item

Methods included from Rest::Subscription

#create_subscription, #delete_subscription, #list_subscription_product_items, #list_subscriptions, #reactivate_subscription, #renew_subscription, #subscription, #update_subscription

Methods included from Rest::Discount

#create_discount, #delete_discount, #discount

Methods included from Rest::PaymentMethod

#list_payment_methods, #payment_method

Methods included from Rest::Customer

#create_customer, #customer, #delete_customer, #list_customers, #unarchive_customer, #update_customer

Methods included from Rest::Product

#create_product, #list_products, #product, #update_product

Methods included from Rest::Plan

#create_plan, #list_plans, #plan, #update_plan

Methods included from Request

#delete, #get, #head, #patch, #post, #put

Methods included from Connection

#http_client, #last_response

Methods included from Configuration

#configure, keys, #reset!

Constructor Details

#initialize(options = {}, &block) ⇒ Client

Returns a new instance of Client.



11
12
13
# File 'lib/vindi/client.rb', line 11

def initialize(options = {}, &block)
  setup && configure(options, &block)
end