square.rb 44.0.1.20250820 → 44.1.0.20250924

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5b7ba53660ef4f45bce2164d8fb018797c280503fa6c59b94f8a658c76eb912
4
- data.tar.gz: 5f02ad617c72d33f32e16eb13adf4165204d1b8348b46ed91e29d7bb7616ad88
3
+ metadata.gz: 344fba367e0d43c7a2133681fc82bb6581294f8204b6df9209ae78e29f2b497b
4
+ data.tar.gz: e07eb7962d77f6a47e4ce5b9fb0ddc13c0871b7c6f4e2913eea40de454bf75f1
5
5
  SHA512:
6
- metadata.gz: 35e1648199a54c20bd6d800f34f1e9988d46032d65e9f246c26b7376dda89223501295351d4ae9e64c014a13945cd518f7cdcff74e6fb7c0088513108ad65c1e
7
- data.tar.gz: 8bb6b4fd497f3e7e0c30851a59ccf03d58ae3383f3db9f6faee82b92650ec6eaaa2e2fccaf87d4b3d3ba4887a0424fef2752ce0785ce83ff7c8c0a30db4f63b6
6
+ metadata.gz: 45b3169c11fa3078aa127a6fc9e72e5a5c0f34a6c7266a39ea5247ff504f56fd127de67be40aa6c27e249895257720c0a0124564013d3a2998513a409fc5e6d1
7
+ data.tar.gz: 4f7bbb50d66ff421dc3a5fb367a1a63a837d784047c9f1456e3a28083caeb9ab37d5b7788ed74ea1b443dba6e9d09b89434c3ee07ad5b5fe00cc0a8390fdd58f
data/lib/square/client.rb CHANGED
@@ -7,7 +7,7 @@ module Square
7
7
  @raw_client = Square::Internal::Http::RawClient.new(
8
8
  base_url: base_url,
9
9
  headers: {
10
- "User-Agent": "square.rb/44.0.1.20250820",
10
+ "User-Agent": "square.rb/44.1.0.20250924",
11
11
  "X-Fern-Language": "Ruby",
12
12
  Authorization: "Bearer #{token}"
13
13
  }
@@ -3,7 +3,7 @@
3
3
  module Square
4
4
  module Types
5
5
  class DeviceAttributes < Internal::Types::Model
6
- field :type, -> { String }, optional: false, nullable: false
6
+ field :type, -> { Square::Types::DeviceAttributesDeviceType }, optional: false, nullable: false
7
7
  field :manufacturer, -> { String }, optional: false, nullable: false
8
8
  field :model, -> { String }, optional: true, nullable: false
9
9
  field :name, -> { String }, optional: true, nullable: false
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Square
4
+ module Types
5
+ module DeviceAttributesDeviceType
6
+ extend Square::Internal::Types::Enum
7
+
8
+ TERMINAL = "TERMINAL"
9
+ HANDHELD = "HANDHELD"
10
+ end
11
+ end
12
+ end
@@ -5,6 +5,7 @@ module Square
5
5
  class DeviceComponentDetailsEthernetDetails < Internal::Types::Model
6
6
  field :active, -> { Internal::Types::Boolean }, optional: true, nullable: false
7
7
  field :ip_address_v_4, -> { String }, optional: true, nullable: false
8
+ field :mac_address, -> { String }, optional: true, nullable: false
8
9
  end
9
10
  end
10
11
  end
@@ -8,6 +8,7 @@ module Square
8
8
  field :ip_address_v_4, -> { String }, optional: true, nullable: false
9
9
  field :secure_connection, -> { String }, optional: true, nullable: false
10
10
  field :signal_strength, -> { Square::Types::DeviceComponentDetailsMeasurement }, optional: true, nullable: false
11
+ field :mac_address, -> { String }, optional: true, nullable: false
11
12
  end
12
13
  end
13
14
  end
@@ -26,6 +26,7 @@ module Square
26
26
  field :actions, -> { Internal::Types::Array[Square::Types::SubscriptionAction] }, optional: true, nullable: false
27
27
  field :monthly_billing_anchor_date, -> { Integer }, optional: true, nullable: false
28
28
  field :phases, -> { Internal::Types::Array[Square::Types::Phase] }, optional: true, nullable: false
29
+ field :completed_date, -> { String }, optional: true, nullable: false
29
30
  end
30
31
  end
31
32
  end
@@ -10,6 +10,7 @@ module Square
10
10
  RESUME = "RESUME"
11
11
  SWAP_PLAN = "SWAP_PLAN"
12
12
  CHANGE_BILLING_ANCHOR_DATE = "CHANGE_BILLING_ANCHOR_DATE"
13
+ COMPLETE = "COMPLETE"
13
14
  end
14
15
  end
15
16
  end
@@ -10,6 +10,7 @@ module Square
10
10
  CANCELED = "CANCELED"
11
11
  DEACTIVATED = "DEACTIVATED"
12
12
  PAUSED = "PAUSED"
13
+ COMPLETED = "COMPLETED"
13
14
  end
14
15
  end
15
16
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Square
4
- VERSION = "44.0.1.20250820"
4
+ VERSION = "44.1.0.20250924"
5
5
  end
data/lib/square.rb CHANGED
@@ -701,6 +701,7 @@ require_relative "square/types/destination_details_card_refund_details"
701
701
  require_relative "square/types/destination_details_cash_refund_details"
702
702
  require_relative "square/types/destination_details_external_refund_details"
703
703
  require_relative "square/types/destination_details"
704
+ require_relative "square/types/device_attributes_device_type"
704
705
  require_relative "square/types/device_attributes"
705
706
  require_relative "square/types/device_status_category"
706
707
  require_relative "square/types/device_status"
@@ -1671,4 +1672,3 @@ require_relative "square/webhooks/subscriptions/types/delete_subscriptions_reque
1671
1672
  require_relative "square/webhooks/subscriptions/types/update_webhook_subscription_signature_key_request"
1672
1673
  require_relative "square/webhooks/subscriptions/types/test_webhook_subscription_request"
1673
1674
  require_relative "square/environment"
1674
- require_relative "square/file_param"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: square.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 44.0.1.20250820
4
+ version: 44.1.0.20250924
5
5
  platform: ruby
6
6
  authors:
7
7
  - Square Developer Platform
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-09-21 00:00:00.000000000 Z
11
+ date: 2025-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apimatic_core_interfaces
@@ -887,6 +887,7 @@ files:
887
887
  - lib/square/types/destination_type.rb
888
888
  - lib/square/types/device.rb
889
889
  - lib/square/types/device_attributes.rb
890
+ - lib/square/types/device_attributes_device_type.rb
890
891
  - lib/square/types/device_checkout_options.rb
891
892
  - lib/square/types/device_code.rb
892
893
  - lib/square/types/device_code_paired_event.rb
@@ -1865,7 +1866,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
1865
1866
  requirements:
1866
1867
  - - ">="
1867
1868
  - !ruby/object:Gem::Version
1868
- version: '2.7'
1869
+ version: 3.3.0
1869
1870
  required_rubygems_version: !ruby/object:Gem::Requirement
1870
1871
  requirements:
1871
1872
  - - ">="