Class: Stripe::V2::Billing::ContractUpdateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::ContractUpdateParams
- Defined in:
- lib/stripe/params/v2/billing/contract_update_params.rb
Defined Under Namespace
Classes: PricingLineAction, PricingOverrideAction
Instance Attribute Summary collapse
-
#include ⇒ Object
Additional fields to include in the response.
-
#pricing_line_actions ⇒ Object
Pricing line actions to apply.
-
#pricing_override_actions ⇒ Object
Pricing override actions to apply.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(include: nil, pricing_line_actions: nil, pricing_override_actions: nil) ⇒ ContractUpdateParams
constructor
A new instance of ContractUpdateParams.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, new, #to_h
Constructor Details
#initialize(include: nil, pricing_line_actions: nil, pricing_override_actions: nil) ⇒ ContractUpdateParams
Returns a new instance of ContractUpdateParams.
727 728 729 730 731 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 727 def initialize(include: nil, pricing_line_actions: nil, pricing_override_actions: nil) @include = include @pricing_line_actions = pricing_line_actions @pricing_override_actions = pricing_override_actions end |
Instance Attribute Details
#include ⇒ Object
Additional fields to include in the response.
721 722 723 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 721 def include @include end |
#pricing_line_actions ⇒ Object
Pricing line actions to apply.
723 724 725 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 723 def pricing_line_actions @pricing_line_actions end |
#pricing_override_actions ⇒ Object
Pricing override actions to apply.
725 726 727 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 725 def pricing_override_actions @pricing_override_actions end |
Class Method Details
.field_encodings ⇒ Object
733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 733 def self.field_encodings @field_encodings = { pricing_line_actions: { kind: :array, element: { kind: :object, fields: { add: { kind: :object, fields: { pricing: { kind: :object, fields: { price_details: { kind: :object, fields: { quantity_changes: { kind: :array, element: { kind: :object, fields: { set: :decimal_string } }, }, }, }, }, }, }, }, update: { kind: :object, fields: { pricing: { kind: :object, fields: { price_details: { kind: :object, fields: { quantity_changes: { kind: :array, element: { kind: :object, fields: { set: :decimal_string } }, }, }, }, }, }, }, }, }, }, }, } end |