@infrab4a/connect 5.4.0-beta.22 → 5.4.0-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +49 -1
- package/index.esm.js +50 -2
- package/package.json +1 -1
- package/src/domain/shopping/factories/mercado-pago-payment-method.factory.d.ts +2 -1
- package/src/infra/mercado-pago/enums/index.d.ts +2 -0
- package/src/infra/mercado-pago/enums/mercado-pago-status-detail.enum.d.ts +33 -0
- package/src/infra/mercado-pago/enums/mercado-pago-status.enum.d.ts +10 -0
- package/src/infra/mercado-pago/helpers/mercado-pago-response.helper.d.ts +1 -1
- package/src/infra/mercado-pago/index.d.ts +1 -0
- package/src/infra/mercado-pago/types/index.d.ts +1 -0
- package/src/infra/mercado-pago/types/mercado-pago-response.type.d.ts +2 -2
- package/src/infra/mercado-pago/types/mercado-pago-status-detail.type.d.ts +2 -0
- package/src/infra/mercado-pago/types/mercado-pago-status.type.d.ts +2 -0
package/index.cjs.js
CHANGED
|
@@ -9021,7 +9021,8 @@ class MercadoPagoCardAxiosAdapter {
|
|
|
9021
9021
|
data: payload,
|
|
9022
9022
|
});
|
|
9023
9023
|
console.warn('[MERCADO PAGO RESPONSE CARD DATA]', JSON.stringify(data));
|
|
9024
|
-
if ((data.status !== 'approved' && data.status_detail !==
|
|
9024
|
+
if ((data.status !== 'approved' && data.status_detail !== exports.MercadoPagoStatusDetailEnum.accredited) ||
|
|
9025
|
+
data.status !== 'authorized') {
|
|
9025
9026
|
await this.orderBlockedRepository.createBlockedOrderOrPayment({
|
|
9026
9027
|
checkout,
|
|
9027
9028
|
blockType: 'Card not authorized',
|
|
@@ -9142,6 +9143,53 @@ class MercadoPagoPixAxiosAdapter {
|
|
|
9142
9143
|
}
|
|
9143
9144
|
}
|
|
9144
9145
|
|
|
9146
|
+
exports.MercadoPagoStatusDetailEnum = void 0;
|
|
9147
|
+
(function (MercadoPagoStatusDetailEnum) {
|
|
9148
|
+
MercadoPagoStatusDetailEnum["accredited"] = "accredited";
|
|
9149
|
+
MercadoPagoStatusDetailEnum["partially_refunded"] = "partially_refunded";
|
|
9150
|
+
MercadoPagoStatusDetailEnum["pending_capture"] = "pending_capture";
|
|
9151
|
+
MercadoPagoStatusDetailEnum["offline_process"] = "offline_process";
|
|
9152
|
+
MercadoPagoStatusDetailEnum["pending_contingency"] = "pending_contingency";
|
|
9153
|
+
MercadoPagoStatusDetailEnum["pending_review_manual"] = "pending_review_manual";
|
|
9154
|
+
MercadoPagoStatusDetailEnum["pending_waiting_transfer"] = "pending_waiting_transfer";
|
|
9155
|
+
MercadoPagoStatusDetailEnum["pending_waiting_payment"] = "pending_waiting_payment";
|
|
9156
|
+
MercadoPagoStatusDetailEnum["pending_challenge"] = "pending_challenge";
|
|
9157
|
+
MercadoPagoStatusDetailEnum["bank_error"] = "bank_error";
|
|
9158
|
+
MercadoPagoStatusDetailEnum["cc_rejected_3ds_mandatory"] = "cc_rejected_3ds_mandatory";
|
|
9159
|
+
MercadoPagoStatusDetailEnum["cc_rejected_bad_filled_card_number"] = "cc_rejected_bad_filled_card_number";
|
|
9160
|
+
MercadoPagoStatusDetailEnum["cc_rejected_bad_filled_date"] = "cc_rejected_bad_filled_date";
|
|
9161
|
+
MercadoPagoStatusDetailEnum["cc_rejected_bad_filled_other"] = "cc_rejected_bad_filled_other";
|
|
9162
|
+
MercadoPagoStatusDetailEnum["cc_rejected_bad_filled_security_code"] = "cc_rejected_bad_filled_security_code";
|
|
9163
|
+
MercadoPagoStatusDetailEnum["cc_rejected_blacklist"] = "cc_rejected_blacklist";
|
|
9164
|
+
MercadoPagoStatusDetailEnum["cc_rejected_call_for_authorize"] = "cc_rejected_call_for_authorize";
|
|
9165
|
+
MercadoPagoStatusDetailEnum["cc_rejected_card_disabled"] = "cc_rejected_card_disabled";
|
|
9166
|
+
MercadoPagoStatusDetailEnum["cc_rejected_card_error"] = "cc_rejected_card_error";
|
|
9167
|
+
MercadoPagoStatusDetailEnum["cc_rejected_duplicated_payment"] = "cc_rejected_duplicated_payment";
|
|
9168
|
+
MercadoPagoStatusDetailEnum["cc_rejected_high_risk"] = "cc_rejected_high_risk";
|
|
9169
|
+
MercadoPagoStatusDetailEnum["cc_rejected_insufficient_amount"] = "cc_rejected_insufficient_amount";
|
|
9170
|
+
MercadoPagoStatusDetailEnum["cc_rejected_invalid_installments"] = "cc_rejected_invalid_installments";
|
|
9171
|
+
MercadoPagoStatusDetailEnum["cc_rejected_max_attempts"] = "cc_rejected_max_attempts";
|
|
9172
|
+
MercadoPagoStatusDetailEnum["cc_rejected_other_reason"] = "cc_rejected_other_reason";
|
|
9173
|
+
MercadoPagoStatusDetailEnum["cc_amount_rate_limit_exceeded"] = "cc_amount_rate_limit_exceeded";
|
|
9174
|
+
MercadoPagoStatusDetailEnum["rejected_insufficient_data"] = "rejected_insufficient_data";
|
|
9175
|
+
MercadoPagoStatusDetailEnum["rejected_by_bank"] = "rejected_by_bank";
|
|
9176
|
+
MercadoPagoStatusDetailEnum["rejected_by_regulations"] = "rejected_by_regulations";
|
|
9177
|
+
MercadoPagoStatusDetailEnum["insufficient_amount"] = "insufficient_amount";
|
|
9178
|
+
MercadoPagoStatusDetailEnum["cc_rejected_card_type_not_allowed"] = "cc_rejected_card_type_not_allowed";
|
|
9179
|
+
})(exports.MercadoPagoStatusDetailEnum || (exports.MercadoPagoStatusDetailEnum = {}));
|
|
9180
|
+
|
|
9181
|
+
exports.MercadoPagoStatusEnum = void 0;
|
|
9182
|
+
(function (MercadoPagoStatusEnum) {
|
|
9183
|
+
MercadoPagoStatusEnum["approved"] = "approved";
|
|
9184
|
+
MercadoPagoStatusEnum["authorized"] = "authorized";
|
|
9185
|
+
MercadoPagoStatusEnum["pending"] = "pending";
|
|
9186
|
+
MercadoPagoStatusEnum["in_process"] = "in_process";
|
|
9187
|
+
MercadoPagoStatusEnum["rejected"] = "rejected";
|
|
9188
|
+
MercadoPagoStatusEnum["cancelled"] = "cancelled";
|
|
9189
|
+
MercadoPagoStatusEnum["refunded"] = "refunded";
|
|
9190
|
+
MercadoPagoStatusEnum["charged_back"] = "charged_back";
|
|
9191
|
+
})(exports.MercadoPagoStatusEnum || (exports.MercadoPagoStatusEnum = {}));
|
|
9192
|
+
|
|
9145
9193
|
class PagarmeBankSlipAxiosAdapter {
|
|
9146
9194
|
constructor(credentials, paymentRepository) {
|
|
9147
9195
|
this.credentials = credentials;
|
package/index.esm.js
CHANGED
|
@@ -8997,7 +8997,8 @@ class MercadoPagoCardAxiosAdapter {
|
|
|
8997
8997
|
data: payload,
|
|
8998
8998
|
});
|
|
8999
8999
|
console.warn('[MERCADO PAGO RESPONSE CARD DATA]', JSON.stringify(data));
|
|
9000
|
-
if ((data.status !== 'approved' && data.status_detail !==
|
|
9000
|
+
if ((data.status !== 'approved' && data.status_detail !== MercadoPagoStatusDetailEnum.accredited) ||
|
|
9001
|
+
data.status !== 'authorized') {
|
|
9001
9002
|
await this.orderBlockedRepository.createBlockedOrderOrPayment({
|
|
9002
9003
|
checkout,
|
|
9003
9004
|
blockType: 'Card not authorized',
|
|
@@ -9118,6 +9119,53 @@ class MercadoPagoPixAxiosAdapter {
|
|
|
9118
9119
|
}
|
|
9119
9120
|
}
|
|
9120
9121
|
|
|
9122
|
+
var MercadoPagoStatusDetailEnum;
|
|
9123
|
+
(function (MercadoPagoStatusDetailEnum) {
|
|
9124
|
+
MercadoPagoStatusDetailEnum["accredited"] = "accredited";
|
|
9125
|
+
MercadoPagoStatusDetailEnum["partially_refunded"] = "partially_refunded";
|
|
9126
|
+
MercadoPagoStatusDetailEnum["pending_capture"] = "pending_capture";
|
|
9127
|
+
MercadoPagoStatusDetailEnum["offline_process"] = "offline_process";
|
|
9128
|
+
MercadoPagoStatusDetailEnum["pending_contingency"] = "pending_contingency";
|
|
9129
|
+
MercadoPagoStatusDetailEnum["pending_review_manual"] = "pending_review_manual";
|
|
9130
|
+
MercadoPagoStatusDetailEnum["pending_waiting_transfer"] = "pending_waiting_transfer";
|
|
9131
|
+
MercadoPagoStatusDetailEnum["pending_waiting_payment"] = "pending_waiting_payment";
|
|
9132
|
+
MercadoPagoStatusDetailEnum["pending_challenge"] = "pending_challenge";
|
|
9133
|
+
MercadoPagoStatusDetailEnum["bank_error"] = "bank_error";
|
|
9134
|
+
MercadoPagoStatusDetailEnum["cc_rejected_3ds_mandatory"] = "cc_rejected_3ds_mandatory";
|
|
9135
|
+
MercadoPagoStatusDetailEnum["cc_rejected_bad_filled_card_number"] = "cc_rejected_bad_filled_card_number";
|
|
9136
|
+
MercadoPagoStatusDetailEnum["cc_rejected_bad_filled_date"] = "cc_rejected_bad_filled_date";
|
|
9137
|
+
MercadoPagoStatusDetailEnum["cc_rejected_bad_filled_other"] = "cc_rejected_bad_filled_other";
|
|
9138
|
+
MercadoPagoStatusDetailEnum["cc_rejected_bad_filled_security_code"] = "cc_rejected_bad_filled_security_code";
|
|
9139
|
+
MercadoPagoStatusDetailEnum["cc_rejected_blacklist"] = "cc_rejected_blacklist";
|
|
9140
|
+
MercadoPagoStatusDetailEnum["cc_rejected_call_for_authorize"] = "cc_rejected_call_for_authorize";
|
|
9141
|
+
MercadoPagoStatusDetailEnum["cc_rejected_card_disabled"] = "cc_rejected_card_disabled";
|
|
9142
|
+
MercadoPagoStatusDetailEnum["cc_rejected_card_error"] = "cc_rejected_card_error";
|
|
9143
|
+
MercadoPagoStatusDetailEnum["cc_rejected_duplicated_payment"] = "cc_rejected_duplicated_payment";
|
|
9144
|
+
MercadoPagoStatusDetailEnum["cc_rejected_high_risk"] = "cc_rejected_high_risk";
|
|
9145
|
+
MercadoPagoStatusDetailEnum["cc_rejected_insufficient_amount"] = "cc_rejected_insufficient_amount";
|
|
9146
|
+
MercadoPagoStatusDetailEnum["cc_rejected_invalid_installments"] = "cc_rejected_invalid_installments";
|
|
9147
|
+
MercadoPagoStatusDetailEnum["cc_rejected_max_attempts"] = "cc_rejected_max_attempts";
|
|
9148
|
+
MercadoPagoStatusDetailEnum["cc_rejected_other_reason"] = "cc_rejected_other_reason";
|
|
9149
|
+
MercadoPagoStatusDetailEnum["cc_amount_rate_limit_exceeded"] = "cc_amount_rate_limit_exceeded";
|
|
9150
|
+
MercadoPagoStatusDetailEnum["rejected_insufficient_data"] = "rejected_insufficient_data";
|
|
9151
|
+
MercadoPagoStatusDetailEnum["rejected_by_bank"] = "rejected_by_bank";
|
|
9152
|
+
MercadoPagoStatusDetailEnum["rejected_by_regulations"] = "rejected_by_regulations";
|
|
9153
|
+
MercadoPagoStatusDetailEnum["insufficient_amount"] = "insufficient_amount";
|
|
9154
|
+
MercadoPagoStatusDetailEnum["cc_rejected_card_type_not_allowed"] = "cc_rejected_card_type_not_allowed";
|
|
9155
|
+
})(MercadoPagoStatusDetailEnum || (MercadoPagoStatusDetailEnum = {}));
|
|
9156
|
+
|
|
9157
|
+
var MercadoPagoStatusEnum;
|
|
9158
|
+
(function (MercadoPagoStatusEnum) {
|
|
9159
|
+
MercadoPagoStatusEnum["approved"] = "approved";
|
|
9160
|
+
MercadoPagoStatusEnum["authorized"] = "authorized";
|
|
9161
|
+
MercadoPagoStatusEnum["pending"] = "pending";
|
|
9162
|
+
MercadoPagoStatusEnum["in_process"] = "in_process";
|
|
9163
|
+
MercadoPagoStatusEnum["rejected"] = "rejected";
|
|
9164
|
+
MercadoPagoStatusEnum["cancelled"] = "cancelled";
|
|
9165
|
+
MercadoPagoStatusEnum["refunded"] = "refunded";
|
|
9166
|
+
MercadoPagoStatusEnum["charged_back"] = "charged_back";
|
|
9167
|
+
})(MercadoPagoStatusEnum || (MercadoPagoStatusEnum = {}));
|
|
9168
|
+
|
|
9121
9169
|
class PagarmeBankSlipAxiosAdapter {
|
|
9122
9170
|
constructor(credentials, paymentRepository) {
|
|
9123
9171
|
this.credentials = credentials;
|
|
@@ -10112,4 +10160,4 @@ class ProductsVertexSearch {
|
|
|
10112
10160
|
}
|
|
10113
10161
|
}
|
|
10114
10162
|
|
|
10115
|
-
export { AccessoryImportances, Address, AdyenCardAxiosAdapter, AdyenPaymentMethodFactory, AntifraudBankSlipService, AntifraudCardService, AntifraudGlampointsService, AntifraudPixService, AntifraudProviderFactory, AntifraudProviders, Area, Authentication, AuthenticationFirebaseAuthService, AxiosAdapter, Base, BaseModel, BeardProblems, BeardSizes, BeautyProductImportances, BeautyProfile, BeautyQuestionsHelper, BillingStatus, BodyProblems, BodyShapes, BodyTattoos, BrandCategory, BrandCategoryFirestoreRepository, BrandEquityOptions, BusinessError, BusinessUnitEnum, Buy2Win, Buy2WinFirestoreRepository, Campaign, CampaignBanner, CampaignDashboard, CampaignDashboardFirestoreRepository, CampaignHashtag, CampaignHashtagFirestoreRepository, Category, CategoryCollectionChildren, CategoryCollectionChildrenHasuraGraphQLRepository, CategoryFilter, CategoryFilterHasuraGraphQLRepository, CategoryFirestoreRepository, CategoryHasuraGraphQL, CategoryHasuraGraphQLRepository, CategoryProduct, CategoryProductHasuraGraphQLRepository, Checkout, CheckoutFirestoreRepository, CheckoutSubscription, CheckoutSubscriptionFirestoreRepository, CheckoutTypes, ClassNameHelper, ConnectBaseDocumentSnapshot, ConnectCollectionService, ConnectDocumentService, ConnectFirestoreService, Coupon, CouponCategories, CouponCategory, CouponChannels, CouponFirestoreRepository, CouponOldCategories, CouponSubtypes, CouponTypes, Debug, DebugDecoratorHelper, DebugHelper, DebugNamespaces, DuplicatedResultsError, Edition, EditionStatus, Exclusivities, FaceSkinOilinesses, FaceSkinProblems, FaceSkinTones, FamilyIncomes, Filter, FilterHasuraGraphQLRepository, FilterOption, FilterOptionHasuraGraphQLRepository, FilterType, FirebaseFileUploaderService, FragranceImportances, FraudValidationError, GenderDestination, GlampointsPaymentMethodFactory, GlampointsPaymentService, Group, GroupFirestoreRepository, HairColors, HairProblems, HairStrands, HairTypes, Home, HomeFirestoreRepository, InvalidArgumentError, KitProduct, KitProductHasuraGraphQL, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, Log, LogDocument, LogFirestoreRepository, Logger, MercadoPagoBankSlipAxiosAdapter, MercadoPagoCardAxiosAdapter, MercadoPagoPaymentMethodFactory, MercadoPagoPixAxiosAdapter, MercadoPagoRequestHelper, MercadoPagoResponseHelper, NotFoundError, ObsEmitter, OfficePosition, Order, OrderBlocked, OrderBlockedFirestoreRepository, OrderBlockedType, OrderFirestoreRepository, OrderPaymentStatus, OrderStatus, PagarMeV5OrderStatus, PagarMeV5PaymentStatus, PagarmeBankSlipAxiosAdapter, PagarmeCardAxiosAdapter, PagarmePaymentMethodFactory, PagarmePaymentStatus, PagarmePixAxiosAdapter, PagarmeV5BankSlipAxiosAdapter, PagarmeV5CardAxiosAdapter, PagarmeV5PixAxiosAdapter, Payment, PaymentError, PaymentFirestoreRepository, PaymentMethods, PaymentProviderFactory, PaymentProviders, PaymentTransaction, PaymentType, PersonTypes, Plans, Product, ProductErrors, ProductErrorsHasuraGraphQL, ProductErrorsHasuraGraphQLRepository, ProductFirestoreRepository, ProductHasuraGraphQL, ProductHasuraGraphQLRepository, ProductLabelEnum, ProductReview, ProductReviewHasuraGraphQLRepository, ProductSpents, ProductStockNotification, ProductStockNotificationHasuraGraphQLRepository, ProductVariantFirestoreRepository, ProductsIndex, ProductsVertexSearch, QuestionsFilters, RecoveryPassword, ReflectHelper, Register, RegisterFirebaseAuthService, RequiredArgumentError, RestCacheAdapter, RoundProductPricesHelper, Sequence, SequenceFirestoreRepository, ShippingMethod, ShopMenu, ShopMenuFirestoreRepository, ShopPageName, ShopSettings, ShopSettingsFirestoreRepository, Shops, SignInMethods, SignOut, Status, StockLimitError, StockOutError, Subscription, SubscriptionEditionFirestoreRepository, SubscriptionFirestoreRepository, SubscriptionMaterialization, SubscriptionMaterializationFirestoreRepository, SubscriptionPayment, SubscriptionPaymentFirestoreRepository, SubscriptionPlan, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionSummary, SubscriptionSummaryFirestoreRepository, Trace, TransactionPaymentMethods, UnauthorizedError, UpdateOptionActions, UpdateUserImage, User, UserAddress, UserAddressFirestoreRepository, UserAlreadyRegisteredError, UserBeautyProfileFirestoreRepository, UserFirestoreRepository, UserPaymentMethod, UserPaymentMethodFirestoreRepository, UserType, Variant, VariantHasuraGraphQL, VariantHasuraGraphQLRepository, VertexAxiosAdapter, WeakPasswordError, Where, Wishlist, WishlistHasuraGraphQLRepository, WishlistLogType, deserialize, getClass, is, isDebuggable, isUUID, parseDateTime, registerClass, resolveClass, serialize, withCreateFirestore, withCreateHasuraGraphQL, withCrudFirestore, withCrudHasuraGraphQL, withDeleteFirestore, withDeleteHasuraGraphQL, withFindFirestore, withFindHasuraGraphQL, withFirestore, withGetFirestore, withGetHasuraGraphQL, withHasuraGraphQL, withHelpers, withSubCollection, withUpdateFirestore, withUpdateHasuraGraphQL };
|
|
10163
|
+
export { AccessoryImportances, Address, AdyenCardAxiosAdapter, AdyenPaymentMethodFactory, AntifraudBankSlipService, AntifraudCardService, AntifraudGlampointsService, AntifraudPixService, AntifraudProviderFactory, AntifraudProviders, Area, Authentication, AuthenticationFirebaseAuthService, AxiosAdapter, Base, BaseModel, BeardProblems, BeardSizes, BeautyProductImportances, BeautyProfile, BeautyQuestionsHelper, BillingStatus, BodyProblems, BodyShapes, BodyTattoos, BrandCategory, BrandCategoryFirestoreRepository, BrandEquityOptions, BusinessError, BusinessUnitEnum, Buy2Win, Buy2WinFirestoreRepository, Campaign, CampaignBanner, CampaignDashboard, CampaignDashboardFirestoreRepository, CampaignHashtag, CampaignHashtagFirestoreRepository, Category, CategoryCollectionChildren, CategoryCollectionChildrenHasuraGraphQLRepository, CategoryFilter, CategoryFilterHasuraGraphQLRepository, CategoryFirestoreRepository, CategoryHasuraGraphQL, CategoryHasuraGraphQLRepository, CategoryProduct, CategoryProductHasuraGraphQLRepository, Checkout, CheckoutFirestoreRepository, CheckoutSubscription, CheckoutSubscriptionFirestoreRepository, CheckoutTypes, ClassNameHelper, ConnectBaseDocumentSnapshot, ConnectCollectionService, ConnectDocumentService, ConnectFirestoreService, Coupon, CouponCategories, CouponCategory, CouponChannels, CouponFirestoreRepository, CouponOldCategories, CouponSubtypes, CouponTypes, Debug, DebugDecoratorHelper, DebugHelper, DebugNamespaces, DuplicatedResultsError, Edition, EditionStatus, Exclusivities, FaceSkinOilinesses, FaceSkinProblems, FaceSkinTones, FamilyIncomes, Filter, FilterHasuraGraphQLRepository, FilterOption, FilterOptionHasuraGraphQLRepository, FilterType, FirebaseFileUploaderService, FragranceImportances, FraudValidationError, GenderDestination, GlampointsPaymentMethodFactory, GlampointsPaymentService, Group, GroupFirestoreRepository, HairColors, HairProblems, HairStrands, HairTypes, Home, HomeFirestoreRepository, InvalidArgumentError, KitProduct, KitProductHasuraGraphQL, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, Log, LogDocument, LogFirestoreRepository, Logger, MercadoPagoBankSlipAxiosAdapter, MercadoPagoCardAxiosAdapter, MercadoPagoPaymentMethodFactory, MercadoPagoPixAxiosAdapter, MercadoPagoRequestHelper, MercadoPagoResponseHelper, MercadoPagoStatusDetailEnum, MercadoPagoStatusEnum, NotFoundError, ObsEmitter, OfficePosition, Order, OrderBlocked, OrderBlockedFirestoreRepository, OrderBlockedType, OrderFirestoreRepository, OrderPaymentStatus, OrderStatus, PagarMeV5OrderStatus, PagarMeV5PaymentStatus, PagarmeBankSlipAxiosAdapter, PagarmeCardAxiosAdapter, PagarmePaymentMethodFactory, PagarmePaymentStatus, PagarmePixAxiosAdapter, PagarmeV5BankSlipAxiosAdapter, PagarmeV5CardAxiosAdapter, PagarmeV5PixAxiosAdapter, Payment, PaymentError, PaymentFirestoreRepository, PaymentMethods, PaymentProviderFactory, PaymentProviders, PaymentTransaction, PaymentType, PersonTypes, Plans, Product, ProductErrors, ProductErrorsHasuraGraphQL, ProductErrorsHasuraGraphQLRepository, ProductFirestoreRepository, ProductHasuraGraphQL, ProductHasuraGraphQLRepository, ProductLabelEnum, ProductReview, ProductReviewHasuraGraphQLRepository, ProductSpents, ProductStockNotification, ProductStockNotificationHasuraGraphQLRepository, ProductVariantFirestoreRepository, ProductsIndex, ProductsVertexSearch, QuestionsFilters, RecoveryPassword, ReflectHelper, Register, RegisterFirebaseAuthService, RequiredArgumentError, RestCacheAdapter, RoundProductPricesHelper, Sequence, SequenceFirestoreRepository, ShippingMethod, ShopMenu, ShopMenuFirestoreRepository, ShopPageName, ShopSettings, ShopSettingsFirestoreRepository, Shops, SignInMethods, SignOut, Status, StockLimitError, StockOutError, Subscription, SubscriptionEditionFirestoreRepository, SubscriptionFirestoreRepository, SubscriptionMaterialization, SubscriptionMaterializationFirestoreRepository, SubscriptionPayment, SubscriptionPaymentFirestoreRepository, SubscriptionPlan, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionSummary, SubscriptionSummaryFirestoreRepository, Trace, TransactionPaymentMethods, UnauthorizedError, UpdateOptionActions, UpdateUserImage, User, UserAddress, UserAddressFirestoreRepository, UserAlreadyRegisteredError, UserBeautyProfileFirestoreRepository, UserFirestoreRepository, UserPaymentMethod, UserPaymentMethodFirestoreRepository, UserType, Variant, VariantHasuraGraphQL, VariantHasuraGraphQLRepository, VertexAxiosAdapter, WeakPasswordError, Where, Wishlist, WishlistHasuraGraphQLRepository, WishlistLogType, deserialize, getClass, is, isDebuggable, isUUID, parseDateTime, registerClass, resolveClass, serialize, withCreateFirestore, withCreateHasuraGraphQL, withCrudFirestore, withCrudHasuraGraphQL, withDeleteFirestore, withDeleteHasuraGraphQL, withFindFirestore, withFindHasuraGraphQL, withFirestore, withGetFirestore, withGetHasuraGraphQL, withHasuraGraphQL, withHelpers, withSubCollection, withUpdateFirestore, withUpdateHasuraGraphQL };
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { PaymentProviderCard, PaymentProviderPix } from '../interfaces';
|
|
1
|
+
import { PaymentProviderBankSlip, PaymentProviderCard, PaymentProviderPix } from '../interfaces';
|
|
2
2
|
import { MercadoPagoCard } from '../types';
|
|
3
3
|
import { BasePaymentMethodFactory } from './base-payment-method.factory';
|
|
4
4
|
type MercadoPagoPaymentFactoryMethods = {
|
|
5
5
|
card?: PaymentProviderCard<MercadoPagoCard>;
|
|
6
6
|
pix?: PaymentProviderPix;
|
|
7
|
+
bankSlip?: PaymentProviderBankSlip;
|
|
7
8
|
};
|
|
8
9
|
export declare class MercadoPagoPaymentMethodFactory extends BasePaymentMethodFactory<MercadoPagoPaymentFactoryMethods> {
|
|
9
10
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare enum MercadoPagoStatusDetailEnum {
|
|
2
|
+
'accredited' = "accredited",
|
|
3
|
+
'partially_refunded' = "partially_refunded",
|
|
4
|
+
'pending_capture' = "pending_capture",
|
|
5
|
+
'offline_process' = "offline_process",
|
|
6
|
+
'pending_contingency' = "pending_contingency",
|
|
7
|
+
'pending_review_manual' = "pending_review_manual",
|
|
8
|
+
'pending_waiting_transfer' = "pending_waiting_transfer",
|
|
9
|
+
'pending_waiting_payment' = "pending_waiting_payment",
|
|
10
|
+
'pending_challenge' = "pending_challenge",
|
|
11
|
+
'bank_error' = "bank_error",
|
|
12
|
+
'cc_rejected_3ds_mandatory' = "cc_rejected_3ds_mandatory",
|
|
13
|
+
'cc_rejected_bad_filled_card_number' = "cc_rejected_bad_filled_card_number",
|
|
14
|
+
'cc_rejected_bad_filled_date' = "cc_rejected_bad_filled_date",
|
|
15
|
+
'cc_rejected_bad_filled_other' = "cc_rejected_bad_filled_other",
|
|
16
|
+
'cc_rejected_bad_filled_security_code' = "cc_rejected_bad_filled_security_code",
|
|
17
|
+
'cc_rejected_blacklist' = "cc_rejected_blacklist",
|
|
18
|
+
'cc_rejected_call_for_authorize' = "cc_rejected_call_for_authorize",
|
|
19
|
+
'cc_rejected_card_disabled' = "cc_rejected_card_disabled",
|
|
20
|
+
'cc_rejected_card_error' = "cc_rejected_card_error",
|
|
21
|
+
'cc_rejected_duplicated_payment' = "cc_rejected_duplicated_payment",
|
|
22
|
+
'cc_rejected_high_risk' = "cc_rejected_high_risk",
|
|
23
|
+
'cc_rejected_insufficient_amount' = "cc_rejected_insufficient_amount",
|
|
24
|
+
'cc_rejected_invalid_installments' = "cc_rejected_invalid_installments",
|
|
25
|
+
'cc_rejected_max_attempts' = "cc_rejected_max_attempts",
|
|
26
|
+
'cc_rejected_other_reason' = "cc_rejected_other_reason",
|
|
27
|
+
'cc_amount_rate_limit_exceeded' = "cc_amount_rate_limit_exceeded",
|
|
28
|
+
'rejected_insufficient_data' = "rejected_insufficient_data",
|
|
29
|
+
'rejected_by_bank' = "rejected_by_bank",
|
|
30
|
+
'rejected_by_regulations' = "rejected_by_regulations",
|
|
31
|
+
'insufficient_amount' = "insufficient_amount",
|
|
32
|
+
'cc_rejected_card_type_not_allowed' = "cc_rejected_card_type_not_allowed"
|
|
33
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum MercadoPagoStatusEnum {
|
|
2
|
+
'approved' = "approved",
|
|
3
|
+
'authorized' = "authorized",
|
|
4
|
+
'pending' = "pending",
|
|
5
|
+
'in_process' = "in_process",
|
|
6
|
+
'rejected' = "rejected",
|
|
7
|
+
'cancelled' = "cancelled",
|
|
8
|
+
'refunded' = "refunded",
|
|
9
|
+
'charged_back' = "charged_back"
|
|
10
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { MercadoPagoStatusDetail } from './mercado-pago-status-detail.type';
|
|
2
|
+
import { MercadoPagoStatus } from './mercado-pago-status.type';
|
|
3
3
|
export type MercadoPagoResponse = {
|
|
4
4
|
id: number;
|
|
5
5
|
date_created?: string;
|