chargebee 2.6.4 → 2.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1524 -1488
  3. data/LICENSE +24 -24
  4. data/README.rdoc +41 -41
  5. data/chargebee.gemspec +4 -3
  6. data/lib/chargebee.rb +85 -85
  7. data/lib/chargebee/environment.rb +28 -28
  8. data/lib/chargebee/errors.rb +43 -43
  9. data/lib/chargebee/models/addon.rb +45 -45
  10. data/lib/chargebee/models/address.rb +18 -18
  11. data/lib/chargebee/models/card.rb +32 -32
  12. data/lib/chargebee/models/comment.rb +25 -25
  13. data/lib/chargebee/models/contact.rb +10 -10
  14. data/lib/chargebee/models/coupon.rb +40 -40
  15. data/lib/chargebee/models/coupon_code.rb +25 -25
  16. data/lib/chargebee/models/coupon_set.rb +37 -37
  17. data/lib/chargebee/models/credit_note.rb +77 -77
  18. data/lib/chargebee/models/credit_note_estimate.rb +35 -35
  19. data/lib/chargebee/models/customer.rb +137 -120
  20. data/lib/chargebee/models/download.rb +9 -9
  21. data/lib/chargebee/models/estimate.rb +46 -46
  22. data/lib/chargebee/models/event.rb +45 -45
  23. data/lib/chargebee/models/export.rb +86 -86
  24. data/lib/chargebee/models/gift.rb +42 -42
  25. data/lib/chargebee/models/hierarchy.rb +10 -0
  26. data/lib/chargebee/models/hosted_page.rb +77 -77
  27. data/lib/chargebee/models/invoice.rb +172 -172
  28. data/lib/chargebee/models/invoice_estimate.rb +35 -35
  29. data/lib/chargebee/models/model.rb +101 -101
  30. data/lib/chargebee/models/order.rb +76 -76
  31. data/lib/chargebee/models/payment_source.rb +79 -71
  32. data/lib/chargebee/models/plan.rb +60 -59
  33. data/lib/chargebee/models/portal_session.rb +30 -30
  34. data/lib/chargebee/models/promotional_credit.rb +30 -30
  35. data/lib/chargebee/models/quote.rb +72 -72
  36. data/lib/chargebee/models/resource_migration.rb +13 -13
  37. data/lib/chargebee/models/site_migration_detail.rb +14 -14
  38. data/lib/chargebee/models/subscription.rb +137 -137
  39. data/lib/chargebee/models/subscription_estimate.rb +13 -13
  40. data/lib/chargebee/models/third_party_payment_method.rb +9 -9
  41. data/lib/chargebee/models/time_machine.rb +46 -46
  42. data/lib/chargebee/models/token.rb +11 -0
  43. data/lib/chargebee/models/transaction.rb +62 -62
  44. data/lib/chargebee/models/unbilled_charge.rb +31 -31
  45. data/lib/chargebee/models/virtual_bank_account.rb +30 -26
  46. data/lib/chargebee/request.rb +27 -27
  47. data/lib/chargebee/rest.rb +92 -92
  48. data/lib/chargebee/result.rb +255 -240
  49. data/spec/errors_spec.rb +23 -23
  50. data/spec/sample_response.rb +73 -73
  51. metadata +5 -4
  52. data/lib/chargebee/.DS_Store +0 -0
@@ -1,78 +1,78 @@
1
- module ChargeBee
2
- class CreditNote < Model
3
-
4
- class LineItem < Model
5
- attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :discount_amount, :item_level_discount_amount, :description, :entity_type, :tax_exempt_reason, :entity_id
6
- end
7
-
8
- class Discount < Model
9
- attr_accessor :amount, :description, :entity_type, :entity_id
10
- end
11
-
12
- class LineItemDiscount < Model
13
- attr_accessor :line_item_id, :discount_type, :coupon_id, :discount_amount
14
- end
15
-
16
- class LineItemTier < Model
17
- attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount
18
- end
19
-
20
- class Tax < Model
21
- attr_accessor :name, :amount, :description
22
- end
23
-
24
- class LineItemTax < Model
25
- attr_accessor :line_item_id, :tax_name, :tax_rate, :tax_amount, :tax_juris_type, :tax_juris_name, :tax_juris_code
26
- end
27
-
28
- class LinkedRefund < Model
29
- attr_accessor :txn_id, :applied_amount, :applied_at, :txn_status, :txn_date, :txn_amount
30
- end
31
-
32
- class Allocation < Model
33
- attr_accessor :invoice_id, :allocated_amount, :allocated_at, :invoice_date, :invoice_status
34
- end
35
-
36
- attr_accessor :id, :customer_id, :subscription_id, :reference_invoice_id, :type, :reason_code,
37
- :status, :vat_number, :date, :price_type, :currency_code, :total, :amount_allocated, :amount_refunded,
38
- :amount_available, :refunded_at, :voided_at, :resource_version, :updated_at, :sub_total, :round_off_amount,
39
- :line_items, :discounts, :line_item_discounts, :line_item_tiers, :taxes, :line_item_taxes, :linked_refunds,
40
- :allocations, :deleted
41
-
42
- # OPERATIONS
43
- #-----------
44
-
45
- def self.create(params, env=nil, headers={})
46
- Request.send('post', uri_path("credit_notes"), params, env, headers)
47
- end
48
-
49
- def self.retrieve(id, env=nil, headers={})
50
- Request.send('get', uri_path("credit_notes",id.to_s), {}, env, headers)
51
- end
52
-
53
- def self.pdf(id, params={}, env=nil, headers={})
54
- Request.send('post', uri_path("credit_notes",id.to_s,"pdf"), params, env, headers)
55
- end
56
-
57
- def self.record_refund(id, params, env=nil, headers={})
58
- Request.send('post', uri_path("credit_notes",id.to_s,"record_refund"), params, env, headers)
59
- end
60
-
61
- def self.void_credit_note(id, params={}, env=nil, headers={})
62
- Request.send('post', uri_path("credit_notes",id.to_s,"void"), params, env, headers)
63
- end
64
-
65
- def self.list(params={}, env=nil, headers={})
66
- Request.send_list_request('get', uri_path("credit_notes"), params, env, headers)
67
- end
68
-
69
- def self.credit_notes_for_customer(id, params={}, env=nil, headers={})
70
- Request.send('get', uri_path("customers",id.to_s,"credit_notes"), params, env, headers)
71
- end
72
-
73
- def self.delete(id, params={}, env=nil, headers={})
74
- Request.send('post', uri_path("credit_notes",id.to_s,"delete"), params, env, headers)
75
- end
76
-
77
- end # ~CreditNote
1
+ module ChargeBee
2
+ class CreditNote < Model
3
+
4
+ class LineItem < Model
5
+ attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :discount_amount, :item_level_discount_amount, :description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
6
+ end
7
+
8
+ class Discount < Model
9
+ attr_accessor :amount, :description, :entity_type, :entity_id
10
+ end
11
+
12
+ class LineItemDiscount < Model
13
+ attr_accessor :line_item_id, :discount_type, :coupon_id, :discount_amount
14
+ end
15
+
16
+ class LineItemTier < Model
17
+ attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount
18
+ end
19
+
20
+ class Tax < Model
21
+ attr_accessor :name, :amount, :description
22
+ end
23
+
24
+ class LineItemTax < Model
25
+ attr_accessor :line_item_id, :tax_name, :tax_rate, :is_partial_tax_applied, :is_non_compliance_tax, :taxable_amount, :tax_amount, :tax_juris_type, :tax_juris_name, :tax_juris_code
26
+ end
27
+
28
+ class LinkedRefund < Model
29
+ attr_accessor :txn_id, :applied_amount, :applied_at, :txn_status, :txn_date, :txn_amount
30
+ end
31
+
32
+ class Allocation < Model
33
+ attr_accessor :invoice_id, :allocated_amount, :allocated_at, :invoice_date, :invoice_status
34
+ end
35
+
36
+ attr_accessor :id, :customer_id, :subscription_id, :reference_invoice_id, :type, :reason_code,
37
+ :status, :vat_number, :date, :price_type, :currency_code, :total, :amount_allocated, :amount_refunded,
38
+ :amount_available, :refunded_at, :voided_at, :resource_version, :updated_at, :sub_total, :round_off_amount,
39
+ :fractional_correction, :line_items, :discounts, :line_item_discounts, :line_item_tiers, :taxes,
40
+ :line_item_taxes, :linked_refunds, :allocations, :deleted
41
+
42
+ # OPERATIONS
43
+ #-----------
44
+
45
+ def self.create(params, env=nil, headers={})
46
+ Request.send('post', uri_path("credit_notes"), params, env, headers)
47
+ end
48
+
49
+ def self.retrieve(id, env=nil, headers={})
50
+ Request.send('get', uri_path("credit_notes",id.to_s), {}, env, headers)
51
+ end
52
+
53
+ def self.pdf(id, params={}, env=nil, headers={})
54
+ Request.send('post', uri_path("credit_notes",id.to_s,"pdf"), params, env, headers)
55
+ end
56
+
57
+ def self.record_refund(id, params, env=nil, headers={})
58
+ Request.send('post', uri_path("credit_notes",id.to_s,"record_refund"), params, env, headers)
59
+ end
60
+
61
+ def self.void_credit_note(id, params={}, env=nil, headers={})
62
+ Request.send('post', uri_path("credit_notes",id.to_s,"void"), params, env, headers)
63
+ end
64
+
65
+ def self.list(params={}, env=nil, headers={})
66
+ Request.send_list_request('get', uri_path("credit_notes"), params, env, headers)
67
+ end
68
+
69
+ def self.credit_notes_for_customer(id, params={}, env=nil, headers={})
70
+ Request.send('get', uri_path("customers",id.to_s,"credit_notes"), params, env, headers)
71
+ end
72
+
73
+ def self.delete(id, params={}, env=nil, headers={})
74
+ Request.send('post', uri_path("credit_notes",id.to_s,"delete"), params, env, headers)
75
+ end
76
+
77
+ end # ~CreditNote
78
78
  end # ~ChargeBee
@@ -1,36 +1,36 @@
1
- module ChargeBee
2
- class CreditNoteEstimate < Model
3
-
4
- class LineItem < Model
5
- attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :discount_amount, :item_level_discount_amount, :description, :entity_type, :tax_exempt_reason, :entity_id
6
- end
7
-
8
- class Discount < Model
9
- attr_accessor :amount, :description, :entity_type, :entity_id
10
- end
11
-
12
- class Tax < Model
13
- attr_accessor :name, :amount, :description
14
- end
15
-
16
- class LineItemTax < Model
17
- attr_accessor :line_item_id, :tax_name, :tax_rate, :tax_amount, :tax_juris_type, :tax_juris_name, :tax_juris_code
18
- end
19
-
20
- class LineItemDiscount < Model
21
- attr_accessor :line_item_id, :discount_type, :coupon_id, :discount_amount
22
- end
23
-
24
- class LineItemTier < Model
25
- attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount
26
- end
27
-
28
- attr_accessor :reference_invoice_id, :type, :price_type, :currency_code, :sub_total, :total,
29
- :amount_allocated, :amount_available, :line_items, :discounts, :taxes, :line_item_taxes, :line_item_discounts,
30
- :line_item_tiers, :round_off_amount
31
-
32
- # OPERATIONS
33
- #-----------
34
-
35
- end # ~CreditNoteEstimate
1
+ module ChargeBee
2
+ class CreditNoteEstimate < Model
3
+
4
+ class LineItem < Model
5
+ attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :discount_amount, :item_level_discount_amount, :description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
6
+ end
7
+
8
+ class Discount < Model
9
+ attr_accessor :amount, :description, :entity_type, :entity_id
10
+ end
11
+
12
+ class Tax < Model
13
+ attr_accessor :name, :amount, :description
14
+ end
15
+
16
+ class LineItemTax < Model
17
+ attr_accessor :line_item_id, :tax_name, :tax_rate, :is_partial_tax_applied, :is_non_compliance_tax, :taxable_amount, :tax_amount, :tax_juris_type, :tax_juris_name, :tax_juris_code
18
+ end
19
+
20
+ class LineItemDiscount < Model
21
+ attr_accessor :line_item_id, :discount_type, :coupon_id, :discount_amount
22
+ end
23
+
24
+ class LineItemTier < Model
25
+ attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount
26
+ end
27
+
28
+ attr_accessor :reference_invoice_id, :type, :price_type, :currency_code, :sub_total, :total,
29
+ :amount_allocated, :amount_available, :line_items, :discounts, :taxes, :line_item_taxes, :line_item_discounts,
30
+ :line_item_tiers, :round_off_amount
31
+
32
+ # OPERATIONS
33
+ #-----------
34
+
35
+ end # ~CreditNoteEstimate
36
36
  end # ~ChargeBee
@@ -1,121 +1,138 @@
1
- module ChargeBee
2
- class Customer < Model
3
-
4
- class BillingAddress < Model
5
- attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
6
- end
7
-
8
- class ReferralUrl < Model
9
- attr_accessor :external_customer_id, :referral_sharing_url, :created_at, :updated_at, :referral_campaign_id, :referral_account_id, :referral_external_campaign_id, :referral_system
10
- end
11
-
12
- class Contact < Model
13
- attr_accessor :id, :first_name, :last_name, :email, :phone, :label, :enabled, :send_account_email, :send_billing_email
14
- end
15
-
16
- class PaymentMethod < Model
17
- attr_accessor :type, :gateway, :gateway_account_id, :status, :reference_id
18
- end
19
-
20
- class Balance < Model
21
- attr_accessor :promotional_credits, :excess_payments, :refundable_credits, :unbilled_charges, :currency_code, :balance_currency_code
22
- end
23
-
24
- attr_accessor :id, :first_name, :last_name, :email, :phone, :company, :vat_number, :auto_collection,
25
- :net_term_days, :vat_number_validated_time, :vat_number_status, :allow_direct_debit, :is_location_valid,
26
- :created_at, :created_from_ip, :taxability, :entity_code, :exempt_number, :resource_version,
27
- :updated_at, :locale, :consolidated_invoicing, :billing_date, :billing_date_mode, :billing_day_of_week,
28
- :billing_day_of_week_mode, :pii_cleared, :card_status, :fraud_flag, :primary_payment_source_id,
29
- :backup_payment_source_id, :billing_address, :referral_urls, :contacts, :payment_method, :invoice_notes,
30
- :preferred_currency_code, :promotional_credits, :unbilled_charges, :refundable_credits, :excess_payments,
31
- :balances, :meta_data, :deleted, :registered_for_gst
32
-
33
- # OPERATIONS
34
- #-----------
35
-
36
- def self.create(params={}, env=nil, headers={})
37
- Request.send('post', uri_path("customers"), params, env, headers)
38
- end
39
-
40
- def self.list(params={}, env=nil, headers={})
41
- Request.send_list_request('get', uri_path("customers"), params, env, headers)
42
- end
43
-
44
- def self.retrieve(id, env=nil, headers={})
45
- Request.send('get', uri_path("customers",id.to_s), {}, env, headers)
46
- end
47
-
48
- def self.update(id, params={}, env=nil, headers={})
49
- Request.send('post', uri_path("customers",id.to_s), params, env, headers)
50
- end
51
-
52
- def self.update_payment_method(id, params, env=nil, headers={})
53
- Request.send('post', uri_path("customers",id.to_s,"update_payment_method"), params, env, headers)
54
- end
55
-
56
- def self.update_billing_info(id, params={}, env=nil, headers={})
57
- Request.send('post', uri_path("customers",id.to_s,"update_billing_info"), params, env, headers)
58
- end
59
-
60
- def self.contacts_for_customer(id, params={}, env=nil, headers={})
61
- Request.send('get', uri_path("customers",id.to_s,"contacts"), params, env, headers)
62
- end
63
-
64
- def self.assign_payment_role(id, params, env=nil, headers={})
65
- Request.send('post', uri_path("customers",id.to_s,"assign_payment_role"), params, env, headers)
66
- end
67
-
68
- def self.add_contact(id, params, env=nil, headers={})
69
- Request.send('post', uri_path("customers",id.to_s,"add_contact"), params, env, headers)
70
- end
71
-
72
- def self.update_contact(id, params, env=nil, headers={})
73
- Request.send('post', uri_path("customers",id.to_s,"update_contact"), params, env, headers)
74
- end
75
-
76
- def self.delete_contact(id, params, env=nil, headers={})
77
- Request.send('post', uri_path("customers",id.to_s,"delete_contact"), params, env, headers)
78
- end
79
-
80
- def self.add_promotional_credits(id, params, env=nil, headers={})
81
- Request.send('post', uri_path("customers",id.to_s,"add_promotional_credits"), params, env, headers)
82
- end
83
-
84
- def self.deduct_promotional_credits(id, params, env=nil, headers={})
85
- Request.send('post', uri_path("customers",id.to_s,"deduct_promotional_credits"), params, env, headers)
86
- end
87
-
88
- def self.set_promotional_credits(id, params, env=nil, headers={})
89
- Request.send('post', uri_path("customers",id.to_s,"set_promotional_credits"), params, env, headers)
90
- end
91
-
92
- def self.record_excess_payment(id, params, env=nil, headers={})
93
- Request.send('post', uri_path("customers",id.to_s,"record_excess_payment"), params, env, headers)
94
- end
95
-
96
- def self.collect_payment(id, params={}, env=nil, headers={})
97
- Request.send('post', uri_path("customers",id.to_s,"collect_payment"), params, env, headers)
98
- end
99
-
100
- def self.delete(id, params={}, env=nil, headers={})
101
- Request.send('post', uri_path("customers",id.to_s,"delete"), params, env, headers)
102
- end
103
-
104
- def self.move(params, env=nil, headers={})
105
- Request.send('post', uri_path("customers","move"), params, env, headers)
106
- end
107
-
108
- def self.change_billing_date(id, params={}, env=nil, headers={})
109
- Request.send('post', uri_path("customers",id.to_s,"change_billing_date"), params, env, headers)
110
- end
111
-
112
- def self.merge(params, env=nil, headers={})
113
- Request.send('post', uri_path("customers","merge"), params, env, headers)
114
- end
115
-
116
- def self.clear_personal_data(id, env=nil, headers={})
117
- Request.send('post', uri_path("customers",id.to_s,"clear_personal_data"), {}, env, headers)
118
- end
119
-
120
- end # ~Customer
1
+ module ChargeBee
2
+ class Customer < Model
3
+
4
+ class BillingAddress < Model
5
+ attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
6
+ end
7
+
8
+ class ReferralUrl < Model
9
+ attr_accessor :external_customer_id, :referral_sharing_url, :created_at, :updated_at, :referral_campaign_id, :referral_account_id, :referral_external_campaign_id, :referral_system
10
+ end
11
+
12
+ class Contact < Model
13
+ attr_accessor :id, :first_name, :last_name, :email, :phone, :label, :enabled, :send_account_email, :send_billing_email
14
+ end
15
+
16
+ class PaymentMethod < Model
17
+ attr_accessor :type, :gateway, :gateway_account_id, :status, :reference_id
18
+ end
19
+
20
+ class Balance < Model
21
+ attr_accessor :promotional_credits, :excess_payments, :refundable_credits, :unbilled_charges, :currency_code, :balance_currency_code
22
+ end
23
+
24
+ class Relationship < Model
25
+ attr_accessor :parent_id, :payment_owner_id, :invoice_owner_id
26
+ end
27
+
28
+ attr_accessor :id, :first_name, :last_name, :email, :phone, :company, :vat_number, :auto_collection,
29
+ :net_term_days, :vat_number_validated_time, :vat_number_status, :allow_direct_debit, :is_location_valid,
30
+ :created_at, :created_from_ip, :exemption_details, :taxability, :entity_code, :exempt_number,
31
+ :resource_version, :updated_at, :locale, :consolidated_invoicing, :billing_date, :billing_date_mode,
32
+ :billing_day_of_week, :billing_day_of_week_mode, :pii_cleared, :card_status, :fraud_flag, :primary_payment_source_id,
33
+ :backup_payment_source_id, :billing_address, :referral_urls, :contacts, :payment_method, :invoice_notes,
34
+ :preferred_currency_code, :promotional_credits, :unbilled_charges, :refundable_credits, :excess_payments,
35
+ :balances, :meta_data, :deleted, :registered_for_gst, :business_customer_without_vat_number,
36
+ :customer_type, :relationship
37
+
38
+ # OPERATIONS
39
+ #-----------
40
+
41
+ def self.create(params={}, env=nil, headers={})
42
+ Request.send('post', uri_path("customers"), params, env, headers)
43
+ end
44
+
45
+ def self.list(params={}, env=nil, headers={})
46
+ Request.send_list_request('get', uri_path("customers"), params, env, headers)
47
+ end
48
+
49
+ def self.retrieve(id, env=nil, headers={})
50
+ Request.send('get', uri_path("customers",id.to_s), {}, env, headers)
51
+ end
52
+
53
+ def self.update(id, params={}, env=nil, headers={})
54
+ Request.send('post', uri_path("customers",id.to_s), params, env, headers)
55
+ end
56
+
57
+ def self.update_payment_method(id, params, env=nil, headers={})
58
+ Request.send('post', uri_path("customers",id.to_s,"update_payment_method"), params, env, headers)
59
+ end
60
+
61
+ def self.update_billing_info(id, params={}, env=nil, headers={})
62
+ Request.send('post', uri_path("customers",id.to_s,"update_billing_info"), params, env, headers)
63
+ end
64
+
65
+ def self.contacts_for_customer(id, params={}, env=nil, headers={})
66
+ Request.send('get', uri_path("customers",id.to_s,"contacts"), params, env, headers)
67
+ end
68
+
69
+ def self.assign_payment_role(id, params, env=nil, headers={})
70
+ Request.send('post', uri_path("customers",id.to_s,"assign_payment_role"), params, env, headers)
71
+ end
72
+
73
+ def self.add_contact(id, params, env=nil, headers={})
74
+ Request.send('post', uri_path("customers",id.to_s,"add_contact"), params, env, headers)
75
+ end
76
+
77
+ def self.update_contact(id, params, env=nil, headers={})
78
+ Request.send('post', uri_path("customers",id.to_s,"update_contact"), params, env, headers)
79
+ end
80
+
81
+ def self.delete_contact(id, params, env=nil, headers={})
82
+ Request.send('post', uri_path("customers",id.to_s,"delete_contact"), params, env, headers)
83
+ end
84
+
85
+ def self.add_promotional_credits(id, params, env=nil, headers={})
86
+ Request.send('post', uri_path("customers",id.to_s,"add_promotional_credits"), params, env, headers)
87
+ end
88
+
89
+ def self.deduct_promotional_credits(id, params, env=nil, headers={})
90
+ Request.send('post', uri_path("customers",id.to_s,"deduct_promotional_credits"), params, env, headers)
91
+ end
92
+
93
+ def self.set_promotional_credits(id, params, env=nil, headers={})
94
+ Request.send('post', uri_path("customers",id.to_s,"set_promotional_credits"), params, env, headers)
95
+ end
96
+
97
+ def self.record_excess_payment(id, params, env=nil, headers={})
98
+ Request.send('post', uri_path("customers",id.to_s,"record_excess_payment"), params, env, headers)
99
+ end
100
+
101
+ def self.collect_payment(id, params={}, env=nil, headers={})
102
+ Request.send('post', uri_path("customers",id.to_s,"collect_payment"), params, env, headers)
103
+ end
104
+
105
+ def self.delete(id, params={}, env=nil, headers={})
106
+ Request.send('post', uri_path("customers",id.to_s,"delete"), params, env, headers)
107
+ end
108
+
109
+ def self.move(params, env=nil, headers={})
110
+ Request.send('post', uri_path("customers","move"), params, env, headers)
111
+ end
112
+
113
+ def self.change_billing_date(id, params={}, env=nil, headers={})
114
+ Request.send('post', uri_path("customers",id.to_s,"change_billing_date"), params, env, headers)
115
+ end
116
+
117
+ def self.merge(params, env=nil, headers={})
118
+ Request.send('post', uri_path("customers","merge"), params, env, headers)
119
+ end
120
+
121
+ def self.clear_personal_data(id, env=nil, headers={})
122
+ Request.send('post', uri_path("customers",id.to_s,"clear_personal_data"), {}, env, headers)
123
+ end
124
+
125
+ def self.relationships(id, params={}, env=nil, headers={})
126
+ Request.send('post', uri_path("customers",id.to_s,"relationships"), params, env, headers)
127
+ end
128
+
129
+ def self.delete_relationship(id, env=nil, headers={})
130
+ Request.send('post', uri_path("customers",id.to_s,"delete_relationship"), {}, env, headers)
131
+ end
132
+
133
+ def self.hierarchy(id, params={}, env=nil, headers={})
134
+ Request.send('get', uri_path("customers",id.to_s,"hierarchy"), params, env, headers)
135
+ end
136
+
137
+ end # ~Customer
121
138
  end # ~ChargeBee