class

Stripe::ClimateRemovalsOrderDeliveries

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

The delivery of a specified quantity of carbon for an order.

Constants

MAX_LENGTH_FOR_METRIC_TONS = 5000
MAX_LENGTH_FOR_REGISTRY_URL = 5000

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, delivered_at : Int64 | Nil = nil, location : Stripe::ClimateRemovalsOrderDeliveriesLocation | Nil = nil, metric_tons : String | Nil = nil, registry_url : String | Nil = nil, supplier : Stripe::ClimateSupplier | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

delivered_at

Time at which the delivery occurred. Measured in seconds since the Unix epoch.

Source
delivered_at=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] delivered_at Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
location
Source

Custom attribute writer method checking allowed values (enum). @param [Object] location Object to be assigned

Source
metric_tons

Quantity of carbon removal supplied by this delivery.

Source
metric_tons=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] metric_tons Object to be assigned

Source
registry_url

Once retired, a URL to the registry entry for the tons from this delivery.

Source
registry_url=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] registry_url Object to be assigned

Source
supplier
Source
supplier=(new_value : Stripe::ClimateSupplier | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] supplier Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source