vk-payments 0.2.32 → 0.2.34
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/bundles/vk-payments.umd.js +322 -7
- package/bundles/vk-payments.umd.js.map +1 -1
- package/bundles/vk-payments.umd.min.js +1 -1
- package/bundles/vk-payments.umd.min.js.map +1 -1
- package/esm2015/lib/bank-transfer/bank-transfer.module.js +33 -0
- package/esm2015/lib/bank-transfer/components/bank-transfer.component.js +206 -0
- package/esm2015/lib/bank-transfer/models/bank-transfer.models.js +54 -0
- package/esm2015/lib/bank-transfer/services/bank-transfer.api.service.js +52 -0
- package/esm2015/lib/galicia/components/galicia.component.js +1 -2
- package/esm2015/lib/vk-payments.module.js +3 -1
- package/esm2015/vk-payments.js +10 -7
- package/esm5/lib/bank-transfer/bank-transfer.module.js +37 -0
- package/esm5/lib/bank-transfer/components/bank-transfer.component.js +234 -0
- package/esm5/lib/bank-transfer/models/bank-transfer.models.js +54 -0
- package/esm5/lib/bank-transfer/services/bank-transfer.api.service.js +57 -0
- package/esm5/lib/galicia/components/galicia.component.js +1 -2
- package/esm5/lib/vk-payments.module.js +3 -1
- package/esm5/vk-payments.js +10 -7
- package/fesm2015/vk-payments.js +281 -3
- package/fesm2015/vk-payments.js.map +1 -1
- package/fesm5/vk-payments.js +315 -3
- package/fesm5/vk-payments.js.map +1 -1
- package/lib/bank-transfer/bank-transfer.module.d.ts +2 -0
- package/lib/bank-transfer/components/bank-transfer.component.d.ts +30 -0
- package/lib/bank-transfer/models/bank-transfer.models.d.ts +20 -0
- package/lib/bank-transfer/services/bank-transfer.api.service.d.ts +8 -0
- package/package.json +2 -2
- package/vk-payments.d.ts +9 -6
- package/vk-payments.metadata.json +1 -1
|
@@ -3910,6 +3910,318 @@
|
|
|
3910
3910
|
return ModoModule;
|
|
3911
3911
|
}());
|
|
3912
3912
|
|
|
3913
|
+
/**
|
|
3914
|
+
* @fileoverview added by tsickle
|
|
3915
|
+
* Generated from: lib/bank-transfer/services/bank-transfer.api.service.ts
|
|
3916
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3917
|
+
*/
|
|
3918
|
+
var BankTransferApiService = /** @class */ (function () {
|
|
3919
|
+
function BankTransferApiService(http) {
|
|
3920
|
+
this.http = http;
|
|
3921
|
+
}
|
|
3922
|
+
/**
|
|
3923
|
+
* @param {?} accessToken
|
|
3924
|
+
* @param {?} request
|
|
3925
|
+
* @param {?} vkApiUrl
|
|
3926
|
+
* @return {?}
|
|
3927
|
+
*/
|
|
3928
|
+
BankTransferApiService.prototype.createPayment = /**
|
|
3929
|
+
* @param {?} accessToken
|
|
3930
|
+
* @param {?} request
|
|
3931
|
+
* @param {?} vkApiUrl
|
|
3932
|
+
* @return {?}
|
|
3933
|
+
*/
|
|
3934
|
+
function (accessToken, request, vkApiUrl) {
|
|
3935
|
+
/** @type {?} */
|
|
3936
|
+
var headers = new http.HttpHeaders({
|
|
3937
|
+
'Content-Type': 'application/json',
|
|
3938
|
+
Authorization: "Bearer " + accessToken
|
|
3939
|
+
});
|
|
3940
|
+
// Construimos la URL agregando la rute del Controller de BankTransfer
|
|
3941
|
+
/** @type {?} */
|
|
3942
|
+
var url = vkApiUrl + "payments/BankTransfer/create-payment";
|
|
3943
|
+
return this.http.post(url, request, { headers: headers });
|
|
3944
|
+
};
|
|
3945
|
+
BankTransferApiService.decorators = [
|
|
3946
|
+
{ type: core.Injectable, args: [{
|
|
3947
|
+
providedIn: 'root'
|
|
3948
|
+
},] }
|
|
3949
|
+
];
|
|
3950
|
+
/** @nocollapse */
|
|
3951
|
+
BankTransferApiService.ctorParameters = function () { return [
|
|
3952
|
+
{ type: http.HttpClient }
|
|
3953
|
+
]; };
|
|
3954
|
+
/** @nocollapse */ BankTransferApiService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function BankTransferApiService_Factory() { return new BankTransferApiService(core.ɵɵinject(http.HttpClient)); }, token: BankTransferApiService, providedIn: "root" });
|
|
3955
|
+
return BankTransferApiService;
|
|
3956
|
+
}());
|
|
3957
|
+
if (false) {
|
|
3958
|
+
/**
|
|
3959
|
+
* @type {?}
|
|
3960
|
+
* @private
|
|
3961
|
+
*/
|
|
3962
|
+
BankTransferApiService.prototype.http;
|
|
3963
|
+
}
|
|
3964
|
+
|
|
3965
|
+
/**
|
|
3966
|
+
* @fileoverview added by tsickle
|
|
3967
|
+
* Generated from: lib/bank-transfer/components/bank-transfer.component.ts
|
|
3968
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3969
|
+
*/
|
|
3970
|
+
var BankTransferComponent = /** @class */ (function () {
|
|
3971
|
+
function BankTransferComponent(bankTransferApi) {
|
|
3972
|
+
this.bankTransferApi = bankTransferApi;
|
|
3973
|
+
this.discountRate = 0.10; // Tasa de descuento (10% por defecto)
|
|
3974
|
+
// Descuento explícito desde el carrito
|
|
3975
|
+
this.statusPay = new core.EventEmitter();
|
|
3976
|
+
this.isLoading = false;
|
|
3977
|
+
this.errorMessage = '';
|
|
3978
|
+
this.submittedSuccessfully = false;
|
|
3979
|
+
this.amountCopied = false;
|
|
3980
|
+
// CUIT no se pide al usuario por ahora — se envía valor genérico
|
|
3981
|
+
this.paymentForm = new forms.FormGroup({
|
|
3982
|
+
cuit: new forms.FormControl('00000000000')
|
|
3983
|
+
});
|
|
3984
|
+
}
|
|
3985
|
+
Object.defineProperty(BankTransferComponent.prototype, "subtotalAmount", {
|
|
3986
|
+
// Calculados a partir de `amount` (que ya tiene el descuento aplicado)
|
|
3987
|
+
get:
|
|
3988
|
+
// Calculados a partir de `amount` (que ya tiene el descuento aplicado)
|
|
3989
|
+
/**
|
|
3990
|
+
* @return {?}
|
|
3991
|
+
*/
|
|
3992
|
+
function () {
|
|
3993
|
+
if (this.discountAmountValue !== undefined && this.discountAmountValue !== null) {
|
|
3994
|
+
return this.amount + this.discountAmountValue;
|
|
3995
|
+
}
|
|
3996
|
+
return this.amount ? Math.round(this.amount / (1 - this.discountRate)) : 0;
|
|
3997
|
+
},
|
|
3998
|
+
enumerable: true,
|
|
3999
|
+
configurable: true
|
|
4000
|
+
});
|
|
4001
|
+
Object.defineProperty(BankTransferComponent.prototype, "discountAmount", {
|
|
4002
|
+
get: /**
|
|
4003
|
+
* @return {?}
|
|
4004
|
+
*/
|
|
4005
|
+
function () {
|
|
4006
|
+
if (this.discountAmountValue !== undefined && this.discountAmountValue !== null) {
|
|
4007
|
+
return this.discountAmountValue;
|
|
4008
|
+
}
|
|
4009
|
+
return this.subtotalAmount - (this.amount || 0);
|
|
4010
|
+
},
|
|
4011
|
+
enumerable: true,
|
|
4012
|
+
configurable: true
|
|
4013
|
+
});
|
|
4014
|
+
/**
|
|
4015
|
+
* @return {?}
|
|
4016
|
+
*/
|
|
4017
|
+
BankTransferComponent.prototype.ngOnInit = /**
|
|
4018
|
+
* @return {?}
|
|
4019
|
+
*/
|
|
4020
|
+
function () { };
|
|
4021
|
+
/**
|
|
4022
|
+
* @param {?} text
|
|
4023
|
+
* @return {?}
|
|
4024
|
+
*/
|
|
4025
|
+
BankTransferComponent.prototype.copyToClipboard = /**
|
|
4026
|
+
* @param {?} text
|
|
4027
|
+
* @return {?}
|
|
4028
|
+
*/
|
|
4029
|
+
function (text) {
|
|
4030
|
+
navigator.clipboard.writeText(text).catch((/**
|
|
4031
|
+
* @return {?}
|
|
4032
|
+
*/
|
|
4033
|
+
function () {
|
|
4034
|
+
/** @type {?} */
|
|
4035
|
+
var el = document.createElement('textarea');
|
|
4036
|
+
el.value = text;
|
|
4037
|
+
document.body.appendChild(el);
|
|
4038
|
+
el.select();
|
|
4039
|
+
document.execCommand('copy');
|
|
4040
|
+
document.body.removeChild(el);
|
|
4041
|
+
}));
|
|
4042
|
+
};
|
|
4043
|
+
/**
|
|
4044
|
+
* @return {?}
|
|
4045
|
+
*/
|
|
4046
|
+
BankTransferComponent.prototype.copyAmount = /**
|
|
4047
|
+
* @return {?}
|
|
4048
|
+
*/
|
|
4049
|
+
function () {
|
|
4050
|
+
var _this = this;
|
|
4051
|
+
/** @type {?} */
|
|
4052
|
+
var amountStr = this.amount ? this.amount.toFixed(2) : '0';
|
|
4053
|
+
this.copyToClipboard(amountStr);
|
|
4054
|
+
this.amountCopied = true;
|
|
4055
|
+
setTimeout((/**
|
|
4056
|
+
* @return {?}
|
|
4057
|
+
*/
|
|
4058
|
+
function () { return _this.amountCopied = false; }), 2000);
|
|
4059
|
+
};
|
|
4060
|
+
/**
|
|
4061
|
+
* @return {?}
|
|
4062
|
+
*/
|
|
4063
|
+
BankTransferComponent.prototype.onSubmit = /**
|
|
4064
|
+
* @return {?}
|
|
4065
|
+
*/
|
|
4066
|
+
function () {
|
|
4067
|
+
var _this = this;
|
|
4068
|
+
if (this.submittedSuccessfully || this.isLoading)
|
|
4069
|
+
return;
|
|
4070
|
+
this.isLoading = true;
|
|
4071
|
+
this.errorMessage = '';
|
|
4072
|
+
/** @type {?} */
|
|
4073
|
+
var request = {
|
|
4074
|
+
cuit: '00000000000',
|
|
4075
|
+
// Valor genérico mientras no se pide al usuario
|
|
4076
|
+
checkoutId: this.checkoutId,
|
|
4077
|
+
checkoutAdditionalData: this.checkoutAdditionalData,
|
|
4078
|
+
storeName: this.storeName || 'Tienda VK',
|
|
4079
|
+
storeId: this.storeId
|
|
4080
|
+
};
|
|
4081
|
+
this.bankTransferApi.createPayment(this.accessToken, request, this.vkUrlApi).subscribe((/**
|
|
4082
|
+
* @param {?} response
|
|
4083
|
+
* @return {?}
|
|
4084
|
+
*/
|
|
4085
|
+
function (response) {
|
|
4086
|
+
_this.isLoading = false;
|
|
4087
|
+
if (response && response.success) {
|
|
4088
|
+
_this.submittedSuccessfully = true;
|
|
4089
|
+
_this.statusPay.emit({
|
|
4090
|
+
success: true,
|
|
4091
|
+
paymentId: (response.data && response.data.bankTransferEcommId) ? response.data.bankTransferEcommId : '',
|
|
4092
|
+
integrator: 'BANK_TRANSFER'
|
|
4093
|
+
});
|
|
4094
|
+
}
|
|
4095
|
+
else {
|
|
4096
|
+
_this.errorMessage = (response.errorsMessages && response.errorsMessages.length > 0)
|
|
4097
|
+
? response.errorsMessages[0]
|
|
4098
|
+
: 'Ocurrió un error al registrar la transferencia.';
|
|
4099
|
+
_this.statusPay.emit({
|
|
4100
|
+
success: false,
|
|
4101
|
+
paymentId: '',
|
|
4102
|
+
integrator: 'BANK_TRANSFER'
|
|
4103
|
+
});
|
|
4104
|
+
}
|
|
4105
|
+
}), (/**
|
|
4106
|
+
* @param {?} error
|
|
4107
|
+
* @return {?}
|
|
4108
|
+
*/
|
|
4109
|
+
function (error) {
|
|
4110
|
+
_this.isLoading = false;
|
|
4111
|
+
_this.errorMessage = (error && error.error && error.error.errorsMessages && error.error.errorsMessages.length > 0)
|
|
4112
|
+
? error.error.errorsMessages[0]
|
|
4113
|
+
: 'Ocurrió un error de conexión al registrar la transferencia.';
|
|
4114
|
+
_this.statusPay.emit({
|
|
4115
|
+
success: false,
|
|
4116
|
+
paymentId: '',
|
|
4117
|
+
integrator: 'BANK_TRANSFER'
|
|
4118
|
+
});
|
|
4119
|
+
console.error('Error BankTransferApiService:', error);
|
|
4120
|
+
}));
|
|
4121
|
+
};
|
|
4122
|
+
Object.defineProperty(BankTransferComponent.prototype, "cuitControl", {
|
|
4123
|
+
get: /**
|
|
4124
|
+
* @return {?}
|
|
4125
|
+
*/
|
|
4126
|
+
function () {
|
|
4127
|
+
return this.paymentForm.get('cuit');
|
|
4128
|
+
},
|
|
4129
|
+
enumerable: true,
|
|
4130
|
+
configurable: true
|
|
4131
|
+
});
|
|
4132
|
+
BankTransferComponent.decorators = [
|
|
4133
|
+
{ type: core.Component, args: [{
|
|
4134
|
+
selector: 'vk-bank-transfer',
|
|
4135
|
+
template: "<form\n [formGroup]=\"paymentForm\"\n (ngSubmit)=\"onSubmit()\"\n class=\"bt-payment\"\n id=\"formularioBT\"\n autocomplete=\"off\"\n>\n\n <!-- Datos bancarios -->\n <div class=\"bank-info-box\">\n <div class=\"bank-info-header\">\n <i class=\"material-icons\">account_balance</i>\n <span>Datos para la transferencia</span>\n </div>\n <div class=\"bank-info-row\">\n <span class=\"bank-info-label\"><i class=\"material-icons\">tag</i>N\u00FAmero de cuenta</span>\n <span class=\"bank-info-value\">2-311972/1</span>\n </div>\n <div class=\"bank-info-row\">\n <span class=\"bank-info-label\"><i class=\"material-icons\">qr_code</i>CBU</span>\n <span class=\"bank-info-value bank-info-copy\">\n <span class=\"bank-info-copy-text\">4150002012003119720013</span>\n <button class=\"copy-btn\" type=\"button\" title=\"Copiar CBU\" (click)=\"copyToClipboard('4150002012003119720013')\">\n <i class=\"material-icons\">content_copy</i>\n </button>\n </span>\n </div>\n <div class=\"bank-info-row\">\n <span class=\"bank-info-label\"><i class=\"material-icons\">alternate_email</i>Alias</span>\n <span class=\"bank-info-value bank-info-copy\">\n <span class=\"bank-info-copy-text\">reba.vitnik</span>\n <button class=\"copy-btn\" type=\"button\" title=\"Copiar alias\" (click)=\"copyToClipboard('reba.vitnik')\">\n <i class=\"material-icons\">content_copy</i>\n </button>\n </span>\n </div>\n <div class=\"bank-info-row\">\n <span class=\"bank-info-label\"><i class=\"material-icons\">badge</i>CUIT/CUIL</span>\n <span class=\"bank-info-value\">30708777893</span>\n </div>\n <div class=\"bank-info-row\">\n <span class=\"bank-info-label\"><i class=\"material-icons\">attach_money</i>Moneda</span>\n <span class=\"bank-info-value\">Peso Argentino</span>\n </div>\n </div>\n\n <!-- Resumen con desglose del descuento -->\n <div class=\"summary-box\">\n <div class=\"summary-row\">\n <span class=\"summary-label\">Subtotal</span>\n <span class=\"summary-value\">${{ subtotalAmount | number:'1.2-2' }}</span>\n </div>\n <div class=\"summary-row discount\">\n <span class=\"summary-label\">\n <i class=\"material-icons\">local_offer</i>\n Descuento transferencia ({{ discountRate * 100 | number:'1.0-0' }}%)\n </span>\n <span class=\"summary-value discount-value\">-${{ discountAmount | number:'1.2-2' }}</span>\n </div>\n <div class=\"summary-row total\">\n <span class=\"summary-label\">Total a transferir</span>\n <span class=\"summary-value total-value\">\n ${{ amount | number:'1.2-2' }}\n <button\n class=\"copy-btn copy-amount-btn\"\n type=\"button\"\n [title]=\"amountCopied ? 'Copiado!' : 'Copiar monto'\"\n (click)=\"copyAmount()\"\n >\n <i class=\"material-icons\">{{ amountCopied ? 'check' : 'content_copy' }}</i>\n </button>\n </span>\n </div>\n </div>\n\n <!-- Leyenda de monto exacto -->\n <div class=\"exact-amount-notice\">\n <i class=\"material-icons notice-icon\">info</i>\n <p>\n <strong>\u00A1Ya casi es tuyo!</strong> Para que podamos procesar tu pedido sin demoras,\n asegurate de que el importe de la transferencia sea <strong>id\u00E9ntico</strong> al total indicado arriba.\n </p>\n </div>\n\n <!-- Error devuelto por la API -->\n <div class=\"pay-message error\" *ngIf=\"errorMessage && !isLoading\">\n <i class=\"material-icons\">error</i>\n <p>{{ errorMessage }}</p>\n </div>\n\n <!-- Loading -->\n <div *ngIf=\"isLoading\" class=\"pay-message info\">\n <i class=\"material-icons\">info</i>\n <p>Procesando informaci\u00F3n de transferencia...</p>\n </div>\n\n <!-- Bot\u00F3n confirmar (oculto tras \u00E9xito) -->\n <div *ngIf=\"!submittedSuccessfully\">\n <button type=\"submit\" [disabled]=\"paymentForm.invalid || isLoading\">\n Confirmar Transferencia\n </button>\n </div>\n\n</form>\n",
|
|
4136
|
+
styles: [".bt-payment{background-color:transparent;font-family:inherit,sans-serif;padding:0 12px}.bt-payment p.description{font-size:16px;color:#888;margin-bottom:5px}.bt-payment .bank-info-box{border:1px solid #c8e0f0;border-radius:8px;overflow:hidden;margin-bottom:18px}.bt-payment .bank-info-box .bank-info-header{display:flex;align-items:center;gap:8px;background-color:#009ee3;color:#fff;padding:10px 14px;font-size:18px;font-weight:600;letter-spacing:.4px;text-transform:uppercase}.bt-payment .bank-info-box .bank-info-header i.material-icons{font-size:18px}.bt-payment .bank-info-box .bank-info-row{display:flex;justify-content:space-between;align-items:center;font-size:18px;padding:8px 14px;background-color:#fff;border-bottom:1px solid #eef3f7}.bt-payment .bank-info-box .bank-info-row:last-child{border-bottom:none}.bt-payment .bank-info-box .bank-info-label{display:flex;align-items:center;gap:6px;color:#777;flex-shrink:0;margin-right:8px}.bt-payment .bank-info-box .bank-info-label i.material-icons{font-size:15px;color:#009ee3}.bt-payment .bank-info-box .bank-info-value{font-weight:600;color:#1a1a1a;text-align:right}.bt-payment .bank-info-box .bank-info-value.bank-info-copy{display:flex;align-items:center;gap:4px}.bt-payment .bank-info-box .bank-info-value .bank-info-copy-text{font-family:\"Courier New\",monospace;font-size:18px;letter-spacing:.3px}.bt-payment .bank-info-box .copy-btn{background:0 0;border:none;cursor:pointer;padding:2px 4px;border-radius:4px;color:#009ee3;display:flex;align-items:center;margin-top:0;width:auto;min-width:unset}.bt-payment .bank-info-box .copy-btn i.material-icons{font-size:16px}.bt-payment .bank-info-box .copy-btn:hover{background-color:#e8f4fb}.bt-payment .bank-info-box .copy-btn:disabled{background-color:transparent;cursor:default}.bt-payment .summary-box{margin:20px 0;border:1px solid #e0e0e0;border-radius:8px;overflow:hidden}.bt-payment .summary-box .summary-row{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;font-size:16px;background-color:#fff;border-bottom:1px solid #f0f0f0}.bt-payment .summary-box .summary-row:last-child{border-bottom:none}.bt-payment .summary-box .summary-row .summary-label{display:flex;align-items:center;gap:6px;color:#555}.bt-payment .summary-box .summary-row .summary-label i.material-icons{font-size:14px}.bt-payment .summary-box .summary-row .summary-value{font-weight:600;color:#1a1a1a;display:flex;align-items:center;gap:6px}.bt-payment .summary-box .summary-row.discount{background-color:#f0fdf4}.bt-payment .summary-box .summary-row.discount .summary-label{color:#16a34a;font-weight:500}.bt-payment .summary-box .summary-row.discount .summary-label i.material-icons{color:#16a34a}.bt-payment .summary-box .summary-row.discount .discount-value{color:#16a34a;font-weight:700}.bt-payment .summary-box .summary-row.total{background-color:#f8f9fa;border-top:2px solid #009ee3}.bt-payment .summary-box .summary-row.total .summary-label{font-size:17px;font-weight:700;color:#1a1a1a}.bt-payment .summary-box .summary-row.total .total-value{font-size:20px;font-weight:800;color:#009ee3}.bt-payment .summary-box .copy-amount-btn{background:0 0;border:1px solid #009ee3;border-radius:6px;cursor:pointer;padding:2px 6px;color:#009ee3;display:flex;align-items:center;width:auto;min-width:unset;margin-top:0;transition:background-color .2s}.bt-payment .summary-box .copy-amount-btn i.material-icons{font-size:16px}.bt-payment .summary-box .copy-amount-btn:hover{background-color:#e8f4fb}.bt-payment .exact-amount-notice{display:flex;align-items:flex-start;gap:10px;background-color:#fffbeb;border:1px solid #fcd34d;border-radius:8px;padding:12px 14px;margin-bottom:20px}.bt-payment .exact-amount-notice .notice-icon{font-size:20px;color:#d97706;flex-shrink:0;margin-top:2px}.bt-payment .exact-amount-notice p{font-size:14px;color:#78350f;margin:0;line-height:1.5}.bt-payment .formRow{margin-top:10px;display:none}.bt-payment .formRow label{font-size:16px;color:#888}.bt-payment .formRow span{background-color:#fff;border:.5px solid #707070;border-radius:2px;padding:2px 10px;display:block;margin-top:4px}.bt-payment .formRow span input[type=text]{background:0 0;border:none;color:#000;font-size:16px;height:23px;width:100%;text-transform:uppercase;vertical-align:top;padding:0;margin:0}.bt-payment .formRow span input[type=text]:focus{outline:0}.bt-payment .alert-text{font-size:16px;color:#009ee3;margin-top:7px;margin-bottom:0}.bt-payment button[type=submit]{background-color:#009ee3;color:#fff;font-size:18px;text-align:center;padding:10px 0;width:100%;border:none;border-radius:20px;margin-top:20px;cursor:pointer}.bt-payment button[type=submit]:disabled{background-color:#525252;cursor:not-allowed}.bt-payment .pay-message{margin-top:10px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;border-radius:8px}.bt-payment .pay-message p{font-size:1.1rem;text-align:center;line-height:130%;margin-bottom:10px}.bt-payment .pay-message i.material-icons{font-size:2rem;margin-bottom:5px}.bt-payment .success{background-color:#dff2bf;color:#4f8a10}.bt-payment .error{color:#d8000c;background-color:#ffd2d2}.bt-payment .info{color:#00529b;background-color:#bde5f8}:focus{outline:0}"]
|
|
4137
|
+
}] }
|
|
4138
|
+
];
|
|
4139
|
+
/** @nocollapse */
|
|
4140
|
+
BankTransferComponent.ctorParameters = function () { return [
|
|
4141
|
+
{ type: BankTransferApiService }
|
|
4142
|
+
]; };
|
|
4143
|
+
BankTransferComponent.propDecorators = {
|
|
4144
|
+
accessToken: [{ type: core.Input }],
|
|
4145
|
+
vkUrlApi: [{ type: core.Input }],
|
|
4146
|
+
amount: [{ type: core.Input }],
|
|
4147
|
+
storeId: [{ type: core.Input }],
|
|
4148
|
+
storeName: [{ type: core.Input }],
|
|
4149
|
+
checkoutId: [{ type: core.Input }],
|
|
4150
|
+
checkoutAdditionalData: [{ type: core.Input }],
|
|
4151
|
+
discountRate: [{ type: core.Input }],
|
|
4152
|
+
discountAmountValue: [{ type: core.Input }],
|
|
4153
|
+
statusPay: [{ type: core.Output }]
|
|
4154
|
+
};
|
|
4155
|
+
return BankTransferComponent;
|
|
4156
|
+
}());
|
|
4157
|
+
if (false) {
|
|
4158
|
+
/** @type {?} */
|
|
4159
|
+
BankTransferComponent.prototype.accessToken;
|
|
4160
|
+
/** @type {?} */
|
|
4161
|
+
BankTransferComponent.prototype.vkUrlApi;
|
|
4162
|
+
/** @type {?} */
|
|
4163
|
+
BankTransferComponent.prototype.amount;
|
|
4164
|
+
/** @type {?} */
|
|
4165
|
+
BankTransferComponent.prototype.storeId;
|
|
4166
|
+
/** @type {?} */
|
|
4167
|
+
BankTransferComponent.prototype.storeName;
|
|
4168
|
+
/** @type {?} */
|
|
4169
|
+
BankTransferComponent.prototype.checkoutId;
|
|
4170
|
+
/** @type {?} */
|
|
4171
|
+
BankTransferComponent.prototype.checkoutAdditionalData;
|
|
4172
|
+
/** @type {?} */
|
|
4173
|
+
BankTransferComponent.prototype.discountRate;
|
|
4174
|
+
/** @type {?} */
|
|
4175
|
+
BankTransferComponent.prototype.discountAmountValue;
|
|
4176
|
+
/** @type {?} */
|
|
4177
|
+
BankTransferComponent.prototype.statusPay;
|
|
4178
|
+
/** @type {?} */
|
|
4179
|
+
BankTransferComponent.prototype.paymentForm;
|
|
4180
|
+
/** @type {?} */
|
|
4181
|
+
BankTransferComponent.prototype.isLoading;
|
|
4182
|
+
/** @type {?} */
|
|
4183
|
+
BankTransferComponent.prototype.errorMessage;
|
|
4184
|
+
/** @type {?} */
|
|
4185
|
+
BankTransferComponent.prototype.submittedSuccessfully;
|
|
4186
|
+
/** @type {?} */
|
|
4187
|
+
BankTransferComponent.prototype.amountCopied;
|
|
4188
|
+
/**
|
|
4189
|
+
* @type {?}
|
|
4190
|
+
* @private
|
|
4191
|
+
*/
|
|
4192
|
+
BankTransferComponent.prototype.bankTransferApi;
|
|
4193
|
+
}
|
|
4194
|
+
|
|
4195
|
+
/**
|
|
4196
|
+
* @fileoverview added by tsickle
|
|
4197
|
+
* Generated from: lib/bank-transfer/bank-transfer.module.ts
|
|
4198
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4199
|
+
*/
|
|
4200
|
+
var BankTransferModule = /** @class */ (function () {
|
|
4201
|
+
function BankTransferModule() {
|
|
4202
|
+
}
|
|
4203
|
+
BankTransferModule.decorators = [
|
|
4204
|
+
{ type: core.NgModule, args: [{
|
|
4205
|
+
declarations: [
|
|
4206
|
+
BankTransferComponent
|
|
4207
|
+
],
|
|
4208
|
+
imports: [
|
|
4209
|
+
common.CommonModule,
|
|
4210
|
+
forms.FormsModule,
|
|
4211
|
+
forms.ReactiveFormsModule,
|
|
4212
|
+
http.HttpClientModule
|
|
4213
|
+
],
|
|
4214
|
+
exports: [
|
|
4215
|
+
BankTransferComponent
|
|
4216
|
+
],
|
|
4217
|
+
providers: [
|
|
4218
|
+
BankTransferApiService
|
|
4219
|
+
]
|
|
4220
|
+
},] }
|
|
4221
|
+
];
|
|
4222
|
+
return BankTransferModule;
|
|
4223
|
+
}());
|
|
4224
|
+
|
|
3913
4225
|
/**
|
|
3914
4226
|
* @fileoverview added by tsickle
|
|
3915
4227
|
* Generated from: lib/galicia/services/galicia.api.service.ts
|
|
@@ -4198,7 +4510,6 @@
|
|
|
4198
4510
|
* @return {?}
|
|
4199
4511
|
*/
|
|
4200
4512
|
function (response) {
|
|
4201
|
-
console.log(response);
|
|
4202
4513
|
if (!response.success) {
|
|
4203
4514
|
this.isLoading = false;
|
|
4204
4515
|
this.statusPay.emit(this.paymentResult);
|
|
@@ -4392,6 +4703,7 @@
|
|
|
4392
4703
|
SpsDecidirModule,
|
|
4393
4704
|
PaypalModule,
|
|
4394
4705
|
GoCuotasModule,
|
|
4706
|
+
BankTransferModule,
|
|
4395
4707
|
ModoModule,
|
|
4396
4708
|
GaliciaModule
|
|
4397
4709
|
];
|
|
@@ -4422,12 +4734,15 @@
|
|
|
4422
4734
|
exports.ɵk = GoCuotasComponent;
|
|
4423
4735
|
exports.ɵl = ModalComponent;
|
|
4424
4736
|
exports.ɵm = GoCuotasApiService;
|
|
4425
|
-
exports.ɵn =
|
|
4426
|
-
exports.ɵo =
|
|
4427
|
-
exports.ɵp =
|
|
4428
|
-
exports.ɵq =
|
|
4429
|
-
exports.ɵr =
|
|
4430
|
-
exports.ɵs =
|
|
4737
|
+
exports.ɵn = BankTransferModule;
|
|
4738
|
+
exports.ɵo = BankTransferComponent;
|
|
4739
|
+
exports.ɵp = BankTransferApiService;
|
|
4740
|
+
exports.ɵq = ModoModule;
|
|
4741
|
+
exports.ɵr = ModoComponent;
|
|
4742
|
+
exports.ɵs = ModoApiService;
|
|
4743
|
+
exports.ɵt = GaliciaModule;
|
|
4744
|
+
exports.ɵu = GaliciaComponent;
|
|
4745
|
+
exports.ɵv = GaliciaApiService;
|
|
4431
4746
|
|
|
4432
4747
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4433
4748
|
|