stephanwoerner / erv-exi-soap

2.0.0 2020-12-03 15:03 UTC

This package is not auto-updated.

Last update: 2024-09-24 03:33:49 UTC


README

ERGO 旅行保险的 Soap 接口

在 ERGO 保险公司联系支持并签订合同以获取您的私人代理商标识符

contact@reiseversicherung.de

#使用 composer 安装 stephanwoerner/erv-exi-soap

将其添加到您的 AppKernel.php 中

public function registerBundles()
{
    $bundles = [
        .
        .
        .
        new StephanWoerner\ErvExiSoap\ErvExiSoapBundle(),
    
    ];
}

将其添加到您的 services.yml 中

services:
    sw.exi:
        class:        StephanWoerner\ErvExiSoap\Exi
        arguments:    ["@doctrine.orm.entity_manager", "%exi_agency_identifier%", "%exi_product_line%", "%exi_test_email%"]

并在您的 parameters.yml 中添加 exi_agency_identifier, exi_product_line 和 exi_test_email

#在您的 MySQL 数据库上执行以下查询

CREATE TABLE exi_protocol (id INT AUTO_INCREMENT NOT NULL, date_created DATETIME NOT NULL, booking_reference INT, request_type VARCHAR(100) NOT NULL, request TEXT NOT NULL, response TEXT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;

#在 Symfony 控制器中的示例用法

$exi = $this->container->get('sw.exi');

$exi->init(
    'https://egate2.erv.de/exiws201909/ExiConnector?wsdl',
    'EUR',
    'DE',
    'DEU',
    true
);
$responseOffer = $exi->callRequestOffer(
    [
        'firstname'   => 'Hans',
        'lastname'    => 'Mustermann',
        'street'      => 'Musteratr. 8',
        'zip'         => '12345',
        'city'        => 'Münchhausen',
        'countryCode' => 'DEU',
        'email'       => 'test@test.de'
    ],
    [
        'countryCode' => 'AUT',
        'fromDate'    => '2018-09-01',
        'endDate'     => '2018-09-02',
        'bookingDate' => '2018-07-19',
        'isFlight'    => true,
        'totalPrice'  => 1250.00,
    ],
    [
        [
            'firstname' => 'Hans',
            'lastname'  => 'Mustermann',
            'birthday'  => '1972-06-20',
            'price'     => 625.00
        ]
    ]
);

#不使用 Symfony 框架的示例。请参阅 test.php

#发行说明

release_v9
New amazonPayment
New apAmount
New apPaymentType
New amazonPayment
New ClientTypeType
New creditcardHolderType
New initiatorType
New payPageData
New payPageUrl
New psd2ParameterType
New requestPayPageUrl
New responsePayPageUrl
acceptedPayments: + amazonPayment
agentType: + initiator default 'CUSTOMER'
ccPaymentType: + psd2Parameter, + ccPayPageHandleId
customerType: streetAndNr length 100
paymentMethodType: + ap/AP
paymentType: + amazonPay
servicePremium: anonymous length 75
serviceRenewalPremium: anonymous length 77