Class: Stigg::Models::V1::Events::Credits::GrantCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/stigg/models/v1/events/credits/grant_create_params.rb

Overview

Defined Under Namespace

Modules: GrantType, PaymentCollectionMethod Classes: BillingInformation, Cost

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) ⇒ Object

The billing address

Parameters:

  • city (String) (defaults to: nil)

    City name

  • country (String) (defaults to: nil)

    Country code or name

  • line1 (String) (defaults to: nil)

    Street address line 1

  • line2 (String) (defaults to: nil)

    Street address line 2

  • postal_code (String) (defaults to: nil)

    Postal or ZIP code

  • state (String) (defaults to: nil)

    State or province



# File 'lib/stigg/models/v1/events/credits/grant_create_params.rb', line 111

Instance Attribute Details

#amountFloat

The credit amount to grant

Returns:

  • (Float)


17
# File 'lib/stigg/models/v1/events/credits/grant_create_params.rb', line 17

required :amount, Float

#await_payment_confirmationBoolean?

Whether to wait for payment confirmation before returning (default: true)

Returns:

  • (Boolean, nil)


49
50
51
# File 'lib/stigg/models/v1/events/credits/grant_create_params.rb', line 49

optional :await_payment_confirmation,
Stigg::Internal::Type::Boolean,
api_name: :awaitPaymentConfirmation

#billing_informationStigg::Models::V1::Events::Credits::GrantCreateParams::BillingInformation?

Billing information for the credit grant



57
58
59
# File 'lib/stigg/models/v1/events/credits/grant_create_params.rb', line 57

optional :billing_information,
-> { Stigg::V1::Events::Credits::GrantCreateParams::BillingInformation },
api_name: :billingInformation

#commentString?

An optional comment on the credit grant

Returns:

  • (String, nil)


65
# File 'lib/stigg/models/v1/events/credits/grant_create_params.rb', line 65

optional :comment, String

#costStigg::Models::V1::Events::Credits::GrantCreateParams::Cost?

The monetary cost of the credit grant



71
# File 'lib/stigg/models/v1/events/credits/grant_create_params.rb', line 71

optional :cost, -> { Stigg::V1::Events::Credits::GrantCreateParams::Cost }

#currency_idString

The credit currency ID (required)

Returns:

  • (String)


23
# File 'lib/stigg/models/v1/events/credits/grant_create_params.rb', line 23

required :currency_id, String, api_name: :currencyId

#customer_idString

The customer ID to grant credits to (required)

Returns:

  • (String)


29
# File 'lib/stigg/models/v1/events/credits/grant_create_params.rb', line 29

required :customer_id, String, api_name: :customerId

#display_nameString

The display name for the credit grant

Returns:

  • (String)


35
# File 'lib/stigg/models/v1/events/credits/grant_create_params.rb', line 35

required :display_name, String, api_name: :displayName

#effective_atTime?

The date when the credit grant becomes effective

Returns:

  • (Time, nil)


77
# File 'lib/stigg/models/v1/events/credits/grant_create_params.rb', line 77

optional :effective_at, Time, api_name: :effectiveAt

#expire_atTime?

The date when the credit grant expires

Returns:

  • (Time, nil)


83
# File 'lib/stigg/models/v1/events/credits/grant_create_params.rb', line 83

optional :expire_at, Time, api_name: :expireAt

#grant_typeSymbol, Stigg::Models::V1::Events::Credits::GrantCreateParams::GrantType

The type of credit grant (PAID, PROMOTIONAL, RECURRING)



41
42
43
# File 'lib/stigg/models/v1/events/credits/grant_create_params.rb', line 41

required :grant_type,
enum: -> { Stigg::V1::Events::Credits::GrantCreateParams::GrantType },
api_name: :grantType

#metadataHash{Symbol=>String}?

Additional metadata for the credit grant

Returns:

  • (Hash{Symbol=>String}, nil)


89
# File 'lib/stigg/models/v1/events/credits/grant_create_params.rb', line 89

optional :metadata, Stigg::Internal::Type::HashOf[String]

#payment_collection_methodSymbol, ...

The payment collection method (CHARGE, INVOICE, NONE)



95
96
97
# File 'lib/stigg/models/v1/events/credits/grant_create_params.rb', line 95

optional :payment_collection_method,
enum: -> { Stigg::V1::Events::Credits::GrantCreateParams::PaymentCollectionMethod },
api_name: :paymentCollectionMethod

#priorityInteger?

The priority of the credit grant (lower number = higher priority)

Returns:

  • (Integer, nil)


103
# File 'lib/stigg/models/v1/events/credits/grant_create_params.rb', line 103

optional :priority, Integer

#resource_idString?

The resource ID to scope the grant to

Returns:

  • (String, nil)


109
# File 'lib/stigg/models/v1/events/credits/grant_create_params.rb', line 109

optional :resource_id, String, api_name: :resourceId

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/stigg/models/v1/events/credits/grant_create_params.rb', line 153