JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "Shipments.php"

Full Path: /var/www/laravel_filter/vendor/mercadopago/dx-php/src/MercadoPago/Resources/Preference/Shipments.php
File size: 1.27 KB
MIME-type: text/x-php
Charset: utf-8

<?php

namespace MercadoPago\Resources\Preference;

use MercadoPago\Serialization\Mapper;

/** Shipments class. */
class Shipments
{
    /** Class mapper. */
    use Mapper;

    /** Shipment mode. */
    public ?string $mode;

    /** The payer have the option to pick up the shipment in your store (mode:me2 only). */
    public ?bool $local_pickup;

    /** Dimensions of the shipment in cm x cm x cm, gr (mode:me2 only). */
    public ?string $dimensions;

    /** Select default shipping method in checkout (mode:me2 only). */
    public ?int $default_shipping_method;

    /** Offer a shipping method as free shipping (mode:me2 only). */
    public ?array $free_methods;

    /** Shipment cost (mode:custom only). */
    public ?float $cost;

    /** Free shipping for mode:custom. */
    public ?bool $free_shipping;

    /** Shipping address. */
    public array|object|null $receiver_address;

    /** If use express shipment. */
    public ?bool $express_shipment;

    public $map = [
      "free_methods" => "MercadoPago\Resources\Preference\FreeMethod",
      "receiver_address" => "MercadoPago\Resources\Preference\ReceiverAddress",
    ];

    /**
     * Method responsible for getting map of entities.
     */
    public function getMap(): array
    {
        return $this->map;
    }
}