@favid-inc/api
Advanced tools
Comparing version 4.4.4 to 4.4.5
@@ -1,2 +0,2 @@ | ||
import { Balance, Recipient } from "../pagar-me"; | ||
import { Balance, BankAccount, CreateRecipient, Recipient } from "../pagar-me"; | ||
import { Action } from "./action"; | ||
@@ -7,3 +7,6 @@ export interface CreateWallet { | ||
method: "POST"; | ||
data?: Recipient; | ||
data?: { | ||
registerInformation: CreateRecipient["Request"]["data"]["register_information"]; | ||
bankAccount: BankAccount; | ||
}; | ||
}; | ||
@@ -10,0 +13,0 @@ Response: Recipient; |
@@ -26,7 +26,5 @@ import { Action } from "../action"; | ||
declare type RegisterInformation = { | ||
type: "individual"; | ||
document_number: string; | ||
name: string; | ||
site_url: string; | ||
email: string; | ||
site_url?: string; | ||
phone_numbers: Array<{ | ||
@@ -37,13 +35,8 @@ ddd: string; | ||
}>; | ||
} & ({ | ||
type: "individual"; | ||
name: string; | ||
} | { | ||
type: "corporation"; | ||
document_number: string; | ||
company_name: string; | ||
email: string; | ||
site_url: string; | ||
phone_numbers: Array<{ | ||
ddd: string; | ||
number: string; | ||
type: string; | ||
}>; | ||
managing_partners: Array<{ | ||
@@ -55,3 +48,3 @@ type: string; | ||
}>; | ||
}; | ||
}); | ||
export {}; |
{ | ||
"name": "@favid-inc/api", | ||
"version": "4.4.4", | ||
"version": "4.4.5", | ||
"description": "API for Favid Project", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/favid-inc/api#readme", |
1259