@favid-inc/api
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -1,2 +0,2 @@ | ||
import { DirectCharge, PaymentToken } from "../iugu"; | ||
import { Customer, Transaction, TransactionPaymentMethod } from "../pagar-me"; | ||
import { Order } from "../model"; | ||
@@ -29,7 +29,7 @@ import { Action } from "./action"; | ||
order: Order; | ||
paymentToken: PaymentToken["Request"]["data"]; | ||
directCharge: DirectCharge["Request"]["data"]; | ||
paymentMethod: TransactionPaymentMethod; | ||
customer: Customer; | ||
}; | ||
}; | ||
Response: DirectCharge["Response"]["data"]; | ||
Response: Transaction; | ||
} | ||
@@ -36,0 +36,0 @@ export interface LikeOrder extends Action { |
@@ -1,2 +0,1 @@ | ||
import { CreateSubAccount } from "../iugu"; | ||
import { Artist } from "../model"; | ||
@@ -10,3 +9,2 @@ import { Action } from "./action"; | ||
artist: Artist; | ||
subAccount: CreateSubAccount["Request"]["data"]; | ||
}; | ||
@@ -13,0 +11,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import { CreateSubAccount } from "../iugu"; | ||
import { Recipient } from "../pagar-me"; | ||
import { ArtistCategory } from "./artist-category"; | ||
@@ -6,12 +6,12 @@ import { Model } from "./model"; | ||
export interface Artist extends Model { | ||
artisticAffiliatedId?: string; | ||
artisticName?: string; | ||
artisticAffiliatedId?: string; | ||
biography?: string; | ||
categories?: ArtistCategory[]; | ||
email?: string; | ||
iuguSubAccountId?: string; | ||
iuguSubAccountMetadata?: CreateSubAccount["Response"]["data"]; | ||
location?: string; | ||
mainCategory?: ArtistCategory; | ||
name?: string; | ||
pagarMeRecipient?: Recipient; | ||
pagarMeRecipientId?: Recipient["id"]; | ||
phoneNumber?: string; | ||
@@ -18,0 +18,0 @@ photoUri?: string; |
@@ -1,3 +0,3 @@ | ||
import { DirectCharge, InvoiceStatusChanged } from "../iugu"; | ||
import { Model } from "../model"; | ||
import { Transaction } from "../pagar-me"; | ||
import { Artist } from "./artist"; | ||
@@ -13,6 +13,4 @@ export declare const ORDER = "Order"; | ||
isGift?: boolean; | ||
iuguInvoiceId?: string; | ||
iuguInvoiceMetadata?: DirectCharge["Response"]["data"]; | ||
iuguInvoiceStatusChangedDate?: number; | ||
iuguInvoiceStatusChangedMetadata?: InvoiceStatusChanged["Request"]["body"]; | ||
pagarMeTransaction?: Transaction; | ||
pagarMeTransactionId?: Transaction["id"]; | ||
paymentStatus?: OrderPaymentStatus; | ||
@@ -35,12 +33,2 @@ price?: number; | ||
} | ||
export declare enum OrderPaymentStatus { | ||
PENDING = "pending", | ||
PAID = "paid", | ||
CANCELED = "canceled", | ||
PARTIALLY_PAID = "partially_paid", | ||
REFUNDED = "refunded", | ||
EXPIRED = "expired", | ||
AUTHORIZED = "authorized", | ||
IN_PROTEST = "in_protest", | ||
CHARGEBACK = "chargeback" | ||
} | ||
export declare type OrderPaymentStatus = Transaction["status"]; |
@@ -11,13 +11,1 @@ "use strict"; | ||
})(OrderStatus = exports.OrderStatus || (exports.OrderStatus = {})); | ||
var OrderPaymentStatus; | ||
(function (OrderPaymentStatus) { | ||
OrderPaymentStatus["PENDING"] = "pending"; | ||
OrderPaymentStatus["PAID"] = "paid"; | ||
OrderPaymentStatus["CANCELED"] = "canceled"; | ||
OrderPaymentStatus["PARTIALLY_PAID"] = "partially_paid"; | ||
OrderPaymentStatus["REFUNDED"] = "refunded"; | ||
OrderPaymentStatus["EXPIRED"] = "expired"; | ||
OrderPaymentStatus["AUTHORIZED"] = "authorized"; | ||
OrderPaymentStatus["IN_PROTEST"] = "in_protest"; | ||
OrderPaymentStatus["CHARGEBACK"] = "chargeback"; | ||
})(OrderPaymentStatus = exports.OrderPaymentStatus || (exports.OrderPaymentStatus = {})); |
@@ -0,3 +1,7 @@ | ||
export * from "./address"; | ||
export * from "./balance"; | ||
export * from "./bank-account"; | ||
export * from "./customer"; | ||
export * from "./document"; | ||
export * from "./recipient"; | ||
export * from "./balance"; | ||
export * from "./transaction"; |
"use strict"; | ||
// https://docs.pagar.me/reference#criando-um-recebedor | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,2 +0,2 @@ | ||
export * from "./create-recipient"; | ||
export * from "./recipient"; | ||
export { CreateRecipient } from "./create-recipient"; | ||
export { Recipient } from "./recipient"; |
{ | ||
"name": "@favid-inc/api", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "API for Favid Project", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/favid-inc/api#readme", |
26282
88
913