Developers
  • Introduction
  • Integration
    • Spring Boot Starter
      • Overview
      • Setup your project
      • Product search
      • Invoicing
      • Merchant side invoicing
      • Merchant side purchase control
      • Loyalty cards
      • Home delivery
      • Marketing & Offers
    • Custom Integration
      • Overview
      • Connection node
        • Get node version endpoint
        • Get node health endpoint
      • Product search
        • Pageable product list search endpoint
        • Product bacrode search endpoint
        • Product name search endpoint
        • Product category search endpoint
      • Invoicing
        • Receive invoice endpoint
      • Merchant side invoicing
        • Create receipt endpoint
        • Confirm receipt payment endpoint
      • Merchant side purchase control
        • Receive purchase check endpoint
        • Send purchase check result
        • Ask for purchase check data resend
      • Loyalty cards
        • Loyalty card registration endpoint
        • Loyalty card bonus endpoint
      • Home delivery
        • Receive order endpoint
        • Receive order update endpoint
        • Update order status
        • Find order by id
        • Find order by invoice id
        • Find order by institution invoice id
      • Marketing & Offers
        • Find offers endpoint
  • General
    • Data object descriptions
      • HealthStatus
      • DefaultOffer
      • DiscountOffer
      • ProductRelatedOffer
      • OfferType
      • OfferClassification
      • Order
      • OrderStatusChangeLog
      • ColorTheme
      • LoyaltyCard
      • DefaultLoyaltyCard
      • BonusLoyaltyCard
      • LoyaltyCardType
      • LoyaltyCardValidationType
      • Shipment
      • ShipmentStatus
      • Category
      • Addition
      • Address
      • Currency
      • BuyerParty
      • Campaign
      • CampaignCode
      • ClientCard
      • Information
      • Inspection
      • Invoice
      • LangCode
      • Price
      • Product
      • Quantity
      • SellerParty
      • Total
      • TotalVAT
      • Translatable
      • Receipt
      • ReceiptProduct
      • ReceiptLoyaltyCard
      • ReceiptCategory
      • VAT
    • Request & Responses
      • NodeHealthResponse
      • NodeVersionResponse
      • OfferSearchRequest
      • PickupOrderStatusChangeRequest
      • LoyaltyCardBonusResponse
      • LoyaltyCardBonusRequest
      • LoyaltyCardRegistrationResponse
      • LoyaltyCardRegistrationRequest
      • PurchaseControlCheckResendRequest
      • PurchaseControlResult
      • PurchaseControlCheckResponse
      • PurchaseControlCheckRequest
      • ReceiptPaymentConfirmationRequest
      • InstitutionRequest
      • Pageable
      • PageRequest
      • CreateReceiptRequest
      • ProductSearchRequest
    • Campaign standard
Powered by GitBook
On this page
  • BetweenTimeInspection
  • MinTimeInspection
  • MaxTimeInspection
  • MinAgeInspection
  • MinAmountInspection
  • MaxAmountInspection
  • Enum type possible values

Was this helpful?

  1. General
  2. Data object descriptions

Inspection

Inspection interface data transfer object description

BetweenTimeInspection

Applies if the current time does not belong to the start and end parameters range. If the rule is not set, it is allowed to buy the product at all times.

Field

Type

Required

Description

start

Time (HH:MM)

Yes

Start time when a product can be purchased (hours:minutes)

end

Time (HH:MM)

Yes

End time when a product can be purchase (hours:minutes)

timezone

Timezone UTC

Yes

Time zone in UTC format

action

Yes

Take a purchase check or disable the product in the

shopping card

Example

Product adding to shopping card is allowed only if current time between 10:00 and 22:00. Otherwise adding restricted.

{
    "action" : "RESTRICT",
    "start" : "10:00",
    "end": "22:00",
    "timezone" : "Europe/Tallinn",
    "type": "BETWEEN_TIME"
}

MinTimeInspection

Applies if the current time is less than the set time value. If the rule is not set, it is allowed to buy the product at all times.

Field

Type

Required

Description

time

Time (HH:MM)

Yes

Time (hours:minutes)

timezone

Timezone UTC

Yes

Time zone in UTC format

action

Yes

Take a purchase check or disable the product in the

shopping card

MaxTimeInspection

Applies if the current time is greater than the set time value. If the rule is not set, it is allowed to buy the product at all times.

Field

Type

Required

Description

time

Time (HH:MM)

Yes

Time

timezone

Timezone UTC

Yes

Time zone

action

Yes

Take a purchase check or disable the product in the

shopping card

MinAgeInspection

Applies if rule is set.

Field

Type

Required

Description

age

Integer

Yes

Age

action

Yes

Take a purchase check or disable the product in the

shopping card

Example

Customer should be at least 18 years old to allow product purchase.

{
    "action" : "INSPECT",
    "age" : 18,
    "type" : "MIN_AGE"
}

MinAmountInspection

Applies when product quantity is less than amount.

Field

Type

Required

Description

amount

Double

Yes

Product quantity

action

Yes

Take a purchase check or disable the product in the

shopping card

MaxAmountInspection

Applies when product quantity is greater than amount.

Field

Type

Required

Description

amount

Double

Yes

Product quantity

action

Yes

Take a purchase check or disable the product in the

shopping card

Enum type possible values

AdditionType

INSPECT

Allow adding to shopping card but inspect before purchase

RESTRICT

Restrict adding to shopping cart.

PreviousInformationNextInvoice

Last updated 5 years ago

Was this helpful?

InspectionType
InspectionType
InspectionType
InspectionType
InspectionType
InspectionType