Sha256: 943cb90f85da4353d9538b51c41662f3fbbb69957cf91eb3772ff45f852b00ad

Contents?: true

Size: 1.97 KB

Versions: 1

Compression:

Stored size: 1.97 KB

Contents

# Code generated by Speakeasy (https://speakeasyapi.com). DO NOT EDIT.

# typed: true
# frozen_string_literal: true


module OpenApiSDK
  module Operations
  

    class GetQRCodeRequest < ::OpenApiSDK::Utils::FieldAugmented
      extend T::Sig

      # The URL to generate a QR code for.
      field :url, ::String, { 'query_param': { 'field_name': 'url', 'style': 'form', 'explode': true } }
      # The background color of the QR code in hex format. Defaults to `#ffffff` if not provided.
      field :bg_color, T.nilable(::String), { 'query_param': { 'field_name': 'bgColor', 'style': 'form', 'explode': true } }
      # The foreground color of the QR code in hex format. Defaults to `#000000` if not provided.
      field :fg_color, T.nilable(::String), { 'query_param': { 'field_name': 'fgColor', 'style': 'form', 'explode': true } }
      # Whether to include a margin around the QR code. Defaults to `false` if not provided.
      field :include_margin, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'includeMargin', 'style': 'form', 'explode': true } }
      # The level of error correction to use for the QR code. Defaults to `L` if not provided.
      field :level, T.nilable(::OpenApiSDK::Operations::Level), { 'query_param': { 'field_name': 'level', 'style': 'form', 'explode': true } }
      # The size of the QR code in pixels. Defaults to `600` if not provided.
      field :size, T.nilable(::Float), { 'query_param': { 'field_name': 'size', 'style': 'form', 'explode': true } }


      sig { params(url: ::String, bg_color: T.nilable(::String), fg_color: T.nilable(::String), include_margin: T.nilable(T::Boolean), level: T.nilable(::OpenApiSDK::Operations::Level), size: T.nilable(::Float)).void }
      def initialize(url: nil, bg_color: nil, fg_color: nil, include_margin: nil, level: nil, size: nil)
        @url = url
        @bg_color = bg_color
        @fg_color = fg_color
        @include_margin = include_margin
        @level = level
        @size = size
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dub-0.2.2.pre.alpha.4 lib/open_api_sdk/models/operations/getqrcode_request.rb