@@ -36,26 +36,26 @@ |
||
| 36 | 36 | { |
| 37 | 37 | |
| 38 | 38 | protected $fields = array( |
| 39 | - 'id' => null, // Cart reference (use SessionId if you don’t have specific ID) |
|
| 40 | - 'siteId' => null, // SiteId is part of configuration |
|
| 41 | - 'creationDate' => null, // Date of the cart as string in json format (2016-07-26T08:21:25.689Z) (optional) |
|
| 42 | - 'totalATI' => null, // Total price including taxes |
|
| 43 | - 'totalET' => null, // Total price excluding taxes |
|
| 44 | - 'currency' => null, // Currency, ISO code (optional) |
|
| 45 | - 'accountId' => null, // Account id of the buyer (we advise to use the email address) |
|
| 46 | - 'ip' => null, // Visitor IP address (optional) |
|
| 47 | - 'recoverUrl' => null, // Link to recover the cart (link to cart with security token included) (optional) |
|
| 48 | - 'civility' => null, // Use string in this list : 'mister','madam','miss' (optional) |
|
| 49 | - 'lastname' => null, // Lastname (optional) |
|
| 50 | - 'firstname' => null, // Firstname |
|
| 51 | - 'email' => null, // Email address |
|
| 52 | - 'homePhoneNumber' => null, // Landline phone number (optional) |
|
| 53 | - 'mobilePhoneNumber' => null, // Mobile phone number (optional) |
|
| 54 | - 'phoneNumber' => null, // Phone number of buyer, if you don’t know the kind of it (optional) |
|
| 55 | - 'country' => null, // Country of the buyer (you can send country or country code) |
|
| 56 | - 'countryCode' => null, // Country ISO code of the buyer (you can send country or country code) |
|
| 57 | - 'custom' => null, // Any custom fields you want to send with the cart. Standard fields are language (ISO code), customerGroup and isNewCustomer (Boolean). |
|
| 58 | - 'items' => null, // Details of each items |
|
| 39 | + 'id' => null, // Cart reference (use SessionId if you don’t have specific ID) |
|
| 40 | + 'siteId' => null, // SiteId is part of configuration |
|
| 41 | + 'creationDate' => null, // Date of the cart as string in json format (2016-07-26T08:21:25.689Z) (optional) |
|
| 42 | + 'totalATI' => null, // Total price including taxes |
|
| 43 | + 'totalET' => null, // Total price excluding taxes |
|
| 44 | + 'currency' => null, // Currency, ISO code (optional) |
|
| 45 | + 'accountId' => null, // Account id of the buyer (we advise to use the email address) |
|
| 46 | + 'ip' => null, // Visitor IP address (optional) |
|
| 47 | + 'recoverUrl' => null, // Link to recover the cart (link to cart with security token included) (optional) |
|
| 48 | + 'civility' => null, // Use string in this list : 'mister','madam','miss' (optional) |
|
| 49 | + 'lastname' => null, // Lastname (optional) |
|
| 50 | + 'firstname' => null, // Firstname |
|
| 51 | + 'email' => null, // Email address |
|
| 52 | + 'homePhoneNumber' => null, // Landline phone number (optional) |
|
| 53 | + 'mobilePhoneNumber' => null, // Mobile phone number (optional) |
|
| 54 | + 'phoneNumber' => null, // Phone number of buyer, if you don’t know the kind of it (optional) |
|
| 55 | + 'country' => null, // Country of the buyer (you can send country or country code) |
|
| 56 | + 'countryCode' => null, // Country ISO code of the buyer (you can send country or country code) |
|
| 57 | + 'custom' => null, // Any custom fields you want to send with the cart. Standard fields are language (ISO code), customerGroup and isNewCustomer (Boolean). |
|
| 58 | + 'items' => null, // Details of each items |
|
| 59 | 59 | ); |
| 60 | 60 | |
| 61 | 61 | /** |
@@ -38,27 +38,27 @@ |
||
| 38 | 38 | { |
| 39 | 39 | |
| 40 | 40 | protected $fields = array( |
| 41 | - 'id' => null, // Order reference, the same display to the buyer |
|
| 42 | - 'siteId' => null, // SiteId is part of configuration |
|
| 43 | - 'cartId' => null, // Cart reference, source of the order (optional) |
|
| 44 | - 'creationDate' => null, // Date of the order as string in json format (2016-07-26T08:21:25.689Z) (optional) |
|
| 45 | - 'totalATI' => null, // Amount included taxes and excluded shipping |
|
| 46 | - 'totalET' => null, // Amount excluded taxes and excluded shipping |
|
| 47 | - 'currency' => null, // Currency, ISO code (optional) |
|
| 48 | - 'paymentMethod' => null, // Payment method used (optional) |
|
| 49 | - 'state' => null, // Status of the order |
|
| 50 | - 'ip' => null, // Visitor ip address (optional) |
|
| 51 | - 'accountId' => null, // Account id of the buyer (use same identifier as Carts) |
|
| 52 | - 'civility' => null, // Use string in this list : ‘mister','madam','miss' (optional) |
|
| 53 | - 'lastname' => null, // Lastname of the buyer (optional) |
|
| 54 | - 'firstname' => null, // Firstname of the buyer |
|
| 55 | - 'email' => null, // Email address of the buyer |
|
| 56 | - 'homePhoneNumber' => null, // Landline phone number of buyer (optional) |
|
| 57 | - 'mobilePhoneNumber' => null, // Mobile phone number of buyer (optional) |
|
| 58 | - 'country' => null, // Country of the buyer (you can send country or country code) |
|
| 59 | - 'countryCode' => null, // Country ISO code of the buyer (you can send country or country code) |
|
| 60 | - 'custom' => null, // Any custom fields you want to send with the cart. Standard fields are language (ISO code), customerGroup and isNewCustomer (Boolean) |
|
| 61 | - 'items' => null, // Details of each items |
|
| 41 | + 'id' => null, // Order reference, the same display to the buyer |
|
| 42 | + 'siteId' => null, // SiteId is part of configuration |
|
| 43 | + 'cartId' => null, // Cart reference, source of the order (optional) |
|
| 44 | + 'creationDate' => null, // Date of the order as string in json format (2016-07-26T08:21:25.689Z) (optional) |
|
| 45 | + 'totalATI' => null, // Amount included taxes and excluded shipping |
|
| 46 | + 'totalET' => null, // Amount excluded taxes and excluded shipping |
|
| 47 | + 'currency' => null, // Currency, ISO code (optional) |
|
| 48 | + 'paymentMethod' => null, // Payment method used (optional) |
|
| 49 | + 'state' => null, // Status of the order |
|
| 50 | + 'ip' => null, // Visitor ip address (optional) |
|
| 51 | + 'accountId' => null, // Account id of the buyer (use same identifier as Carts) |
|
| 52 | + 'civility' => null, // Use string in this list : ‘mister','madam','miss' (optional) |
|
| 53 | + 'lastname' => null, // Lastname of the buyer (optional) |
|
| 54 | + 'firstname' => null, // Firstname of the buyer |
|
| 55 | + 'email' => null, // Email address of the buyer |
|
| 56 | + 'homePhoneNumber' => null, // Landline phone number of buyer (optional) |
|
| 57 | + 'mobilePhoneNumber' => null, // Mobile phone number of buyer (optional) |
|
| 58 | + 'country' => null, // Country of the buyer (you can send country or country code) |
|
| 59 | + 'countryCode' => null, // Country ISO code of the buyer (you can send country or country code) |
|
| 60 | + 'custom' => null, // Any custom fields you want to send with the cart. Standard fields are language (ISO code), customerGroup and isNewCustomer (Boolean) |
|
| 61 | + 'items' => null, // Details of each items |
|
| 62 | 62 | ); |
| 63 | 63 | |
| 64 | 64 | /** |
@@ -27,15 +27,15 @@ |
||
| 27 | 27 | { |
| 28 | 28 | |
| 29 | 29 | protected $fields = array( |
| 30 | - 'id' => null, // SKU or product id |
|
| 31 | - 'label' => null, // Designation |
|
| 32 | - 'quantity' => null, // Count |
|
| 33 | - 'totalATI' => null, // Total price included taxes |
|
| 34 | - 'totalET' => null, // Total price excluded taxes |
|
| 35 | - 'url' => null, // URL of product sheet |
|
| 36 | - 'imageUrl' => null, // Image URL of the product, size should be min 150*150, max 180*180 |
|
| 37 | - 'universe' => null, // Main category of the product (optional) |
|
| 38 | - 'category' => null, // Sub category of the product (optional) |
|
| 30 | + 'id' => null, // SKU or product id |
|
| 31 | + 'label' => null, // Designation |
|
| 32 | + 'quantity' => null, // Count |
|
| 33 | + 'totalATI' => null, // Total price included taxes |
|
| 34 | + 'totalET' => null, // Total price excluded taxes |
|
| 35 | + 'url' => null, // URL of product sheet |
|
| 36 | + 'imageUrl' => null, // Image URL of the product, size should be min 150*150, max 180*180 |
|
| 37 | + 'universe' => null, // Main category of the product (optional) |
|
| 38 | + 'category' => null, // Sub category of the product (optional) |
|
| 39 | 39 | ); |
| 40 | 40 | |
| 41 | 41 | /** |