chargebee 2.81.0 → 2.83.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +233 -0
- data/Gemfile.lock +3 -3
- data/VERSION +1 -1
- data/chargebee.gemspec +25 -2
- data/lib/chargebee/models/billing_line_item.rb +10 -0
- data/lib/chargebee/models/billing_metadata.rb +10 -0
- data/lib/chargebee/models/business_entity.rb +32 -0
- data/lib/chargebee/models/citation.rb +10 -0
- data/lib/chargebee/models/collections_dispute.rb +12 -0
- data/lib/chargebee/models/collections_payment_promise.rb +48 -0
- data/lib/chargebee/models/collections_reminder_sequence.rb +15 -0
- data/lib/chargebee/models/custom_data.rb +10 -0
- data/lib/chargebee/models/discount.rb +3 -3
- data/lib/chargebee/models/draft_estimate.rb +10 -0
- data/lib/chargebee/models/draft_request.rb +24 -0
- data/lib/chargebee/models/email_attachment.rb +11 -0
- data/lib/chargebee/models/email_conversation.rb +11 -0
- data/lib/chargebee/models/email_log.rb +1 -1
- data/lib/chargebee/models/email_message.rb +16 -0
- data/lib/chargebee/models/execution.rb +10 -0
- data/lib/chargebee/models/gateway_payment_method_token.rb +2 -2
- data/lib/chargebee/models/gateway_request_log.rb +28 -0
- data/lib/chargebee/models/gateway_webhook_log.rb +27 -0
- data/lib/chargebee/models/grant_block.rb +5 -1
- data/lib/chargebee/models/group_by_attribute.rb +11 -0
- data/lib/chargebee/models/group_by_recommendation.rb +10 -0
- data/lib/chargebee/models/invoice.rb +16 -6
- data/lib/chargebee/models/item_price.rb +7 -6
- data/lib/chargebee/models/ledger_account_balance.rb +7 -0
- data/lib/chargebee/models/meter.rb +1 -1
- data/lib/chargebee/models/metered_feature.rb +2 -1
- data/lib/chargebee/models/omnichannel_subscription.rb +1 -1
- data/lib/chargebee/models/omnichannel_subscription_item.rb +4 -3
- data/lib/chargebee/models/organization_detail.rb +35 -0
- data/lib/chargebee/models/payment_source.rb +1 -1
- data/lib/chargebee/models/preference_variant.rb +10 -0
- data/lib/chargebee/models/price_ramp.rb +56 -0
- data/lib/chargebee/models/private_note.rb +11 -0
- data/lib/chargebee/models/ramp.rb +2 -2
- data/lib/chargebee/models/ramp_interval.rb +11 -0
- data/lib/chargebee/models/retry_segment.rb +17 -0
- data/lib/chargebee/models/subscription.rb +1 -1
- data/lib/chargebee/models/transaction.rb +5 -1
- data/lib/chargebee/models/usage.rb +1 -0
- data/lib/chargebee/models/usage_summary.rb +2 -1
- data/lib/chargebee/result.rb +121 -8
- data/lib/chargebee.rb +24 -2
- metadata +25 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
module ChargeBee
|
|
2
2
|
class GatewayPaymentMethodToken < Model
|
|
3
3
|
|
|
4
|
-
attr_accessor :id, :gateway_account_id, :
|
|
5
|
-
:
|
|
4
|
+
attr_accessor :id, :gateway_account_id, :gateway, :gateway_customer_id, :gateway_token, :status,
|
|
5
|
+
:created_at, :updated_at
|
|
6
6
|
|
|
7
7
|
# OPERATIONS
|
|
8
8
|
#-----------
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module ChargeBee
|
|
2
|
+
class GatewayRequestLog < Model
|
|
3
|
+
|
|
4
|
+
attr_accessor :log_id, :url, :status_code, :method, :request_body, :response_body, :request_headers,
|
|
5
|
+
:response_headers, :gateway, :customer_handle, :invoice_handle, :transaction_handle, :payment_method_handle,
|
|
6
|
+
:gateway_credential_handle, :payment_attempt_handle, :payment_intent_handle, :payment_method_name,
|
|
7
|
+
:operation_name, :operation_type, :action_type, :source, :trace_id_hash, :invocation_time, :response_received_at,
|
|
8
|
+
:response_time
|
|
9
|
+
|
|
10
|
+
# OPERATIONS
|
|
11
|
+
#-----------
|
|
12
|
+
|
|
13
|
+
def self.list(params={}, env=nil, headers={})
|
|
14
|
+
jsonKeys = {
|
|
15
|
+
}
|
|
16
|
+
options = {}
|
|
17
|
+
Request.send_list_request('get', uri_path("gateway_request_logs"), params, env, headers,nil, false, jsonKeys, options, "gatewayRequestLog", "list")
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def self.retrieve(id, env=nil, headers={})
|
|
21
|
+
jsonKeys = {
|
|
22
|
+
}
|
|
23
|
+
options = {}
|
|
24
|
+
Request.send('get', uri_path("gateway_request_logs",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "gatewayRequestLog", "retrieve")
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
end # ~GatewayRequestLog
|
|
28
|
+
end # ~ChargeBee
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module ChargeBee
|
|
2
|
+
class GatewayWebhookLog < Model
|
|
3
|
+
|
|
4
|
+
attr_accessor :webhook_id, :url, :method, :status_code, :gateway, :id_at_gateway, :customer_handle,
|
|
5
|
+
:invoice_handle, :transaction_handle, :payment_method_handle, :gateway_credential_handle, :payment_attempt_handle,
|
|
6
|
+
:payment_intent_handle, :payment_method_name, :request_body, :response_body, :request_headers,
|
|
7
|
+
:response_headers, :received_at, :response_time
|
|
8
|
+
|
|
9
|
+
# OPERATIONS
|
|
10
|
+
#-----------
|
|
11
|
+
|
|
12
|
+
def self.list(params={}, env=nil, headers={})
|
|
13
|
+
jsonKeys = {
|
|
14
|
+
}
|
|
15
|
+
options = {}
|
|
16
|
+
Request.send_list_request('get', uri_path("gateway_webhook_logs"), params, env, headers,nil, false, jsonKeys, options, "gatewayWebhookLog", "list")
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def self.retrieve(id, env=nil, headers={})
|
|
20
|
+
jsonKeys = {
|
|
21
|
+
}
|
|
22
|
+
options = {}
|
|
23
|
+
Request.send('get', uri_path("gateway_webhook_logs",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "gatewayWebhookLog", "retrieve")
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
end # ~GatewayWebhookLog
|
|
27
|
+
end # ~ChargeBee
|
|
@@ -9,10 +9,14 @@ module ChargeBee
|
|
|
9
9
|
attr_accessor :is_unlimited, :limit, :total_balance, :usable_balance, :used_amount
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
+
class BillingMetadata < Model
|
|
13
|
+
attr_accessor :item_price_id, :line_items
|
|
14
|
+
end
|
|
15
|
+
|
|
12
16
|
attr_accessor :id, :subscription_id, :unit_id, :unit_type, :account_type, :granted_amount, :effective_from,
|
|
13
17
|
:expires_at, :balance, :hold_amount, :used_amount, :expired_amount, :rolled_over_amount, :voided_amount,
|
|
14
18
|
:origin_grant_block_id, :status, :grant_source, :created_at, :modified_at, :resource_version,
|
|
15
|
-
:provisioned_block_balance, :overdraft_block_balance, :metadata
|
|
19
|
+
:provisioned_block_balance, :overdraft_block_balance, :billing_metadata, :metadata
|
|
16
20
|
|
|
17
21
|
# OPERATIONS
|
|
18
22
|
#-----------
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
module ChargeBee
|
|
2
|
+
class GroupByAttribute < Model
|
|
3
|
+
|
|
4
|
+
attr_accessor :attribute_name, :rank, :coverage_percent, :cardinality, :remaining_value_count,
|
|
5
|
+
:warning, :sample_values, :warning_reasons
|
|
6
|
+
|
|
7
|
+
# OPERATIONS
|
|
8
|
+
#-----------
|
|
9
|
+
|
|
10
|
+
end # ~GroupByAttribute
|
|
11
|
+
end # ~ChargeBee
|
|
@@ -99,12 +99,13 @@ module ChargeBee
|
|
|
99
99
|
:total_in_local_currency, :amount_due, :amount_adjusted, :amount_paid, :paid_at, :write_off_amount,
|
|
100
100
|
:credits_applied, :dunning_status, :next_retry_at, :voided_at, :resource_version, :updated_at,
|
|
101
101
|
:line_items_next_offset, :exchange_rates, :first_invoice, :new_sales_amount, :has_advance_charges,
|
|
102
|
-
:term_finalized, :is_gifted, :generated_at, :expected_payment_date,
|
|
103
|
-
:
|
|
104
|
-
:
|
|
105
|
-
:
|
|
106
|
-
:
|
|
107
|
-
:
|
|
102
|
+
:offline_payment_method, :term_finalized, :is_gifted, :generated_at, :expected_payment_date,
|
|
103
|
+
:amount_to_collect, :round_off_amount, :line_items, :line_item_tiers, :line_item_discounts,
|
|
104
|
+
:line_item_taxes, :line_item_credits, :line_item_addresses, :discounts, :taxes, :tax_origin,
|
|
105
|
+
:linked_payments, :reference_transactions, :retry_segment_id, :dunning_attempts, :applied_credits,
|
|
106
|
+
:adjustment_credit_notes, :issued_credit_notes, :linked_orders, :notes, :shipping_address, :billing_address,
|
|
107
|
+
:statement_descriptor, :einvoice, :void_reason_code, :deleted, :tax_category, :vat_number_prefix,
|
|
108
|
+
:channel, :business_entity_id, :brand_id, :site_details_at_creation
|
|
108
109
|
|
|
109
110
|
# OPERATIONS
|
|
110
111
|
#-----------
|
|
@@ -455,6 +456,15 @@ module ChargeBee
|
|
|
455
456
|
Request.send('post', uri_path("invoices",id.to_s,"apply_payment_schedule_scheme"), params, env, headers,nil, false, jsonKeys, options, "invoice", "applyPaymentScheduleScheme")
|
|
456
457
|
end
|
|
457
458
|
|
|
459
|
+
def self.remove_payment_schedule_scheme(id, params={}, env=nil, headers={})
|
|
460
|
+
jsonKeys = {
|
|
461
|
+
}
|
|
462
|
+
options = {
|
|
463
|
+
:isIdempotent => true
|
|
464
|
+
}
|
|
465
|
+
Request.send('post', uri_path("invoices",id.to_s,"remove_payment_schedule_scheme"), params, env, headers,nil, false, jsonKeys, options, "invoice", "removePaymentScheduleScheme")
|
|
466
|
+
end
|
|
467
|
+
|
|
458
468
|
def self.payment_schedules(id, env=nil, headers={})
|
|
459
469
|
jsonKeys = {
|
|
460
470
|
}
|
|
@@ -18,12 +18,13 @@ module ChargeBee
|
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
attr_accessor :id, :name, :item_family_id, :item_id, :description, :status, :external_name,
|
|
21
|
-
:price_variant_id, :proration_type, :pricing_model, :price, :price_in_decimal,
|
|
22
|
-
:
|
|
23
|
-
:
|
|
24
|
-
:
|
|
25
|
-
:
|
|
26
|
-
:
|
|
21
|
+
:price_variant_id, :price_ramp_id, :proration_type, :pricing_model, :price, :price_in_decimal,
|
|
22
|
+
:period, :currency_code, :period_unit, :trial_period, :trial_period_unit, :trial_end_action,
|
|
23
|
+
:shipping_period, :shipping_period_unit, :billing_cycles, :free_quantity, :free_quantity_in_decimal,
|
|
24
|
+
:channel, :resource_version, :updated_at, :created_at, :usage_accumulation_reset_frequency,
|
|
25
|
+
:archived_at, :invoice_notes, :tiers, :is_taxable, :tax_detail, :tax_providers_fields, :accounting_detail,
|
|
26
|
+
:metadata, :item_type, :archivable, :parent_item_id, :show_description_in_invoices, :show_description_in_quotes,
|
|
27
|
+
:deleted, :business_entity_id
|
|
27
28
|
|
|
28
29
|
# OPERATIONS
|
|
29
30
|
#-----------
|
|
@@ -22,5 +22,12 @@ module ChargeBee
|
|
|
22
22
|
Request.send('get', uri_path("ledger_account_balances"), params, env, headers,nil, false, jsonKeys, options, "ledgerAccountBalance", "listLedgerAccountBalances")
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
+
def self.update_overdraft_limit(params, env=nil, headers={})
|
|
26
|
+
jsonKeys = {
|
|
27
|
+
}
|
|
28
|
+
options = {}
|
|
29
|
+
Request.send('post', uri_path("ledger_account_balances","update_overdraft_limit"), params, env, headers,nil, false, jsonKeys, options, "ledgerAccountBalance", "updateOverdraftLimit")
|
|
30
|
+
end
|
|
31
|
+
|
|
25
32
|
end # ~LedgerAccountBalance
|
|
26
33
|
end # ~ChargeBee
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
module ChargeBee
|
|
2
2
|
class MeteredFeature < Model
|
|
3
3
|
|
|
4
|
-
attr_accessor :id, :name, :description, :type, :status, :query, :column_definitions, :
|
|
4
|
+
attr_accessor :id, :name, :description, :type, :status, :query, :column_definitions, :group_by,
|
|
5
|
+
:features
|
|
5
6
|
|
|
6
7
|
# OPERATIONS
|
|
7
8
|
#-----------
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module ChargeBee
|
|
2
2
|
class OmnichannelSubscription < Model
|
|
3
3
|
|
|
4
|
-
attr_accessor :id, :id_at_source, :app_id, :source, :customer_id, :created_at, :purchased_at,
|
|
4
|
+
attr_accessor :id, :id_at_source, :app_id, :source, :customer_id, :origin, :created_at, :purchased_at,
|
|
5
5
|
:updated_at, :resource_version, :omnichannel_subscription_items, :initial_purchase_transaction
|
|
6
6
|
|
|
7
7
|
# OPERATIONS
|
|
@@ -10,9 +10,10 @@ module ChargeBee
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
attr_accessor :id, :item_id_at_source, :item_parent_id_at_source, :status, :auto_renew_status,
|
|
13
|
-
:current_term_start, :current_term_end, :expired_at, :expiration_reason, :
|
|
14
|
-
:
|
|
15
|
-
:
|
|
13
|
+
:current_term_start, :current_term_end, :expired_at, :expiration_reason, :expiration_reason_at_source,
|
|
14
|
+
:cancelled_at, :cancellation_reason, :cancellation_reason_at_source, :grace_period_expires_at,
|
|
15
|
+
:resumes_at, :has_scheduled_changes, :updated_at, :resource_version, :omnichannel_subscription_item_offers,
|
|
16
|
+
:upcoming_renewal, :linked_item
|
|
16
17
|
|
|
17
18
|
# OPERATIONS
|
|
18
19
|
#-----------
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module ChargeBee
|
|
2
|
+
class OrganizationDetail < Model
|
|
3
|
+
|
|
4
|
+
attr_accessor :id, :organization_name, :email, :address_line1, :address_line2, :address_line3,
|
|
5
|
+
:city, :state_code, :state, :country_code, :zip, :phone, :fax, :website, :is_vat_number_present,
|
|
6
|
+
:vat_number, :resource_version, :updated_at, :business_entity_id
|
|
7
|
+
|
|
8
|
+
# OPERATIONS
|
|
9
|
+
#-----------
|
|
10
|
+
|
|
11
|
+
def self.create(params, env=nil, headers={})
|
|
12
|
+
jsonKeys = {
|
|
13
|
+
}
|
|
14
|
+
options = {
|
|
15
|
+
:isIdempotent => true
|
|
16
|
+
}
|
|
17
|
+
Request.send('post', uri_path("organization_details"), params, env, headers,nil, false, jsonKeys, options, "organizationDetail", "create")
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def self.retrieve(id, env=nil, headers={})
|
|
21
|
+
jsonKeys = {
|
|
22
|
+
}
|
|
23
|
+
options = {}
|
|
24
|
+
Request.send('get', uri_path("organization_details",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "organizationDetail", "retrieve")
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def self.list(params={}, env=nil, headers={})
|
|
28
|
+
jsonKeys = {
|
|
29
|
+
}
|
|
30
|
+
options = {}
|
|
31
|
+
Request.send_list_request('get', uri_path("organization_details"), params, env, headers,nil, false, jsonKeys, options, "organizationDetail", "list")
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
end # ~OrganizationDetail
|
|
35
|
+
end # ~ChargeBee
|
|
@@ -42,7 +42,7 @@ module ChargeBee
|
|
|
42
42
|
end
|
|
43
43
|
|
|
44
44
|
class NetworkTransactionReference < Model
|
|
45
|
-
attr_accessor :original_network_transaction_id
|
|
45
|
+
attr_accessor :original_network_transaction_id, :transaction_link_id
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
attr_accessor :id, :resource_version, :updated_at, :created_at, :customer_id, :type, :reference_id,
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
module ChargeBee
|
|
2
|
+
class PriceRamp < Model
|
|
3
|
+
|
|
4
|
+
class RampInterval < Model
|
|
5
|
+
attr_accessor :starting_billing_cycle, :ending_billing_cycle, :apply_catalog_price, :price, :price_in_decimal
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
attr_accessor :id, :item_price_id, :status, :created_at, :resource_version, :updated_at, :archived_at,
|
|
9
|
+
:ramp_intervals, :business_entity_id
|
|
10
|
+
|
|
11
|
+
# OPERATIONS
|
|
12
|
+
#-----------
|
|
13
|
+
|
|
14
|
+
def self.create(params, env=nil, headers={})
|
|
15
|
+
jsonKeys = {
|
|
16
|
+
}
|
|
17
|
+
options = {
|
|
18
|
+
:isIdempotent => true
|
|
19
|
+
}
|
|
20
|
+
Request.send('post', uri_path("price_ramps"), params, env, headers,nil, false, jsonKeys, options, "priceRamp", "create")
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.retrieve(id, env=nil, headers={})
|
|
24
|
+
jsonKeys = {
|
|
25
|
+
}
|
|
26
|
+
options = {}
|
|
27
|
+
Request.send('get', uri_path("price_ramps",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "priceRamp", "retrieve")
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def self.update(id, params, env=nil, headers={})
|
|
31
|
+
jsonKeys = {
|
|
32
|
+
}
|
|
33
|
+
options = {
|
|
34
|
+
:isIdempotent => true
|
|
35
|
+
}
|
|
36
|
+
Request.send('post', uri_path("price_ramps",id.to_s), params, env, headers,nil, false, jsonKeys, options, "priceRamp", "update")
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def self.delete(id, env=nil, headers={})
|
|
40
|
+
jsonKeys = {
|
|
41
|
+
}
|
|
42
|
+
options = {
|
|
43
|
+
:isIdempotent => true
|
|
44
|
+
}
|
|
45
|
+
Request.send('post', uri_path("price_ramps",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, options, "priceRamp", "delete")
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def self.list(params={}, env=nil, headers={})
|
|
49
|
+
jsonKeys = {
|
|
50
|
+
}
|
|
51
|
+
options = {}
|
|
52
|
+
Request.send_list_request('get', uri_path("price_ramps"), params, env, headers,nil, false, jsonKeys, options, "priceRamp", "list")
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
end # ~PriceRamp
|
|
56
|
+
end # ~ChargeBee
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
module ChargeBee
|
|
2
|
+
class PrivateNote < Model
|
|
3
|
+
|
|
4
|
+
attr_accessor :id, :email_conversation_id, :author_type, :author_id, :author_name, :content_html,
|
|
5
|
+
:content_text, :meta_data, :created_at, :resource_version, :updated_at
|
|
6
|
+
|
|
7
|
+
# OPERATIONS
|
|
8
|
+
#-----------
|
|
9
|
+
|
|
10
|
+
end # ~PrivateNote
|
|
11
|
+
end # ~ChargeBee
|
|
@@ -2,11 +2,11 @@ module ChargeBee
|
|
|
2
2
|
class Ramp < Model
|
|
3
3
|
|
|
4
4
|
class ItemsToAdd < Model
|
|
5
|
-
attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :metered_quantity, :charge_once, :charge_on_option, :charge_on_event
|
|
5
|
+
attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :metered_quantity, :charge_once, :charge_on_option, :description, :charge_on_event
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
class ItemsToUpdate < Model
|
|
9
|
-
attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :metered_quantity, :charge_once, :charge_on_option, :charge_on_event
|
|
9
|
+
attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :metered_quantity, :charge_once, :charge_on_option, :description, :charge_on_event
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
class CouponsToAdd < Model
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module ChargeBee
|
|
2
|
+
class RetrySegment < Model
|
|
3
|
+
|
|
4
|
+
attr_accessor :id, :name, :invoice_id, :enabled, :priority, :condition_logic, :criteria, :retry_settings
|
|
5
|
+
|
|
6
|
+
# OPERATIONS
|
|
7
|
+
#-----------
|
|
8
|
+
|
|
9
|
+
def self.retrieve(id, params={}, env=nil, headers={})
|
|
10
|
+
jsonKeys = {
|
|
11
|
+
}
|
|
12
|
+
options = {}
|
|
13
|
+
Request.send('get', uri_path("retry_segments",id.to_s), params, env, headers,nil, false, jsonKeys, options, "retrySegment", "retrieve")
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
end # ~RetrySegment
|
|
17
|
+
end # ~ChargeBee
|
|
@@ -46,7 +46,7 @@ module ChargeBee
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
class Discount < Model
|
|
49
|
-
attr_accessor :id, :invoice_name, :type, :percentage, :amount, :quantity, :currency_code, :duration_type, :period, :period_unit, :included_in_mrr, :apply_on, :item_price_id, :created_at, :apply_till, :applied_count, :coupon_id, :index
|
|
49
|
+
attr_accessor :id, :invoice_name, :description, :type, :percentage, :amount, :quantity, :currency_code, :duration_type, :period, :period_unit, :included_in_mrr, :apply_on, :item_price_id, :created_at, :apply_till, :applied_count, :coupon_id, :index
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
attr_accessor :id, :currency_code, :plan_id, :plan_quantity, :plan_unit_price, :setup_fee, :billing_period,
|
|
@@ -17,6 +17,10 @@ module ChargeBee
|
|
|
17
17
|
attr_accessor :id, :status, :amount, :date
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
+
class GatewayMetadata < Model
|
|
21
|
+
attr_accessor :acquirer_reference_id
|
|
22
|
+
end
|
|
23
|
+
|
|
20
24
|
class GatewayErrorDetail < Model
|
|
21
25
|
attr_accessor :request_id, :error_category, :error_code, :error_message, :decline_code, :decline_message, :network_error_code, :network_error_message, :error_field, :recommendation_code, :recommendation_message, :processor_error_code, :processor_error_message, :error_cause_id, :processor_advice_code
|
|
22
26
|
end
|
|
@@ -32,7 +36,7 @@ module ChargeBee
|
|
|
32
36
|
:amount_unused, :masked_card_number, :reference_transaction_id, :refunded_txn_id, :reference_authorization_id,
|
|
33
37
|
:amount_capturable, :reversal_transaction_id, :linked_invoices, :linked_credit_notes, :linked_refunds,
|
|
34
38
|
:linked_payments, :deleted, :iin, :last4, :merchant_reference_id, :business_entity_id, :payment_method_details,
|
|
35
|
-
:error_detail, :custom_payment_method_name, :network_transaction_details
|
|
39
|
+
:gateway_metadata, :error_detail, :custom_payment_method_name, :network_transaction_details
|
|
36
40
|
|
|
37
41
|
# OPERATIONS
|
|
38
42
|
#-----------
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
module ChargeBee
|
|
2
2
|
class UsageSummary < Model
|
|
3
3
|
|
|
4
|
-
attr_accessor :subscription_id, :feature_id, :aggregated_value, :aggregated_from, :aggregated_to
|
|
4
|
+
attr_accessor :subscription_id, :feature_id, :aggregated_value, :aggregated_from, :aggregated_to,
|
|
5
|
+
:attributes
|
|
5
6
|
|
|
6
7
|
# OPERATIONS
|
|
7
8
|
#-----------
|