├── Makefile
├── script
└── checksum
├── selling_partner
├── client.go
└── client_test.go
├── api
├── shippingV2
│ └── shipping_v2_models
│ │ ├── cancel_shipment_result.go
│ │ ├── get_additional_inputs_result.go
│ │ ├── city.go
│ │ ├── service_ids.go
│ │ ├── contents.go
│ │ ├── merchant_id.go
│ │ ├── service_id.go
│ │ ├── carrier_name.go
│ │ ├── service_name.go
│ │ ├── dpi.go
│ │ ├── rate_id.go
│ │ ├── carrier_id.go
│ │ ├── access_point_id.go
│ │ ├── shipment_id.go
│ │ ├── country_code.go
│ │ ├── request_token.go
│ │ ├── tracking_id.go
│ │ ├── included_benefits.go
│ │ ├── collection_form_id.go
│ │ ├── page_layout.go
│ │ ├── state_or_region.go
│ │ ├── carrier_account_type.go
│ │ ├── postal_code.go
│ │ ├── need_file_joining.go
│ │ ├── alternate_leg_tracking_id.go
│ │ ├── package_client_reference_id.go
│ │ ├── date_range.go
│ │ ├── geocode.go
│ │ ├── cancel_shipment_response.go
│ │ ├── time_of_day.go
│ │ ├── get_additional_inputs_response.go
│ │ └── unlink_carrier_account_response.go
├── listingsItems_2021-08-01
│ └── listings_items_2021_08_01_models
│ │ ├── item_attributes.go
│ │ └── decimal.go
├── messaging
│ └── messaging_models
│ │ └── schema.go
├── solicitations
│ └── solicitations_models
│ │ └── schema.go
├── appIntegrations-2024-04-01
│ └── app_integrations_2024_04_01_models
│ │ └── notification_parameters.go
├── catalogItems_2022-04-01
│ └── catalog_items_2022_04_01_models
│ │ ├── item_attributes.go
│ │ ├── item_asin.go
│ │ └── dimension.go
├── catalogItems_2020-12-01
│ └── catalog_items_2020_12_01_models
│ │ ├── item_attributes.go
│ │ └── item_asin.go
├── shipping
│ └── shipping_models
│ │ ├── rate_id.go
│ │ ├── shipment_id.go
│ │ ├── label_stream.go
│ │ ├── state_or_region.go
│ │ ├── client_reference_id.go
│ │ ├── account_id.go
│ │ ├── city.go
│ │ ├── country_code.go
│ │ ├── event_code.go
│ │ ├── container_reference_id.go
│ │ ├── tracking_id.go
│ │ └── postal_code.go
├── productPricing_2022-05-01
│ └── product_pricing_2022_05_01_models
│ │ ├── sku.go
│ │ ├── asin.go
│ │ ├── http_body.go
│ │ ├── marketplace_id.go
│ │ ├── http_headers.go
│ │ ├── http_uri.go
│ │ └── money_type.go
├── financesV0
│ └── finances_v0_models
│ │ └── big_decimal.go
├── fulfillmentInboundV0
│ └── fulfillment_inbound_v0_models
│ │ ├── quantity.go
│ │ ├── tracking_id.go
│ │ ├── big_decimal_type.go
│ │ ├── unsigned_int_type.go
│ │ ├── pro_number.go
│ │ └── label_download_url.go
├── productPricingV0
│ └── product_pricing_v0_models
│ │ ├── asin.go
│ │ ├── marketplace_id.go
│ │ ├── relationship_list.go
│ │ ├── attribute_set_list.go
│ │ ├── http_request_headers.go
│ │ ├── http_uri.go
│ │ ├── money_type.go
│ │ └── ships_from_type.go
├── finances_2024-06-19
│ └── finances_2024_06_19_models
│ │ └── big_decimal.go
├── fulfillmentOutbound_2020-07-01
│ └── fulfillment_outbound_2020_07_01_models
│ │ ├── quantity.go
│ │ ├── ip_address.go
│ │ ├── string_list.go
│ │ ├── decimal.go
│ │ ├── notification_email_list.go
│ │ ├── delivery_message.go
│ │ └── locker_details.go
├── ordersV0
│ └── orders_v0_models
│ │ ├── marketplace_id.go
│ │ ├── transparency_code.go
│ │ ├── promotion_id_list.go
│ │ ├── payment_method_detail_item_list.go
│ │ ├── package_reference_id.go
│ │ ├── money.go
│ │ ├── product_info_detail.go
│ │ ├── tax_classification.go
│ │ ├── open_time_interval.go
│ │ └── buyer_customized_info_detail.go
├── merchantFulfillmentV0
│ └── merchant_fulfillment_v0_models
│ │ ├── weight_value.go
│ │ ├── email_address.go
│ │ ├── item_quantity.go
│ │ ├── shipment_id.go
│ │ ├── label_dimension.go
│ │ ├── tracking_id.go
│ │ ├── item_description.go
│ │ ├── district_or_county.go
│ │ ├── order_item_id.go
│ │ ├── amazon_order_id.go
│ │ ├── included_benefits.go
│ │ ├── country_code.go
│ │ ├── package_dimension.go
│ │ ├── restricted_set_values.go
│ │ ├── shipping_service_identifier.go
│ │ ├── excluded_benefit_reason_codes.go
│ │ ├── city.go
│ │ ├── phone_number.go
│ │ ├── postal_code.go
│ │ ├── address_line1.go
│ │ ├── address_name.go
│ │ ├── address_line2.go
│ │ ├── address_line3.go
│ │ ├── seller_order_id.go
│ │ ├── state_or_province_code.go
│ │ ├── custom_text_for_label.go
│ │ ├── transparency_code.go
│ │ └── label_format_option_request.go
├── supplySources_2020-07-01
│ └── supply_sources_2020_07_01_models
│ │ ├── date_time.go
│ │ ├── supply_source_id.go
│ │ ├── supply_source_alias.go
│ │ ├── supply_source_code.go
│ │ ├── email_address.go
│ │ ├── non_negative_integer.go
│ │ └── operating_hour.go
├── easyShip_2022-03-23
│ └── easy_ship_2022_03_23_models
│ │ ├── package_id.go
│ │ ├── url.go
│ │ ├── amazon_order_id.go
│ │ ├── package_identifier.go
│ │ ├── dimension.go
│ │ ├── weight_value.go
│ │ ├── order_item_id.go
│ │ ├── string.go
│ │ └── order_item_serial_number.go
├── feeds_2021-06-30
│ └── feeds_2021_06_30_models
│ │ └── feed_options.go
├── sales
│ └── sales_models
│ │ └── decimal.go
├── services
│ └── services_models
│ │ ├── reschedule_reason_code.go
│ │ ├── appointment_id.go
│ │ ├── order_id.go
│ │ ├── service_job_id.go
│ │ └── appointment_resource.go
├── shipmentInvoicingV0
│ └── shipment_invoicing_v0_models
│ │ ├── serial_numbers_list.go
│ │ ├── payment_method_detail_item_list.go
│ │ ├── money.go
│ │ ├── tax_classification.go
│ │ └── blob.go
├── reports_2020-09-04
│ └── reports_2020_09_04_models
│ │ └── report_options.go
├── reports_2021-06-30
│ └── reports_2021_06_30_models
│ │ └── report_options.go
├── vendorOrders
│ └── vendor_orders_models
│ │ ├── date_time_interval.go
│ │ ├── decimal.go
│ │ ├── transaction_id.go
│ │ └── pagination.go
├── notifications
│ └── notifications_models
│ │ └── marketplace_ids.go
├── vendorDirectFulfillmentOrdersV1
│ └── vendor_direct_fulfillment_orders_v1_models
│ │ ├── decimal.go
│ │ ├── gift_details.go
│ │ └── transaction_id.go
├── vendorInvoices
│ └── vendor_invoices_models
│ │ ├── decimal.go
│ │ └── transaction_id.go
├── productFeesV0
│ └── product_fees_v0_models
│ │ ├── fees_estimate_error_detail.go
│ │ └── money_type.go
├── vendorShipments
│ └── vendor_shipments_models
│ │ ├── decimal.go
│ │ ├── location.go
│ │ ├── container_sequence_numbers.go
│ │ └── pagination.go
├── vendorDirectFulfillmentOrders_2021-12-28
│ └── vendor_direct_fulfillment_orders_2021_12_28_models
│ │ ├── decimal.go
│ │ └── gift_details.go
├── vendorDirectFulfillmentPaymentsV1
│ └── vendor_direct_fulfillment_payments_v1_models
│ │ └── decimal.go
├── vendorDirectFulfillmentShippingV1
│ └── vendor_direct_fulfillment_shipping_v1_models
│ │ └── decimal.go
├── vendorDirectFulfillmentShipping_2021-12-28
│ └── vendor_direct_fulfillment_shipping_2021_12_28_models
│ │ └── decimal.go
├── feeds_2020-09-04
│ └── feeds_2020_09_04_models
│ │ └── feed_options.go
├── aplusContent_2020-11-01
│ └── aplus_content_2020_11_01_models
│ │ ├── asin.go
│ │ ├── marketplace_id.go
│ │ ├── page_token.go
│ │ ├── content_sub_type.go
│ │ ├── content_reference_key.go
│ │ └── language_tag.go
├── replenishment-2022-11-07
│ └── replenishment_2022_11_07_models
│ │ └── marketplace_id.go
├── catalogItemsV0
│ └── catalog_items_v0_models
│ │ ├── price.go
│ │ ├── creator_type.go
│ │ ├── decimal_with_units.go
│ │ └── language_type.go
└── InvoicesApiModel_2024-06-19
│ └── invoices_api_model_2024_06_19_models
│ ├── export_invoices_response.go
│ └── attribute_option.go
├── .gitignore
└── LICENSE
/Makefile:
--------------------------------------------------------------------------------
1 | gen:
2 | ./script/gen.sh
3 |
--------------------------------------------------------------------------------
/script/checksum:
--------------------------------------------------------------------------------
1 | 22cdd80d5c19a273d60fa845d6cc19e4873b000f -
2 |
--------------------------------------------------------------------------------
/selling_partner/client.go:
--------------------------------------------------------------------------------
1 | package selling_partner
2 |
3 | import (
4 | "strings"
5 | )
6 |
7 | type Client struct {
8 | config *Config
9 | marketplaces map[string]Marketplace
10 | }
11 |
12 | func New(conf *Config) *Client {
13 | return &Client{
14 | config: conf,
15 | marketplaces: regions[strings.ToUpper(conf.region)].Marketplaces,
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/cancel_shipment_result.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | // CancelShipmentResult The payload for the cancelShipment operation.
9 | //
10 | // swagger:model CancelShipmentResult
11 | type CancelShipmentResult interface{}
12 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Binaries for programs and plugins
2 | *.exe
3 | *.exe~
4 | *.dll
5 | *.so
6 | *.dylib
7 |
8 | # Test binary, built with `go test -c`
9 | *.test
10 |
11 | # Output of the go coverage tool, specifically when used with LiteIDE
12 | *.out
13 |
14 | # Dependency directories (remove the comment below to include it)
15 | # vendor/
16 |
17 | # Go workspace file
18 | go.work
19 |
20 | # os stuff
21 | .DS_Store
22 |
23 | # pkg specific
24 | vendor/
25 | bin/
26 | tmp/
27 | selling-partner-api-models/
28 |
--------------------------------------------------------------------------------
/api/listingsItems_2021-08-01/listings_items_2021_08_01_models/item_attributes.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package listings_items_2021_08_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | // ItemAttributes A JSON object containing structured listings item attribute data keyed by attribute name.
9 | //
10 | // swagger:model ItemAttributes
11 | type ItemAttributes interface{}
12 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/get_additional_inputs_result.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | // GetAdditionalInputsResult The JSON schema to use to provide additional inputs when required to purchase a shipping offering.
9 | //
10 | // swagger:model GetAdditionalInputsResult
11 | type GetAdditionalInputsResult interface{}
12 |
--------------------------------------------------------------------------------
/api/messaging/messaging_models/schema.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package messaging_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | // Schema A JSON schema document describing the expected payload of the action. This object can be validated against http://json-schema.org/draft-04/schema.
9 | //
10 | // swagger:model Schema
11 | type Schema interface{}
12 |
--------------------------------------------------------------------------------
/api/solicitations/solicitations_models/schema.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package solicitations_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | // Schema A JSON schema document describing the expected payload of the action. This object can be validated against http://json-schema.org/draft-04/schema.
9 | //
10 | // swagger:model Schema
11 | type Schema interface{}
12 |
--------------------------------------------------------------------------------
/api/appIntegrations-2024-04-01/app_integrations_2024_04_01_models/notification_parameters.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package app_integrations_2024_04_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | // NotificationParameters The dynamic parameters required by the notification templated specified by `templateId`.
9 | // Example: {"priceValue":"200"}
10 | //
11 | // swagger:model NotificationParameters
12 | type NotificationParameters interface{}
13 |
--------------------------------------------------------------------------------
/api/catalogItems_2022-04-01/catalog_items_2022_04_01_models/item_attributes.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package catalog_items_2022_04_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | // ItemAttributes A JSON object that contains structured item attribute data keyed by attribute name. Catalog item attributes conform to the related product type definitions available in the Selling Partner API for Product Type Definitions.
9 | //
10 | // swagger:model ItemAttributes
11 | type ItemAttributes interface{}
12 |
--------------------------------------------------------------------------------
/api/catalogItems_2020-12-01/catalog_items_2020_12_01_models/item_attributes.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package catalog_items_2020_12_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | // ItemAttributes A JSON object that contains structured item attribute data keyed by attribute name. Catalog item attributes are available only to brand owners and conform to the related product type definitions available in the Selling Partner API for Product Type Definitions.
9 | //
10 | // swagger:model ItemAttributes
11 | type ItemAttributes interface{}
12 |
--------------------------------------------------------------------------------
/api/shipping/shipping_models/rate_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // RateID An identifier for the rating.
15 | //
16 | // swagger:model RateId
17 | type RateID string
18 |
19 | // Validate validates this rate Id
20 | func (m RateID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this rate Id based on context it is used
25 | func (m RateID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/productPricing_2022-05-01/product_pricing_2022_05_01_models/sku.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package product_pricing_2022_05_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Sku The seller SKU of the item.
15 | //
16 | // swagger:model Sku
17 | type Sku string
18 |
19 | // Validate validates this sku
20 | func (m Sku) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this sku based on context it is used
25 | func (m Sku) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/city.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // City The city or town where the person, business or institution is located.
15 | //
16 | // swagger:model City
17 | type City string
18 |
19 | // Validate validates this city
20 | func (m City) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this city based on context it is used
25 | func (m City) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/financesV0/finances_v0_models/big_decimal.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package finances_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // BigDecimal A signed decimal number.
15 | //
16 | // swagger:model BigDecimal
17 | type BigDecimal float64
18 |
19 | // Validate validates this big decimal
20 | func (m BigDecimal) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this big decimal based on context it is used
25 | func (m BigDecimal) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shipping/shipping_models/shipment_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // ShipmentID The unique shipment identifier.
15 | //
16 | // swagger:model ShipmentId
17 | type ShipmentID string
18 |
19 | // Validate validates this shipment Id
20 | func (m ShipmentID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this shipment Id based on context it is used
25 | func (m ShipmentID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/service_ids.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // ServiceIds A list of ServiceId.
15 | //
16 | // swagger:model ServiceIds
17 | type ServiceIds []string
18 |
19 | // Validate validates this service ids
20 | func (m ServiceIds) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this service ids based on context it is used
25 | func (m ServiceIds) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/fulfillmentInboundV0/fulfillment_inbound_v0_models/quantity.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package fulfillment_inbound_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Quantity The item quantity.
15 | //
16 | // swagger:model Quantity
17 | type Quantity int32
18 |
19 | // Validate validates this quantity
20 | func (m Quantity) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this quantity based on context it is used
25 | func (m Quantity) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/productPricingV0/product_pricing_v0_models/asin.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package product_pricing_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Asin The Amazon Standard Identification Number (ASIN) of the item.
15 | //
16 | // swagger:model Asin
17 | type Asin string
18 |
19 | // Validate validates this asin
20 | func (m Asin) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this asin based on context it is used
25 | func (m Asin) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/contents.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Contents A Base64 encoded string of the file contents.
15 | //
16 | // swagger:model Contents
17 | type Contents string
18 |
19 | // Validate validates this contents
20 | func (m Contents) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this contents based on context it is used
25 | func (m Contents) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/merchant_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // MerchantID merchant Id of provided merchant
15 | //
16 | // swagger:model MerchantId
17 | type MerchantID string
18 |
19 | // Validate validates this merchant Id
20 | func (m MerchantID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this merchant Id based on context it is used
25 | func (m MerchantID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/service_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // ServiceID An identifier for the shipping service.
15 | //
16 | // swagger:model ServiceId
17 | type ServiceID string
18 |
19 | // Validate validates this service Id
20 | func (m ServiceID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this service Id based on context it is used
25 | func (m ServiceID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/carrier_name.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // CarrierName The carrier name for the offering.
15 | //
16 | // swagger:model CarrierName
17 | type CarrierName string
18 |
19 | // Validate validates this carrier name
20 | func (m CarrierName) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this carrier name based on context it is used
25 | func (m CarrierName) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/service_name.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // ServiceName The name of the shipping service.
15 | //
16 | // swagger:model ServiceName
17 | type ServiceName string
18 |
19 | // Validate validates this service name
20 | func (m ServiceName) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this service name based on context it is used
25 | func (m ServiceName) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/finances_2024-06-19/finances_2024_06_19_models/big_decimal.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package finances_2024_06_19_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // BigDecimal A signed decimal number.
15 | //
16 | // swagger:model BigDecimal
17 | type BigDecimal float64
18 |
19 | // Validate validates this big decimal
20 | func (m BigDecimal) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this big decimal based on context it is used
25 | func (m BigDecimal) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/productPricing_2022-05-01/product_pricing_2022_05_01_models/asin.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package product_pricing_2022_05_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Asin The Amazon Standard Identification Number (ASIN) of the item.
15 | //
16 | // swagger:model Asin
17 | type Asin string
18 |
19 | // Validate validates this asin
20 | func (m Asin) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this asin based on context it is used
25 | func (m Asin) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shipping/shipping_models/label_stream.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // LabelStream Contains binary image data encoded as a base-64 string.
15 | //
16 | // swagger:model LabelStream
17 | type LabelStream string
18 |
19 | // Validate validates this label stream
20 | func (m LabelStream) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this label stream based on context it is used
25 | func (m LabelStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/dpi.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Dpi The dots per inch (DPI) value used in printing. This value represents a measure of the resolution of the document.
15 | //
16 | // swagger:model Dpi
17 | type Dpi int64
18 |
19 | // Validate validates this dpi
20 | func (m Dpi) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this dpi based on context it is used
25 | func (m Dpi) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/rate_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // RateID An identifier for the rate (shipment offering) provided by a shipping service provider.
15 | //
16 | // swagger:model RateId
17 | type RateID string
18 |
19 | // Validate validates this rate Id
20 | func (m RateID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this rate Id based on context it is used
25 | func (m RateID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/fulfillmentOutbound_2020-07-01/fulfillment_outbound_2020_07_01_models/quantity.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package fulfillment_outbound_2020_07_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Quantity The item quantity.
15 | //
16 | // swagger:model Quantity
17 | type Quantity int32
18 |
19 | // Validate validates this quantity
20 | func (m Quantity) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this quantity based on context it is used
25 | func (m Quantity) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/ordersV0/orders_v0_models/marketplace_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package orders_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // MarketplaceID The unobfuscated marketplace identifier.
15 | //
16 | // swagger:model MarketplaceId
17 | type MarketplaceID string
18 |
19 | // Validate validates this marketplace Id
20 | func (m MarketplaceID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this marketplace Id based on context it is used
25 | func (m MarketplaceID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/carrier_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // CarrierID The carrier identifier for the offering, provided by the carrier.
15 | //
16 | // swagger:model CarrierId
17 | type CarrierID string
18 |
19 | // Validate validates this carrier Id
20 | func (m CarrierID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this carrier Id based on context it is used
25 | func (m CarrierID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/weight_value.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // WeightValue The weight value.
15 | //
16 | // swagger:model WeightValue
17 | type WeightValue float64
18 |
19 | // Validate validates this weight value
20 | func (m WeightValue) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this weight value based on context it is used
25 | func (m WeightValue) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/access_point_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // AccessPointID Unique identifier for the access point
15 | //
16 | // swagger:model AccessPointId
17 | type AccessPointID string
18 |
19 | // Validate validates this access point Id
20 | func (m AccessPointID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this access point Id based on context it is used
25 | func (m AccessPointID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/shipment_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // ShipmentID The unique shipment identifier provided by a shipping service.
15 | //
16 | // swagger:model ShipmentId
17 | type ShipmentID string
18 |
19 | // Validate validates this shipment Id
20 | func (m ShipmentID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this shipment Id based on context it is used
25 | func (m ShipmentID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/supplySources_2020-07-01/supply_sources_2020_07_01_models/date_time.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package supply_sources_2020_07_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // DateTime A date and time in the rfc3339 format.
15 | //
16 | // swagger:model DateTime
17 | type DateTime string
18 |
19 | // Validate validates this date time
20 | func (m DateTime) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this date time based on context it is used
25 | func (m DateTime) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/fulfillmentOutbound_2020-07-01/fulfillment_outbound_2020_07_01_models/ip_address.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package fulfillment_outbound_2020_07_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // IPAddress An IP Address.
15 | //
16 | // swagger:model IpAddress
17 | type IPAddress string
18 |
19 | // Validate validates this Ip address
20 | func (m IPAddress) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this Ip address based on context it is used
25 | func (m IPAddress) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/email_address.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // EmailAddress The email address.
15 | //
16 | // swagger:model EmailAddress
17 | type EmailAddress string
18 |
19 | // Validate validates this email address
20 | func (m EmailAddress) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this email address based on context it is used
25 | func (m EmailAddress) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/item_quantity.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // ItemQuantity The number of items.
15 | //
16 | // swagger:model ItemQuantity
17 | type ItemQuantity int32
18 |
19 | // Validate validates this item quantity
20 | func (m ItemQuantity) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this item quantity based on context it is used
25 | func (m ItemQuantity) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/country_code.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // CountryCode The two digit country code. Follows ISO 3166-1 alpha-2 format.
15 | //
16 | // swagger:model CountryCode
17 | type CountryCode string
18 |
19 | // Validate validates this country code
20 | func (m CountryCode) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this country code based on context it is used
25 | func (m CountryCode) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/easyShip_2022-03-23/easy_ship_2022_03_23_models/package_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package easy_ship_2022_03_23_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // PackageID An Amazon-defined identifier for the scheduled package.
15 | //
16 | // swagger:model PackageId
17 | type PackageID string
18 |
19 | // Validate validates this package Id
20 | func (m PackageID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this package Id based on context it is used
25 | func (m PackageID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/fulfillmentOutbound_2020-07-01/fulfillment_outbound_2020_07_01_models/string_list.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package fulfillment_outbound_2020_07_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // StringList String list
15 | //
16 | // swagger:model StringList
17 | type StringList []string
18 |
19 | // Validate validates this string list
20 | func (m StringList) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this string list based on context it is used
25 | func (m StringList) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/shipment_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // ShipmentID An Amazon-defined shipment identifier.
15 | //
16 | // swagger:model ShipmentId
17 | type ShipmentID string
18 |
19 | // Validate validates this shipment Id
20 | func (m ShipmentID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this shipment Id based on context it is used
25 | func (m ShipmentID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/request_token.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // RequestToken A unique token generated to identify a getRates operation.
15 | //
16 | // swagger:model RequestToken
17 | type RequestToken string
18 |
19 | // Validate validates this request token
20 | func (m RequestToken) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this request token based on context it is used
25 | func (m RequestToken) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/tracking_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // TrackingID The carrier generated identifier for a package in a purchased shipment.
15 | //
16 | // swagger:model TrackingId
17 | type TrackingID string
18 |
19 | // Validate validates this tracking Id
20 | func (m TrackingID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this tracking Id based on context it is used
25 | func (m TrackingID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/included_benefits.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // IncludedBenefits A list of included benefits.
15 | //
16 | // swagger:model IncludedBenefits
17 | type IncludedBenefits []string
18 |
19 | // Validate validates this included benefits
20 | func (m IncludedBenefits) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this included benefits based on context it is used
25 | func (m IncludedBenefits) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/easyShip_2022-03-23/easy_ship_2022_03_23_models/url.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package easy_ship_2022_03_23_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // URL A pre-signed URL for the zip document containing the shipping labels and the documents enabled for your marketplace.
15 | //
16 | // swagger:model URL
17 | type URL string
18 |
19 | // Validate validates this URL
20 | func (m URL) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this URL based on context it is used
25 | func (m URL) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/collection_form_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // CollectionFormID Collection Form Id for Reprint .
15 | //
16 | // swagger:model CollectionFormId
17 | type CollectionFormID string
18 |
19 | // Validate validates this collection form Id
20 | func (m CollectionFormID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this collection form Id based on context it is used
25 | func (m CollectionFormID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/label_dimension.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // LabelDimension A label dimension.
15 | //
16 | // swagger:model LabelDimension
17 | type LabelDimension float64
18 |
19 | // Validate validates this label dimension
20 | func (m LabelDimension) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this label dimension based on context it is used
25 | func (m LabelDimension) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/ordersV0/orders_v0_models/transparency_code.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package orders_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // TransparencyCode The transparency code associated with the item.
15 | //
16 | // swagger:model TransparencyCode
17 | type TransparencyCode string
18 |
19 | // Validate validates this transparency code
20 | func (m TransparencyCode) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this transparency code based on context it is used
25 | func (m TransparencyCode) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/fulfillmentInboundV0/fulfillment_inbound_v0_models/tracking_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package fulfillment_inbound_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // TrackingID The tracking number of the package, provided by the carrier.
15 | //
16 | // swagger:model TrackingId
17 | type TrackingID string
18 |
19 | // Validate validates this tracking Id
20 | func (m TrackingID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this tracking Id based on context it is used
25 | func (m TrackingID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/tracking_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // TrackingID The shipment tracking identifier provided by the carrier.
15 | //
16 | // swagger:model TrackingId
17 | type TrackingID string
18 |
19 | // Validate validates this tracking Id
20 | func (m TrackingID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this tracking Id based on context it is used
25 | func (m TrackingID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shipping/shipping_models/state_or_region.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // StateOrRegion The state or region where the person, business or institution is located.
15 | //
16 | // swagger:model StateOrRegion
17 | type StateOrRegion string
18 |
19 | // Validate validates this state or region
20 | func (m StateOrRegion) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this state or region based on context it is used
25 | func (m StateOrRegion) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/feeds_2021-06-30/feeds_2021_06_30_models/feed_options.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package feeds_2021_06_30_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // FeedOptions Additional options to control the feed. These vary by feed type.
15 | //
16 | // swagger:model FeedOptions
17 | type FeedOptions map[string]string
18 |
19 | // Validate validates this feed options
20 | func (m FeedOptions) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this feed options based on context it is used
25 | func (m FeedOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/fulfillmentInboundV0/fulfillment_inbound_v0_models/big_decimal_type.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package fulfillment_inbound_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // BigDecimalType Number format that supports decimal.
15 | //
16 | // swagger:model BigDecimalType
17 | type BigDecimalType float64
18 |
19 | // Validate validates this big decimal type
20 | func (m BigDecimalType) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this big decimal type based on context it is used
25 | func (m BigDecimalType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/fulfillmentInboundV0/fulfillment_inbound_v0_models/unsigned_int_type.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package fulfillment_inbound_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // UnsignedIntType Contains an unsigned integer
15 | //
16 | // swagger:model UnsignedIntType
17 | type UnsignedIntType int64
18 |
19 | // Validate validates this unsigned int type
20 | func (m UnsignedIntType) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this unsigned int type based on context it is used
25 | func (m UnsignedIntType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/item_description.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // ItemDescription The description of the item.
15 | //
16 | // swagger:model ItemDescription
17 | type ItemDescription string
18 |
19 | // Validate validates this item description
20 | func (m ItemDescription) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this item description based on context it is used
25 | func (m ItemDescription) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/district_or_county.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // DistrictOrCounty The district or county.
15 | //
16 | // swagger:model DistrictOrCounty
17 | type DistrictOrCounty string
18 |
19 | // Validate validates this district or county
20 | func (m DistrictOrCounty) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this district or county based on context it is used
25 | func (m DistrictOrCounty) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/order_item_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // OrderItemID An Amazon-defined identifier for an individual item in an order.
15 | //
16 | // swagger:model OrderItemId
17 | type OrderItemID string
18 |
19 | // Validate validates this order item Id
20 | func (m OrderItemID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this order item Id based on context it is used
25 | func (m OrderItemID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/sales/sales_models/decimal.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package sales_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Decimal A decimal number with no loss of precision. Useful when precision loss is unnaceptable, as with currencies. Follows RFC7159 for number representation.
15 | //
16 | // swagger:model Decimal
17 | type Decimal float32
18 |
19 | // Validate validates this decimal
20 | func (m Decimal) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this decimal based on context it is used
25 | func (m Decimal) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/page_layout.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // PageLayout Indicates the position of the label on the paper. Should be the same value as returned in getRates response.
15 | //
16 | // swagger:model PageLayout
17 | type PageLayout string
18 |
19 | // Validate validates this page layout
20 | func (m PageLayout) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this page layout based on context it is used
25 | func (m PageLayout) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/state_or_region.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // StateOrRegion The state, county or region where the person, business or institution is located.
15 | //
16 | // swagger:model StateOrRegion
17 | type StateOrRegion string
18 |
19 | // Validate validates this state or region
20 | func (m StateOrRegion) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this state or region based on context it is used
25 | func (m StateOrRegion) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/amazon_order_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // AmazonOrderID An Amazon-defined order identifier, in 3-7-7 format.
15 | //
16 | // swagger:model AmazonOrderId
17 | type AmazonOrderID string
18 |
19 | // Validate validates this amazon order Id
20 | func (m AmazonOrderID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this amazon order Id based on context it is used
25 | func (m AmazonOrderID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/included_benefits.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // IncludedBenefits A list of included benefits.
15 | //
16 | // swagger:model IncludedBenefits
17 | type IncludedBenefits []string
18 |
19 | // Validate validates this included benefits
20 | func (m IncludedBenefits) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this included benefits based on context it is used
25 | func (m IncludedBenefits) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/services/services_models/reschedule_reason_code.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package services_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // RescheduleReasonCode The appointment reschedule reason code.
15 | //
16 | // swagger:model RescheduleReasonCode
17 | type RescheduleReasonCode string
18 |
19 | // Validate validates this reschedule reason code
20 | func (m RescheduleReasonCode) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this reschedule reason code based on context it is used
25 | func (m RescheduleReasonCode) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/carrier_account_type.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // CarrierAccountType CarrierAccountType associated with account.
15 | //
16 | // swagger:model CarrierAccountType
17 | type CarrierAccountType string
18 |
19 | // Validate validates this carrier account type
20 | func (m CarrierAccountType) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this carrier account type based on context it is used
25 | func (m CarrierAccountType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/country_code.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // CountryCode The country code. A two-character country code, in ISO 3166-1 alpha-2 format.
15 | //
16 | // swagger:model CountryCode
17 | type CountryCode string
18 |
19 | // Validate validates this country code
20 | func (m CountryCode) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this country code based on context it is used
25 | func (m CountryCode) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shipmentInvoicingV0/shipment_invoicing_v0_models/serial_numbers_list.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipment_invoicing_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // SerialNumbersList The list of serial numbers.
15 | //
16 | // swagger:model SerialNumbersList
17 | type SerialNumbersList []string
18 |
19 | // Validate validates this serial numbers list
20 | func (m SerialNumbersList) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this serial numbers list based on context it is used
25 | func (m SerialNumbersList) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/fulfillmentInboundV0/fulfillment_inbound_v0_models/pro_number.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package fulfillment_inbound_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // ProNumber The PRO number ("progressive number" or "progressive ID") assigned to the shipment by the carrier.
15 | //
16 | // swagger:model ProNumber
17 | type ProNumber string
18 |
19 | // Validate validates this pro number
20 | func (m ProNumber) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this pro number based on context it is used
25 | func (m ProNumber) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/supplySources_2020-07-01/supply_sources_2020_07_01_models/supply_source_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package supply_sources_2020_07_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // SupplySourceID An Amazon generated unique supply source ID.
15 | //
16 | // swagger:model SupplySourceId
17 | type SupplySourceID string
18 |
19 | // Validate validates this supply source Id
20 | func (m SupplySourceID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this supply source Id based on context it is used
25 | func (m SupplySourceID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/catalogItems_2020-12-01/catalog_items_2020_12_01_models/item_asin.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package catalog_items_2020_12_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // ItemAsin Amazon Standard Identification Number (ASIN) is the unique identifier for an item in the Amazon catalog.
15 | //
16 | // swagger:model ItemAsin
17 | type ItemAsin string
18 |
19 | // Validate validates this item asin
20 | func (m ItemAsin) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this item asin based on context it is used
25 | func (m ItemAsin) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/catalogItems_2022-04-01/catalog_items_2022_04_01_models/item_asin.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package catalog_items_2022_04_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // ItemAsin Amazon Standard Identification Number (ASIN) is the unique identifier for an item in the Amazon catalog.
15 | //
16 | // swagger:model ItemAsin
17 | type ItemAsin string
18 |
19 | // Validate validates this item asin
20 | func (m ItemAsin) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this item asin based on context it is used
25 | func (m ItemAsin) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/ordersV0/orders_v0_models/promotion_id_list.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package orders_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // PromotionIDList A list of promotion identifiers provided by the seller when the promotions were created.
15 | //
16 | // swagger:model PromotionIdList
17 | type PromotionIDList []string
18 |
19 | // Validate validates this promotion Id list
20 | func (m PromotionIDList) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this promotion Id list based on context it is used
25 | func (m PromotionIDList) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/productPricingV0/product_pricing_v0_models/marketplace_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package product_pricing_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // MarketplaceID A marketplace identifier. Specifies the marketplace for which prices are returned.
15 | //
16 | // swagger:model MarketplaceId
17 | type MarketplaceID string
18 |
19 | // Validate validates this marketplace Id
20 | func (m MarketplaceID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this marketplace Id based on context it is used
25 | func (m MarketplaceID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/reports_2020-09-04/reports_2020_09_04_models/report_options.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package reports_2020_09_04_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // ReportOptions Additional information passed to reports. This varies by report type.
15 | //
16 | // swagger:model ReportOptions
17 | type ReportOptions map[string]string
18 |
19 | // Validate validates this report options
20 | func (m ReportOptions) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this report options based on context it is used
25 | func (m ReportOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/reports_2021-06-30/reports_2021_06_30_models/report_options.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package reports_2021_06_30_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // ReportOptions Additional information passed to reports. This varies by report type.
15 | //
16 | // swagger:model ReportOptions
17 | type ReportOptions map[string]string
18 |
19 | // Validate validates this report options
20 | func (m ReportOptions) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this report options based on context it is used
25 | func (m ReportOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/postal_code.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // PostalCode The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation.
15 | //
16 | // swagger:model PostalCode
17 | type PostalCode string
18 |
19 | // Validate validates this postal code
20 | func (m PostalCode) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this postal code based on context it is used
25 | func (m PostalCode) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/package_dimension.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // PackageDimension Number representing the given package dimension.
15 | //
16 | // swagger:model PackageDimension
17 | type PackageDimension float64
18 |
19 | // Validate validates this package dimension
20 | func (m PackageDimension) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this package dimension based on context it is used
25 | func (m PackageDimension) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/productPricing_2022-05-01/product_pricing_2022_05_01_models/http_body.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package product_pricing_2022_05_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // HTTPBody Additional HTTP body information associated with an individual request within a batch.
15 | //
16 | // swagger:model HttpBody
17 | type HTTPBody map[string]interface{}
18 |
19 | // Validate validates this Http body
20 | func (m HTTPBody) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this Http body based on context it is used
25 | func (m HTTPBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/supplySources_2020-07-01/supply_sources_2020_07_01_models/supply_source_alias.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package supply_sources_2020_07_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // SupplySourceAlias The custom alias for this supply source
15 | //
16 | // swagger:model SupplySourceAlias
17 | type SupplySourceAlias string
18 |
19 | // Validate validates this supply source alias
20 | func (m SupplySourceAlias) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this supply source alias based on context it is used
25 | func (m SupplySourceAlias) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/supplySources_2020-07-01/supply_sources_2020_07_01_models/supply_source_code.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package supply_sources_2020_07_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // SupplySourceCode The seller-provided unique supply source code.
15 | //
16 | // swagger:model SupplySourceCode
17 | type SupplySourceCode string
18 |
19 | // Validate validates this supply source code
20 | func (m SupplySourceCode) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this supply source code based on context it is used
25 | func (m SupplySourceCode) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/productPricingV0/product_pricing_v0_models/relationship_list.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package product_pricing_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // RelationshipList A list that contains product variation information, if applicable.
15 | //
16 | // swagger:model RelationshipList
17 | type RelationshipList []interface{}
18 |
19 | // Validate validates this relationship list
20 | func (m RelationshipList) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this relationship list based on context it is used
25 | func (m RelationshipList) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/productPricing_2022-05-01/product_pricing_2022_05_01_models/marketplace_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package product_pricing_2022_05_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // MarketplaceID A marketplace identifier. Specifies the marketplace for which data is returned.
15 | //
16 | // swagger:model MarketplaceId
17 | type MarketplaceID string
18 |
19 | // Validate validates this marketplace Id
20 | func (m MarketplaceID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this marketplace Id based on context it is used
25 | func (m MarketplaceID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/need_file_joining.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // NeedFileJoining When true, files should be stitched together. Otherwise, files should be returned separately. Defaults to false.
15 | //
16 | // swagger:model NeedFileJoining
17 | type NeedFileJoining bool
18 |
19 | // Validate validates this need file joining
20 | func (m NeedFileJoining) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this need file joining based on context it is used
25 | func (m NeedFileJoining) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/vendorOrders/vendor_orders_models/date_time_interval.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_orders_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // DateTimeInterval Defines a date time interval according to ISO8601. Interval is separated by double hyphen (--).
15 | //
16 | // swagger:model DateTimeInterval
17 | type DateTimeInterval string
18 |
19 | // Validate validates this date time interval
20 | func (m DateTimeInterval) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this date time interval based on context it is used
25 | func (m DateTimeInterval) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/productPricing_2022-05-01/product_pricing_2022_05_01_models/http_headers.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package product_pricing_2022_05_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // HTTPHeaders A mapping of additional HTTP headers to send/receive for an individual request within a batch.
15 | //
16 | // swagger:model HttpHeaders
17 | type HTTPHeaders map[string]string
18 |
19 | // Validate validates this Http headers
20 | func (m HTTPHeaders) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this Http headers based on context it is used
25 | func (m HTTPHeaders) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/listingsItems_2021-08-01/listings_items_2021_08_01_models/decimal.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package listings_items_2021_08_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Decimal A decimal number with no loss of precision. Useful when precision loss is unnaceptable, as with currencies. Follows RFC7159 for number representation.
15 | //
16 | // swagger:model Decimal
17 | type Decimal string
18 |
19 | // Validate validates this decimal
20 | func (m Decimal) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this decimal based on context it is used
25 | func (m Decimal) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/productPricingV0/product_pricing_v0_models/attribute_set_list.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package product_pricing_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // AttributeSetList A list of product attributes if they are applicable to the product that is returned.
15 | //
16 | // swagger:model AttributeSetList
17 | type AttributeSetList []interface{}
18 |
19 | // Validate validates this attribute set list
20 | func (m AttributeSetList) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this attribute set list based on context it is used
25 | func (m AttributeSetList) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/easyShip_2022-03-23/easy_ship_2022_03_23_models/amazon_order_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package easy_ship_2022_03_23_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // AmazonOrderID An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship.
15 | //
16 | // swagger:model AmazonOrderId
17 | type AmazonOrderID string
18 |
19 | // Validate validates this amazon order Id
20 | func (m AmazonOrderID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this amazon order Id based on context it is used
25 | func (m AmazonOrderID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/restricted_set_values.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // RestrictedSetValues The set of fixed values in an additional seller input.
15 | //
16 | // swagger:model RestrictedSetValues
17 | type RestrictedSetValues []string
18 |
19 | // Validate validates this restricted set values
20 | func (m RestrictedSetValues) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this restricted set values based on context it is used
25 | func (m RestrictedSetValues) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/ordersV0/orders_v0_models/payment_method_detail_item_list.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package orders_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // PaymentMethodDetailItemList A list of payment method detail items.
15 | //
16 | // swagger:model PaymentMethodDetailItemList
17 | type PaymentMethodDetailItemList []string
18 |
19 | // Validate validates this payment method detail item list
20 | func (m PaymentMethodDetailItemList) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this payment method detail item list based on context it is used
25 | func (m PaymentMethodDetailItemList) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/fulfillmentOutbound_2020-07-01/fulfillment_outbound_2020_07_01_models/decimal.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package fulfillment_outbound_2020_07_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Decimal A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
15 | //
16 | // swagger:model Decimal
17 | type Decimal string
18 |
19 | // Validate validates this decimal
20 | func (m Decimal) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this decimal based on context it is used
25 | func (m Decimal) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/productPricingV0/product_pricing_v0_models/http_request_headers.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package product_pricing_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // HTTPRequestHeaders A mapping of additional HTTP headers to send/receive for the individual batch request.
15 | //
16 | // swagger:model HttpRequestHeaders
17 | type HTTPRequestHeaders map[string]string
18 |
19 | // Validate validates this Http request headers
20 | func (m HTTPRequestHeaders) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this Http request headers based on context it is used
25 | func (m HTTPRequestHeaders) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/alternate_leg_tracking_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // AlternateLegTrackingID The carrier generated reverse identifier for a returned package in a purchased shipment.
15 | //
16 | // swagger:model AlternateLegTrackingId
17 | type AlternateLegTrackingID string
18 |
19 | // Validate validates this alternate leg tracking Id
20 | func (m AlternateLegTrackingID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this alternate leg tracking Id based on context it is used
25 | func (m AlternateLegTrackingID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/notifications/notifications_models/marketplace_ids.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package notifications_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // MarketplaceIds A list of marketplace identifiers to subscribe to (for example: ATVPDKIKX0DER). To receive notifications in every marketplace, do not provide this list.
15 | //
16 | // swagger:model MarketplaceIds
17 | type MarketplaceIds []string
18 |
19 | // Validate validates this marketplace ids
20 | func (m MarketplaceIds) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this marketplace ids based on context it is used
25 | func (m MarketplaceIds) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/vendorDirectFulfillmentOrdersV1/vendor_direct_fulfillment_orders_v1_models/decimal.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_direct_fulfillment_orders_v1_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Decimal A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
15 | //
16 | // swagger:model Decimal
17 | type Decimal string
18 |
19 | // Validate validates this decimal
20 | func (m Decimal) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this decimal based on context it is used
25 | func (m Decimal) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/vendorOrders/vendor_orders_models/decimal.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_orders_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Decimal A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`.
15 | //
16 | // swagger:model Decimal
17 | type Decimal string
18 |
19 | // Validate validates this decimal
20 | func (m Decimal) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this decimal based on context it is used
25 | func (m Decimal) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/easyShip_2022-03-23/easy_ship_2022_03_23_models/package_identifier.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package easy_ship_2022_03_23_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // PackageIdentifier Optional seller-created identifier that is printed on the shipping label to help the seller identify the package.
15 | //
16 | // swagger:model PackageIdentifier
17 | type PackageIdentifier string
18 |
19 | // Validate validates this package identifier
20 | func (m PackageIdentifier) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this package identifier based on context it is used
25 | func (m PackageIdentifier) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/ordersV0/orders_v0_models/package_reference_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package orders_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // PackageReferenceID A seller-supplied identifier that uniquely identifies a package within the scope of an order. Only positive numeric values are supported.
15 | //
16 | // swagger:model PackageReferenceId
17 | type PackageReferenceID string
18 |
19 | // Validate validates this package reference Id
20 | func (m PackageReferenceID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this package reference Id based on context it is used
25 | func (m PackageReferenceID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/vendorInvoices/vendor_invoices_models/decimal.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_invoices_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Decimal A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`.
15 | //
16 | // swagger:model Decimal
17 | type Decimal string
18 |
19 | // Validate validates this decimal
20 | func (m Decimal) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this decimal based on context it is used
25 | func (m Decimal) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/shipping_service_identifier.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // ShippingServiceIdentifier An Amazon-defined shipping service identifier.
15 | //
16 | // swagger:model ShippingServiceIdentifier
17 | type ShippingServiceIdentifier string
18 |
19 | // Validate validates this shipping service identifier
20 | func (m ShippingServiceIdentifier) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this shipping service identifier based on context it is used
25 | func (m ShippingServiceIdentifier) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/productFeesV0/product_fees_v0_models/fees_estimate_error_detail.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package product_fees_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // FeesEstimateErrorDetail Additional information that can help the caller understand or fix the issue.
15 | //
16 | // swagger:model FeesEstimateErrorDetail
17 | type FeesEstimateErrorDetail []interface{}
18 |
19 | // Validate validates this fees estimate error detail
20 | func (m FeesEstimateErrorDetail) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this fees estimate error detail based on context it is used
25 | func (m FeesEstimateErrorDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/vendorShipments/vendor_shipments_models/decimal.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_shipments_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Decimal A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`.
15 | //
16 | // swagger:model Decimal
17 | type Decimal string
18 |
19 | // Validate validates this decimal
20 | func (m Decimal) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this decimal based on context it is used
25 | func (m Decimal) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shipmentInvoicingV0/shipment_invoicing_v0_models/payment_method_detail_item_list.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipment_invoicing_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // PaymentMethodDetailItemList The list of payment method details.
15 | //
16 | // swagger:model PaymentMethodDetailItemList
17 | type PaymentMethodDetailItemList []string
18 |
19 | // Validate validates this payment method detail item list
20 | func (m PaymentMethodDetailItemList) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this payment method detail item list based on context it is used
25 | func (m PaymentMethodDetailItemList) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/vendorDirectFulfillmentOrders_2021-12-28/vendor_direct_fulfillment_orders_2021_12_28_models/decimal.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_direct_fulfillment_orders_2021_12_28_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Decimal A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
15 | //
16 | // swagger:model Decimal
17 | type Decimal string
18 |
19 | // Validate validates this decimal
20 | func (m Decimal) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this decimal based on context it is used
25 | func (m Decimal) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/vendorDirectFulfillmentPaymentsV1/vendor_direct_fulfillment_payments_v1_models/decimal.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_direct_fulfillment_payments_v1_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Decimal A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\d*))(\.\d+)?([eE][+-]?\d+)?$`.
15 | //
16 | // swagger:model Decimal
17 | type Decimal string
18 |
19 | // Validate validates this decimal
20 | func (m Decimal) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this decimal based on context it is used
25 | func (m Decimal) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/vendorDirectFulfillmentShippingV1/vendor_direct_fulfillment_shipping_v1_models/decimal.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_direct_fulfillment_shipping_v1_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Decimal A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`.
15 | //
16 | // swagger:model Decimal
17 | type Decimal string
18 |
19 | // Validate validates this decimal
20 | func (m Decimal) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this decimal based on context it is used
25 | func (m Decimal) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/excluded_benefit_reason_codes.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // ExcludedBenefitReasonCodes List of reasons (eg. LATE_DELIVERY_RISK, etc.) indicating why a benefit is excluded for a shipping offer.
15 | //
16 | // swagger:model ExcludedBenefitReasonCodes
17 | type ExcludedBenefitReasonCodes []string
18 |
19 | // Validate validates this excluded benefit reason codes
20 | func (m ExcludedBenefitReasonCodes) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this excluded benefit reason codes based on context it is used
25 | func (m ExcludedBenefitReasonCodes) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/package_client_reference_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // PackageClientReferenceID A client provided unique identifier for a package being shipped. This value should be saved by the client to pass as a parameter to the getShipmentDocuments operation.
15 | //
16 | // swagger:model PackageClientReferenceId
17 | type PackageClientReferenceID string
18 |
19 | // Validate validates this package client reference Id
20 | func (m PackageClientReferenceID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this package client reference Id based on context it is used
25 | func (m PackageClientReferenceID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/city.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // City The city.
17 | //
18 | // swagger:model City
19 | type City string
20 |
21 | // Validate validates this city
22 | func (m City) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MaxLength("", "body", string(m), 30); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this city based on context it is used
36 | func (m City) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/vendorDirectFulfillmentShipping_2021-12-28/vendor_direct_fulfillment_shipping_2021_12_28_models/decimal.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_direct_fulfillment_shipping_2021_12_28_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // Decimal A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`.
15 | //
16 | // swagger:model Decimal
17 | type Decimal string
18 |
19 | // Validate validates this decimal
20 | func (m Decimal) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this decimal based on context it is used
25 | func (m Decimal) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/feeds_2020-09-04/feeds_2020_09_04_models/feed_options.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package feeds_2020_09_04_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // FeedOptions Additional options to control the feed. For feeds that use the feedOptions parameter, you can find the parameter values in the feed description in [feedType values](https://github.com/amzn/selling-partner-api-docs/blob/main/references/feeds-api/feedtype-values.md).
15 | //
16 | // swagger:model FeedOptions
17 | type FeedOptions map[string]string
18 |
19 | // Validate validates this feed options
20 | func (m FeedOptions) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this feed options based on context it is used
25 | func (m FeedOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/aplusContent_2020-11-01/aplus_content_2020_11_01_models/asin.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package aplus_content_2020_11_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // Asin The Amazon Standard Identification Number (ASIN).
17 | //
18 | // swagger:model Asin
19 | type Asin string
20 |
21 | // Validate validates this asin
22 | func (m Asin) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MinLength("", "body", string(m), 10); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this asin based on context it is used
36 | func (m Asin) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/phone_number.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // PhoneNumber The phone number.
17 | //
18 | // swagger:model PhoneNumber
19 | type PhoneNumber string
20 |
21 | // Validate validates this phone number
22 | func (m PhoneNumber) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MaxLength("", "body", string(m), 30); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this phone number based on context it is used
36 | func (m PhoneNumber) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/postal_code.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // PostalCode The zip code or postal code.
17 | //
18 | // swagger:model PostalCode
19 | type PostalCode string
20 |
21 | // Validate validates this postal code
22 | func (m PostalCode) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MaxLength("", "body", string(m), 30); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this postal code based on context it is used
36 | func (m PostalCode) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/easyShip_2022-03-23/easy_ship_2022_03_23_models/dimension.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package easy_ship_2022_03_23_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // Dimension The numerical value of the specified dimension.
17 | //
18 | // swagger:model Dimension
19 | type Dimension float32
20 |
21 | // Validate validates this dimension
22 | func (m Dimension) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.Minimum("", "body", float64(m), 0.01, false); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this dimension based on context it is used
36 | func (m Dimension) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/easyShip_2022-03-23/easy_ship_2022_03_23_models/weight_value.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package easy_ship_2022_03_23_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // WeightValue The weight of the package.
17 | //
18 | // swagger:model WeightValue
19 | type WeightValue float32
20 |
21 | // Validate validates this weight value
22 | func (m WeightValue) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.Minimum("", "body", float64(m), 11, false); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this weight value based on context it is used
36 | func (m WeightValue) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/shipping/shipping_models/client_reference_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // ClientReferenceID Client reference id.
17 | //
18 | // swagger:model ClientReferenceId
19 | type ClientReferenceID string
20 |
21 | // Validate validates this client reference Id
22 | func (m ClientReferenceID) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MaxLength("", "body", string(m), 40); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this client reference Id based on context it is used
36 | func (m ClientReferenceID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/easyShip_2022-03-23/easy_ship_2022_03_23_models/order_item_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package easy_ship_2022_03_23_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // OrderItemID The Amazon-defined order item identifier.
17 | //
18 | // swagger:model OrderItemId
19 | type OrderItemID string
20 |
21 | // Validate validates this order item Id
22 | func (m OrderItemID) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MaxLength("", "body", string(m), 255); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this order item Id based on context it is used
36 | func (m OrderItemID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/shipping/shipping_models/account_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // AccountID This is the Amazon Shipping account id generated during the Amazon Shipping onboarding process.
17 | //
18 | // swagger:model AccountId
19 | type AccountID string
20 |
21 | // Validate validates this account Id
22 | func (m AccountID) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MaxLength("", "body", string(m), 10); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this account Id based on context it is used
36 | func (m AccountID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 RENABLED TECHNOLOGIES SL
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/address_line1.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // AddressLine1 The street address information.
17 | //
18 | // swagger:model AddressLine1
19 | type AddressLine1 string
20 |
21 | // Validate validates this address line1
22 | func (m AddressLine1) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MaxLength("", "body", string(m), 180); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this address line1 based on context it is used
36 | func (m AddressLine1) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/address_name.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // AddressName The name of the addressee, or business name.
17 | //
18 | // swagger:model AddressName
19 | type AddressName string
20 |
21 | // Validate validates this address name
22 | func (m AddressName) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MaxLength("", "body", string(m), 30); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this address name based on context it is used
36 | func (m AddressName) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/address_line2.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // AddressLine2 Additional street address information.
17 | //
18 | // swagger:model AddressLine2
19 | type AddressLine2 string
20 |
21 | // Validate validates this address line2
22 | func (m AddressLine2) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MaxLength("", "body", string(m), 60); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this address line2 based on context it is used
36 | func (m AddressLine2) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/address_line3.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // AddressLine3 Additional street address information.
17 | //
18 | // swagger:model AddressLine3
19 | type AddressLine3 string
20 |
21 | // Validate validates this address line3
22 | func (m AddressLine3) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MaxLength("", "body", string(m), 60); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this address line3 based on context it is used
36 | func (m AddressLine3) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/seller_order_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // SellerOrderID A seller-defined order identifier.
17 | //
18 | // swagger:model SellerOrderId
19 | type SellerOrderID string
20 |
21 | // Validate validates this seller order Id
22 | func (m SellerOrderID) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MaxLength("", "body", string(m), 64); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this seller order Id based on context it is used
36 | func (m SellerOrderID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/replenishment-2022-11-07/replenishment_2022_11_07_models/marketplace_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package replenishment_2022_11_07_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // MarketplaceID The marketplace identifier. The supported marketplaces for both sellers and vendors are US, CA, ES, UK, FR, IT, IN, DE and JP. The supported marketplaces for vendors only are BR, AU, MX, AE and NL. Refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids) to find the identifier for the marketplace.
15 | //
16 | // swagger:model MarketplaceId
17 | type MarketplaceID string
18 |
19 | // Validate validates this marketplace Id
20 | func (m MarketplaceID) Validate(formats strfmt.Registry) error {
21 | return nil
22 | }
23 |
24 | // ContextValidate validates this marketplace Id based on context it is used
25 | func (m MarketplaceID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
--------------------------------------------------------------------------------
/api/shipping/shipping_models/city.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // City The city where the person, business or institution is located.
17 | //
18 | // swagger:model City
19 | type City string
20 |
21 | // Validate validates this city
22 | func (m City) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MinLength("", "body", string(m), 1); err != nil {
26 | return err
27 | }
28 |
29 | if err := validate.MaxLength("", "body", string(m), 50); err != nil {
30 | return err
31 | }
32 |
33 | if len(res) > 0 {
34 | return errors.CompositeValidationError(res...)
35 | }
36 | return nil
37 | }
38 |
39 | // ContextValidate validates this city based on context it is used
40 | func (m City) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
41 | return nil
42 | }
43 |
--------------------------------------------------------------------------------
/api/aplusContent_2020-11-01/aplus_content_2020_11_01_models/marketplace_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package aplus_content_2020_11_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // MarketplaceID The identifier for the marketplace where the A+ Content is published.
17 | //
18 | // swagger:model MarketplaceId
19 | type MarketplaceID string
20 |
21 | // Validate validates this marketplace Id
22 | func (m MarketplaceID) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MinLength("", "body", string(m), 1); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this marketplace Id based on context it is used
36 | func (m MarketplaceID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/easyShip_2022-03-23/easy_ship_2022_03_23_models/string.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package easy_ship_2022_03_23_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // String A string of up to 255 characters.
17 | //
18 | // swagger:model String
19 | type String string
20 |
21 | // Validate validates this string
22 | func (m String) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MinLength("", "body", string(m), 1); err != nil {
26 | return err
27 | }
28 |
29 | if err := validate.MaxLength("", "body", string(m), 255); err != nil {
30 | return err
31 | }
32 |
33 | if len(res) > 0 {
34 | return errors.CompositeValidationError(res...)
35 | }
36 | return nil
37 | }
38 |
39 | // ContextValidate validates this string based on context it is used
40 | func (m String) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
41 | return nil
42 | }
43 |
--------------------------------------------------------------------------------
/api/services/services_models/appointment_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package services_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // AppointmentID The appointment identifier.
17 | //
18 | // swagger:model AppointmentId
19 | type AppointmentID string
20 |
21 | // Validate validates this appointment Id
22 | func (m AppointmentID) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MinLength("", "body", string(m), 5); err != nil {
26 | return err
27 | }
28 |
29 | if err := validate.MaxLength("", "body", string(m), 100); err != nil {
30 | return err
31 | }
32 |
33 | if len(res) > 0 {
34 | return errors.CompositeValidationError(res...)
35 | }
36 | return nil
37 | }
38 |
39 | // ContextValidate validates this appointment Id based on context it is used
40 | func (m AppointmentID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
41 | return nil
42 | }
43 |
--------------------------------------------------------------------------------
/api/services/services_models/order_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package services_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // OrderID The Amazon-defined identifier for an order placed by the buyer, in 3-7-7 format.
17 | //
18 | // swagger:model OrderId
19 | type OrderID string
20 |
21 | // Validate validates this order Id
22 | func (m OrderID) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MinLength("", "body", string(m), 5); err != nil {
26 | return err
27 | }
28 |
29 | if err := validate.MaxLength("", "body", string(m), 20); err != nil {
30 | return err
31 | }
32 |
33 | if len(res) > 0 {
34 | return errors.CompositeValidationError(res...)
35 | }
36 | return nil
37 | }
38 |
39 | // ContextValidate validates this order Id based on context it is used
40 | func (m OrderID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
41 | return nil
42 | }
43 |
--------------------------------------------------------------------------------
/api/services/services_models/service_job_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package services_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // ServiceJobID Amazon identifier for the service job.
17 | //
18 | // swagger:model ServiceJobId
19 | type ServiceJobID string
20 |
21 | // Validate validates this service job Id
22 | func (m ServiceJobID) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MinLength("", "body", string(m), 1); err != nil {
26 | return err
27 | }
28 |
29 | if err := validate.MaxLength("", "body", string(m), 100); err != nil {
30 | return err
31 | }
32 |
33 | if len(res) > 0 {
34 | return errors.CompositeValidationError(res...)
35 | }
36 | return nil
37 | }
38 |
39 | // ContextValidate validates this service job Id based on context it is used
40 | func (m ServiceJobID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
41 | return nil
42 | }
43 |
--------------------------------------------------------------------------------
/api/shipping/shipping_models/country_code.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // CountryCode The two digit country code. In ISO 3166-1 alpha-2 format.
17 | //
18 | // swagger:model CountryCode
19 | type CountryCode string
20 |
21 | // Validate validates this country code
22 | func (m CountryCode) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MinLength("", "body", string(m), 2); err != nil {
26 | return err
27 | }
28 |
29 | if err := validate.MaxLength("", "body", string(m), 2); err != nil {
30 | return err
31 | }
32 |
33 | if len(res) > 0 {
34 | return errors.CompositeValidationError(res...)
35 | }
36 | return nil
37 | }
38 |
39 | // ContextValidate validates this country code based on context it is used
40 | func (m CountryCode) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
41 | return nil
42 | }
43 |
--------------------------------------------------------------------------------
/api/shipping/shipping_models/event_code.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // EventCode The event code of a shipment, such as Departed, Received, and ReadyForReceive.
17 | //
18 | // swagger:model EventCode
19 | type EventCode string
20 |
21 | // Validate validates this event code
22 | func (m EventCode) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MinLength("", "body", string(m), 1); err != nil {
26 | return err
27 | }
28 |
29 | if err := validate.MaxLength("", "body", string(m), 60); err != nil {
30 | return err
31 | }
32 |
33 | if len(res) > 0 {
34 | return errors.CompositeValidationError(res...)
35 | }
36 | return nil
37 | }
38 |
39 | // ContextValidate validates this event code based on context it is used
40 | func (m EventCode) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
41 | return nil
42 | }
43 |
--------------------------------------------------------------------------------
/api/supplySources_2020-07-01/supply_sources_2020_07_01_models/email_address.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package supply_sources_2020_07_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // EmailAddress The email address to which email messages are delivered.
17 | //
18 | // swagger:model EmailAddress
19 | type EmailAddress string
20 |
21 | // Validate validates this email address
22 | func (m EmailAddress) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.Pattern("", "body", string(m), `^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$`); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this email address based on context it is used
36 | func (m EmailAddress) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/supplySources_2020-07-01/supply_sources_2020_07_01_models/non_negative_integer.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package supply_sources_2020_07_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // NonNegativeInteger An unsigned integer that can be only positive or zero.
17 | //
18 | // swagger:model NonNegativeInteger
19 | type NonNegativeInteger int64
20 |
21 | // Validate validates this non negative integer
22 | func (m NonNegativeInteger) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MinimumInt("", "body", int64(m), 0, false); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this non negative integer based on context it is used
36 | func (m NonNegativeInteger) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/shipping/shipping_models/container_reference_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // ContainerReferenceID An identifier for the container. This must be unique within all the containers in the same shipment.
17 | //
18 | // swagger:model ContainerReferenceId
19 | type ContainerReferenceID string
20 |
21 | // Validate validates this container reference Id
22 | func (m ContainerReferenceID) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MaxLength("", "body", string(m), 40); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this container reference Id based on context it is used
36 | func (m ContainerReferenceID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/easyShip_2022-03-23/easy_ship_2022_03_23_models/order_item_serial_number.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package easy_ship_2022_03_23_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // OrderItemSerialNumber A serial number for an item associated with the `OrderItemId` value.
17 | //
18 | // swagger:model OrderItemSerialNumber
19 | type OrderItemSerialNumber string
20 |
21 | // Validate validates this order item serial number
22 | func (m OrderItemSerialNumber) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MaxLength("", "body", string(m), 255); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this order item serial number based on context it is used
36 | func (m OrderItemSerialNumber) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/productPricingV0/product_pricing_v0_models/http_uri.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package product_pricing_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // HTTPURI The URI associated with the individual APIs being called as part of the batch request.
17 | //
18 | // swagger:model HttpUri
19 | type HTTPURI string
20 |
21 | // Validate validates this Http Uri
22 | func (m HTTPURI) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MinLength("", "body", string(m), 6); err != nil {
26 | return err
27 | }
28 |
29 | if err := validate.MaxLength("", "body", string(m), 512); err != nil {
30 | return err
31 | }
32 |
33 | if len(res) > 0 {
34 | return errors.CompositeValidationError(res...)
35 | }
36 | return nil
37 | }
38 |
39 | // ContextValidate validates this Http Uri based on context it is used
40 | func (m HTTPURI) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
41 | return nil
42 | }
43 |
--------------------------------------------------------------------------------
/api/shipping/shipping_models/tracking_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // TrackingID The tracking id generated to each shipment. It contains a series of letters or digits or both.
17 | //
18 | // swagger:model TrackingId
19 | type TrackingID string
20 |
21 | // Validate validates this tracking Id
22 | func (m TrackingID) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MinLength("", "body", string(m), 1); err != nil {
26 | return err
27 | }
28 |
29 | if err := validate.MaxLength("", "body", string(m), 60); err != nil {
30 | return err
31 | }
32 |
33 | if len(res) > 0 {
34 | return errors.CompositeValidationError(res...)
35 | }
36 | return nil
37 | }
38 |
39 | // ContextValidate validates this tracking Id based on context it is used
40 | func (m TrackingID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
41 | return nil
42 | }
43 |
--------------------------------------------------------------------------------
/api/productPricing_2022-05-01/product_pricing_2022_05_01_models/http_uri.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package product_pricing_2022_05_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // HTTPURI The URI associated with the individual APIs being called as part of the batch request.
17 | //
18 | // swagger:model HttpUri
19 | type HTTPURI string
20 |
21 | // Validate validates this Http Uri
22 | func (m HTTPURI) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MinLength("", "body", string(m), 6); err != nil {
26 | return err
27 | }
28 |
29 | if err := validate.MaxLength("", "body", string(m), 512); err != nil {
30 | return err
31 | }
32 |
33 | if len(res) > 0 {
34 | return errors.CompositeValidationError(res...)
35 | }
36 | return nil
37 | }
38 |
39 | // ContextValidate validates this Http Uri based on context it is used
40 | func (m HTTPURI) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
41 | return nil
42 | }
43 |
--------------------------------------------------------------------------------
/api/aplusContent_2020-11-01/aplus_content_2020_11_01_models/page_token.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package aplus_content_2020_11_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // PageToken A page token that is returned when the results of the call exceed the page size. To get another page of results, call the operation again, passing in this value with the pageToken parameter.
17 | //
18 | // swagger:model PageToken
19 | type PageToken string
20 |
21 | // Validate validates this page token
22 | func (m PageToken) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MinLength("", "body", string(m), 1); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this page token based on context it is used
36 | func (m PageToken) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/shipping/shipping_models/postal_code.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // PostalCode The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation.
17 | //
18 | // swagger:model PostalCode
19 | type PostalCode string
20 |
21 | // Validate validates this postal code
22 | func (m PostalCode) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MinLength("", "body", string(m), 1); err != nil {
26 | return err
27 | }
28 |
29 | if err := validate.MaxLength("", "body", string(m), 20); err != nil {
30 | return err
31 | }
32 |
33 | if len(res) > 0 {
34 | return errors.CompositeValidationError(res...)
35 | }
36 | return nil
37 | }
38 |
39 | // ContextValidate validates this postal code based on context it is used
40 | func (m PostalCode) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
41 | return nil
42 | }
43 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/state_or_province_code.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // StateOrProvinceCode The state or province code. **Note.** Required in the Canada, US, and UK marketplaces. Also required for shipments originating from China.
17 | //
18 | // swagger:model StateOrProvinceCode
19 | type StateOrProvinceCode string
20 |
21 | // Validate validates this state or province code
22 | func (m StateOrProvinceCode) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MaxLength("", "body", string(m), 30); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this state or province code based on context it is used
36 | func (m StateOrProvinceCode) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/aplusContent_2020-11-01/aplus_content_2020_11_01_models/content_sub_type.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package aplus_content_2020_11_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // ContentSubType The A+ Content document subtype. This represents a special-purpose type of an A+ Content document. Not every A+ Content document type will have a subtype, and subtypes may change at any time.
17 | //
18 | // swagger:model ContentSubType
19 | type ContentSubType string
20 |
21 | // Validate validates this content sub type
22 | func (m ContentSubType) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MinLength("", "body", string(m), 1); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this content sub type based on context it is used
36 | func (m ContentSubType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/selling_partner/client_test.go:
--------------------------------------------------------------------------------
1 | package selling_partner_test
2 |
3 | import (
4 | "testing"
5 |
6 | "github.com/renabled/amzn-sp-api-go/selling_partner"
7 | "github.com/stretchr/testify/require"
8 | )
9 |
10 | func Test_Init(t *testing.T) {
11 | var cli *selling_partner.Client
12 | var config *selling_partner.Config
13 |
14 | config = selling_partner.NewConfig("", "", "", "", "", "", "na")
15 | cli = selling_partner.New(config)
16 | require.NotNil(t, cli)
17 |
18 | config = selling_partner.NewConfig("", "", "", "", "", "", "eu")
19 | cli = selling_partner.New(config)
20 | require.NotNil(t, cli)
21 |
22 | config = selling_partner.NewConfig("", "", "", "", "", "", "fe")
23 | cli = selling_partner.New(config)
24 | require.NotNil(t, cli)
25 | }
26 |
27 | func Test_MarketplaceToID(t *testing.T) {
28 | require.Equal(t, "A1RKKUPIHCS9HS", selling_partner.MarketplaceID("ES"))
29 | require.Equal(t, "A2NODRKZP88ZB9", selling_partner.MarketplaceID("SE"))
30 | require.Equal(t, "", selling_partner.MarketplaceID("IL"))
31 | }
32 |
33 | func Test_CountryCodeToMarketplace(t *testing.T) {
34 | require.Equal(t, "Spain", selling_partner.CountryCodeToMarketplace("ES").Country)
35 | require.Equal(t, "Sweden", selling_partner.CountryCodeToMarketplace("SE").Country)
36 | require.Empty(t, selling_partner.CountryCodeToMarketplace("IL"))
37 | }
38 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/custom_text_for_label.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // CustomTextForLabel Custom text to print on the label.
17 | //
18 | // Note: Custom text is only included on labels that are in ZPL format (ZPL203). FedEx does not support CustomTextForLabel.
19 | //
20 | // swagger:model CustomTextForLabel
21 | type CustomTextForLabel string
22 |
23 | // Validate validates this custom text for label
24 | func (m CustomTextForLabel) Validate(formats strfmt.Registry) error {
25 | var res []error
26 |
27 | if err := validate.MaxLength("", "body", string(m), 14); err != nil {
28 | return err
29 | }
30 |
31 | if len(res) > 0 {
32 | return errors.CompositeValidationError(res...)
33 | }
34 | return nil
35 | }
36 |
37 | // ContextValidate validates this custom text for label based on context it is used
38 | func (m CustomTextForLabel) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
39 | return nil
40 | }
41 |
--------------------------------------------------------------------------------
/api/aplusContent_2020-11-01/aplus_content_2020_11_01_models/content_reference_key.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package aplus_content_2020_11_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // ContentReferenceKey A unique reference key for the A+ Content document. A content reference key cannot form a permalink and may change in the future. A content reference key is not guaranteed to match any A+ content identifier.
17 | //
18 | // swagger:model ContentReferenceKey
19 | type ContentReferenceKey string
20 |
21 | // Validate validates this content reference key
22 | func (m ContentReferenceKey) Validate(formats strfmt.Registry) error {
23 | var res []error
24 |
25 | if err := validate.MinLength("", "body", string(m), 1); err != nil {
26 | return err
27 | }
28 |
29 | if len(res) > 0 {
30 | return errors.CompositeValidationError(res...)
31 | }
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this content reference key based on context it is used
36 | func (m ContentReferenceKey) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/api/aplusContent_2020-11-01/aplus_content_2020_11_01_models/language_tag.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package aplus_content_2020_11_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/errors"
12 | "github.com/go-openapi/strfmt"
13 | "github.com/go-openapi/validate"
14 | )
15 |
16 | // LanguageTag The IETF language tag. This only supports the primary language subtag with one secondary language subtag. The secondary language subtag is almost always a regional designation. This does not support additional subtags beyond the primary and secondary subtags.
17 | // **Pattern:** ^[a-z]{2,}-[A-Z0-9]{2,}$
18 | //
19 | // swagger:model LanguageTag
20 | type LanguageTag string
21 |
22 | // Validate validates this language tag
23 | func (m LanguageTag) Validate(formats strfmt.Registry) error {
24 | var res []error
25 |
26 | if err := validate.MinLength("", "body", string(m), 5); err != nil {
27 | return err
28 | }
29 |
30 | if len(res) > 0 {
31 | return errors.CompositeValidationError(res...)
32 | }
33 | return nil
34 | }
35 |
36 | // ContextValidate validates this language tag based on context it is used
37 | func (m LanguageTag) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
38 | return nil
39 | }
40 |
--------------------------------------------------------------------------------
/api/catalogItemsV0/catalog_items_v0_models/price.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package catalog_items_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // Price The price attribute of the item.
16 | //
17 | // swagger:model Price
18 | type Price struct {
19 |
20 | // The amount.
21 | Amount float64 `json:"Amount,omitempty"`
22 |
23 | // The currency code of the amount.
24 | CurrencyCode string `json:"CurrencyCode,omitempty"`
25 | }
26 |
27 | // Validate validates this price
28 | func (m *Price) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this price based on context it is used
33 | func (m *Price) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *Price) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *Price) UnmarshalBinary(b []byte) error {
47 | var res Price
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/ordersV0/orders_v0_models/money.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package orders_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // Money The monetary value of the order.
16 | //
17 | // swagger:model Money
18 | type Money struct {
19 |
20 | // The currency amount.
21 | Amount string `json:"Amount,omitempty"`
22 |
23 | // The three-digit currency code. In ISO 4217 format.
24 | CurrencyCode string `json:"CurrencyCode,omitempty"`
25 | }
26 |
27 | // Validate validates this money
28 | func (m *Money) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this money based on context it is used
33 | func (m *Money) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *Money) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *Money) UnmarshalBinary(b []byte) error {
47 | var res Money
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/fulfillmentOutbound_2020-07-01/fulfillment_outbound_2020_07_01_models/notification_email_list.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package fulfillment_outbound_2020_07_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 | "strconv"
11 |
12 | "github.com/go-openapi/errors"
13 | "github.com/go-openapi/strfmt"
14 | "github.com/go-openapi/validate"
15 | )
16 |
17 | // NotificationEmailList A list of email addresses that the seller provides that are used by Amazon to send ship-complete notifications to recipients on behalf of the seller.
18 | //
19 | // swagger:model NotificationEmailList
20 | type NotificationEmailList []string
21 |
22 | // Validate validates this notification email list
23 | func (m NotificationEmailList) Validate(formats strfmt.Registry) error {
24 | var res []error
25 |
26 | for i := 0; i < len(m); i++ {
27 |
28 | if err := validate.MaxLength(strconv.Itoa(i), "body", m[i], 64); err != nil {
29 | return err
30 | }
31 |
32 | }
33 |
34 | if len(res) > 0 {
35 | return errors.CompositeValidationError(res...)
36 | }
37 | return nil
38 | }
39 |
40 | // ContextValidate validates this notification email list based on context it is used
41 | func (m NotificationEmailList) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
42 | return nil
43 | }
44 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/date_range.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // DateRange Date Range for query the results.
16 | //
17 | // swagger:model DateRange
18 | type DateRange struct {
19 |
20 | // end date for query.
21 | EndDate string `json:"endDate,omitempty"`
22 |
23 | // Start Date for query .
24 | StartDate string `json:"startDate,omitempty"`
25 | }
26 |
27 | // Validate validates this date range
28 | func (m *DateRange) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this date range based on context it is used
33 | func (m *DateRange) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *DateRange) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *DateRange) UnmarshalBinary(b []byte) error {
47 | var res DateRange
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/productFeesV0/product_fees_v0_models/money_type.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package product_fees_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // MoneyType money type
16 | //
17 | // swagger:model MoneyType
18 | type MoneyType struct {
19 |
20 | // The monetary value.
21 | Amount float64 `json:"Amount,omitempty"`
22 |
23 | // The currency code in ISO 4217 format.
24 | CurrencyCode string `json:"CurrencyCode,omitempty"`
25 | }
26 |
27 | // Validate validates this money type
28 | func (m *MoneyType) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this money type based on context it is used
33 | func (m *MoneyType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *MoneyType) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *MoneyType) UnmarshalBinary(b []byte) error {
47 | var res MoneyType
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/shipmentInvoicingV0/shipment_invoicing_v0_models/money.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipment_invoicing_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // Money The currency type and amount.
16 | //
17 | // swagger:model Money
18 | type Money struct {
19 |
20 | // The currency amount.
21 | Amount string `json:"Amount,omitempty"`
22 |
23 | // Three-digit currency code in ISO 4217 format.
24 | CurrencyCode string `json:"CurrencyCode,omitempty"`
25 | }
26 |
27 | // Validate validates this money
28 | func (m *Money) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this money based on context it is used
33 | func (m *Money) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *Money) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *Money) UnmarshalBinary(b []byte) error {
47 | var res Money
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/productPricingV0/product_pricing_v0_models/money_type.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package product_pricing_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // MoneyType money type
16 | //
17 | // swagger:model MoneyType
18 | type MoneyType struct {
19 |
20 | // The monetary value.
21 | Amount float64 `json:"Amount,omitempty"`
22 |
23 | // The currency code in ISO 4217 format.
24 | CurrencyCode string `json:"CurrencyCode,omitempty"`
25 | }
26 |
27 | // Validate validates this money type
28 | func (m *MoneyType) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this money type based on context it is used
33 | func (m *MoneyType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *MoneyType) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *MoneyType) UnmarshalBinary(b []byte) error {
47 | var res MoneyType
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/geocode.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // Geocode Defines the latitude and longitude of the access point.
16 | //
17 | // swagger:model Geocode
18 | type Geocode struct {
19 |
20 | // The latitude of access point.
21 | Latitude string `json:"latitude,omitempty"`
22 |
23 | // The longitude of access point.
24 | Longitude string `json:"longitude,omitempty"`
25 | }
26 |
27 | // Validate validates this geocode
28 | func (m *Geocode) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this geocode based on context it is used
33 | func (m *Geocode) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *Geocode) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *Geocode) UnmarshalBinary(b []byte) error {
47 | var res Geocode
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/transparency_code.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | )
13 |
14 | // TransparencyCode The Transparency code associated with the item. The Transparency serial number that needs to be submitted can be determined by the following:
15 | //
16 | // **1D or 2D Barcode:** This has a **T** logo. Submit either the 29-character alpha-numeric identifier beginning with **AZ** or **ZA**, or the 38-character Serialized Global Trade Item Number (SGTIN).
17 | // **2D Barcode SN:** Submit the 7- to 20-character serial number barcode, which likely has the prefix **SN**. The serial number will be applied to the same side of the packaging as the GTIN (UPC/EAN/ISBN) barcode.
18 | // **QR code SN:** Submit the URL that the QR code generates.
19 | //
20 | // swagger:model TransparencyCode
21 | type TransparencyCode string
22 |
23 | // Validate validates this transparency code
24 | func (m TransparencyCode) Validate(formats strfmt.Registry) error {
25 | return nil
26 | }
27 |
28 | // ContextValidate validates this transparency code based on context it is used
29 | func (m TransparencyCode) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
30 | return nil
31 | }
32 |
--------------------------------------------------------------------------------
/api/catalogItemsV0/catalog_items_v0_models/creator_type.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package catalog_items_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // CreatorType The creator type attribute of an item.
16 | //
17 | // swagger:model CreatorType
18 | type CreatorType struct {
19 |
20 | // The role of the value.
21 | Role string `json:"Role,omitempty"`
22 |
23 | // The value of the attribute.
24 | Value string `json:"value,omitempty"`
25 | }
26 |
27 | // Validate validates this creator type
28 | func (m *CreatorType) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this creator type based on context it is used
33 | func (m *CreatorType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *CreatorType) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *CreatorType) UnmarshalBinary(b []byte) error {
47 | var res CreatorType
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/ordersV0/orders_v0_models/product_info_detail.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package orders_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // ProductInfoDetail Product information on the number of items.
16 | //
17 | // swagger:model ProductInfoDetail
18 | type ProductInfoDetail struct {
19 |
20 | // The total number of items that are included in the ASIN.
21 | NumberOfItems string `json:"NumberOfItems,omitempty"`
22 | }
23 |
24 | // Validate validates this product info detail
25 | func (m *ProductInfoDetail) Validate(formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
29 | // ContextValidate validates this product info detail based on context it is used
30 | func (m *ProductInfoDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
31 | return nil
32 | }
33 |
34 | // MarshalBinary interface implementation
35 | func (m *ProductInfoDetail) MarshalBinary() ([]byte, error) {
36 | if m == nil {
37 | return nil, nil
38 | }
39 | return swag.WriteJSON(m)
40 | }
41 |
42 | // UnmarshalBinary interface implementation
43 | func (m *ProductInfoDetail) UnmarshalBinary(b []byte) error {
44 | var res ProductInfoDetail
45 | if err := swag.ReadJSON(b, &res); err != nil {
46 | return err
47 | }
48 | *m = res
49 | return nil
50 | }
51 |
--------------------------------------------------------------------------------
/api/services/services_models/appointment_resource.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package services_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // AppointmentResource The resource that performs or performed appointment fulfillment.
16 | //
17 | // swagger:model AppointmentResource
18 | type AppointmentResource struct {
19 |
20 | // The resource identifier.
21 | ResourceID string `json:"resourceId,omitempty"`
22 | }
23 |
24 | // Validate validates this appointment resource
25 | func (m *AppointmentResource) Validate(formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
29 | // ContextValidate validates this appointment resource based on context it is used
30 | func (m *AppointmentResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
31 | return nil
32 | }
33 |
34 | // MarshalBinary interface implementation
35 | func (m *AppointmentResource) MarshalBinary() ([]byte, error) {
36 | if m == nil {
37 | return nil, nil
38 | }
39 | return swag.WriteJSON(m)
40 | }
41 |
42 | // UnmarshalBinary interface implementation
43 | func (m *AppointmentResource) UnmarshalBinary(b []byte) error {
44 | var res AppointmentResource
45 | if err := swag.ReadJSON(b, &res); err != nil {
46 | return err
47 | }
48 | *m = res
49 | return nil
50 | }
51 |
--------------------------------------------------------------------------------
/api/ordersV0/orders_v0_models/tax_classification.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package orders_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // TaxClassification The tax classification of the order.
16 | //
17 | // swagger:model TaxClassification
18 | type TaxClassification struct {
19 |
20 | // The type of tax.
21 | Name string `json:"Name,omitempty"`
22 |
23 | // The buyer's tax identifier.
24 | Value string `json:"Value,omitempty"`
25 | }
26 |
27 | // Validate validates this tax classification
28 | func (m *TaxClassification) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this tax classification based on context it is used
33 | func (m *TaxClassification) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *TaxClassification) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *TaxClassification) UnmarshalBinary(b []byte) error {
47 | var res TaxClassification
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/cancel_shipment_response.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // CancelShipmentResponse Response schema for the cancelShipment operation.
16 | //
17 | // swagger:model CancelShipmentResponse
18 | type CancelShipmentResponse struct {
19 |
20 | // payload
21 | Payload CancelShipmentResult `json:"payload,omitempty"`
22 | }
23 |
24 | // Validate validates this cancel shipment response
25 | func (m *CancelShipmentResponse) Validate(formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
29 | // ContextValidate validates this cancel shipment response based on context it is used
30 | func (m *CancelShipmentResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
31 | return nil
32 | }
33 |
34 | // MarshalBinary interface implementation
35 | func (m *CancelShipmentResponse) MarshalBinary() ([]byte, error) {
36 | if m == nil {
37 | return nil, nil
38 | }
39 | return swag.WriteJSON(m)
40 | }
41 |
42 | // UnmarshalBinary interface implementation
43 | func (m *CancelShipmentResponse) UnmarshalBinary(b []byte) error {
44 | var res CancelShipmentResponse
45 | if err := swag.ReadJSON(b, &res); err != nil {
46 | return err
47 | }
48 | *m = res
49 | return nil
50 | }
51 |
--------------------------------------------------------------------------------
/api/catalogItemsV0/catalog_items_v0_models/decimal_with_units.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package catalog_items_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // DecimalWithUnits The decimal value and unit.
16 | //
17 | // swagger:model DecimalWithUnits
18 | type DecimalWithUnits struct {
19 |
20 | // The unit of the decimal value.
21 | Units string `json:"Units,omitempty"`
22 |
23 | // The decimal value.
24 | Value float64 `json:"value,omitempty"`
25 | }
26 |
27 | // Validate validates this decimal with units
28 | func (m *DecimalWithUnits) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this decimal with units based on context it is used
33 | func (m *DecimalWithUnits) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *DecimalWithUnits) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *DecimalWithUnits) UnmarshalBinary(b []byte) error {
47 | var res DecimalWithUnits
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/catalogItems_2022-04-01/catalog_items_2022_04_01_models/dimension.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package catalog_items_2022_04_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // Dimension Individual dimension value of an Amazon catalog item or item package.
16 | //
17 | // swagger:model Dimension
18 | type Dimension struct {
19 |
20 | // Measurement unit of the dimension value.
21 | Unit string `json:"unit,omitempty"`
22 |
23 | // Numeric dimension value.
24 | Value float64 `json:"value,omitempty"`
25 | }
26 |
27 | // Validate validates this dimension
28 | func (m *Dimension) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this dimension based on context it is used
33 | func (m *Dimension) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *Dimension) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *Dimension) UnmarshalBinary(b []byte) error {
47 | var res Dimension
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/vendorOrders/vendor_orders_models/transaction_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_orders_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // TransactionID transaction Id
16 | //
17 | // swagger:model TransactionId
18 | type TransactionID struct {
19 |
20 | // GUID assigned by Amazon to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction.
21 | TransactionID string `json:"transactionId,omitempty"`
22 | }
23 |
24 | // Validate validates this transaction Id
25 | func (m *TransactionID) Validate(formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
29 | // ContextValidate validates this transaction Id based on context it is used
30 | func (m *TransactionID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
31 | return nil
32 | }
33 |
34 | // MarshalBinary interface implementation
35 | func (m *TransactionID) MarshalBinary() ([]byte, error) {
36 | if m == nil {
37 | return nil, nil
38 | }
39 | return swag.WriteJSON(m)
40 | }
41 |
42 | // UnmarshalBinary interface implementation
43 | func (m *TransactionID) UnmarshalBinary(b []byte) error {
44 | var res TransactionID
45 | if err := swag.ReadJSON(b, &res); err != nil {
46 | return err
47 | }
48 | *m = res
49 | return nil
50 | }
51 |
--------------------------------------------------------------------------------
/api/InvoicesApiModel_2024-06-19/invoices_api_model_2024_06_19_models/export_invoices_response.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package invoices_api_model_2024_06_19_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // ExportInvoicesResponse Success.
16 | //
17 | // swagger:model ExportInvoicesResponse
18 | type ExportInvoicesResponse struct {
19 |
20 | // The export identifier.
21 | ExportID string `json:"exportId,omitempty"`
22 | }
23 |
24 | // Validate validates this export invoices response
25 | func (m *ExportInvoicesResponse) Validate(formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
29 | // ContextValidate validates this export invoices response based on context it is used
30 | func (m *ExportInvoicesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
31 | return nil
32 | }
33 |
34 | // MarshalBinary interface implementation
35 | func (m *ExportInvoicesResponse) MarshalBinary() ([]byte, error) {
36 | if m == nil {
37 | return nil, nil
38 | }
39 | return swag.WriteJSON(m)
40 | }
41 |
42 | // UnmarshalBinary interface implementation
43 | func (m *ExportInvoicesResponse) UnmarshalBinary(b []byte) error {
44 | var res ExportInvoicesResponse
45 | if err := swag.ReadJSON(b, &res); err != nil {
46 | return err
47 | }
48 | *m = res
49 | return nil
50 | }
51 |
--------------------------------------------------------------------------------
/api/fulfillmentInboundV0/fulfillment_inbound_v0_models/label_download_url.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package fulfillment_inbound_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // LabelDownloadURL Download URL for a label
16 | //
17 | // swagger:model LabelDownloadURL
18 | type LabelDownloadURL struct {
19 |
20 | // URL to download the label for the package. Note: The URL will only be valid for 15 seconds
21 | DownloadURL string `json:"DownloadURL,omitempty"`
22 | }
23 |
24 | // Validate validates this label download URL
25 | func (m *LabelDownloadURL) Validate(formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
29 | // ContextValidate validates this label download URL based on context it is used
30 | func (m *LabelDownloadURL) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
31 | return nil
32 | }
33 |
34 | // MarshalBinary interface implementation
35 | func (m *LabelDownloadURL) MarshalBinary() ([]byte, error) {
36 | if m == nil {
37 | return nil, nil
38 | }
39 | return swag.WriteJSON(m)
40 | }
41 |
42 | // UnmarshalBinary interface implementation
43 | func (m *LabelDownloadURL) UnmarshalBinary(b []byte) error {
44 | var res LabelDownloadURL
45 | if err := swag.ReadJSON(b, &res); err != nil {
46 | return err
47 | }
48 | *m = res
49 | return nil
50 | }
51 |
--------------------------------------------------------------------------------
/api/vendorInvoices/vendor_invoices_models/transaction_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_invoices_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // TransactionID Response containing the transaction ID.
16 | //
17 | // swagger:model TransactionId
18 | type TransactionID struct {
19 |
20 | // GUID to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction.
21 | TransactionID string `json:"transactionId,omitempty"`
22 | }
23 |
24 | // Validate validates this transaction Id
25 | func (m *TransactionID) Validate(formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
29 | // ContextValidate validates this transaction Id based on context it is used
30 | func (m *TransactionID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
31 | return nil
32 | }
33 |
34 | // MarshalBinary interface implementation
35 | func (m *TransactionID) MarshalBinary() ([]byte, error) {
36 | if m == nil {
37 | return nil, nil
38 | }
39 | return swag.WriteJSON(m)
40 | }
41 |
42 | // UnmarshalBinary interface implementation
43 | func (m *TransactionID) UnmarshalBinary(b []byte) error {
44 | var res TransactionID
45 | if err := swag.ReadJSON(b, &res); err != nil {
46 | return err
47 | }
48 | *m = res
49 | return nil
50 | }
51 |
--------------------------------------------------------------------------------
/api/productPricing_2022-05-01/product_pricing_2022_05_01_models/money_type.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package product_pricing_2022_05_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // MoneyType Currency type and monetary value. Schema for demonstrating pricing info.
16 | //
17 | // swagger:model MoneyType
18 | type MoneyType struct {
19 |
20 | // The monetary value.
21 | Amount float64 `json:"amount,omitempty"`
22 |
23 | // The currency code in ISO 4217 format.
24 | CurrencyCode string `json:"currencyCode,omitempty"`
25 | }
26 |
27 | // Validate validates this money type
28 | func (m *MoneyType) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this money type based on context it is used
33 | func (m *MoneyType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *MoneyType) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *MoneyType) UnmarshalBinary(b []byte) error {
47 | var res MoneyType
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/vendorOrders/vendor_orders_models/pagination.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_orders_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // Pagination pagination
16 | //
17 | // swagger:model Pagination
18 | type Pagination struct {
19 |
20 | // A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more purchase order items to return.
21 | NextToken string `json:"nextToken,omitempty"`
22 | }
23 |
24 | // Validate validates this pagination
25 | func (m *Pagination) Validate(formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
29 | // ContextValidate validates this pagination based on context it is used
30 | func (m *Pagination) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
31 | return nil
32 | }
33 |
34 | // MarshalBinary interface implementation
35 | func (m *Pagination) MarshalBinary() ([]byte, error) {
36 | if m == nil {
37 | return nil, nil
38 | }
39 | return swag.WriteJSON(m)
40 | }
41 |
42 | // UnmarshalBinary interface implementation
43 | func (m *Pagination) UnmarshalBinary(b []byte) error {
44 | var res Pagination
45 | if err := swag.ReadJSON(b, &res); err != nil {
46 | return err
47 | }
48 | *m = res
49 | return nil
50 | }
51 |
--------------------------------------------------------------------------------
/api/shipmentInvoicingV0/shipment_invoicing_v0_models/tax_classification.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipment_invoicing_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // TaxClassification The tax classification for the entity.
16 | //
17 | // swagger:model TaxClassification
18 | type TaxClassification struct {
19 |
20 | // The type of tax.
21 | Name string `json:"Name,omitempty"`
22 |
23 | // The entity's tax identifier.
24 | Value string `json:"Value,omitempty"`
25 | }
26 |
27 | // Validate validates this tax classification
28 | func (m *TaxClassification) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this tax classification based on context it is used
33 | func (m *TaxClassification) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *TaxClassification) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *TaxClassification) UnmarshalBinary(b []byte) error {
47 | var res TaxClassification
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/ordersV0/orders_v0_models/open_time_interval.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package orders_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // OpenTimeInterval The time when the business opens or closes.
16 | //
17 | // swagger:model OpenTimeInterval
18 | type OpenTimeInterval struct {
19 |
20 | // The hour when the business opens or closes.
21 | Hour int64 `json:"Hour,omitempty"`
22 |
23 | // The minute when the business opens or closes.
24 | Minute int64 `json:"Minute,omitempty"`
25 | }
26 |
27 | // Validate validates this open time interval
28 | func (m *OpenTimeInterval) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this open time interval based on context it is used
33 | func (m *OpenTimeInterval) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *OpenTimeInterval) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *OpenTimeInterval) UnmarshalBinary(b []byte) error {
47 | var res OpenTimeInterval
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/productPricingV0/product_pricing_v0_models/ships_from_type.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package product_pricing_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // ShipsFromType The state and country from where the item is shipped.
16 | //
17 | // swagger:model ShipsFromType
18 | type ShipsFromType struct {
19 |
20 | // The country from where the item is shipped.
21 | Country string `json:"Country,omitempty"`
22 |
23 | // The state from where the item is shipped.
24 | State string `json:"State,omitempty"`
25 | }
26 |
27 | // Validate validates this ships from type
28 | func (m *ShipsFromType) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this ships from type based on context it is used
33 | func (m *ShipsFromType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *ShipsFromType) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *ShipsFromType) UnmarshalBinary(b []byte) error {
47 | var res ShipsFromType
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/vendorShipments/vendor_shipments_models/location.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_shipments_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // Location Location identifier.
16 | //
17 | // swagger:model Location
18 | type Location struct {
19 |
20 | // The two digit country code. In ISO 3166-1 alpha-2 format.
21 | CountryCode string `json:"countryCode,omitempty"`
22 |
23 | // Location code.
24 | LocationCode string `json:"locationCode,omitempty"`
25 |
26 | // Type of location identification.
27 | Type string `json:"type,omitempty"`
28 | }
29 |
30 | // Validate validates this location
31 | func (m *Location) Validate(formats strfmt.Registry) error {
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this location based on context it is used
36 | func (m *Location) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
40 | // MarshalBinary interface implementation
41 | func (m *Location) MarshalBinary() ([]byte, error) {
42 | if m == nil {
43 | return nil, nil
44 | }
45 | return swag.WriteJSON(m)
46 | }
47 |
48 | // UnmarshalBinary interface implementation
49 | func (m *Location) UnmarshalBinary(b []byte) error {
50 | var res Location
51 | if err := swag.ReadJSON(b, &res); err != nil {
52 | return err
53 | }
54 | *m = res
55 | return nil
56 | }
57 |
--------------------------------------------------------------------------------
/api/shipmentInvoicingV0/shipment_invoicing_v0_models/blob.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipment_invoicing_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // Blob Shipment invoice document content.
16 | //
17 | // swagger:model Blob
18 | type Blob strfmt.Base64
19 |
20 | // UnmarshalJSON sets a Blob value from JSON input
21 | func (m *Blob) UnmarshalJSON(b []byte) error {
22 | return ((*strfmt.Base64)(m)).UnmarshalJSON(b)
23 | }
24 |
25 | // MarshalJSON retrieves a Blob value as JSON output
26 | func (m Blob) MarshalJSON() ([]byte, error) {
27 | return (strfmt.Base64(m)).MarshalJSON()
28 | }
29 |
30 | // Validate validates this blob
31 | func (m Blob) Validate(formats strfmt.Registry) error {
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this blob based on context it is used
36 | func (m Blob) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
40 | // MarshalBinary interface implementation
41 | func (m *Blob) MarshalBinary() ([]byte, error) {
42 | if m == nil {
43 | return nil, nil
44 | }
45 | return swag.WriteJSON(m)
46 | }
47 |
48 | // UnmarshalBinary interface implementation
49 | func (m *Blob) UnmarshalBinary(b []byte) error {
50 | var res Blob
51 | if err := swag.ReadJSON(b, &res); err != nil {
52 | return err
53 | }
54 | *m = res
55 | return nil
56 | }
57 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/time_of_day.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // TimeOfDay Denotes time of the day, used for defining opening or closing time of access points
16 | //
17 | // swagger:model TimeOfDay
18 | type TimeOfDay struct {
19 |
20 | // hour of day
21 | HourOfDay int64 `json:"hourOfDay,omitempty"`
22 |
23 | // minute of hour
24 | MinuteOfHour int64 `json:"minuteOfHour,omitempty"`
25 |
26 | // second of minute
27 | SecondOfMinute int64 `json:"secondOfMinute,omitempty"`
28 | }
29 |
30 | // Validate validates this time of day
31 | func (m *TimeOfDay) Validate(formats strfmt.Registry) error {
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this time of day based on context it is used
36 | func (m *TimeOfDay) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
40 | // MarshalBinary interface implementation
41 | func (m *TimeOfDay) MarshalBinary() ([]byte, error) {
42 | if m == nil {
43 | return nil, nil
44 | }
45 | return swag.WriteJSON(m)
46 | }
47 |
48 | // UnmarshalBinary interface implementation
49 | func (m *TimeOfDay) UnmarshalBinary(b []byte) error {
50 | var res TimeOfDay
51 | if err := swag.ReadJSON(b, &res); err != nil {
52 | return err
53 | }
54 | *m = res
55 | return nil
56 | }
57 |
--------------------------------------------------------------------------------
/api/vendorDirectFulfillmentOrdersV1/vendor_direct_fulfillment_orders_v1_models/gift_details.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_direct_fulfillment_orders_v1_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // GiftDetails Gift details for the item.
16 | //
17 | // swagger:model GiftDetails
18 | type GiftDetails struct {
19 |
20 | // Gift message to be printed in shipment.
21 | GiftMessage string `json:"giftMessage,omitempty"`
22 |
23 | // Gift wrap identifier for the gift wrapping, if any.
24 | GiftWrapID string `json:"giftWrapId,omitempty"`
25 | }
26 |
27 | // Validate validates this gift details
28 | func (m *GiftDetails) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this gift details based on context it is used
33 | func (m *GiftDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *GiftDetails) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *GiftDetails) UnmarshalBinary(b []byte) error {
47 | var res GiftDetails
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/get_additional_inputs_response.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // GetAdditionalInputsResponse The response schema for the getAdditionalInputs operation.
16 | //
17 | // swagger:model GetAdditionalInputsResponse
18 | type GetAdditionalInputsResponse struct {
19 |
20 | // payload
21 | Payload GetAdditionalInputsResult `json:"payload,omitempty"`
22 | }
23 |
24 | // Validate validates this get additional inputs response
25 | func (m *GetAdditionalInputsResponse) Validate(formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
29 | // ContextValidate validates this get additional inputs response based on context it is used
30 | func (m *GetAdditionalInputsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
31 | return nil
32 | }
33 |
34 | // MarshalBinary interface implementation
35 | func (m *GetAdditionalInputsResponse) MarshalBinary() ([]byte, error) {
36 | if m == nil {
37 | return nil, nil
38 | }
39 | return swag.WriteJSON(m)
40 | }
41 |
42 | // UnmarshalBinary interface implementation
43 | func (m *GetAdditionalInputsResponse) UnmarshalBinary(b []byte) error {
44 | var res GetAdditionalInputsResponse
45 | if err := swag.ReadJSON(b, &res); err != nil {
46 | return err
47 | }
48 | *m = res
49 | return nil
50 | }
51 |
--------------------------------------------------------------------------------
/api/vendorShipments/vendor_shipments_models/container_sequence_numbers.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_shipments_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // ContainerSequenceNumbers Container sequence numbers that are involved in this shipment.
16 | //
17 | // swagger:model ContainerSequenceNumbers
18 | type ContainerSequenceNumbers struct {
19 |
20 | // A list of containers shipped
21 | ContainerSequenceNumber string `json:"containerSequenceNumber,omitempty"`
22 | }
23 |
24 | // Validate validates this container sequence numbers
25 | func (m *ContainerSequenceNumbers) Validate(formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
29 | // ContextValidate validates this container sequence numbers based on context it is used
30 | func (m *ContainerSequenceNumbers) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
31 | return nil
32 | }
33 |
34 | // MarshalBinary interface implementation
35 | func (m *ContainerSequenceNumbers) MarshalBinary() ([]byte, error) {
36 | if m == nil {
37 | return nil, nil
38 | }
39 | return swag.WriteJSON(m)
40 | }
41 |
42 | // UnmarshalBinary interface implementation
43 | func (m *ContainerSequenceNumbers) UnmarshalBinary(b []byte) error {
44 | var res ContainerSequenceNumbers
45 | if err := swag.ReadJSON(b, &res); err != nil {
46 | return err
47 | }
48 | *m = res
49 | return nil
50 | }
51 |
--------------------------------------------------------------------------------
/api/vendorShipments/vendor_shipments_models/pagination.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_shipments_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // Pagination The pagination elements required to retrieve the remaining data.
16 | //
17 | // swagger:model Pagination
18 | type Pagination struct {
19 |
20 | // A generated string used to pass information to your next request. If NextToken is returned, pass the value of NextToken to the next request. If NextToken is not returned, there are no more shipment items to return.
21 | NextToken string `json:"nextToken,omitempty"`
22 | }
23 |
24 | // Validate validates this pagination
25 | func (m *Pagination) Validate(formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
29 | // ContextValidate validates this pagination based on context it is used
30 | func (m *Pagination) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
31 | return nil
32 | }
33 |
34 | // MarshalBinary interface implementation
35 | func (m *Pagination) MarshalBinary() ([]byte, error) {
36 | if m == nil {
37 | return nil, nil
38 | }
39 | return swag.WriteJSON(m)
40 | }
41 |
42 | // UnmarshalBinary interface implementation
43 | func (m *Pagination) UnmarshalBinary(b []byte) error {
44 | var res Pagination
45 | if err := swag.ReadJSON(b, &res); err != nil {
46 | return err
47 | }
48 | *m = res
49 | return nil
50 | }
51 |
--------------------------------------------------------------------------------
/api/InvoicesApiModel_2024-06-19/invoices_api_model_2024_06_19_models/attribute_option.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package invoices_api_model_2024_06_19_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // AttributeOption The definition of the attribute option.
16 | //
17 | // swagger:model AttributeOption
18 | type AttributeOption struct {
19 |
20 | // The description of the attribute value.
21 | Description string `json:"description,omitempty"`
22 |
23 | // The possible values for the attribute option.
24 | Value string `json:"value,omitempty"`
25 | }
26 |
27 | // Validate validates this attribute option
28 | func (m *AttributeOption) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this attribute option based on context it is used
33 | func (m *AttributeOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *AttributeOption) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *AttributeOption) UnmarshalBinary(b []byte) error {
47 | var res AttributeOption
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/catalogItemsV0/catalog_items_v0_models/language_type.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package catalog_items_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // LanguageType The language type attribute of an item.
16 | //
17 | // swagger:model LanguageType
18 | type LanguageType struct {
19 |
20 | // The audio format attribute of the item.
21 | AudioFormat string `json:"AudioFormat,omitempty"`
22 |
23 | // The name attribute of the item.
24 | Name string `json:"Name,omitempty"`
25 |
26 | // The type attribute of the item.
27 | Type string `json:"Type,omitempty"`
28 | }
29 |
30 | // Validate validates this language type
31 | func (m *LanguageType) Validate(formats strfmt.Registry) error {
32 | return nil
33 | }
34 |
35 | // ContextValidate validates this language type based on context it is used
36 | func (m *LanguageType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
37 | return nil
38 | }
39 |
40 | // MarshalBinary interface implementation
41 | func (m *LanguageType) MarshalBinary() ([]byte, error) {
42 | if m == nil {
43 | return nil, nil
44 | }
45 | return swag.WriteJSON(m)
46 | }
47 |
48 | // UnmarshalBinary interface implementation
49 | func (m *LanguageType) UnmarshalBinary(b []byte) error {
50 | var res LanguageType
51 | if err := swag.ReadJSON(b, &res); err != nil {
52 | return err
53 | }
54 | *m = res
55 | return nil
56 | }
57 |
--------------------------------------------------------------------------------
/api/vendorDirectFulfillmentOrders_2021-12-28/vendor_direct_fulfillment_orders_2021_12_28_models/gift_details.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_direct_fulfillment_orders_2021_12_28_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // GiftDetails Gift details for the item.
16 | //
17 | // swagger:model GiftDetails
18 | type GiftDetails struct {
19 |
20 | // Gift message to be printed in shipment.
21 | GiftMessage string `json:"giftMessage,omitempty"`
22 |
23 | // Gift wrap identifier for the gift wrapping, if any.
24 | GiftWrapID string `json:"giftWrapId,omitempty"`
25 | }
26 |
27 | // Validate validates this gift details
28 | func (m *GiftDetails) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this gift details based on context it is used
33 | func (m *GiftDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *GiftDetails) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *GiftDetails) UnmarshalBinary(b []byte) error {
47 | var res GiftDetails
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/ordersV0/orders_v0_models/buyer_customized_info_detail.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package orders_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // BuyerCustomizedInfoDetail Buyer information for custom orders from the Amazon Custom program.
16 | //
17 | // swagger:model BuyerCustomizedInfoDetail
18 | type BuyerCustomizedInfoDetail struct {
19 |
20 | // The location of a ZIP file containing Amazon Custom data.
21 | CustomizedURL string `json:"CustomizedURL,omitempty"`
22 | }
23 |
24 | // Validate validates this buyer customized info detail
25 | func (m *BuyerCustomizedInfoDetail) Validate(formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
29 | // ContextValidate validates this buyer customized info detail based on context it is used
30 | func (m *BuyerCustomizedInfoDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
31 | return nil
32 | }
33 |
34 | // MarshalBinary interface implementation
35 | func (m *BuyerCustomizedInfoDetail) MarshalBinary() ([]byte, error) {
36 | if m == nil {
37 | return nil, nil
38 | }
39 | return swag.WriteJSON(m)
40 | }
41 |
42 | // UnmarshalBinary interface implementation
43 | func (m *BuyerCustomizedInfoDetail) UnmarshalBinary(b []byte) error {
44 | var res BuyerCustomizedInfoDetail
45 | if err := swag.ReadJSON(b, &res); err != nil {
46 | return err
47 | }
48 | *m = res
49 | return nil
50 | }
51 |
--------------------------------------------------------------------------------
/api/shippingV2/shipping_v2_models/unlink_carrier_account_response.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package shipping_v2_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // UnlinkCarrierAccountResponse The Response for the UnlinkCarrierAccountResponse operation.
16 | //
17 | // swagger:model UnlinkCarrierAccountResponse
18 | type UnlinkCarrierAccountResponse struct {
19 |
20 | // Is Carrier unlinked from Merchant
21 | IsUnlinked bool `json:"isUnlinked,omitempty"`
22 | }
23 |
24 | // Validate validates this unlink carrier account response
25 | func (m *UnlinkCarrierAccountResponse) Validate(formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
29 | // ContextValidate validates this unlink carrier account response based on context it is used
30 | func (m *UnlinkCarrierAccountResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
31 | return nil
32 | }
33 |
34 | // MarshalBinary interface implementation
35 | func (m *UnlinkCarrierAccountResponse) MarshalBinary() ([]byte, error) {
36 | if m == nil {
37 | return nil, nil
38 | }
39 | return swag.WriteJSON(m)
40 | }
41 |
42 | // UnmarshalBinary interface implementation
43 | func (m *UnlinkCarrierAccountResponse) UnmarshalBinary(b []byte) error {
44 | var res UnlinkCarrierAccountResponse
45 | if err := swag.ReadJSON(b, &res); err != nil {
46 | return err
47 | }
48 | *m = res
49 | return nil
50 | }
51 |
--------------------------------------------------------------------------------
/api/supplySources_2020-07-01/supply_sources_2020_07_01_models/operating_hour.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package supply_sources_2020_07_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // OperatingHour The operating hour schema
16 | //
17 | // swagger:model OperatingHour
18 | type OperatingHour struct {
19 |
20 | // The closing time, ISO 8601 formatted timestamp without date, HH:mm.
21 | EndTime string `json:"endTime,omitempty"`
22 |
23 | // The opening time, ISO 8601 formatted timestamp without date, HH:mm.
24 | StartTime string `json:"startTime,omitempty"`
25 | }
26 |
27 | // Validate validates this operating hour
28 | func (m *OperatingHour) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this operating hour based on context it is used
33 | func (m *OperatingHour) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *OperatingHour) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *OperatingHour) UnmarshalBinary(b []byte) error {
47 | var res OperatingHour
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/fulfillmentOutbound_2020-07-01/fulfillment_outbound_2020_07_01_models/delivery_message.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package fulfillment_outbound_2020_07_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // DeliveryMessage Localized messaging for a delivery offering.
16 | //
17 | // swagger:model DeliveryMessage
18 | type DeliveryMessage struct {
19 |
20 | // The locale for the message (for example, en_US).
21 | Locale string `json:"locale,omitempty"`
22 |
23 | // The message content for a delivery offering.
24 | Text string `json:"text,omitempty"`
25 | }
26 |
27 | // Validate validates this delivery message
28 | func (m *DeliveryMessage) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this delivery message based on context it is used
33 | func (m *DeliveryMessage) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *DeliveryMessage) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *DeliveryMessage) UnmarshalBinary(b []byte) error {
47 | var res DeliveryMessage
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/vendorDirectFulfillmentOrdersV1/vendor_direct_fulfillment_orders_v1_models/transaction_id.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package vendor_direct_fulfillment_orders_v1_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // TransactionID Response that contains the transaction ID.
16 | //
17 | // swagger:model TransactionId
18 | type TransactionID struct {
19 |
20 | // GUID assigned by Amazon to identify this transaction. This value can be used with the Transaction Status API to return the status of this transaction.
21 | TransactionID string `json:"transactionId,omitempty"`
22 | }
23 |
24 | // Validate validates this transaction Id
25 | func (m *TransactionID) Validate(formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
29 | // ContextValidate validates this transaction Id based on context it is used
30 | func (m *TransactionID) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
31 | return nil
32 | }
33 |
34 | // MarshalBinary interface implementation
35 | func (m *TransactionID) MarshalBinary() ([]byte, error) {
36 | if m == nil {
37 | return nil, nil
38 | }
39 | return swag.WriteJSON(m)
40 | }
41 |
42 | // UnmarshalBinary interface implementation
43 | func (m *TransactionID) UnmarshalBinary(b []byte) error {
44 | var res TransactionID
45 | if err := swag.ReadJSON(b, &res); err != nil {
46 | return err
47 | }
48 | *m = res
49 | return nil
50 | }
51 |
--------------------------------------------------------------------------------
/api/fulfillmentOutbound_2020-07-01/fulfillment_outbound_2020_07_01_models/locker_details.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package fulfillment_outbound_2020_07_01_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // LockerDetails The locker details, which you can use to access the locker delivery box.
16 | //
17 | // swagger:model LockerDetails
18 | type LockerDetails struct {
19 |
20 | // Indicates the locker access code
21 | LockerAccessCode string `json:"lockerAccessCode,omitempty"`
22 |
23 | // Indicates the locker number
24 | LockerNumber string `json:"lockerNumber,omitempty"`
25 | }
26 |
27 | // Validate validates this locker details
28 | func (m *LockerDetails) Validate(formats strfmt.Registry) error {
29 | return nil
30 | }
31 |
32 | // ContextValidate validates this locker details based on context it is used
33 | func (m *LockerDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
34 | return nil
35 | }
36 |
37 | // MarshalBinary interface implementation
38 | func (m *LockerDetails) MarshalBinary() ([]byte, error) {
39 | if m == nil {
40 | return nil, nil
41 | }
42 | return swag.WriteJSON(m)
43 | }
44 |
45 | // UnmarshalBinary interface implementation
46 | func (m *LockerDetails) UnmarshalBinary(b []byte) error {
47 | var res LockerDetails
48 | if err := swag.ReadJSON(b, &res); err != nil {
49 | return err
50 | }
51 | *m = res
52 | return nil
53 | }
54 |
--------------------------------------------------------------------------------
/api/merchantFulfillmentV0/merchant_fulfillment_v0_models/label_format_option_request.go:
--------------------------------------------------------------------------------
1 | // Code generated by go-swagger; DO NOT EDIT.
2 |
3 | package merchant_fulfillment_v0_models
4 |
5 | // This file was generated by the swagger tool.
6 | // Editing this file might prove futile when you re-run the swagger generate command
7 |
8 | import (
9 | "context"
10 |
11 | "github.com/go-openapi/strfmt"
12 | "github.com/go-openapi/swag"
13 | )
14 |
15 | // LabelFormatOptionRequest Whether to include a packing slip.
16 | //
17 | // swagger:model LabelFormatOptionRequest
18 | type LabelFormatOptionRequest struct {
19 |
20 | // When true, include a packing slip with the label.
21 | IncludePackingSlipWithLabel bool `json:"IncludePackingSlipWithLabel,omitempty"`
22 | }
23 |
24 | // Validate validates this label format option request
25 | func (m *LabelFormatOptionRequest) Validate(formats strfmt.Registry) error {
26 | return nil
27 | }
28 |
29 | // ContextValidate validates this label format option request based on context it is used
30 | func (m *LabelFormatOptionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
31 | return nil
32 | }
33 |
34 | // MarshalBinary interface implementation
35 | func (m *LabelFormatOptionRequest) MarshalBinary() ([]byte, error) {
36 | if m == nil {
37 | return nil, nil
38 | }
39 | return swag.WriteJSON(m)
40 | }
41 |
42 | // UnmarshalBinary interface implementation
43 | func (m *LabelFormatOptionRequest) UnmarshalBinary(b []byte) error {
44 | var res LabelFormatOptionRequest
45 | if err := swag.ReadJSON(b, &res); err != nil {
46 | return err
47 | }
48 | *m = res
49 | return nil
50 | }
51 |
--------------------------------------------------------------------------------