Skip to content

Commit

Permalink
Include sub merchant (#333)
Browse files Browse the repository at this point in the history
* include sub_merchant

* fix sub_merchant
  • Loading branch information
danielen-meli authored Jul 3, 2024
1 parent cda2931 commit 9f58817
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/clients/payment/create/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Address, Items, Shipments } from '@src/clients/commonTypes';
import type { Address, Items, Shipments, SubMerchant } from '@src/clients/commonTypes';
import type { MercadoPagoConfig } from '@src/mercadoPagoConfig';
import type { Identification, Payer, Phone } from '../commonTypes';
import type { Options } from '@src/types';
Expand Down Expand Up @@ -35,6 +35,7 @@ export declare type PaymentCreateRequest = {
token?: string,
transaction_amount?: number,
payer?: PayerRequest,
forward_data?:ForwardDataRequest,
point_of_interaction?: PointOfInteractionRequest,
sponsor_id?: number,
transaction_details?: TransactionDetailsRequest
Expand All @@ -52,12 +53,33 @@ export declare type PayerRequest = {
address?: AddressRequest,
}

export declare type ForwardDataRequest = {
sub_merchant?: SubMerchant,
}

export declare interface AddressRequest extends Address {
neighborhood?: string,
city?: string,
federal_unit?: string,
}

export declare type SubMerchant = {
sub_merchant_id?: string;
mcc?: string;
country?: string;
address_door_number?: number;
zip?: string;
document_number?: string;
city?: string;
address_street?: string;
business_name?: string;
region_code_iso?: string;
region_code?: string;
document_type?: string;
phone?: string;
url?: string;
}

export declare type PointOfInteractionRequest = {
linkedTo?: string,
type?: string,
Expand Down

0 comments on commit 9f58817

Please sign in to comment.