inttegro 8.0.0 → 9.0.0

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 (90) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/lib/inttegro/balance_transaction/allocation.rb +18 -0
  4. data/lib/inttegro/balance_transaction/allocation_base.rb +66 -0
  5. data/lib/inttegro/balance_transaction/allocation_base_type.rb +28 -0
  6. data/lib/inttegro/balance_transaction/allocation_status.rb +28 -0
  7. data/lib/inttegro/balance_transaction/available_amount.rb +34 -0
  8. data/lib/inttegro/balance_transaction/balance_transaction.rb +66 -4
  9. data/lib/inttegro/balance_transaction/payout_allocation.rb +74 -0
  10. data/lib/inttegro/balance_transaction/payout_allocation_payout.rb +35 -0
  11. data/lib/inttegro/balance_transaction/payout_allocation_type.rb +25 -0
  12. data/lib/inttegro/balance_transaction/pending_amount.rb +35 -0
  13. data/lib/inttegro/balance_transaction/refund_allocation.rb +74 -0
  14. data/lib/inttegro/balance_transaction/refund_allocation_refund.rb +35 -0
  15. data/lib/inttegro/balance_transaction/refund_allocation_type.rb +25 -0
  16. data/lib/inttegro/balance_transaction/response.rb +4 -1
  17. data/lib/inttegro/balance_transaction/spent_amount.rb +35 -0
  18. data/lib/inttegro/checkout/invoice_view.rb +8 -0
  19. data/lib/inttegro/checkout/order_line_item_group.rb +23 -0
  20. data/lib/inttegro/chime/send_request.rb +9 -0
  21. data/lib/inttegro/chime/send_request_cooldown.rb +35 -0
  22. data/lib/inttegro/chime/transport.rb +2 -1
  23. data/lib/inttegro/generated/enums.rb +16 -1
  24. data/lib/inttegro/generated/models.rb +36 -0
  25. data/lib/inttegro/generated/operations.rb +18 -3
  26. data/lib/inttegro/http_client.rb +1 -1
  27. data/lib/inttegro/order/create_existing_customer.rb +23 -0
  28. data/lib/inttegro/order/create_new_customer.rb +23 -0
  29. data/lib/inttegro/order/document_delivery_attempt.rb +7 -0
  30. data/lib/inttegro/order/document_delivery_channel_summary.rb +34 -0
  31. data/lib/inttegro/order/document_delivery_summary.rb +43 -0
  32. data/lib/inttegro/order/document_delivery_summary_channels.rb +36 -0
  33. data/lib/inttegro/order/invoice.rb +8 -0
  34. data/lib/inttegro/order/invoice_format.rb +3 -2
  35. data/lib/inttegro/order/line_item_group.rb +25 -0
  36. data/lib/inttegro/order/receipt_document_format.rb +35 -0
  37. data/lib/inttegro/order/update_request.rb +23 -0
  38. data/lib/inttegro/otp/initiate_request.rb +35 -8
  39. data/lib/inttegro/otp/purpose.rb +62 -0
  40. data/lib/inttegro/otp/transmission.rb +4 -4
  41. data/lib/inttegro/otp/transmission_status.rb +9 -0
  42. data/lib/inttegro/otp/verify_request.rb +2 -1
  43. data/lib/inttegro/payment/payment.rb +4 -1
  44. data/lib/inttegro/payout/balance_transaction.rb +42 -0
  45. data/lib/inttegro/payout/payout.rb +7 -3
  46. data/lib/inttegro/refund/line_item.rb +31 -1
  47. data/lib/inttegro/refund/order_fee_line_item.rb +43 -0
  48. data/lib/inttegro/refund/order_fee_line_item_fee.rb +34 -0
  49. data/lib/inttegro/{otp/transmission_sent_via.rb → refund/order_fee_line_item_type.rb} +7 -6
  50. data/lib/inttegro/refund/order_line_item.rb +20 -0
  51. data/lib/inttegro/refund/order_product_line_item.rb +50 -0
  52. data/lib/inttegro/refund/order_product_line_item_product.rb +34 -0
  53. data/lib/inttegro/refund/order_product_line_item_type.rb +25 -0
  54. data/lib/inttegro/refund/order_shipping_line_item.rb +43 -0
  55. data/lib/inttegro/refund/order_shipping_line_item_shipping.rb +34 -0
  56. data/lib/inttegro/refund/order_shipping_line_item_type.rb +25 -0
  57. data/lib/inttegro/refund/payment_method_settlement.rb +18 -0
  58. data/lib/inttegro/refund/refund.rb +18 -0
  59. data/lib/inttegro/resources/customers.rb +8 -0
  60. data/lib/inttegro/resources/financial_accounts.rb +12 -0
  61. data/lib/inttegro/resources/orders.rb +8 -0
  62. data/lib/inttegro/resources/payouts.rb +8 -0
  63. data/lib/inttegro/resources/products.rb +8 -0
  64. data/lib/inttegro/search/base.rb +17 -0
  65. data/lib/inttegro/search/facet.rb +34 -0
  66. data/lib/inttegro/search/facet_bucket.rb +34 -0
  67. data/lib/inttegro/search/facet_result.rb +35 -0
  68. data/lib/inttegro/search/filter.rb +42 -0
  69. data/lib/inttegro/search/filter_operator.rb +27 -0
  70. data/lib/inttegro/search/freshness.rb +43 -0
  71. data/lib/inttegro/search/freshness_state.rb +36 -0
  72. data/lib/inttegro/search/page.rb +104 -0
  73. data/lib/inttegro/search/request.rb +68 -0
  74. data/lib/inttegro/search/resource_freshness.rb +50 -0
  75. data/lib/inttegro/search/resource_freshness_state.rb +37 -0
  76. data/lib/inttegro/search/resource_reference.rb +35 -0
  77. data/lib/inttegro/search/resource_total.rb +43 -0
  78. data/lib/inttegro/search/resource_total_relation.rb +28 -0
  79. data/lib/inttegro/search/response.rb +28 -0
  80. data/lib/inttegro/search/result.rb +78 -0
  81. data/lib/inttegro/search/sort.rb +36 -0
  82. data/lib/inttegro/search/sort_direction.rb +27 -0
  83. data/lib/inttegro/search/sort_field.rb +30 -0
  84. data/lib/inttegro/search/total.rb +35 -0
  85. data/lib/inttegro/search/total_relation.rb +27 -0
  86. data/lib/inttegro/search/type.rb +36 -0
  87. data/lib/inttegro/telemetry.rb +1 -1
  88. data/lib/inttegro/version.rb +1 -1
  89. data/rbi/inttegro/generated.rbi +15 -0
  90. metadata +55 -3
@@ -0,0 +1,68 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "facet"
8
+ require_relative "filter"
9
+ require_relative "sort"
10
+
11
+ module Inttegro
12
+ module Search
13
+ # A resource-local search request. Send `text`, at least one filter, or both. Field names are
14
+ # unqualified and depend on the endpoint. The application and resource type are derived by
15
+ # Inttegro and cannot be supplied by the caller. To continue a search, repeat the same request
16
+ # and add the returned `next_cursor`.
17
+ #
18
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
19
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
20
+ # field names and serialized enum values.
21
+ #
22
+ # @api public
23
+ #
24
+ # @!attribute [r] text
25
+ # Words, identifiers, or names to search for.
26
+ #
27
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `text`.
28
+ # @return [String, nil]
29
+ #
30
+ # @!attribute [r] filters
31
+ # Value of the `filters` field in the Inttegro API payload.
32
+ #
33
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `filters`.
34
+ # @return [Array<Inttegro::Search::Filter>, nil]
35
+ #
36
+ # @!attribute [r] facets
37
+ # Value of the `facets` field in the Inttegro API payload.
38
+ #
39
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `facets`.
40
+ # @return [Array<Inttegro::Search::Facet>, nil]
41
+ #
42
+ # @!attribute [r] sort
43
+ # Value of the `sort` field in the Inttegro API payload.
44
+ #
45
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `sort`.
46
+ # @return [Inttegro::Search::Sort, nil]
47
+ #
48
+ # @!attribute [r] page_size
49
+ # Value of the `page_size` field in the Inttegro API payload.
50
+ #
51
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `page_size`.
52
+ # @return [Integer, nil]
53
+ #
54
+ # @!attribute [r] cursor
55
+ # Opaque continuation value returned as `next_cursor` by the preceding page.
56
+ #
57
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `cursor`.
58
+ # @return [String, nil]
59
+ class Request < T::Struct
60
+ const :text, T.nilable(String), default: nil
61
+ const :filters, T.nilable(T::Array[Inttegro::Search::Filter]), default: nil
62
+ const :facets, T.nilable(T::Array[Inttegro::Search::Facet]), default: nil
63
+ const :sort, T.nilable(Inttegro::Search::Sort), default: nil
64
+ const :page_size, T.nilable(Integer), default: nil
65
+ const :cursor, T.nilable(String), default: nil
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "resource_freshness_state"
8
+ require_relative "type"
9
+
10
+ module Inttegro
11
+ module Search
12
+ # Typed representation of the resource freshness object in the Inttegro API.
13
+ #
14
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
15
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
16
+ # field names and serialized enum values.
17
+ #
18
+ # @api public
19
+ #
20
+ # @!attribute [r] resource_type
21
+ # Value of the `resource_type` field in the Inttegro API payload.
22
+ #
23
+ # Required in the API payload. Wire name: `resource_type`.
24
+ # @return [Inttegro::Search::Type]
25
+ #
26
+ # @!attribute [r] state
27
+ # Value of the `state` field in the Inttegro API payload.
28
+ #
29
+ # Required in the API payload. Wire name: `state`.
30
+ # @return [Inttegro::Search::ResourceFreshnessState]
31
+ #
32
+ # @!attribute [r] observed_at
33
+ # Value of the `observed_at` field in the Inttegro API payload.
34
+ #
35
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `observed_at`.
36
+ # @return [Time, nil]
37
+ #
38
+ # @!attribute [r] last_indexed_at
39
+ # Value of the `last_indexed_at` field in the Inttegro API payload.
40
+ #
41
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `last_indexed_at`.
42
+ # @return [Time, nil]
43
+ class ResourceFreshness < T::Struct
44
+ const :resource_type, Inttegro::Search::Type
45
+ const :state, Inttegro::Search::ResourceFreshnessState
46
+ const :observed_at, T.nilable(Time), default: nil
47
+ const :last_indexed_at, T.nilable(Time), default: nil
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ module Search
10
+ # String-backed values accepted by the Inttegro API for
11
+ # Inttegro::Search::ResourceFreshnessState.
12
+ #
13
+ # Use the constants below when constructing a request. `#serialize` returns the documented
14
+ # string wire value received from or sent to the API.
15
+ #
16
+ # @api public
17
+ class ResourceFreshnessState < T::Enum
18
+ enums do
19
+ # Serialized wire value: `current`.
20
+ # @return [Inttegro::Search::ResourceFreshnessState]
21
+ CURRENT = new("current")
22
+ # Serialized wire value: `delayed`.
23
+ # @return [Inttegro::Search::ResourceFreshnessState]
24
+ DELAYED = new("delayed")
25
+ # Serialized wire value: `partial`.
26
+ # @return [Inttegro::Search::ResourceFreshnessState]
27
+ PARTIAL = new("partial")
28
+ # Serialized wire value: `unknown`.
29
+ # @return [Inttegro::Search::ResourceFreshnessState]
30
+ UNKNOWN = new("unknown")
31
+ # Serialized wire value: `unavailable`.
32
+ # @return [Inttegro::Search::ResourceFreshnessState]
33
+ UNAVAILABLE = new("unavailable")
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "type"
8
+
9
+ module Inttegro
10
+ module Search
11
+ # Typed representation of the resource reference object in the Inttegro API.
12
+ #
13
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
14
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
15
+ # field names and serialized enum values.
16
+ #
17
+ # @api public
18
+ #
19
+ # @!attribute [r] type
20
+ # Value of the `type` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `type`.
23
+ # @return [Inttegro::Search::Type]
24
+ #
25
+ # @!attribute [r] id
26
+ # Value of the `id` field in the Inttegro API payload.
27
+ #
28
+ # Required in the API payload. Wire name: `id`.
29
+ # @return [String]
30
+ class ResourceReference < T::Struct
31
+ const :type, Inttegro::Search::Type
32
+ const :id, String
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "resource_total_relation"
8
+ require_relative "type"
9
+
10
+ module Inttegro
11
+ module Search
12
+ # Typed representation of the resource total object in the Inttegro API.
13
+ #
14
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
15
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
16
+ # field names and serialized enum values.
17
+ #
18
+ # @api public
19
+ #
20
+ # @!attribute [r] resource_type
21
+ # Value of the `resource_type` field in the Inttegro API payload.
22
+ #
23
+ # Required in the API payload. Wire name: `resource_type`.
24
+ # @return [Inttegro::Search::Type]
25
+ #
26
+ # @!attribute [r] value
27
+ # Value of the `value` field in the Inttegro API payload.
28
+ #
29
+ # Required in the API payload. Wire name: `value`.
30
+ # @return [Integer]
31
+ #
32
+ # @!attribute [r] relation
33
+ # Value of the `relation` field in the Inttegro API payload.
34
+ #
35
+ # Required in the API payload. Wire name: `relation`.
36
+ # @return [Inttegro::Search::ResourceTotalRelation]
37
+ class ResourceTotal < T::Struct
38
+ const :resource_type, Inttegro::Search::Type
39
+ const :value, Integer
40
+ const :relation, Inttegro::Search::ResourceTotalRelation
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ module Search
10
+ # String-backed values accepted by the Inttegro API for
11
+ # Inttegro::Search::ResourceTotalRelation.
12
+ #
13
+ # Use the constants below when constructing a request. `#serialize` returns the documented
14
+ # string wire value received from or sent to the API.
15
+ #
16
+ # @api public
17
+ class ResourceTotalRelation < T::Enum
18
+ enums do
19
+ # Serialized wire value: `exact`.
20
+ # @return [Inttegro::Search::ResourceTotalRelation]
21
+ EXACT = new("exact")
22
+ # Serialized wire value: `lower_bound`.
23
+ # @return [Inttegro::Search::ResourceTotalRelation]
24
+ LOWER_BOUND = new("lower_bound")
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "page"
8
+
9
+ module Inttegro
10
+ module Search
11
+ # Typed representation of the response object in the Inttegro API.
12
+ #
13
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
14
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
15
+ # field names and serialized enum values.
16
+ #
17
+ # @api public
18
+ #
19
+ # @!attribute [r] search
20
+ # Value of the `search` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `search`.
23
+ # @return [Inttegro::Search::Page]
24
+ class Response < T::Struct
25
+ const :search, Inttegro::Search::Page
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,78 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "../money/amount"
8
+ require_relative "resource_reference"
9
+
10
+ module Inttegro
11
+ module Search
12
+ # Typed representation of the result object in the Inttegro API.
13
+ #
14
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
15
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
16
+ # field names and serialized enum values.
17
+ #
18
+ # @api public
19
+ #
20
+ # @!attribute [r] resource
21
+ # Value of the `resource` field in the Inttegro API payload.
22
+ #
23
+ # Required in the API payload. Wire name: `resource`.
24
+ # @return [Inttegro::Search::ResourceReference]
25
+ #
26
+ # @!attribute [r] title
27
+ # Value of the `title` field in the Inttegro API payload.
28
+ #
29
+ # Required in the API payload. Wire name: `title`.
30
+ # @return [String]
31
+ #
32
+ # @!attribute [r] summary
33
+ # Value of the `summary` field in the Inttegro API payload.
34
+ #
35
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `summary`.
36
+ # @return [String, nil]
37
+ #
38
+ # @!attribute [r] status
39
+ # Value of the `status` field in the Inttegro API payload.
40
+ #
41
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `status`.
42
+ # @return [String, nil]
43
+ #
44
+ # @!attribute [r] customer_name
45
+ # Value of the `customer_name` field in the Inttegro API payload.
46
+ #
47
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `customer_name`.
48
+ # @return [String, nil]
49
+ #
50
+ # @!attribute [r] amount
51
+ # Value of the `amount` field in the Inttegro API payload.
52
+ #
53
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `amount`.
54
+ # @return [Inttegro::Money::Amount, nil]
55
+ #
56
+ # @!attribute [r] url
57
+ # Value of the `url` field in the Inttegro API payload.
58
+ #
59
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `url`.
60
+ # @return [String, nil]
61
+ #
62
+ # @!attribute [r] updated_at
63
+ # Value of the `updated_at` field in the Inttegro API payload.
64
+ #
65
+ # Required in the API payload. Wire name: `updated_at`.
66
+ # @return [Time]
67
+ class Result < T::Struct
68
+ const :resource, Inttegro::Search::ResourceReference
69
+ const :title, String
70
+ const :summary, T.nilable(String), default: nil
71
+ const :status, T.nilable(String), default: nil
72
+ const :customer_name, T.nilable(String), default: nil
73
+ const :amount, T.nilable(Inttegro::Money::Amount), default: nil
74
+ const :url, T.nilable(String), default: nil
75
+ const :updated_at, Time
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "sort_direction"
8
+ require_relative "sort_field"
9
+
10
+ module Inttegro
11
+ module Search
12
+ # Typed representation of the sort object in the Inttegro API.
13
+ #
14
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
15
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
16
+ # field names and serialized enum values.
17
+ #
18
+ # @api public
19
+ #
20
+ # @!attribute [r] field
21
+ # `published_at` is supported only by product search.
22
+ #
23
+ # Required in the API payload. Wire name: `field`.
24
+ # @return [Inttegro::Search::SortField]
25
+ #
26
+ # @!attribute [r] direction
27
+ # Relevance supports descending order only.
28
+ #
29
+ # Required in the API payload. Wire name: `direction`.
30
+ # @return [Inttegro::Search::SortDirection]
31
+ class Sort < T::Struct
32
+ const :field, Inttegro::Search::SortField
33
+ const :direction, Inttegro::Search::SortDirection
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ module Search
10
+ # Relevance supports descending order only.
11
+ #
12
+ # Use the constants below when constructing a request. `#serialize` returns the documented
13
+ # string wire value received from or sent to the API.
14
+ #
15
+ # @api public
16
+ class SortDirection < T::Enum
17
+ enums do
18
+ # Serialized wire value: `asc`.
19
+ # @return [Inttegro::Search::SortDirection]
20
+ ASC = new("asc")
21
+ # Serialized wire value: `desc`.
22
+ # @return [Inttegro::Search::SortDirection]
23
+ DESC = new("desc")
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ module Search
10
+ # `published_at` is supported only by product search.
11
+ #
12
+ # Use the constants below when constructing a request. `#serialize` returns the documented
13
+ # string wire value received from or sent to the API.
14
+ #
15
+ # @api public
16
+ class SortField < T::Enum
17
+ enums do
18
+ # Serialized wire value: `relevance`.
19
+ # @return [Inttegro::Search::SortField]
20
+ RELEVANCE = new("relevance")
21
+ # Serialized wire value: `updated_at`.
22
+ # @return [Inttegro::Search::SortField]
23
+ UPDATED_AT = new("updated_at")
24
+ # Serialized wire value: `published_at`.
25
+ # @return [Inttegro::Search::SortField]
26
+ PUBLISHED_AT = new("published_at")
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "total_relation"
8
+
9
+ module Inttegro
10
+ module Search
11
+ # Typed representation of the total object in the Inttegro API.
12
+ #
13
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
14
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
15
+ # field names and serialized enum values.
16
+ #
17
+ # @api public
18
+ #
19
+ # @!attribute [r] value
20
+ # Value of the `value` field in the Inttegro API payload.
21
+ #
22
+ # Required in the API payload. Wire name: `value`.
23
+ # @return [Integer]
24
+ #
25
+ # @!attribute [r] relation
26
+ # Value of the `relation` field in the Inttegro API payload.
27
+ #
28
+ # Required in the API payload. Wire name: `relation`.
29
+ # @return [Inttegro::Search::TotalRelation]
30
+ class Total < T::Struct
31
+ const :value, Integer
32
+ const :relation, Inttegro::Search::TotalRelation
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ module Search
10
+ # String-backed values accepted by the Inttegro API for Inttegro::Search::TotalRelation.
11
+ #
12
+ # Use the constants below when constructing a request. `#serialize` returns the documented
13
+ # string wire value received from or sent to the API.
14
+ #
15
+ # @api public
16
+ class TotalRelation < T::Enum
17
+ enums do
18
+ # Serialized wire value: `exact`.
19
+ # @return [Inttegro::Search::TotalRelation]
20
+ EXACT = new("exact")
21
+ # Serialized wire value: `lower_bound`.
22
+ # @return [Inttegro::Search::TotalRelation]
23
+ LOWER_BOUND = new("lower_bound")
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ module Search
10
+ # String-backed values accepted by the Inttegro API for Inttegro::Search::Type.
11
+ #
12
+ # Use the constants below when constructing a request. `#serialize` returns the documented
13
+ # string wire value received from or sent to the API.
14
+ #
15
+ # @api public
16
+ class Type < T::Enum
17
+ enums do
18
+ # Serialized wire value: `customer`.
19
+ # @return [Inttegro::Search::Type]
20
+ CUSTOMER = new("customer")
21
+ # Serialized wire value: `financial_account`.
22
+ # @return [Inttegro::Search::Type]
23
+ FINANCIAL_ACCOUNT = new("financial_account")
24
+ # Serialized wire value: `order`.
25
+ # @return [Inttegro::Search::Type]
26
+ ORDER = new("order")
27
+ # Serialized wire value: `payout`.
28
+ # @return [Inttegro::Search::Type]
29
+ PAYOUT = new("payout")
30
+ # Serialized wire value: `product`.
31
+ # @return [Inttegro::Search::Type]
32
+ PRODUCT = new("product")
33
+ end
34
+ end
35
+ end
36
+ end
@@ -25,7 +25,7 @@ module Inttegro
25
25
  activate add_price archive broadcast cancel complete confirm_payment confirm_verification connect contents
26
26
  countries create deactivate delete destroy disable disable_fx disable_pull disable_push disactivate disconnect
27
27
  enable enable_fx enable_pull enable_push finalize generate initiate lookup new open page pay publish reconcile
28
- reconnect refund render_preview request_confirmation review revoke schedule send send_invoice send_receipt
28
+ reconnect refund render_preview request_confirmation review revoke schedule search send send_invoice send_receipt
29
29
  set_default_unit_price set_destinations settings tokenize unarchive unpublish update upload usage verify
30
30
  ].freeze
31
31
 
@@ -2,5 +2,5 @@
2
2
  # typed: strict
3
3
 
4
4
  module Inttegro
5
- VERSION = "8.0.0"
5
+ VERSION = "9.0.0"
6
6
  end
@@ -80,6 +80,9 @@ module Inttegro
80
80
  sig { params(payload: T.nilable(T.any(Inttegro::Customer::PageRequest, Inttegro::Types::Payload))).returns(Inttegro::Customer::Page) }
81
81
  def page(payload = nil); end
82
82
 
83
+ sig { params(payload: T.any(Inttegro::Search::Request, Inttegro::Types::Payload)).returns(Inttegro::Search::Page) }
84
+ def search(payload); end
85
+
83
86
  sig { params(payload: T.any(Inttegro::Customer::UpdateRequest, Inttegro::Types::Payload)).returns(Inttegro::Customer) }
84
87
  def update(payload); end
85
88
  end
@@ -171,6 +174,9 @@ module Inttegro
171
174
  sig { params(account_id: String).returns(Inttegro::FinancialAccount) }
172
175
  def reconnect(account_id:); end
173
176
 
177
+ sig { params(payload: T.any(Inttegro::Search::Request, Inttegro::Types::Payload)).returns(Inttegro::Search::Page) }
178
+ def search(payload); end
179
+
174
180
  sig { params(payload: T.any(Inttegro::FinancialAccount::UpdateRequest, Inttegro::Types::Payload)).returns(Inttegro::FinancialAccount) }
175
181
  def update(payload); end
176
182
  end
@@ -268,6 +274,9 @@ module Inttegro
268
274
  sig { params(order_id: String, request_meta: T.nilable(Inttegro::Types::Payload)).returns(Inttegro::Order) }
269
275
  def request_confirmation(order_id:, request_meta: nil); end
270
276
 
277
+ sig { params(payload: T.any(Inttegro::Search::Request, Inttegro::Types::Payload)).returns(Inttegro::Search::Page) }
278
+ def search(payload); end
279
+
271
280
  sig { params(order_id: String).returns(Inttegro::Order::DocumentDeliveryResult) }
272
281
  def send_invoice(order_id:); end
273
282
 
@@ -374,6 +383,9 @@ module Inttegro
374
383
  sig { params(payload: Inttegro::Schedule::PayoutRequest).returns(Inttegro::Payout) }
375
384
  def schedule(payload); end
376
385
 
386
+ sig { params(payload: Inttegro::Search::Request).returns(Inttegro::Search::Page) }
387
+ def search(payload); end
388
+
377
389
  sig { params(destinations: Inttegro::Payout::Destinations).returns(Inttegro::Payout::SettingsMutation) }
378
390
  def set_destinations(destinations:); end
379
391
 
@@ -429,6 +441,9 @@ module Inttegro
429
441
  sig { params(product_id: String).returns(Inttegro::Product) }
430
442
  def publish(product_id:); end
431
443
 
444
+ sig { params(payload: T.any(Inttegro::Search::Request, Inttegro::Types::Payload)).returns(Inttegro::Search::Page) }
445
+ def search(payload); end
446
+
432
447
  sig { params(payload: T.any(Inttegro::Product::SetDefaultUnitPriceRequest, Inttegro::Types::Payload)).returns(Inttegro::Product) }
433
448
  def set_default_unit_price(payload); end
434
449