inttegro 7.0.0 → 8.1.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/inttegro/checkout/invoice_view.rb +8 -0
- data/lib/inttegro/checkout/order_line_item_group.rb +23 -0
- data/lib/inttegro/chime/chime.rb +3 -2
- data/lib/inttegro/chime/send_request.rb +12 -2
- data/lib/inttegro/chime/send_request_cooldown.rb +35 -0
- data/lib/inttegro/chime/transport.rb +2 -1
- data/lib/inttegro/custom_data.rb +132 -0
- data/lib/inttegro/customer/create_request.rb +3 -2
- data/lib/inttegro/customer/customer.rb +3 -2
- data/lib/inttegro/customer/data.rb +3 -2
- data/lib/inttegro/customer/update_request.rb +3 -2
- data/lib/inttegro/file/file.rb +3 -2
- data/lib/inttegro/file_link/create_request.rb +3 -2
- data/lib/inttegro/file_link/file_link.rb +3 -2
- data/lib/inttegro/financial_account/bank_request.rb +3 -2
- data/lib/inttegro/financial_account/connected.rb +3 -2
- data/lib/inttegro/financial_account/created.rb +3 -2
- data/lib/inttegro/financial_account/details.rb +3 -2
- data/lib/inttegro/financial_account/dosh_request.rb +3 -2
- data/lib/inttegro/financial_account/financial_account.rb +3 -2
- data/lib/inttegro/financial_account/request_base.rb +3 -2
- data/lib/inttegro/financial_account/update_request.rb +3 -2
- data/lib/inttegro/financial_account/updated.rb +3 -2
- data/lib/inttegro/financial_account/wallet_request.rb +3 -2
- data/lib/inttegro/financial_account/wire_page_accounts_item.rb +3 -2
- data/lib/inttegro/generated/enums.rb +17 -1
- data/lib/inttegro/generated/models.rb +36 -0
- data/lib/inttegro/generated/operations.rb +18 -3
- data/lib/inttegro/http_client.rb +1 -1
- data/lib/inttegro/model_serialization.rb +30 -1
- data/lib/inttegro/order/create_existing_customer.rb +26 -2
- data/lib/inttegro/order/create_new_customer.rb +26 -2
- data/lib/inttegro/order/document_delivery_attempt.rb +7 -0
- data/lib/inttegro/order/document_delivery_channel_summary.rb +34 -0
- data/lib/inttegro/order/document_delivery_summary.rb +43 -0
- data/lib/inttegro/order/document_delivery_summary_channels.rb +36 -0
- data/lib/inttegro/order/invoice.rb +8 -0
- data/lib/inttegro/order/invoice_format.rb +3 -2
- data/lib/inttegro/order/line_item_group.rb +25 -0
- data/lib/inttegro/order/order.rb +3 -2
- data/lib/inttegro/order/product_line_item_product.rb +3 -2
- data/lib/inttegro/order/receipt_document_format.rb +35 -0
- data/lib/inttegro/order/update_request.rb +26 -2
- data/lib/inttegro/otp/initiate_request.rb +35 -8
- data/lib/inttegro/otp/purpose.rb +62 -0
- data/lib/inttegro/otp/transmission.rb +4 -4
- data/lib/inttegro/otp/transmission_status.rb +9 -0
- data/lib/inttegro/otp/verify_request.rb +2 -1
- data/lib/inttegro/payment_method/payment_method.rb +14 -2
- data/lib/inttegro/payment_method/tokenize_base.rb +3 -2
- data/lib/inttegro/payment_method/tokenize_mobile_money_request.rb +3 -2
- data/lib/inttegro/payment_method/update_request.rb +3 -2
- data/lib/inttegro/payout/payout.rb +3 -2
- data/lib/inttegro/price/embedded_product.rb +3 -2
- data/lib/inttegro/product/create_request.rb +3 -2
- data/lib/inttegro/product/inline_details.rb +3 -2
- data/lib/inttegro/product/product.rb +3 -2
- data/lib/inttegro/product/update_request.rb +3 -2
- data/lib/inttegro/product/updated.rb +3 -2
- data/lib/inttegro/purchase_intent/product.rb +3 -2
- data/lib/inttegro/refund/create_request.rb +3 -2
- data/lib/inttegro/refund/failure.rb +45 -0
- data/lib/inttegro/refund/failure_reason.rb +49 -0
- data/lib/inttegro/refund/line_item.rb +31 -1
- data/lib/inttegro/refund/offline_settlement.rb +28 -0
- data/lib/inttegro/{otp/transmission_sent_via.rb → refund/offline_settlement_type.rb} +6 -6
- data/lib/inttegro/refund/order_fee_line_item.rb +43 -0
- data/lib/inttegro/refund/order_fee_line_item_fee.rb +34 -0
- data/lib/inttegro/refund/order_fee_line_item_type.rb +25 -0
- data/lib/inttegro/refund/order_line_item.rb +20 -0
- data/lib/inttegro/refund/order_product_line_item.rb +50 -0
- data/lib/inttegro/refund/order_product_line_item_product.rb +34 -0
- data/lib/inttegro/refund/order_product_line_item_type.rb +25 -0
- data/lib/inttegro/refund/order_shipping_line_item.rb +43 -0
- data/lib/inttegro/refund/order_shipping_line_item_shipping.rb +34 -0
- data/lib/inttegro/refund/order_shipping_line_item_type.rb +25 -0
- data/lib/inttegro/refund/payment_method_settlement.rb +55 -0
- data/lib/inttegro/refund/payment_method_settlement_type.rb +24 -0
- data/lib/inttegro/refund/refund.rb +39 -2
- data/lib/inttegro/refund/settlement.rb +19 -0
- data/lib/inttegro/refund/settlement_bank_account_payment_method.rb +44 -0
- data/lib/inttegro/refund/settlement_bank_account_payment_method_bank_account.rb +37 -0
- data/lib/inttegro/refund/settlement_bank_account_payment_method_bank_account_ghana_bank_account.rb +35 -0
- data/lib/inttegro/refund/settlement_bank_account_payment_method_type.rb +25 -0
- data/lib/inttegro/refund/settlement_mobile_money_payment_method.rb +44 -0
- data/lib/inttegro/refund/settlement_mobile_money_payment_method_mobile_money.rb +43 -0
- data/lib/inttegro/refund/settlement_mobile_money_payment_method_type.rb +25 -0
- data/lib/inttegro/refund/settlement_payment_method.rb +19 -0
- data/lib/inttegro/resources/customers.rb +8 -0
- data/lib/inttegro/resources/financial_accounts.rb +12 -0
- data/lib/inttegro/resources/orders.rb +8 -0
- data/lib/inttegro/resources/payouts.rb +8 -0
- data/lib/inttegro/resources/products.rb +8 -0
- data/lib/inttegro/search/base.rb +17 -0
- data/lib/inttegro/search/facet.rb +34 -0
- data/lib/inttegro/search/facet_bucket.rb +34 -0
- data/lib/inttegro/search/facet_result.rb +35 -0
- data/lib/inttegro/search/filter.rb +42 -0
- data/lib/inttegro/search/filter_operator.rb +27 -0
- data/lib/inttegro/search/freshness.rb +43 -0
- data/lib/inttegro/search/freshness_state.rb +36 -0
- data/lib/inttegro/search/page.rb +104 -0
- data/lib/inttegro/search/request.rb +68 -0
- data/lib/inttegro/search/resource_freshness.rb +50 -0
- data/lib/inttegro/search/resource_freshness_state.rb +37 -0
- data/lib/inttegro/search/resource_reference.rb +35 -0
- data/lib/inttegro/search/resource_total.rb +43 -0
- data/lib/inttegro/search/resource_total_relation.rb +28 -0
- data/lib/inttegro/search/response.rb +28 -0
- data/lib/inttegro/search/result.rb +78 -0
- data/lib/inttegro/search/sort.rb +36 -0
- data/lib/inttegro/search/sort_direction.rb +27 -0
- data/lib/inttegro/search/sort_field.rb +30 -0
- data/lib/inttegro/search/total.rb +35 -0
- data/lib/inttegro/search/total_relation.rb +27 -0
- data/lib/inttegro/search/type.rb +36 -0
- data/lib/inttegro/shared/fee_details.rb +3 -2
- data/lib/inttegro/shared/invoice_settings.rb +3 -2
- data/lib/inttegro/shared/shipping_details.rb +3 -2
- data/lib/inttegro/telemetry.rb +1 -1
- data/lib/inttegro/upload_request/create_request.rb +3 -2
- data/lib/inttegro/upload_request/details.rb +3 -2
- data/lib/inttegro/upload_request/upload_request.rb +3 -2
- data/lib/inttegro/version.rb +1 -1
- data/lib/inttegro.rb +1 -0
- data/rbi/inttegro/generated.rbi +15 -0
- metadata +57 -3
|
@@ -0,0 +1,42 @@
|
|
|
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 "filter_operator"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
module Search
|
|
11
|
+
# Typed representation of the filter 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] field
|
|
20
|
+
# Unqualified route-local field name documented by the selected endpoint.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `field`.
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] operator
|
|
26
|
+
# `eq` requires exactly one value; `in` matches any supplied value.
|
|
27
|
+
#
|
|
28
|
+
# Required in the API payload. Wire name: `operator`.
|
|
29
|
+
# @return [Inttegro::Search::FilterOperator]
|
|
30
|
+
#
|
|
31
|
+
# @!attribute [r] values
|
|
32
|
+
# Value of the `values` field in the Inttegro API payload.
|
|
33
|
+
#
|
|
34
|
+
# Required in the API payload. Wire name: `values`.
|
|
35
|
+
# @return [Array<String>]
|
|
36
|
+
class Filter < T::Struct
|
|
37
|
+
const :field, String
|
|
38
|
+
const :operator, Inttegro::Search::FilterOperator
|
|
39
|
+
const :values, T::Array[String]
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
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
|
+
# `eq` requires exactly one value; `in` matches any supplied value.
|
|
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 FilterOperator < T::Enum
|
|
17
|
+
enums do
|
|
18
|
+
# Serialized wire value: `eq`.
|
|
19
|
+
# @return [Inttegro::Search::FilterOperator]
|
|
20
|
+
EQ = new("eq")
|
|
21
|
+
# Serialized wire value: `in`.
|
|
22
|
+
# @return [Inttegro::Search::FilterOperator]
|
|
23
|
+
IN = new("in")
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
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 "freshness_state"
|
|
8
|
+
require_relative "resource_freshness"
|
|
9
|
+
|
|
10
|
+
module Inttegro
|
|
11
|
+
module Search
|
|
12
|
+
# Typed representation of the 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] state
|
|
21
|
+
# Value of the `state` field in the Inttegro API payload.
|
|
22
|
+
#
|
|
23
|
+
# Required in the API payload. Wire name: `state`.
|
|
24
|
+
# @return [Inttegro::Search::FreshnessState]
|
|
25
|
+
#
|
|
26
|
+
# @!attribute [r] observed_at
|
|
27
|
+
# Value of the `observed_at` field in the Inttegro API payload.
|
|
28
|
+
#
|
|
29
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `observed_at`.
|
|
30
|
+
# @return [Time, nil]
|
|
31
|
+
#
|
|
32
|
+
# @!attribute [r] resources
|
|
33
|
+
# Value of the `resources` field in the Inttegro API payload.
|
|
34
|
+
#
|
|
35
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `resources`.
|
|
36
|
+
# @return [Array<Inttegro::Search::ResourceFreshness>, nil]
|
|
37
|
+
class Freshness < T::Struct
|
|
38
|
+
const :state, Inttegro::Search::FreshnessState
|
|
39
|
+
const :observed_at, T.nilable(Time), default: nil
|
|
40
|
+
const :resources, T.nilable(T::Array[Inttegro::Search::ResourceFreshness]), default: nil
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
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::FreshnessState.
|
|
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 FreshnessState < T::Enum
|
|
17
|
+
enums do
|
|
18
|
+
# Serialized wire value: `current`.
|
|
19
|
+
# @return [Inttegro::Search::FreshnessState]
|
|
20
|
+
CURRENT = new("current")
|
|
21
|
+
# Serialized wire value: `delayed`.
|
|
22
|
+
# @return [Inttegro::Search::FreshnessState]
|
|
23
|
+
DELAYED = new("delayed")
|
|
24
|
+
# Serialized wire value: `partial`.
|
|
25
|
+
# @return [Inttegro::Search::FreshnessState]
|
|
26
|
+
PARTIAL = new("partial")
|
|
27
|
+
# Serialized wire value: `unknown`.
|
|
28
|
+
# @return [Inttegro::Search::FreshnessState]
|
|
29
|
+
UNKNOWN = new("unknown")
|
|
30
|
+
# Serialized wire value: `unavailable`.
|
|
31
|
+
# @return [Inttegro::Search::FreshnessState]
|
|
32
|
+
UNAVAILABLE = new("unavailable")
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,104 @@
|
|
|
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_result"
|
|
8
|
+
require_relative "freshness"
|
|
9
|
+
require_relative "resource_total"
|
|
10
|
+
require_relative "result"
|
|
11
|
+
require_relative "sort"
|
|
12
|
+
require_relative "total"
|
|
13
|
+
require_relative "type"
|
|
14
|
+
|
|
15
|
+
module Inttegro
|
|
16
|
+
module Search
|
|
17
|
+
# Typed representation of the page object in the Inttegro API.
|
|
18
|
+
#
|
|
19
|
+
# This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
|
|
20
|
+
# payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
|
|
21
|
+
# field names and serialized enum values.
|
|
22
|
+
#
|
|
23
|
+
# @api public
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] resource_types
|
|
26
|
+
# Value of the `resource_types` field in the Inttegro API payload.
|
|
27
|
+
#
|
|
28
|
+
# Required in the API payload. Wire name: `resource_types`.
|
|
29
|
+
# @return [Array<Inttegro::Search::Type>]
|
|
30
|
+
#
|
|
31
|
+
# @!attribute [r] sort
|
|
32
|
+
# Value of the `sort` field in the Inttegro API payload.
|
|
33
|
+
#
|
|
34
|
+
# Required in the API payload. Wire name: `sort`.
|
|
35
|
+
# @return [Inttegro::Search::Sort]
|
|
36
|
+
#
|
|
37
|
+
# @!attribute [r] page_size
|
|
38
|
+
# Value of the `page_size` field in the Inttegro API payload.
|
|
39
|
+
#
|
|
40
|
+
# Required in the API payload. Wire name: `page_size`.
|
|
41
|
+
# @return [Integer]
|
|
42
|
+
#
|
|
43
|
+
# @!attribute [r] result_count
|
|
44
|
+
# Value of the `result_count` field in the Inttegro API payload.
|
|
45
|
+
#
|
|
46
|
+
# Required in the API payload. Wire name: `result_count`.
|
|
47
|
+
# @return [Integer]
|
|
48
|
+
#
|
|
49
|
+
# @!attribute [r] has_more
|
|
50
|
+
# Value of the `has_more` field in the Inttegro API payload.
|
|
51
|
+
#
|
|
52
|
+
# Required in the API payload. Wire name: `has_more`.
|
|
53
|
+
# @return [Boolean]
|
|
54
|
+
#
|
|
55
|
+
# @!attribute [r] total
|
|
56
|
+
# Value of the `total` field in the Inttegro API payload.
|
|
57
|
+
#
|
|
58
|
+
# Required in the API payload. Wire name: `total`.
|
|
59
|
+
# @return [Inttegro::Search::Total]
|
|
60
|
+
#
|
|
61
|
+
# @!attribute [r] resource_totals
|
|
62
|
+
# Value of the `resource_totals` field in the Inttegro API payload.
|
|
63
|
+
#
|
|
64
|
+
# Required in the API payload. Wire name: `resource_totals`.
|
|
65
|
+
# @return [Array<Inttegro::Search::ResourceTotal>]
|
|
66
|
+
#
|
|
67
|
+
# @!attribute [r] results
|
|
68
|
+
# Search projections for discovery, not canonical resource snapshots.
|
|
69
|
+
#
|
|
70
|
+
# Required in the API payload. Wire name: `results`.
|
|
71
|
+
# @return [Array<Inttegro::Search::Result>]
|
|
72
|
+
#
|
|
73
|
+
# @!attribute [r] facets
|
|
74
|
+
# Value of the `facets` field in the Inttegro API payload.
|
|
75
|
+
#
|
|
76
|
+
# Required in the API payload. Wire name: `facets`.
|
|
77
|
+
# @return [Array<Inttegro::Search::FacetResult>]
|
|
78
|
+
#
|
|
79
|
+
# @!attribute [r] next_cursor
|
|
80
|
+
# Value of the `next_cursor` field in the Inttegro API payload.
|
|
81
|
+
#
|
|
82
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `next_cursor`.
|
|
83
|
+
# @return [String, nil]
|
|
84
|
+
#
|
|
85
|
+
# @!attribute [r] freshness
|
|
86
|
+
# Value of the `freshness` field in the Inttegro API payload.
|
|
87
|
+
#
|
|
88
|
+
# Required in the API payload. Wire name: `freshness`.
|
|
89
|
+
# @return [Inttegro::Search::Freshness]
|
|
90
|
+
class Page < T::Struct
|
|
91
|
+
const :resource_types, T::Array[Inttegro::Search::Type]
|
|
92
|
+
const :sort, Inttegro::Search::Sort
|
|
93
|
+
const :page_size, Integer
|
|
94
|
+
const :result_count, Integer
|
|
95
|
+
const :has_more, T::Boolean
|
|
96
|
+
const :total, Inttegro::Search::Total
|
|
97
|
+
const :resource_totals, T::Array[Inttegro::Search::ResourceTotal]
|
|
98
|
+
const :results, T::Array[Inttegro::Search::Result]
|
|
99
|
+
const :facets, T::Array[Inttegro::Search::FacetResult]
|
|
100
|
+
const :next_cursor, T.nilable(String), default: nil
|
|
101
|
+
const :freshness, Inttegro::Search::Freshness
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
@@ -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
|