Module: ChargeBee
- Defined in:
- lib/chargebee.rb,
lib/chargebee/rest.rb,
lib/chargebee/util.rb,
lib/chargebee/errors.rb,
lib/chargebee/result.rb,
lib/chargebee/request.rb,
lib/chargebee/environment.rb,
lib/chargebee/list_result.rb,
lib/chargebee/models/card.rb,
lib/chargebee/models/gift.rb,
lib/chargebee/models/item.rb,
lib/chargebee/models/plan.rb,
lib/chargebee/models/addon.rb,
lib/chargebee/models/event.rb,
lib/chargebee/models/model.rb,
lib/chargebee/models/order.rb,
lib/chargebee/models/quote.rb,
lib/chargebee/models/token.rb,
lib/chargebee/models/usage.rb,
lib/chargebee/models/coupon.rb,
lib/chargebee/models/export.rb,
lib/chargebee/models/address.rb,
lib/chargebee/models/comment.rb,
lib/chargebee/models/contact.rb,
lib/chargebee/models/feature.rb,
lib/chargebee/models/invoice.rb,
lib/chargebee/models/customer.rb,
lib/chargebee/models/download.rb,
lib/chargebee/models/estimate.rb,
lib/chargebee/models/hierarchy.rb,
lib/chargebee/models/coupon_set.rb,
lib/chargebee/models/item_price.rb,
lib/chargebee/models/coupon_code.rb,
lib/chargebee/models/credit_note.rb,
lib/chargebee/models/hosted_page.rb,
lib/chargebee/models/item_family.rb,
lib/chargebee/models/transaction.rb,
lib/chargebee/models/subscription.rb,
lib/chargebee/models/tax_withheld.rb,
lib/chargebee/models/time_machine.rb,
lib/chargebee/models/attached_item.rb,
lib/chargebee/models/contract_term.rb,
lib/chargebee/models/quoted_charge.rb,
lib/chargebee/models/payment_intent.rb,
lib/chargebee/models/payment_source.rb,
lib/chargebee/models/portal_session.rb,
lib/chargebee/models/unbilled_charge.rb,
lib/chargebee/models/invoice_estimate.rb,
lib/chargebee/models/item_entitlement.rb,
lib/chargebee/models/quote_line_group.rb,
lib/chargebee/models/differential_price.rb,
lib/chargebee/models/promotional_credit.rb,
lib/chargebee/models/resource_migration.rb,
lib/chargebee/models/quoted_subscription.rb,
lib/chargebee/models/credit_note_estimate.rb,
lib/chargebee/models/entitlement_override.rb,
lib/chargebee/models/virtual_bank_account.rb,
lib/chargebee/models/site_migration_detail.rb,
lib/chargebee/models/subscription_estimate.rb,
lib/chargebee/models/advance_invoice_schedule.rb,
lib/chargebee/models/subscription_entitlement.rb,
lib/chargebee/models/third_party_payment_method.rb
Defined Under Namespace
Modules: Rest, Util
Classes: APIError, Addon, Address, AdvanceInvoiceSchedule, AttachedItem, Card, Comment, Contact, ContractTerm, Coupon, CouponCode, CouponSet, CreditNote, CreditNoteEstimate, Customer, DifferentialPrice, Download, EntitlementOverride, Environment, Error, Estimate, Event, Export, Feature, Gift, Hierarchy, HostedPage, IOError, InvalidRequestError, Invoice, InvoiceEstimate, Item, ItemEntitlement, ItemFamily, ItemPrice, ListResult, Model, OperationFailedError, Order, PaymentError, PaymentIntent, PaymentSource, Plan, PortalSession, PromotionalCredit, Quote, QuoteLineGroup, QuotedCharge, QuotedSubscription, Request, ResourceMigration, Result, SiteMigrationDetail, Subscription, SubscriptionEntitlement, SubscriptionEstimate, TaxWithheld, ThirdPartyPaymentMethod, TimeMachine, Token, Transaction, UnbilledCharge, Usage, VirtualBankAccount
Constant Summary
collapse
- VERSION =
'2.16.0'
- @@default_env =
nil
- @@verify_ca_certs =
true
- @@ca_cert_path =
File.join(File.dirname(__FILE__), '/ssl/ca-certs.crt')
- @@user_agent =
"Chargebee-Ruby-Client v#{self::VERSION}"
Class Method Summary
collapse
Class Method Details
.ca_cert_path ⇒ Object
79
80
81
|
# File 'lib/chargebee.rb', line 79
def self.ca_cert_path
@@ca_cert_path
end
|
63
64
65
|
# File 'lib/chargebee.rb', line 63
def self.configure(options)
@@default_env = Environment.new(options)
end
|
.default_env ⇒ Object
67
68
69
|
# File 'lib/chargebee.rb', line 67
def self.default_env
@@default_env
end
|
.source(source) ⇒ Object
84
85
86
|
# File 'lib/chargebee.rb', line 84
def self.source(source)
@@user_agent = @@user_agent + ' ' + source unless source.nil?
end
|
.update_connect_timeout_secs(connect_timeout) ⇒ Object
92
93
94
|
# File 'lib/chargebee.rb', line 92
def self.update_connect_timeout_secs(connect_timeout)
@@default_env.connect_timeout = connect_timeout
end
|
.update_read_timeout_secs(read_timeout) ⇒ Object
96
97
98
|
# File 'lib/chargebee.rb', line 96
def self.update_read_timeout_secs(read_timeout)
@@default_env.read_timeout = read_timeout
end
|
.user_agent ⇒ Object
88
89
90
|
# File 'lib/chargebee.rb', line 88
def self.user_agent
@@user_agent
end
|
.verify_ca_certs=(verify) ⇒ Object
71
72
73
|
# File 'lib/chargebee.rb', line 71
def self.verify_ca_certs=(verify)
@@verify_ca_certs = verify
end
|
.verify_ca_certs? ⇒ Boolean
75
76
77
|
# File 'lib/chargebee.rb', line 75
def self.verify_ca_certs?
@@verify_ca_certs
end
|