gisevevokoru / ezze-siftuz-receipts-v2
dev-master
2021-10-26 03:58 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is not auto-updated.
Last update: 2024-09-25 18:06:21 UTC
README
合作伙伴获取收据信息的接口
此PHP软件包由Swagger Codegen项目自动生成
- API版本:2.0.0
- 软件包版本:v1.0
- 构建软件包:io.swagger.codegen.v3.generators.php.PhpClientCodegen
需求
PHP 5.5及更高版本
安装与使用
Composer
要通过Composer安装绑定,请将以下内容添加到composer.json
{
"repositories": [
{
"type": "git",
"url": "http://github.com/gisevevokoru/ezze-siftuz-receipts-v2.git"
}
],
"require": {
"gisevevokoru/ezze-siftuz-receipts-v2": "*@dev"
}
}
然后运行composer install
手动安装
下载文件并包含autoload.php
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门指南
请遵循安装流程,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new EzzeSiftuz\ReceiptsV2\Api\ReceiptsApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $receipt_number = "receipt_number_example"; // string | ReceiptNumber try { $apiInstance->getReceiptPdfUsingGET3($receipt_number); } catch (Exception $e) { echo 'Exception when calling ReceiptsApi->getReceiptPdfUsingGET3: ', $e->getMessage(), PHP_EOL; } $apiInstance = new EzzeSiftuz\ReceiptsV2\Api\ReceiptsApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $receipt_number = "receipt_number_example"; // string | ReceiptNumber try { $result = $apiInstance->getReceiptUsingGET5($receipt_number); print_r($result); } catch (Exception $e) { echo 'Exception when calling ReceiptsApi->getReceiptUsingGET5: ', $e->getMessage(), PHP_EOL; } $apiInstance = new EzzeSiftuz\ReceiptsV2\Api\ReceiptsApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $limit = 128; // int | Page size to limit the number of receipts returned in the response $page = 1; // int | Page number to fetch. This parameter is required to fetch data for specific page number $type = "type_example"; // string | Search for receipts filtered by receipt type $sales_order_id = "sales_order_id_example"; // string | Search for receipts filtered by sales order Id try { $result = $apiInstance->getReceiptsUsingGET5($limit, $page, $type, $sales_order_id); print_r($result); } catch (Exception $e) { echo 'Exception when calling ReceiptsApi->getReceiptsUsingGET5: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI均相对于https://live.api.otto.market/
模型文档
- AllOfLineItemPriceToPay
- AllOfLineItemTotal
- AllOfLineItemTotalDiscount
- AllOfLineItemUnitPrice
- AllOfPartialRefundPartialRefundAmount
- AllOfServicePositionInfoTotal
- AllOfServicePositionInfoUnitPrice
- AllOfShippingFeePrice
- AllOfTotalAmountDue
- AllOfTotalGross
- AllOfTotalNet
- 客户
- 送货地址
- 折扣详情
- 行项
- 链接
- 部分退款
- 合作伙伴
- 收据
- 收据列表
- 服务位置信息
- 服务位置项目信息
- 运费
- 运费
- 总计
授权文档
JWT
- 类型:API密钥
- API密钥参数名:Authorization
- 位置:HTTP头部