@xsolla/payment-client-core 0.1.14-test3 → 0.1.14-test5
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/esm2020/lib/core/payment/payment.service.mjs +2 -2
- package/esm2020/lib/core/payment/status/save-payment-method-status/api/saved-payment-account-changes.service.mjs +6 -3
- package/esm2020/lib/core/payment/status/status-request/status-request-params.interface.mjs +1 -1
- package/esm2020/lib/core/payment/status/status-request/status-search-param.enum.mjs +2 -2
- package/esm2020/lib/core/payment/status/status-request/status-search-params.map.mjs +3 -3
- package/esm2020/lib/core/payment/status/status.service.mjs +3 -2
- package/fesm2015/xsolla-payment-client-core.mjs +11 -7
- package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
- package/fesm2020/xsolla-payment-client-core.mjs +11 -7
- package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/payment/status/status-request/status-request-params.interface.d.ts +1 -1
- package/lib/core/payment/status/status-request/status-search-param.enum.d.ts +1 -1
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.1.14-test5.tgz +0 -0
- package/xsolla-payment-client-core-0.1.14-test3.tgz +0 -0
|
@@ -2966,7 +2966,7 @@ var StatusSearchParam;
|
|
|
2966
2966
|
StatusSearchParam["testPs"] = "fix_testPs";
|
|
2967
2967
|
StatusSearchParam["testXsolla"] = "fix_testXsolla";
|
|
2968
2968
|
StatusSearchParam["userReturnStatus"] = "fix_userReturnStatus";
|
|
2969
|
-
StatusSearchParam["
|
|
2969
|
+
StatusSearchParam["isSavePaymentAccount"] = "isSavePaymentAccount";
|
|
2970
2970
|
})(StatusSearchParam || (StatusSearchParam = {}));
|
|
2971
2971
|
|
|
2972
2972
|
const requiredStatusSearchParams = [
|
|
@@ -3047,9 +3047,9 @@ const statusSearchParamsMap = new Map([
|
|
|
3047
3047
|
},
|
|
3048
3048
|
],
|
|
3049
3049
|
[
|
|
3050
|
-
StatusSearchParam.
|
|
3050
|
+
StatusSearchParam.isSavePaymentAccount,
|
|
3051
3051
|
{
|
|
3052
|
-
key: '
|
|
3052
|
+
key: 'isSavePaymentAccount',
|
|
3053
3053
|
converter: numberConverter,
|
|
3054
3054
|
},
|
|
3055
3055
|
],
|
|
@@ -4621,9 +4621,12 @@ class SavedPaymentAccountChangesService {
|
|
|
4621
4621
|
}
|
|
4622
4622
|
}
|
|
4623
4623
|
SavedPaymentAccountChangesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: SavedPaymentAccountChangesService, deps: [{ token: SettingsService }, { token: SecureApiClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4624
|
-
SavedPaymentAccountChangesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: SavedPaymentAccountChangesService });
|
|
4624
|
+
SavedPaymentAccountChangesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: SavedPaymentAccountChangesService, providedIn: 'root' });
|
|
4625
4625
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: SavedPaymentAccountChangesService, decorators: [{
|
|
4626
|
-
type: Injectable
|
|
4626
|
+
type: Injectable,
|
|
4627
|
+
args: [{
|
|
4628
|
+
providedIn: 'root'
|
|
4629
|
+
}]
|
|
4627
4630
|
}], ctorParameters: function () { return [{ type: SettingsService }, { type: SecureApiClient }]; } });
|
|
4628
4631
|
|
|
4629
4632
|
class SavePaymentMethodStatusService {
|
|
@@ -4694,7 +4697,7 @@ class StatusService {
|
|
|
4694
4697
|
async getStatus(params) {
|
|
4695
4698
|
// todo: если params.savePaymentMethod, то надо выполнить логику для
|
|
4696
4699
|
// account status
|
|
4697
|
-
const isSavePaymentMethodMode = !!params?.
|
|
4700
|
+
const isSavePaymentMethodMode = !!params?.isSavePaymentAccount;
|
|
4698
4701
|
if (isSavePaymentMethodMode) {
|
|
4699
4702
|
return this.savePaymentMethodStatusService.getStatus(params); // todo: saveMethodStatus.getStatus();
|
|
4700
4703
|
}
|
|
@@ -4707,6 +4710,7 @@ class StatusService {
|
|
|
4707
4710
|
}
|
|
4708
4711
|
async getStatusWithUrlSearchParams(url) {
|
|
4709
4712
|
const searchParams = this.getRequestParamsFromUrl(url);
|
|
4713
|
+
console.log('searchParams', searchParams);
|
|
4710
4714
|
if (!searchParams) {
|
|
4711
4715
|
throw new Error('No required search params to get status');
|
|
4712
4716
|
}
|
|
@@ -5291,7 +5295,7 @@ class PaymentService {
|
|
|
5291
5295
|
signature: this.data.signature ?? '',
|
|
5292
5296
|
locale: this.data.fields.find((field) => field.name === 'locale')?.value ??
|
|
5293
5297
|
'en',
|
|
5294
|
-
|
|
5298
|
+
isSavePaymentAccount: this.data.isSavingMethodMode ? 1 : 0,
|
|
5295
5299
|
};
|
|
5296
5300
|
return this.statusService.getStatus(params);
|
|
5297
5301
|
}
|