dub 0.2.2.pre.alpha.49 → 0.2.2.pre.alpha.50

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: 2e028e6ac961515e341616af451cd173243387eb4c1fad4833242df608e2ee0b
4
- data.tar.gz: 3920cd4033705f1383b72a90fc125f98188d8de14e773b0dfe8e1eb8a3015097
3
+ metadata.gz: a05d62462c95ef7b27a8ca29fc929d3703ad2ea49dd592dbe3445b5409d279ce
4
+ data.tar.gz: 7ae59ae39e5bd3e838b5737ac1dbf6e0a96fbc22e7264752b9b960c3378deec4
5
5
  SHA512:
6
- metadata.gz: b2bf9f783df6a1cfbe81e84dfd47548af98a892ee41f7c2f7d59ddc18a0414491169a41e40382ad643a1b7585bed7f43571490f96017e58b8c3eefcb86a98a5d
7
- data.tar.gz: '08177bdc3d1962a6d6c763493e7a1769ea45e98f23e437c23eaba36dc1d9e2717789a52630b5b600485002f7fcec78e8373a57f851a407495510b55228ad859a'
6
+ metadata.gz: 37e01327e02f3db9d90bb3e88b47c38f4d2ef8b3f945161da77a396f501965d2d0ddf58ddf2d64838f951b478f9f48397f1fd6833db5ee6cb8558d88abf1e6b7
7
+ data.tar.gz: a8c44fdaeba6bb932ef8ea867773ec73020c8fc9dff36c7e6e83fb30d403b7e2957eaf3f89a00778d4542e8c750172bf2ca216af0fe1ee59c3f30aba0351ebc2
@@ -19,19 +19,21 @@ module OpenApiSDK
19
19
  end
20
20
 
21
21
 
22
- sig { returns(::OpenApiSDK::Operations::GetCustomersResponse) }
23
- def list
22
+ sig { params(request: T.nilable(::OpenApiSDK::Operations::GetCustomersRequest)).returns(::OpenApiSDK::Operations::GetCustomersResponse) }
23
+ def list(request)
24
24
  # list - Retrieve a list of customers
25
25
  # Retrieve a list of customers for the authenticated workspace.
26
26
  url, params = @sdk_configuration.get_server_details
27
27
  base_url = Utils.template_url(url, params)
28
28
  url = "#{base_url}/customers"
29
29
  headers = {}
30
+ query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetCustomersRequest, request)
30
31
  headers['Accept'] = 'application/json'
31
32
  headers['user-agent'] = @sdk_configuration.user_agent
32
33
 
33
34
  r = @sdk_configuration.client.get(url) do |req|
34
35
  req.headers = headers
36
+ req.params = query_params
35
37
  Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
36
38
  end
37
39
 
@@ -195,11 +197,13 @@ module OpenApiSDK
195
197
  request
196
198
  )
197
199
  headers = {}
200
+ query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetCustomerRequest, request)
198
201
  headers['Accept'] = 'application/json'
199
202
  headers['user-agent'] = @sdk_configuration.user_agent
200
203
 
201
204
  r = @sdk_configuration.client.get(url) do |req|
202
205
  req.headers = headers
206
+ req.params = query_params
203
207
  Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
204
208
  end
205
209
 
@@ -279,11 +283,13 @@ module OpenApiSDK
279
283
  headers = {}
280
284
  req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
281
285
  headers['content-type'] = req_content_type
286
+ query_params = Utils.get_query_params(::OpenApiSDK::Operations::UpdateCustomerRequest, request)
282
287
  headers['Accept'] = 'application/json'
283
288
  headers['user-agent'] = @sdk_configuration.user_agent
284
289
 
285
290
  r = @sdk_configuration.client.patch(url) do |req|
286
291
  req.headers = headers
292
+ req.params = query_params
287
293
  Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
288
294
  if form
289
295
  req.body = Utils.encode_form(form)
@@ -13,11 +13,14 @@ module OpenApiSDK
13
13
 
14
14
  # The unique identifier of the customer in Dub.
15
15
  field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
16
+ # Whether to include expanded fields on the customer (`link`, `partner`, `discount`).
17
+ field :include_expanded_fields, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'includeExpandedFields', 'style': 'form', 'explode': true } }
16
18
 
17
19
 
18
- sig { params(id: ::String).void }
19
- def initialize(id: nil)
20
+ sig { params(id: ::String, include_expanded_fields: T.nilable(T::Boolean)).void }
21
+ def initialize(id: nil, include_expanded_fields: nil)
20
22
  @id = id
23
+ @include_expanded_fields = include_expanded_fields
21
24
  end
22
25
  end
23
26
  end
@@ -0,0 +1,30 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module OpenApiSDK
8
+ module Operations
9
+
10
+
11
+ class GetCustomersRequest < ::OpenApiSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # A case-sensitive filter on the list based on the customer's `email` field. The value must be a string.
15
+ field :email, T.nilable(::String), { 'query_param': { 'field_name': 'email', 'style': 'form', 'explode': true } }
16
+ # A case-sensitive filter on the list based on the customer's `externalId` field. The value must be a string.
17
+ field :external_id, T.nilable(::String), { 'query_param': { 'field_name': 'externalId', 'style': 'form', 'explode': true } }
18
+ # Whether to include expanded fields on the customer (`link`, `partner`, `discount`).
19
+ field :include_expanded_fields, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'includeExpandedFields', 'style': 'form', 'explode': true } }
20
+
21
+
22
+ sig { params(email: T.nilable(::String), external_id: T.nilable(::String), include_expanded_fields: T.nilable(T::Boolean)).void }
23
+ def initialize(email: nil, external_id: nil, include_expanded_fields: nil)
24
+ @email = email
25
+ @external_id = external_id
26
+ @include_expanded_fields = include_expanded_fields
27
+ end
28
+ end
29
+ end
30
+ end
@@ -13,13 +13,16 @@ module OpenApiSDK
13
13
 
14
14
  # The unique identifier of the customer in Dub.
15
15
  field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
16
+ # Whether to include expanded fields on the customer (`link`, `partner`, `discount`).
17
+ field :include_expanded_fields, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'includeExpandedFields', 'style': 'form', 'explode': true } }
16
18
 
17
19
  field :request_body, T.nilable(::OpenApiSDK::Operations::UpdateCustomerRequestBody), { 'request': { 'media_type': 'application/json' } }
18
20
 
19
21
 
20
- sig { params(id: ::String, request_body: T.nilable(::OpenApiSDK::Operations::UpdateCustomerRequestBody)).void }
21
- def initialize(id: nil, request_body: nil)
22
+ sig { params(id: ::String, include_expanded_fields: T.nilable(T::Boolean), request_body: T.nilable(::OpenApiSDK::Operations::UpdateCustomerRequestBody)).void }
23
+ def initialize(id: nil, include_expanded_fields: nil, request_body: nil)
22
24
  @id = id
25
+ @include_expanded_fields = include_expanded_fields
23
26
  @request_body = request_body
24
27
  end
25
28
  end
@@ -75,6 +75,7 @@ module OpenApiSDK
75
75
  autoload :Sale, 'open_api_sdk/models/operations/sale.rb'
76
76
  autoload :TrackSaleResponseBody, 'open_api_sdk/models/operations/tracksale_responsebody.rb'
77
77
  autoload :TrackSaleResponse, 'open_api_sdk/models/operations/tracksale_response.rb'
78
+ autoload :GetCustomersRequest, 'open_api_sdk/models/operations/getcustomers_request.rb'
78
79
  autoload :Link, 'open_api_sdk/models/operations/link.rb'
79
80
  autoload :Partner, 'open_api_sdk/models/operations/partner.rb'
80
81
  autoload :Type, 'open_api_sdk/models/operations/type.rb'
@@ -38,9 +38,9 @@ module OpenApiSDK
38
38
  @security = security
39
39
  @language = 'ruby'
40
40
  @openapi_doc_version = '0.0.1'
41
- @sdk_version = '0.2.2-alpha.49'
42
- @gen_version = '2.484.0'
43
- @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.49 2.484.0 0.0.1 dub'
41
+ @sdk_version = '0.2.2-alpha.50'
42
+ @gen_version = '2.486.1'
43
+ @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.50 2.486.1 0.0.1 dub'
44
44
  end
45
45
 
46
46
  sig { returns([String, T::Hash[Symbol, String]]) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2.pre.alpha.49
4
+ version: 0.2.2.pre.alpha.50
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-31 00:00:00.000000000 Z
11
+ date: 2025-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -202,6 +202,7 @@ files:
202
202
  - lib/open_api_sdk/models/operations/getcustomer_responsebody.rb
203
203
  - lib/open_api_sdk/models/operations/getcustomer_type.rb
204
204
  - lib/open_api_sdk/models/operations/getcustomers_interval.rb
205
+ - lib/open_api_sdk/models/operations/getcustomers_request.rb
205
206
  - lib/open_api_sdk/models/operations/getcustomers_response.rb
206
207
  - lib/open_api_sdk/models/operations/getlinkinfo_request.rb
207
208
  - lib/open_api_sdk/models/operations/getlinkinfo_response.rb