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.
-
#metadata ⇒ Object
Set of key-value pairs.
-
#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, metadata: 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, metadata: nil, pricing_line_actions: nil, pricing_override_actions: nil) ⇒ ContractUpdateParams
Returns a new instance of ContractUpdateParams.
739 740 741 742 743 744 745 746 747 748 749 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 739 def initialize( include: nil, metadata: nil, pricing_line_actions: nil, pricing_override_actions: nil ) @include = include @metadata = @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.
731 732 733 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 731 def include @include end |
#metadata ⇒ Object
Set of key-value pairs.
733 734 735 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 733 def @metadata end |
#pricing_line_actions ⇒ Object
Pricing line actions to apply.
735 736 737 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 735 def pricing_line_actions @pricing_line_actions end |
#pricing_override_actions ⇒ Object
Pricing override actions to apply.
737 738 739 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 737 def pricing_override_actions @pricing_override_actions end |
Class Method Details
.field_encodings ⇒ Object
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 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 751 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 |