Sha256: 72d164aaa93660293ea04c722698b736d247a9ad474006fc8f42e14074abba17

Contents?: true

Size: 1.97 KB

Versions: 17

Compression:

Stored size: 1.97 KB

Contents

# Code generated by Speakeasy (https://speakeasyapi.dev). 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

17 entries across 17 versions & 1 rubygems

Version Path
dub-0.2.2.pre.alpha.3 lib/open_api_sdk/models/operations/getqrcode_request.rb
dub-0.2.2.pre.alpha.2 lib/open_api_sdk/models/operations/getqrcode_request.rb
dub-0.2.2.pre.alpha.1 lib/open_api_sdk/models/operations/getqrcode_request.rb
dub-0.2.2.pre.alpha lib/open_api_sdk/models/operations/getqrcode_request.rb
dub-0.2.2 lib/open_api_sdk/models/operations/getqrcode_request.rb
dub-0.2.1 lib/open_api_sdk/models/operations/getqrcode_request.rb
dub-0.2.0 lib/open_api_sdk/models/operations/getqrcode_request.rb
dub-0.1.3 lib/open_api_sdk/models/operations/getqrcode_request.rb
dub-0.1.2 lib/open_api_sdk/models/operations/getqrcode_request.rb
dub-0.1.1 lib/open_api_sdk/models/operations/getqrcode_request.rb
dub-0.1.0 lib/open_api_sdk/models/operations/getqrcode_request.rb
dub-0.0.7 lib/open_api_sdk/models/operations/getqrcode_request.rb
dub-0.0.6 lib/open_api_sdk/models/operations/getqrcode_request.rb
dub-0.0.5 lib/open_api_sdk/models/operations/getqrcode_request.rb
dub-0.0.4 lib/open_api_sdk/models/operations/getqrcode_request.rb
dub-0.0.3 lib/open_api_sdk/models/operations/getqrcode_request.rb
dub-0.0.2 lib/open_api_sdk/models/operations/getqrcode_request.rb