Class: WhopSDK::Models::AccountUpdateParams::BusinessAddress
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::AccountUpdateParams::BusinessAddress
- Defined in:
- lib/whop_sdk/models/account_update_params.rb,
sig/whop_sdk/models/account_update_params.rbs
Instance Attribute Summary collapse
-
#city ⇒ String?
City name.
-
#country ⇒ String?
Two-letter ISO 3166-1 country code, for example
US,DE, orGB. -
#line1 ⇒ String?
First line of the street address.
-
#line2 ⇒ String?
Second line of the street address.
-
#postal_code ⇒ String?
Postal or ZIP code.
-
#state ⇒ String?
State, province, or region code, for example
CA.
Instance Method Summary collapse
-
#initialize(account_id:, affiliate_application_required: nil, affiliate_instructions: nil, banner_image: nil, business_address: nil, business_type: nil, country: nil, description: nil, featured_affiliate_product_id: nil, home_preferences: nil, industry_group: nil, industry_type: nil, invoice_prefix: nil, logo: nil, metadata: nil, onboarding_type: nil, opengraph_image: nil, opengraph_image_variant: nil, other_business_description: nil, other_industry_description: nil, product_tax_code_id: nil, require_2fa: nil, route: nil, send_customer_emails: nil, show_joined_whops: nil, show_reviews_dtc: nil, show_user_directory: nil, social_links: nil, store_page_config: nil, target_audience: nil, tax_identifiers: nil, tax_remitted_by: nil, title: nil, use_logo_as_opengraph_image_fallback: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see WhopSDK::Models::AccountUpdateParams for more details.
- #to_hash ⇒ {
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(account_id:, affiliate_application_required: nil, affiliate_instructions: nil, banner_image: nil, business_address: nil, business_type: nil, country: nil, description: nil, featured_affiliate_product_id: nil, home_preferences: nil, industry_group: nil, industry_type: nil, invoice_prefix: nil, logo: nil, metadata: nil, onboarding_type: nil, opengraph_image: nil, opengraph_image_variant: nil, other_business_description: nil, other_industry_description: nil, product_tax_code_id: nil, require_2fa: nil, route: nil, send_customer_emails: nil, show_joined_whops: nil, show_reviews_dtc: nil, show_user_directory: nil, social_links: nil, store_page_config: nil, target_audience: nil, tax_identifiers: nil, tax_remitted_by: nil, title: nil, use_logo_as_opengraph_image_fallback: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see WhopSDK::Models::AccountUpdateParams for more details.
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 |
# File 'lib/whop_sdk/models/account_update_params.rb', line 301 class BusinessAddress < WhopSDK::Internal::Type::BaseModel # @!attribute city # City name. # # @return [String, nil] optional :city, String, nil?: true # @!attribute country # Two-letter ISO 3166-1 country code, for example `US`, `DE`, or `GB`. # # @return [String, nil] optional :country, String # @!attribute line1 # First line of the street address. # # @return [String, nil] optional :line1, String # @!attribute line2 # Second line of the street address. # # @return [String, nil] optional :line2, String, nil?: true # @!attribute postal_code # Postal or ZIP code. # # @return [String, nil] optional :postal_code, String, nil?: true # @!attribute state # State, province, or region code, for example `CA`. # # @return [String, nil] optional :state, String, nil?: true # @!method initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) # Account business address used to calculate tax. A complete address in a # supported country is required when `tax_remitted_by` is `self`. # # @param city [String, nil] City name. # # @param country [String] Two-letter ISO 3166-1 country code, for example `US`, `DE`, or `GB`. # # @param line1 [String] First line of the street address. # # @param line2 [String, nil] Second line of the street address. # # @param postal_code [String, nil] Postal or ZIP code. # # @param state [String, nil] State, province, or region code, for example `CA`. end |
Instance Attribute Details
#city ⇒ String?
City name.
306 |
# File 'lib/whop_sdk/models/account_update_params.rb', line 306 optional :city, String, nil?: true |
#country ⇒ String?
Two-letter ISO 3166-1 country code, for example US, DE, or GB.
312 |
# File 'lib/whop_sdk/models/account_update_params.rb', line 312 optional :country, String |
#line1 ⇒ String?
First line of the street address.
318 |
# File 'lib/whop_sdk/models/account_update_params.rb', line 318 optional :line1, String |
#line2 ⇒ String?
Second line of the street address.
324 |
# File 'lib/whop_sdk/models/account_update_params.rb', line 324 optional :line2, String, nil?: true |
#postal_code ⇒ String?
Postal or ZIP code.
330 |
# File 'lib/whop_sdk/models/account_update_params.rb', line 330 optional :postal_code, String, nil?: true |
#state ⇒ String?
State, province, or region code, for example CA.
336 |
# File 'lib/whop_sdk/models/account_update_params.rb', line 336 optional :state, String, nil?: true |
Instance Method Details
#to_hash ⇒ {
260 |
# File 'sig/whop_sdk/models/account_update_params.rbs', line 260
def to_hash: -> {
|