-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* include submerchant * fix address_door_number * remove xml
- Loading branch information
1 parent
08047ec
commit 76141e0
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
namespace MercadoPago\Resources\Common; | ||
|
||
/** Submerchant identification class. */ | ||
class SubMerchant | ||
{ | ||
/** Submerchant code. */ | ||
public ?string $sub_merchant_id; | ||
|
||
/** Submerchant MCC according to Abecs decision and/or primary CNAE. */ | ||
public ?string $mcc; | ||
|
||
/** Country where the submerchant is located. */ | ||
public ?string $country; | ||
|
||
/** Street number where the submerchant is located. */ | ||
public ?number $address_door_number; | ||
|
||
/** CEP of the submerchant. */ | ||
public ?string $zip; | ||
|
||
/** CPF or CNPJ identification of the submerchant. */ | ||
public ?string $document_number; | ||
|
||
/** City where the submerchant is located. */ | ||
public ?string $city; | ||
|
||
/** Street where the submerchant is located. */ | ||
public ?string $address_street; | ||
|
||
/** Name of the submerchant . */ | ||
public ?string $business_name; | ||
|
||
/** State where the submerchant is located . */ | ||
public ?string $region_code_iso; | ||
|
||
/** Postal code of the submerchant . */ | ||
public ?string $region_code; | ||
|
||
/** CPF or CNPJ number of the submerchant . */ | ||
public ?string $document_type; | ||
|
||
/** Phone number of the submerchant . */ | ||
public ?string $phone; | ||
|
||
/** Payment Facilitator URL . */ | ||
public ?string $url; | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace MercadoPago\Resources\Payment; | ||
|
||
use MercadoPago\Serialization\Mapper; | ||
|
||
/** ForwardData class. */ | ||
class ForwardData | ||
{ | ||
/** Class mapper. */ | ||
use Mapper; | ||
|
||
public array|object|null $sub_merchant; | ||
|
||
|
||
private $map = [ | ||
"identification" => "MercadoPago\Resources\Common\SubMerchant", | ||
]; | ||
|
||
/** | ||
* Method responsible for getting map of entities. | ||
*/ | ||
public function getMap(): array | ||
{ | ||
return $this->map; | ||
} | ||
} |