moov_ruby 0.1.30 → 0.1.31

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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/lib/moov/client.rb +2 -1
  3. data/lib/moov/models/components/amountdecimalvalidationerror.rb +37 -0
  4. data/lib/moov/models/components/amountdecimalvalidationerror.rbi +15 -0
  5. data/lib/moov/models/components/assignproductimage.rb +33 -0
  6. data/lib/moov/models/components/assignproductimage.rbi +13 -0
  7. data/lib/moov/models/components/assignproductimagevalidationerror.rb +33 -0
  8. data/lib/moov/models/components/assignproductimagevalidationerror.rbi +13 -0
  9. data/lib/moov/models/components/createproductoption.rb +49 -0
  10. data/lib/moov/models/components/createproductoption.rbi +19 -0
  11. data/lib/moov/models/components/createproductoptiongroup.rb +55 -0
  12. data/lib/moov/models/components/createproductoptiongroup.rbi +21 -0
  13. data/lib/moov/models/components/product.rb +69 -0
  14. data/lib/moov/models/components/product.rbi +29 -0
  15. data/lib/moov/models/components/productimagemetadata.rb +41 -0
  16. data/lib/moov/models/components/productimagemetadata.rbi +17 -0
  17. data/lib/moov/models/components/productoption.rb +49 -0
  18. data/lib/moov/models/components/productoption.rbi +19 -0
  19. data/lib/moov/models/components/productoptiongroup.rb +55 -0
  20. data/lib/moov/models/components/productoptiongroup.rbi +21 -0
  21. data/lib/moov/models/components/productoptiongroupvalidationerror.rb +49 -0
  22. data/lib/moov/models/components/productoptiongroupvalidationerror.rbi +21 -0
  23. data/lib/moov/models/components/productoptionvalidationerror.rb +45 -0
  24. data/lib/moov/models/components/productoptionvalidationerror.rbi +19 -0
  25. data/lib/moov/models/components/productrequest.rb +53 -0
  26. data/lib/moov/models/components/productrequest.rbi +21 -0
  27. data/lib/moov/models/components.rb +12 -0
  28. data/lib/moov/models/errors/productrequestvalidationerror.rb +53 -0
  29. data/lib/moov/models/errors/productrequestvalidationerror.rbi +23 -0
  30. data/lib/moov/models/errors.rb +1 -0
  31. data/lib/moov/models/operations/createproduct_request.rb +49 -0
  32. data/lib/moov/models/operations/createproduct_request.rbi +17 -0
  33. data/lib/moov/models/operations/createproduct_response.rb +49 -0
  34. data/lib/moov/models/operations/createproduct_response.rbi +21 -0
  35. data/lib/moov/models/operations/disableproduct_request.rb +49 -0
  36. data/lib/moov/models/operations/disableproduct_request.rbi +17 -0
  37. data/lib/moov/models/operations/disableproduct_response.rb +45 -0
  38. data/lib/moov/models/operations/disableproduct_response.rbi +19 -0
  39. data/lib/moov/models/operations/getproduct_request.rb +49 -0
  40. data/lib/moov/models/operations/getproduct_request.rbi +17 -0
  41. data/lib/moov/models/operations/getproduct_response.rb +49 -0
  42. data/lib/moov/models/operations/getproduct_response.rbi +21 -0
  43. data/lib/moov/models/operations/listproducts_request.rb +53 -0
  44. data/lib/moov/models/operations/listproducts_request.rbi +19 -0
  45. data/lib/moov/models/operations/listproducts_response.rb +49 -0
  46. data/lib/moov/models/operations/listproducts_response.rbi +21 -0
  47. data/lib/moov/models/operations/updateproduct_request.rb +53 -0
  48. data/lib/moov/models/operations/updateproduct_request.rbi +19 -0
  49. data/lib/moov/models/operations/updateproduct_response.rb +49 -0
  50. data/lib/moov/models/operations/updateproduct_response.rbi +21 -0
  51. data/lib/moov/models/operations.rb +10 -0
  52. data/lib/moov/products.rb +732 -0
  53. data/lib/moov/sdkconfiguration.rb +2 -2
  54. data/lib/moov_ruby.rb +1 -0
  55. metadata +49 -2
@@ -0,0 +1,17 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::GetProductRequest
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::GetProductRequest
11
+ def account_id(); end
12
+ def account_id=(str_); end
13
+ def product_id(); end
14
+ def product_id=(str_); end
15
+ def x_moov_version(); end
16
+ def x_moov_version=(str_); end
17
+ end
@@ -0,0 +1,49 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Moov
8
+ module Models
9
+ module Operations
10
+
11
+
12
+ class GetProductResponse
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+ # HTTP response content type for this operation
17
+ field :content_type, ::String
18
+ # HTTP response status code for this operation
19
+ field :status_code, ::Integer
20
+ # Raw HTTP response; suitable for custom response parsing
21
+ field :raw_response, ::Faraday::Response
22
+
23
+ field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
24
+ # The request completed successfully.
25
+ field :product, Crystalline::Nilable.new(Models::Components::Product)
26
+
27
+ sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], product: T.nilable(Models::Components::Product)).void }
28
+ def initialize(content_type:, status_code:, raw_response:, headers:, product: nil)
29
+ @content_type = content_type
30
+ @status_code = status_code
31
+ @raw_response = raw_response
32
+ @headers = headers
33
+ @product = product
34
+ end
35
+
36
+ sig { params(other: T.untyped).returns(T::Boolean) }
37
+ def ==(other)
38
+ return false unless other.is_a? self.class
39
+ return false unless @content_type == other.content_type
40
+ return false unless @status_code == other.status_code
41
+ return false unless @raw_response == other.raw_response
42
+ return false unless @headers == other.headers
43
+ return false unless @product == other.product
44
+ true
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,21 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::GetProductResponse
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::GetProductResponse
11
+ def content_type(); end
12
+ def content_type=(str_); end
13
+ def status_code(); end
14
+ def status_code=(str_); end
15
+ def raw_response(); end
16
+ def raw_response=(str_); end
17
+ def headers(); end
18
+ def headers=(str_); end
19
+ def product(); end
20
+ def product=(str_); end
21
+ end
@@ -0,0 +1,53 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Moov
8
+ module Models
9
+ module Operations
10
+
11
+
12
+ class ListProductsRequest
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+
17
+ field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
18
+
19
+ field :skip, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'skip', 'style': 'form', 'explode': false } }
20
+
21
+ field :count, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'count', 'style': 'form', 'explode': false } }
22
+ # Specify an API version.
23
+ #
24
+ # API versioning follows the format `vYYYY.QQ.BB`, where
25
+ # - `YYYY` is the year
26
+ # - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
27
+ # - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
28
+ # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
+ #
30
+ # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-moov-version', 'style': 'simple', 'explode': false } }
32
+
33
+ sig { params(account_id: ::String, skip: T.nilable(::Integer), count: T.nilable(::Integer), x_moov_version: T.nilable(::String)).void }
34
+ def initialize(account_id:, skip: nil, count: nil, x_moov_version: 'v2024.01.00')
35
+ @account_id = account_id
36
+ @skip = skip
37
+ @count = count
38
+ @x_moov_version = x_moov_version
39
+ end
40
+
41
+ sig { params(other: T.untyped).returns(T::Boolean) }
42
+ def ==(other)
43
+ return false unless other.is_a? self.class
44
+ return false unless @account_id == other.account_id
45
+ return false unless @skip == other.skip
46
+ return false unless @count == other.count
47
+ return false unless @x_moov_version == other.x_moov_version
48
+ true
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,19 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::ListProductsRequest
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::ListProductsRequest
11
+ def account_id(); end
12
+ def account_id=(str_); end
13
+ def skip(); end
14
+ def skip=(str_); end
15
+ def count(); end
16
+ def count=(str_); end
17
+ def x_moov_version(); end
18
+ def x_moov_version=(str_); end
19
+ end
@@ -0,0 +1,49 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Moov
8
+ module Models
9
+ module Operations
10
+
11
+
12
+ class ListProductsResponse
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+ # HTTP response content type for this operation
17
+ field :content_type, ::String
18
+ # HTTP response status code for this operation
19
+ field :status_code, ::Integer
20
+ # Raw HTTP response; suitable for custom response parsing
21
+ field :raw_response, ::Faraday::Response
22
+
23
+ field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
24
+ # The request completed successfully.
25
+ field :products, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::Product))
26
+
27
+ sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], products: T.nilable(T::Array[Models::Components::Product])).void }
28
+ def initialize(content_type:, status_code:, raw_response:, headers:, products: nil)
29
+ @content_type = content_type
30
+ @status_code = status_code
31
+ @raw_response = raw_response
32
+ @headers = headers
33
+ @products = products
34
+ end
35
+
36
+ sig { params(other: T.untyped).returns(T::Boolean) }
37
+ def ==(other)
38
+ return false unless other.is_a? self.class
39
+ return false unless @content_type == other.content_type
40
+ return false unless @status_code == other.status_code
41
+ return false unless @raw_response == other.raw_response
42
+ return false unless @headers == other.headers
43
+ return false unless @products == other.products
44
+ true
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,21 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::ListProductsResponse
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::ListProductsResponse
11
+ def content_type(); end
12
+ def content_type=(str_); end
13
+ def status_code(); end
14
+ def status_code=(str_); end
15
+ def raw_response(); end
16
+ def raw_response=(str_); end
17
+ def headers(); end
18
+ def headers=(str_); end
19
+ def products(); end
20
+ def products=(str_); end
21
+ end
@@ -0,0 +1,53 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Moov
8
+ module Models
9
+ module Operations
10
+
11
+
12
+ class UpdateProductRequest
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+
17
+ field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
18
+
19
+ field :product_id, ::String, { 'path_param': { 'field_name': 'productID', 'style': 'simple', 'explode': false } }
20
+
21
+ field :product_request, Models::Components::ProductRequest, { 'request': { 'media_type': 'application/json' } }
22
+ # Specify an API version.
23
+ #
24
+ # API versioning follows the format `vYYYY.QQ.BB`, where
25
+ # - `YYYY` is the year
26
+ # - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
27
+ # - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
28
+ # - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
+ #
30
+ # The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ field :x_moov_version, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-moov-version', 'style': 'simple', 'explode': false } }
32
+
33
+ sig { params(account_id: ::String, product_id: ::String, product_request: Models::Components::ProductRequest, x_moov_version: T.nilable(::String)).void }
34
+ def initialize(account_id:, product_id:, product_request:, x_moov_version: 'v2024.01.00')
35
+ @account_id = account_id
36
+ @product_id = product_id
37
+ @product_request = product_request
38
+ @x_moov_version = x_moov_version
39
+ end
40
+
41
+ sig { params(other: T.untyped).returns(T::Boolean) }
42
+ def ==(other)
43
+ return false unless other.is_a? self.class
44
+ return false unless @account_id == other.account_id
45
+ return false unless @product_id == other.product_id
46
+ return false unless @product_request == other.product_request
47
+ return false unless @x_moov_version == other.x_moov_version
48
+ true
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,19 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::UpdateProductRequest
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::UpdateProductRequest
11
+ def account_id(); end
12
+ def account_id=(str_); end
13
+ def product_id(); end
14
+ def product_id=(str_); end
15
+ def product_request(); end
16
+ def product_request=(str_); end
17
+ def x_moov_version(); end
18
+ def x_moov_version=(str_); end
19
+ end
@@ -0,0 +1,49 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Moov
8
+ module Models
9
+ module Operations
10
+
11
+
12
+ class UpdateProductResponse
13
+ extend T::Sig
14
+ include Crystalline::MetadataFields
15
+
16
+ # HTTP response content type for this operation
17
+ field :content_type, ::String
18
+ # HTTP response status code for this operation
19
+ field :status_code, ::Integer
20
+ # Raw HTTP response; suitable for custom response parsing
21
+ field :raw_response, ::Faraday::Response
22
+
23
+ field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
24
+ # The request completed successfully.
25
+ field :product, Crystalline::Nilable.new(Models::Components::Product)
26
+
27
+ sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], product: T.nilable(Models::Components::Product)).void }
28
+ def initialize(content_type:, status_code:, raw_response:, headers:, product: nil)
29
+ @content_type = content_type
30
+ @status_code = status_code
31
+ @raw_response = raw_response
32
+ @headers = headers
33
+ @product = product
34
+ end
35
+
36
+ sig { params(other: T.untyped).returns(T::Boolean) }
37
+ def ==(other)
38
+ return false unless other.is_a? self.class
39
+ return false unless @content_type == other.content_type
40
+ return false unless @status_code == other.status_code
41
+ return false unless @raw_response == other.raw_response
42
+ return false unless @headers == other.headers
43
+ return false unless @product == other.product
44
+ true
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,21 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::UpdateProductResponse
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::UpdateProductResponse
11
+ def content_type(); end
12
+ def content_type=(str_); end
13
+ def status_code(); end
14
+ def status_code=(str_); end
15
+ def raw_response(); end
16
+ def raw_response=(str_); end
17
+ def headers(); end
18
+ def headers=(str_); end
19
+ def product(); end
20
+ def product=(str_); end
21
+ end
@@ -32,6 +32,8 @@ module Moov
32
32
  autoload :CreateOnboardingInviteResponse, 'moov/models/operations/createonboardinginvite_response.rb'
33
33
  autoload :CreatePaymentLinkRequest, 'moov/models/operations/createpaymentlink_request.rb'
34
34
  autoload :CreatePaymentLinkResponse, 'moov/models/operations/createpaymentlink_response.rb'
35
+ autoload :CreateProductRequest, 'moov/models/operations/createproduct_request.rb'
36
+ autoload :CreateProductResponse, 'moov/models/operations/createproduct_response.rb'
35
37
  autoload :CreateReceiptsRequest, 'moov/models/operations/createreceipts_request.rb'
36
38
  autoload :CreateReceiptsResponse, 'moov/models/operations/createreceipts_response.rb'
37
39
  autoload :CreateRepresentativeRequest, 'moov/models/operations/createrepresentative_request.rb'
@@ -70,6 +72,8 @@ module Moov
70
72
  autoload :DisableCardResponse, 'moov/models/operations/disablecard_response.rb'
71
73
  autoload :DisablePaymentLinkRequest, 'moov/models/operations/disablepaymentlink_request.rb'
72
74
  autoload :DisablePaymentLinkResponse, 'moov/models/operations/disablepaymentlink_response.rb'
75
+ autoload :DisableProductRequest, 'moov/models/operations/disableproduct_request.rb'
76
+ autoload :DisableProductResponse, 'moov/models/operations/disableproduct_response.rb'
73
77
  autoload :DisconnectAccountRequest, 'moov/models/operations/disconnectaccount_request.rb'
74
78
  autoload :DisconnectAccountResponse, 'moov/models/operations/disconnectaccount_response.rb'
75
79
  autoload :GenerateEndToEndKeyRequest, 'moov/models/operations/generateendtoendkey_request.rb'
@@ -130,6 +134,8 @@ module Moov
130
134
  autoload :GetPaymentLinkResponse, 'moov/models/operations/getpaymentlink_response.rb'
131
135
  autoload :GetPaymentMethodRequest, 'moov/models/operations/getpaymentmethod_request.rb'
132
136
  autoload :GetPaymentMethodResponse, 'moov/models/operations/getpaymentmethod_response.rb'
137
+ autoload :GetProductRequest, 'moov/models/operations/getproduct_request.rb'
138
+ autoload :GetProductResponse, 'moov/models/operations/getproduct_response.rb'
133
139
  autoload :GetPublicImageRequest, 'moov/models/operations/getpublicimage_request.rb'
134
140
  autoload :GetPublicImageResponse, 'moov/models/operations/getpublicimage_response.rb'
135
141
  autoload :GetRefundRequest, 'moov/models/operations/getrefund_request.rb'
@@ -225,6 +231,8 @@ module Moov
225
231
  autoload :ListPaymentLinksResponse, 'moov/models/operations/listpaymentlinks_response.rb'
226
232
  autoload :ListPaymentMethodsRequest, 'moov/models/operations/listpaymentmethods_request.rb'
227
233
  autoload :ListPaymentMethodsResponse, 'moov/models/operations/listpaymentmethods_response.rb'
234
+ autoload :ListProductsRequest, 'moov/models/operations/listproducts_request.rb'
235
+ autoload :ListProductsResponse, 'moov/models/operations/listproducts_response.rb'
228
236
  autoload :ListReceiptsRequest, 'moov/models/operations/listreceipts_request.rb'
229
237
  autoload :ListReceiptsResponse, 'moov/models/operations/listreceipts_response.rb'
230
238
  autoload :ListRefundsRequest, 'moov/models/operations/listrefunds_request.rb'
@@ -288,6 +296,8 @@ module Moov
288
296
  autoload :UpdateIssuedCardResponse, 'moov/models/operations/updateissuedcard_response.rb'
289
297
  autoload :UpdatePaymentLinkRequest, 'moov/models/operations/updatepaymentlink_request.rb'
290
298
  autoload :UpdatePaymentLinkResponse, 'moov/models/operations/updatepaymentlink_response.rb'
299
+ autoload :UpdateProductRequest, 'moov/models/operations/updateproduct_request.rb'
300
+ autoload :UpdateProductResponse, 'moov/models/operations/updateproduct_response.rb'
291
301
  autoload :UpdateRepresentativeRequest, 'moov/models/operations/updaterepresentative_request.rb'
292
302
  autoload :UpdateRepresentativeResponse, 'moov/models/operations/updaterepresentative_response.rb'
293
303
  autoload :UpdateScheduleRequest, 'moov/models/operations/updateschedule_request.rb'