@23blocks/block-sales 5.0.1 → 5.0.3
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/dist/index.esm.js +233 -321
- package/dist/src/lib/mappers/customer-subscription.mapper.d.ts +4 -0
- package/dist/src/lib/mappers/customer-subscription.mapper.d.ts.map +1 -0
- package/dist/src/lib/mappers/entity-subscription.mapper.d.ts +4 -0
- package/dist/src/lib/mappers/entity-subscription.mapper.d.ts.map +1 -0
- package/dist/src/lib/mappers/index.d.ts +6 -0
- package/dist/src/lib/mappers/index.d.ts.map +1 -1
- package/dist/src/lib/mappers/mercadopago.mapper.d.ts +5 -0
- package/dist/src/lib/mappers/mercadopago.mapper.d.ts.map +1 -0
- package/dist/src/lib/mappers/order-detail-vendor.mapper.d.ts +4 -0
- package/dist/src/lib/mappers/order-detail-vendor.mapper.d.ts.map +1 -0
- package/dist/src/lib/mappers/stripe.mapper.d.ts +9 -0
- package/dist/src/lib/mappers/stripe.mapper.d.ts.map +1 -0
- package/dist/src/lib/mappers/vendor-payment.mapper.d.ts +4 -0
- package/dist/src/lib/mappers/vendor-payment.mapper.d.ts.map +1 -0
- package/dist/src/lib/services/customers.service.d.ts.map +1 -1
- package/dist/src/lib/services/entities.service.d.ts.map +1 -1
- package/dist/src/lib/services/mercadopago.service.d.ts.map +1 -1
- package/dist/src/lib/services/stripe.service.d.ts.map +1 -1
- package/dist/src/lib/services/vendor-payments.service.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -607,6 +607,27 @@ const salesEntityMapper = {
|
|
|
607
607
|
}
|
|
608
608
|
};
|
|
609
609
|
|
|
610
|
+
const entitySubscriptionMapper = {
|
|
611
|
+
type: 'EntitySubscription',
|
|
612
|
+
map: (resource)=>{
|
|
613
|
+
var _resource_attributes_subscription_unique_id, _resource_attributes_subscription_model_unique_id, _resource_attributes_start_at, _resource_attributes_end_at, _resource_attributes_closed_at, _resource_attributes_created_at, _parseDate, _resource_attributes_updated_at, _parseDate1;
|
|
614
|
+
return {
|
|
615
|
+
id: resource.id,
|
|
616
|
+
uniqueId: (_resource_attributes_subscription_unique_id = resource.attributes['subscription_unique_id']) != null ? _resource_attributes_subscription_unique_id : resource.attributes['unique_id'],
|
|
617
|
+
entityUniqueId: resource.attributes['entity_unique_id'],
|
|
618
|
+
subscriptionModelUniqueId: (_resource_attributes_subscription_model_unique_id = resource.attributes['subscription_model_unique_id']) != null ? _resource_attributes_subscription_model_unique_id : resource.attributes['code'],
|
|
619
|
+
status: resource.attributes['status'],
|
|
620
|
+
startDate: parseDate((_resource_attributes_start_at = resource.attributes['start_at']) != null ? _resource_attributes_start_at : resource.attributes['start_date']),
|
|
621
|
+
endDate: parseDate((_resource_attributes_end_at = resource.attributes['end_at']) != null ? _resource_attributes_end_at : resource.attributes['end_date']),
|
|
622
|
+
trialEndDate: parseDate(resource.attributes['trial_end_date']),
|
|
623
|
+
cancelledAt: parseDate((_resource_attributes_closed_at = resource.attributes['closed_at']) != null ? _resource_attributes_closed_at : resource.attributes['cancelled_at']),
|
|
624
|
+
payload: resource.attributes['payload'],
|
|
625
|
+
createdAt: (_parseDate = parseDate((_resource_attributes_created_at = resource.attributes['created_at']) != null ? _resource_attributes_created_at : resource.attributes['subscribed_at'])) != null ? _parseDate : new Date(),
|
|
626
|
+
updatedAt: (_parseDate1 = parseDate((_resource_attributes_updated_at = resource.attributes['updated_at']) != null ? _resource_attributes_updated_at : resource.attributes['subscribed_at'])) != null ? _parseDate1 : new Date()
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
|
|
610
631
|
function createSalesEntitiesService(transport, _config) {
|
|
611
632
|
return {
|
|
612
633
|
async list (params) {
|
|
@@ -658,20 +679,7 @@ function createSalesEntitiesService(transport, _config) {
|
|
|
658
679
|
payload: data.payload
|
|
659
680
|
}
|
|
660
681
|
});
|
|
661
|
-
return
|
|
662
|
-
id: response.id,
|
|
663
|
-
uniqueId: response.unique_id,
|
|
664
|
-
entityUniqueId: response.entity_unique_id,
|
|
665
|
-
subscriptionModelUniqueId: response.subscription_model_unique_id,
|
|
666
|
-
status: response.status,
|
|
667
|
-
startDate: response.start_date ? new Date(response.start_date) : undefined,
|
|
668
|
-
endDate: response.end_date ? new Date(response.end_date) : undefined,
|
|
669
|
-
trialEndDate: response.trial_end_date ? new Date(response.trial_end_date) : undefined,
|
|
670
|
-
cancelledAt: response.cancelled_at ? new Date(response.cancelled_at) : undefined,
|
|
671
|
-
payload: response.payload,
|
|
672
|
-
createdAt: new Date(response.created_at),
|
|
673
|
-
updatedAt: new Date(response.updated_at)
|
|
674
|
-
};
|
|
682
|
+
return decodeOne(response, entitySubscriptionMapper);
|
|
675
683
|
},
|
|
676
684
|
async updateSubscription (uniqueId, subscriptionUniqueId, data) {
|
|
677
685
|
const response = await transport.put(`/entities/${uniqueId}/subscriptions/${subscriptionUniqueId}`, {
|
|
@@ -681,20 +689,7 @@ function createSalesEntitiesService(transport, _config) {
|
|
|
681
689
|
payload: data.payload
|
|
682
690
|
}
|
|
683
691
|
});
|
|
684
|
-
return
|
|
685
|
-
id: response.id,
|
|
686
|
-
uniqueId: response.unique_id,
|
|
687
|
-
entityUniqueId: response.entity_unique_id,
|
|
688
|
-
subscriptionModelUniqueId: response.subscription_model_unique_id,
|
|
689
|
-
status: response.status,
|
|
690
|
-
startDate: response.start_date ? new Date(response.start_date) : undefined,
|
|
691
|
-
endDate: response.end_date ? new Date(response.end_date) : undefined,
|
|
692
|
-
trialEndDate: response.trial_end_date ? new Date(response.trial_end_date) : undefined,
|
|
693
|
-
cancelledAt: response.cancelled_at ? new Date(response.cancelled_at) : undefined,
|
|
694
|
-
payload: response.payload,
|
|
695
|
-
createdAt: new Date(response.created_at),
|
|
696
|
-
updatedAt: new Date(response.updated_at)
|
|
697
|
-
};
|
|
692
|
+
return decodeOne(response, entitySubscriptionMapper);
|
|
698
693
|
}
|
|
699
694
|
};
|
|
700
695
|
}
|
|
@@ -883,6 +878,27 @@ const salesCustomerMapper = {
|
|
|
883
878
|
}
|
|
884
879
|
};
|
|
885
880
|
|
|
881
|
+
const customerSubscriptionMapper = {
|
|
882
|
+
type: 'CustomerSubscription',
|
|
883
|
+
map: (resource)=>{
|
|
884
|
+
var _resource_attributes_subscription_unique_id, _resource_attributes_subscription_model_unique_id, _resource_attributes_start_at, _resource_attributes_end_at, _resource_attributes_closed_at, _resource_attributes_created_at, _parseDate, _resource_attributes_updated_at, _parseDate1;
|
|
885
|
+
return {
|
|
886
|
+
id: resource.id,
|
|
887
|
+
uniqueId: (_resource_attributes_subscription_unique_id = resource.attributes['subscription_unique_id']) != null ? _resource_attributes_subscription_unique_id : resource.attributes['unique_id'],
|
|
888
|
+
customerUniqueId: resource.attributes['customer_unique_id'],
|
|
889
|
+
subscriptionModelUniqueId: (_resource_attributes_subscription_model_unique_id = resource.attributes['subscription_model_unique_id']) != null ? _resource_attributes_subscription_model_unique_id : resource.attributes['code'],
|
|
890
|
+
status: resource.attributes['status'],
|
|
891
|
+
startDate: parseDate((_resource_attributes_start_at = resource.attributes['start_at']) != null ? _resource_attributes_start_at : resource.attributes['start_date']),
|
|
892
|
+
endDate: parseDate((_resource_attributes_end_at = resource.attributes['end_at']) != null ? _resource_attributes_end_at : resource.attributes['end_date']),
|
|
893
|
+
trialEndDate: parseDate(resource.attributes['trial_end_date']),
|
|
894
|
+
cancelledAt: parseDate((_resource_attributes_closed_at = resource.attributes['closed_at']) != null ? _resource_attributes_closed_at : resource.attributes['cancelled_at']),
|
|
895
|
+
payload: resource.attributes['payload'],
|
|
896
|
+
createdAt: (_parseDate = parseDate((_resource_attributes_created_at = resource.attributes['created_at']) != null ? _resource_attributes_created_at : resource.attributes['subscribed_at'])) != null ? _parseDate : new Date(),
|
|
897
|
+
updatedAt: (_parseDate1 = parseDate((_resource_attributes_updated_at = resource.attributes['updated_at']) != null ? _resource_attributes_updated_at : resource.attributes['subscribed_at'])) != null ? _parseDate1 : new Date()
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
};
|
|
901
|
+
|
|
886
902
|
function createSalesCustomersService(transport, _config) {
|
|
887
903
|
return {
|
|
888
904
|
async get (uniqueId) {
|
|
@@ -904,20 +920,7 @@ function createSalesCustomersService(transport, _config) {
|
|
|
904
920
|
},
|
|
905
921
|
async getSubscription (uniqueId, subscriptionUniqueId) {
|
|
906
922
|
const response = await transport.get(`/customers/${uniqueId}/subscriptions/${subscriptionUniqueId}`);
|
|
907
|
-
return
|
|
908
|
-
id: response.id,
|
|
909
|
-
uniqueId: response.unique_id,
|
|
910
|
-
customerUniqueId: response.customer_unique_id,
|
|
911
|
-
subscriptionModelUniqueId: response.subscription_model_unique_id,
|
|
912
|
-
status: response.status,
|
|
913
|
-
startDate: response.start_date ? new Date(response.start_date) : undefined,
|
|
914
|
-
endDate: response.end_date ? new Date(response.end_date) : undefined,
|
|
915
|
-
trialEndDate: response.trial_end_date ? new Date(response.trial_end_date) : undefined,
|
|
916
|
-
cancelledAt: response.cancelled_at ? new Date(response.cancelled_at) : undefined,
|
|
917
|
-
payload: response.payload,
|
|
918
|
-
createdAt: new Date(response.created_at),
|
|
919
|
-
updatedAt: new Date(response.updated_at)
|
|
920
|
-
};
|
|
923
|
+
return decodeOne(response, customerSubscriptionMapper);
|
|
921
924
|
},
|
|
922
925
|
async createSubscription (uniqueId, data) {
|
|
923
926
|
const response = await transport.post(`/customers/${uniqueId}/subscriptions`, {
|
|
@@ -928,20 +931,7 @@ function createSalesCustomersService(transport, _config) {
|
|
|
928
931
|
payload: data.payload
|
|
929
932
|
}
|
|
930
933
|
});
|
|
931
|
-
return
|
|
932
|
-
id: response.id,
|
|
933
|
-
uniqueId: response.unique_id,
|
|
934
|
-
customerUniqueId: response.customer_unique_id,
|
|
935
|
-
subscriptionModelUniqueId: response.subscription_model_unique_id,
|
|
936
|
-
status: response.status,
|
|
937
|
-
startDate: response.start_date ? new Date(response.start_date) : undefined,
|
|
938
|
-
endDate: response.end_date ? new Date(response.end_date) : undefined,
|
|
939
|
-
trialEndDate: response.trial_end_date ? new Date(response.trial_end_date) : undefined,
|
|
940
|
-
cancelledAt: response.cancelled_at ? new Date(response.cancelled_at) : undefined,
|
|
941
|
-
payload: response.payload,
|
|
942
|
-
createdAt: new Date(response.created_at),
|
|
943
|
-
updatedAt: new Date(response.updated_at)
|
|
944
|
-
};
|
|
934
|
+
return decodeOne(response, customerSubscriptionMapper);
|
|
945
935
|
},
|
|
946
936
|
async updateSubscription (uniqueId, subscriptionUniqueId, data) {
|
|
947
937
|
const response = await transport.put(`/customers/${uniqueId}/subscriptions/${subscriptionUniqueId}`, {
|
|
@@ -951,20 +941,7 @@ function createSalesCustomersService(transport, _config) {
|
|
|
951
941
|
payload: data.payload
|
|
952
942
|
}
|
|
953
943
|
});
|
|
954
|
-
return
|
|
955
|
-
id: response.id,
|
|
956
|
-
uniqueId: response.unique_id,
|
|
957
|
-
customerUniqueId: response.customer_unique_id,
|
|
958
|
-
subscriptionModelUniqueId: response.subscription_model_unique_id,
|
|
959
|
-
status: response.status,
|
|
960
|
-
startDate: response.start_date ? new Date(response.start_date) : undefined,
|
|
961
|
-
endDate: response.end_date ? new Date(response.end_date) : undefined,
|
|
962
|
-
trialEndDate: response.trial_end_date ? new Date(response.trial_end_date) : undefined,
|
|
963
|
-
cancelledAt: response.cancelled_at ? new Date(response.cancelled_at) : undefined,
|
|
964
|
-
payload: response.payload,
|
|
965
|
-
createdAt: new Date(response.created_at),
|
|
966
|
-
updatedAt: new Date(response.updated_at)
|
|
967
|
-
};
|
|
944
|
+
return decodeOne(response, customerSubscriptionMapper);
|
|
968
945
|
}
|
|
969
946
|
};
|
|
970
947
|
}
|
|
@@ -1170,6 +1147,85 @@ function createFlexibleOrdersService(transport, _config) {
|
|
|
1170
1147
|
};
|
|
1171
1148
|
}
|
|
1172
1149
|
|
|
1150
|
+
const stripeCustomerResponseMapper = {
|
|
1151
|
+
type: 'StripeCustomer',
|
|
1152
|
+
map: (resource)=>{
|
|
1153
|
+
var _resource_attributes_customer_id, _resource_attributes_stripe_id, _ref, _parseDate;
|
|
1154
|
+
return {
|
|
1155
|
+
customerId: (_resource_attributes_customer_id = resource.attributes['customer_id']) != null ? _resource_attributes_customer_id : resource.id,
|
|
1156
|
+
customer: {
|
|
1157
|
+
id: resource.id,
|
|
1158
|
+
stripeId: (_ref = (_resource_attributes_stripe_id = resource.attributes['stripe_id']) != null ? _resource_attributes_stripe_id : resource.attributes['customer_id']) != null ? _ref : resource.id,
|
|
1159
|
+
email: resource.attributes['email'],
|
|
1160
|
+
name: resource.attributes['name'],
|
|
1161
|
+
defaultPaymentMethod: resource.attributes['default_payment_method'],
|
|
1162
|
+
metadata: resource.attributes['metadata'],
|
|
1163
|
+
createdAt: (_parseDate = parseDate(resource.attributes['created_at'])) != null ? _parseDate : new Date()
|
|
1164
|
+
}
|
|
1165
|
+
};
|
|
1166
|
+
}
|
|
1167
|
+
};
|
|
1168
|
+
const stripeCheckoutSessionMapper = {
|
|
1169
|
+
type: 'StripeSession',
|
|
1170
|
+
map: (resource)=>({
|
|
1171
|
+
id: resource.id,
|
|
1172
|
+
url: resource.attributes['url'],
|
|
1173
|
+
status: resource.attributes['status'],
|
|
1174
|
+
expiresAt: parseDate(resource.attributes['expires_at']),
|
|
1175
|
+
mode: resource.attributes['mode'],
|
|
1176
|
+
customer: resource.attributes['customer'],
|
|
1177
|
+
paymentStatus: resource.attributes['payment_status'],
|
|
1178
|
+
metadata: resource.attributes['metadata']
|
|
1179
|
+
})
|
|
1180
|
+
};
|
|
1181
|
+
const stripePaymentIntentMapper = {
|
|
1182
|
+
type: 'StripePaymentIntent',
|
|
1183
|
+
map: (resource)=>({
|
|
1184
|
+
id: resource.id,
|
|
1185
|
+
clientSecret: resource.attributes['client_secret'],
|
|
1186
|
+
status: resource.attributes['status'],
|
|
1187
|
+
amount: parseNumber(resource.attributes['amount']),
|
|
1188
|
+
currency: resource.attributes['currency']
|
|
1189
|
+
})
|
|
1190
|
+
};
|
|
1191
|
+
const stripeSubscriptionMapper = {
|
|
1192
|
+
type: 'StripeSubscription',
|
|
1193
|
+
map: (resource)=>{
|
|
1194
|
+
var _resource_attributes_stripe_id;
|
|
1195
|
+
return {
|
|
1196
|
+
id: resource.id,
|
|
1197
|
+
stripeId: (_resource_attributes_stripe_id = resource.attributes['stripe_id']) != null ? _resource_attributes_stripe_id : resource.id,
|
|
1198
|
+
customerId: resource.attributes['customer_id'],
|
|
1199
|
+
status: resource.attributes['status'],
|
|
1200
|
+
currentPeriodStart: parseDate(resource.attributes['current_period_start']),
|
|
1201
|
+
currentPeriodEnd: parseDate(resource.attributes['current_period_end']),
|
|
1202
|
+
cancelAtPeriodEnd: parseBoolean(resource.attributes['cancel_at_period_end']),
|
|
1203
|
+
cancelledAt: parseDate(resource.attributes['cancelled_at']),
|
|
1204
|
+
metadata: resource.attributes['metadata']
|
|
1205
|
+
};
|
|
1206
|
+
}
|
|
1207
|
+
};
|
|
1208
|
+
const stripeCustomerPortalMapper = {
|
|
1209
|
+
type: 'StripeCustomerPortal',
|
|
1210
|
+
map: (resource)=>({
|
|
1211
|
+
id: resource.id,
|
|
1212
|
+
url: resource.attributes['url']
|
|
1213
|
+
})
|
|
1214
|
+
};
|
|
1215
|
+
const stripeWebhookMapper = {
|
|
1216
|
+
type: 'StripeWebhook',
|
|
1217
|
+
map: (resource)=>{
|
|
1218
|
+
var _parseStringArray, _parseDate;
|
|
1219
|
+
return {
|
|
1220
|
+
id: resource.id,
|
|
1221
|
+
url: resource.attributes['url'],
|
|
1222
|
+
enabledEvents: (_parseStringArray = parseStringArray(resource.attributes['enabled_events'])) != null ? _parseStringArray : [],
|
|
1223
|
+
status: resource.attributes['status'],
|
|
1224
|
+
createdAt: (_parseDate = parseDate(resource.attributes['created_at'])) != null ? _parseDate : new Date()
|
|
1225
|
+
};
|
|
1226
|
+
}
|
|
1227
|
+
};
|
|
1228
|
+
|
|
1173
1229
|
function createStripeService(transport, _config) {
|
|
1174
1230
|
return {
|
|
1175
1231
|
async createCustomer (data) {
|
|
@@ -1187,18 +1243,7 @@ function createStripeService(transport, _config) {
|
|
|
1187
1243
|
metadata: data.metadata
|
|
1188
1244
|
}
|
|
1189
1245
|
});
|
|
1190
|
-
return
|
|
1191
|
-
customerId: response.customer_id,
|
|
1192
|
-
customer: {
|
|
1193
|
-
id: response.customer.id,
|
|
1194
|
-
stripeId: response.customer.stripe_id,
|
|
1195
|
-
email: response.customer.email,
|
|
1196
|
-
name: response.customer.name,
|
|
1197
|
-
defaultPaymentMethod: response.customer.default_payment_method,
|
|
1198
|
-
metadata: response.customer.metadata,
|
|
1199
|
-
createdAt: new Date(response.customer.created_at)
|
|
1200
|
-
}
|
|
1201
|
-
};
|
|
1246
|
+
return decodeOne(response, stripeCustomerResponseMapper);
|
|
1202
1247
|
},
|
|
1203
1248
|
async createCheckoutSession (data) {
|
|
1204
1249
|
var _data_lineItems;
|
|
@@ -1237,29 +1282,11 @@ function createStripeService(transport, _config) {
|
|
|
1237
1282
|
coupon_id: data.couponId
|
|
1238
1283
|
}
|
|
1239
1284
|
});
|
|
1240
|
-
return
|
|
1241
|
-
id: response.id,
|
|
1242
|
-
url: response.url,
|
|
1243
|
-
status: response.status,
|
|
1244
|
-
expiresAt: response.expires_at ? new Date(response.expires_at) : undefined,
|
|
1245
|
-
mode: response.mode,
|
|
1246
|
-
customer: response.customer,
|
|
1247
|
-
paymentStatus: response.payment_status,
|
|
1248
|
-
metadata: response.metadata
|
|
1249
|
-
};
|
|
1285
|
+
return decodeOne(response, stripeCheckoutSessionMapper);
|
|
1250
1286
|
},
|
|
1251
1287
|
async verifySession (sessionId) {
|
|
1252
1288
|
const response = await transport.get(`/stripe/sessions/${sessionId}`);
|
|
1253
|
-
return
|
|
1254
|
-
id: response.id,
|
|
1255
|
-
url: response.url,
|
|
1256
|
-
status: response.status,
|
|
1257
|
-
expiresAt: response.expires_at ? new Date(response.expires_at) : undefined,
|
|
1258
|
-
mode: response.mode,
|
|
1259
|
-
customer: response.customer,
|
|
1260
|
-
paymentStatus: response.payment_status,
|
|
1261
|
-
metadata: response.metadata
|
|
1262
|
-
};
|
|
1289
|
+
return decodeOne(response, stripeCheckoutSessionMapper);
|
|
1263
1290
|
},
|
|
1264
1291
|
async createPaymentIntent (data) {
|
|
1265
1292
|
const response = await transport.post('/stripe/payments', {
|
|
@@ -1273,13 +1300,7 @@ function createStripeService(transport, _config) {
|
|
|
1273
1300
|
entity_id: data.entityId
|
|
1274
1301
|
}
|
|
1275
1302
|
});
|
|
1276
|
-
return
|
|
1277
|
-
id: response.id,
|
|
1278
|
-
clientSecret: response.client_secret,
|
|
1279
|
-
status: response.status,
|
|
1280
|
-
amount: response.amount,
|
|
1281
|
-
currency: response.currency
|
|
1282
|
-
};
|
|
1303
|
+
return decodeOne(response, stripePaymentIntentMapper);
|
|
1283
1304
|
},
|
|
1284
1305
|
async createCustomerPortal (uniqueId, data) {
|
|
1285
1306
|
const response = await transport.post(`/stripe/customers/${uniqueId}/portal`, {
|
|
@@ -1288,13 +1309,9 @@ function createStripeService(transport, _config) {
|
|
|
1288
1309
|
customer_id: data.customerId
|
|
1289
1310
|
}
|
|
1290
1311
|
});
|
|
1291
|
-
return
|
|
1292
|
-
id: response.id,
|
|
1293
|
-
url: response.url
|
|
1294
|
-
};
|
|
1312
|
+
return decodeOne(response, stripeCustomerPortalMapper);
|
|
1295
1313
|
},
|
|
1296
1314
|
async listSubscriptions (params) {
|
|
1297
|
-
var _response_meta, _response_meta1, _response_meta2, _response_meta3;
|
|
1298
1315
|
const queryParams = {};
|
|
1299
1316
|
if (params == null ? void 0 : params.page) queryParams['page'] = String(params.page);
|
|
1300
1317
|
if (params == null ? void 0 : params.perPage) queryParams['records'] = String(params.perPage);
|
|
@@ -1303,26 +1320,7 @@ function createStripeService(transport, _config) {
|
|
|
1303
1320
|
const response = await transport.get('/stripe/subscriptions', {
|
|
1304
1321
|
params: queryParams
|
|
1305
1322
|
});
|
|
1306
|
-
|
|
1307
|
-
return {
|
|
1308
|
-
data: data.map((s)=>({
|
|
1309
|
-
id: s.id,
|
|
1310
|
-
stripeId: s.stripe_id,
|
|
1311
|
-
customerId: s.customer_id,
|
|
1312
|
-
status: s.status,
|
|
1313
|
-
currentPeriodStart: s.current_period_start ? new Date(s.current_period_start) : undefined,
|
|
1314
|
-
currentPeriodEnd: s.current_period_end ? new Date(s.current_period_end) : undefined,
|
|
1315
|
-
cancelAtPeriodEnd: s.cancel_at_period_end,
|
|
1316
|
-
cancelledAt: s.cancelled_at ? new Date(s.cancelled_at) : undefined,
|
|
1317
|
-
metadata: s.metadata
|
|
1318
|
-
})),
|
|
1319
|
-
meta: {
|
|
1320
|
-
totalCount: ((_response_meta = response.meta) == null ? void 0 : _response_meta.total_count) || data.length,
|
|
1321
|
-
currentPage: ((_response_meta1 = response.meta) == null ? void 0 : _response_meta1.current_page) || 1,
|
|
1322
|
-
perPage: ((_response_meta2 = response.meta) == null ? void 0 : _response_meta2.per_page) || data.length,
|
|
1323
|
-
totalPages: ((_response_meta3 = response.meta) == null ? void 0 : _response_meta3.total_pages) || 1
|
|
1324
|
-
}
|
|
1325
|
-
};
|
|
1323
|
+
return decodePageResult(response, stripeSubscriptionMapper);
|
|
1326
1324
|
},
|
|
1327
1325
|
async createSubscription (data) {
|
|
1328
1326
|
const response = await transport.post('/stripe/subscriptions', {
|
|
@@ -1345,17 +1343,7 @@ function createStripeService(transport, _config) {
|
|
|
1345
1343
|
metadata: data.metadata
|
|
1346
1344
|
}
|
|
1347
1345
|
});
|
|
1348
|
-
return
|
|
1349
|
-
id: response.id,
|
|
1350
|
-
stripeId: response.stripe_id,
|
|
1351
|
-
customerId: response.customer_id,
|
|
1352
|
-
status: response.status,
|
|
1353
|
-
currentPeriodStart: response.current_period_start ? new Date(response.current_period_start) : undefined,
|
|
1354
|
-
currentPeriodEnd: response.current_period_end ? new Date(response.current_period_end) : undefined,
|
|
1355
|
-
cancelAtPeriodEnd: response.cancel_at_period_end,
|
|
1356
|
-
cancelledAt: response.cancelled_at ? new Date(response.cancelled_at) : undefined,
|
|
1357
|
-
metadata: response.metadata
|
|
1358
|
-
};
|
|
1346
|
+
return decodeOne(response, stripeSubscriptionMapper);
|
|
1359
1347
|
},
|
|
1360
1348
|
async updateSubscription (stripeSubscriptionId, data) {
|
|
1361
1349
|
const response = await transport.put(`/stripe/subscriptions/${stripeSubscriptionId}`, {
|
|
@@ -1366,30 +1354,14 @@ function createStripeService(transport, _config) {
|
|
|
1366
1354
|
metadata: data.metadata
|
|
1367
1355
|
}
|
|
1368
1356
|
});
|
|
1369
|
-
return
|
|
1370
|
-
id: response.id,
|
|
1371
|
-
stripeId: response.stripe_id,
|
|
1372
|
-
customerId: response.customer_id,
|
|
1373
|
-
status: response.status,
|
|
1374
|
-
currentPeriodStart: response.current_period_start ? new Date(response.current_period_start) : undefined,
|
|
1375
|
-
currentPeriodEnd: response.current_period_end ? new Date(response.current_period_end) : undefined,
|
|
1376
|
-
cancelAtPeriodEnd: response.cancel_at_period_end,
|
|
1377
|
-
cancelledAt: response.cancelled_at ? new Date(response.cancelled_at) : undefined,
|
|
1378
|
-
metadata: response.metadata
|
|
1379
|
-
};
|
|
1357
|
+
return decodeOne(response, stripeSubscriptionMapper);
|
|
1380
1358
|
},
|
|
1381
1359
|
async cancelSubscription (stripeSubscriptionId) {
|
|
1382
1360
|
await transport.delete(`/stripe/subscriptions/${stripeSubscriptionId}`);
|
|
1383
1361
|
},
|
|
1384
1362
|
async listWebhooks () {
|
|
1385
1363
|
const response = await transport.get('/stripe/webhooks');
|
|
1386
|
-
return (response
|
|
1387
|
-
id: w.id,
|
|
1388
|
-
url: w.url,
|
|
1389
|
-
enabledEvents: w.enabled_events,
|
|
1390
|
-
status: w.status,
|
|
1391
|
-
createdAt: new Date(w.created_at)
|
|
1392
|
-
}));
|
|
1364
|
+
return decodeMany(response, stripeWebhookMapper);
|
|
1393
1365
|
},
|
|
1394
1366
|
async createWebhook (data) {
|
|
1395
1367
|
const response = await transport.post('/stripe/webhooks', {
|
|
@@ -1398,35 +1370,56 @@ function createStripeService(transport, _config) {
|
|
|
1398
1370
|
enabled_events: data.enabledEvents
|
|
1399
1371
|
}
|
|
1400
1372
|
});
|
|
1401
|
-
return
|
|
1402
|
-
id: response.id,
|
|
1403
|
-
url: response.url,
|
|
1404
|
-
enabledEvents: response.enabled_events,
|
|
1405
|
-
status: response.status,
|
|
1406
|
-
createdAt: new Date(response.created_at)
|
|
1407
|
-
};
|
|
1373
|
+
return decodeOne(response, stripeWebhookMapper);
|
|
1408
1374
|
}
|
|
1409
1375
|
};
|
|
1410
1376
|
}
|
|
1411
1377
|
|
|
1378
|
+
const mercadoPagoPaymentMethodMapper = {
|
|
1379
|
+
type: 'MercadoPagoPaymentMethod',
|
|
1380
|
+
map: (resource)=>({
|
|
1381
|
+
id: resource.id,
|
|
1382
|
+
name: resource.attributes['name'],
|
|
1383
|
+
paymentTypeId: resource.attributes['payment_type_id'],
|
|
1384
|
+
status: resource.attributes['status'],
|
|
1385
|
+
secureThumbnail: resource.attributes['secure_thumbnail'],
|
|
1386
|
+
thumbnail: resource.attributes['thumbnail'],
|
|
1387
|
+
deferredCapture: resource.attributes['deferred_capture'],
|
|
1388
|
+
settings: resource.attributes['settings'],
|
|
1389
|
+
additionalInfoNeeded: parseStringArray(resource.attributes['additional_info_needed']),
|
|
1390
|
+
minAllowedAmount: parseOptionalNumber(resource.attributes['min_allowed_amount']),
|
|
1391
|
+
maxAllowedAmount: parseOptionalNumber(resource.attributes['max_allowed_amount']),
|
|
1392
|
+
processingModes: parseStringArray(resource.attributes['processing_modes'])
|
|
1393
|
+
})
|
|
1394
|
+
};
|
|
1395
|
+
const mercadoPagoPaymentIntentMapper = {
|
|
1396
|
+
type: 'MercadoPagoPaymentIntent',
|
|
1397
|
+
map: (resource)=>{
|
|
1398
|
+
var _parseDate;
|
|
1399
|
+
return {
|
|
1400
|
+
id: resource.id,
|
|
1401
|
+
status: resource.attributes['status'],
|
|
1402
|
+
statusDetail: resource.attributes['status_detail'],
|
|
1403
|
+
externalReference: resource.attributes['external_reference'],
|
|
1404
|
+
transactionAmount: parseNumber(resource.attributes['transaction_amount']),
|
|
1405
|
+
currencyId: resource.attributes['currency_id'],
|
|
1406
|
+
paymentMethodId: resource.attributes['payment_method_id'],
|
|
1407
|
+
paymentTypeId: resource.attributes['payment_type_id'],
|
|
1408
|
+
installments: parseOptionalNumber(resource.attributes['installments']),
|
|
1409
|
+
initPoint: resource.attributes['init_point'],
|
|
1410
|
+
qrCodeBase64: resource.attributes['qr_code_base64'],
|
|
1411
|
+
ticketUrl: resource.attributes['ticket_url'],
|
|
1412
|
+
dateCreated: (_parseDate = parseDate(resource.attributes['date_created'])) != null ? _parseDate : new Date(),
|
|
1413
|
+
dateApproved: parseDate(resource.attributes['date_approved'])
|
|
1414
|
+
};
|
|
1415
|
+
}
|
|
1416
|
+
};
|
|
1417
|
+
|
|
1412
1418
|
function createMercadoPagoService(transport, _config) {
|
|
1413
1419
|
return {
|
|
1414
1420
|
async listPaymentMethods () {
|
|
1415
1421
|
const response = await transport.get('/mercadopago');
|
|
1416
|
-
return (response
|
|
1417
|
-
id: pm.id,
|
|
1418
|
-
name: pm.name,
|
|
1419
|
-
paymentTypeId: pm.payment_type_id,
|
|
1420
|
-
status: pm.status,
|
|
1421
|
-
secureThumbnail: pm.secure_thumbnail,
|
|
1422
|
-
thumbnail: pm.thumbnail,
|
|
1423
|
-
deferredCapture: pm.deferred_capture,
|
|
1424
|
-
settings: pm.settings,
|
|
1425
|
-
additionalInfoNeeded: pm.additional_info_needed,
|
|
1426
|
-
minAllowedAmount: pm.min_allowed_amount,
|
|
1427
|
-
maxAllowedAmount: pm.max_allowed_amount,
|
|
1428
|
-
processingModes: pm.processing_modes
|
|
1429
|
-
}));
|
|
1422
|
+
return decodeMany(response, mercadoPagoPaymentMethodMapper);
|
|
1430
1423
|
},
|
|
1431
1424
|
async createPaymentIntent (data) {
|
|
1432
1425
|
var _data_additionalInfo_items;
|
|
@@ -1468,22 +1461,7 @@ function createMercadoPagoService(transport, _config) {
|
|
|
1468
1461
|
} : undefined,
|
|
1469
1462
|
metadata: data.metadata
|
|
1470
1463
|
});
|
|
1471
|
-
return
|
|
1472
|
-
id: response.id,
|
|
1473
|
-
status: response.status,
|
|
1474
|
-
statusDetail: response.status_detail,
|
|
1475
|
-
externalReference: response.external_reference,
|
|
1476
|
-
transactionAmount: response.transaction_amount,
|
|
1477
|
-
currencyId: response.currency_id,
|
|
1478
|
-
paymentMethodId: response.payment_method_id,
|
|
1479
|
-
paymentTypeId: response.payment_type_id,
|
|
1480
|
-
installments: response.installments,
|
|
1481
|
-
initPoint: response.init_point,
|
|
1482
|
-
qrCodeBase64: response.qr_code_base64,
|
|
1483
|
-
ticketUrl: response.ticket_url,
|
|
1484
|
-
dateCreated: new Date(response.date_created),
|
|
1485
|
-
dateApproved: response.date_approved ? new Date(response.date_approved) : undefined
|
|
1486
|
-
};
|
|
1464
|
+
return decodeOne(response, mercadoPagoPaymentIntentMapper);
|
|
1487
1465
|
},
|
|
1488
1466
|
async createPSEIntent (data) {
|
|
1489
1467
|
const response = await transport.post('/mercadopago/payments/pse', {
|
|
@@ -1503,44 +1481,60 @@ function createMercadoPagoService(transport, _config) {
|
|
|
1503
1481
|
external_reference: data.externalReference,
|
|
1504
1482
|
metadata: data.metadata
|
|
1505
1483
|
});
|
|
1506
|
-
return
|
|
1507
|
-
id: response.id,
|
|
1508
|
-
status: response.status,
|
|
1509
|
-
statusDetail: response.status_detail,
|
|
1510
|
-
externalReference: response.external_reference,
|
|
1511
|
-
transactionAmount: response.transaction_amount,
|
|
1512
|
-
currencyId: response.currency_id,
|
|
1513
|
-
paymentMethodId: response.payment_method_id,
|
|
1514
|
-
paymentTypeId: response.payment_type_id,
|
|
1515
|
-
initPoint: response.init_point,
|
|
1516
|
-
ticketUrl: response.ticket_url,
|
|
1517
|
-
dateCreated: new Date(response.date_created),
|
|
1518
|
-
dateApproved: response.date_approved ? new Date(response.date_approved) : undefined
|
|
1519
|
-
};
|
|
1484
|
+
return decodeOne(response, mercadoPagoPaymentIntentMapper);
|
|
1520
1485
|
}
|
|
1521
1486
|
};
|
|
1522
1487
|
}
|
|
1523
1488
|
|
|
1489
|
+
const vendorPaymentMapper = {
|
|
1490
|
+
type: 'VendorPayment',
|
|
1491
|
+
map: (resource)=>{
|
|
1492
|
+
var _parseDate, _parseDate1;
|
|
1493
|
+
return {
|
|
1494
|
+
id: resource.id,
|
|
1495
|
+
uniqueId: resource.attributes['unique_id'],
|
|
1496
|
+
orderUniqueId: resource.attributes['order_unique_id'],
|
|
1497
|
+
detailUniqueId: resource.attributes['detail_unique_id'],
|
|
1498
|
+
vendorUniqueId: resource.attributes['vendor_unique_id'],
|
|
1499
|
+
amount: parseNumber(resource.attributes['amount']),
|
|
1500
|
+
currency: resource.attributes['currency'],
|
|
1501
|
+
status: resource.attributes['status'],
|
|
1502
|
+
paidAt: parseDate(resource.attributes['paid_at']),
|
|
1503
|
+
reference: resource.attributes['reference'],
|
|
1504
|
+
notes: resource.attributes['notes'],
|
|
1505
|
+
payload: resource.attributes['payload'],
|
|
1506
|
+
createdAt: (_parseDate = parseDate(resource.attributes['created_at'])) != null ? _parseDate : new Date(),
|
|
1507
|
+
updatedAt: (_parseDate1 = parseDate(resource.attributes['updated_at'])) != null ? _parseDate1 : new Date()
|
|
1508
|
+
};
|
|
1509
|
+
}
|
|
1510
|
+
};
|
|
1511
|
+
|
|
1512
|
+
const orderDetailVendorMapper = {
|
|
1513
|
+
type: 'OrderDetailVendor',
|
|
1514
|
+
map: (resource)=>{
|
|
1515
|
+
var _parseDate, _parseDate1;
|
|
1516
|
+
return {
|
|
1517
|
+
id: resource.id,
|
|
1518
|
+
uniqueId: resource.attributes['unique_id'],
|
|
1519
|
+
orderDetailUniqueId: resource.attributes['order_detail_unique_id'],
|
|
1520
|
+
sourceId: resource.attributes['source_id'],
|
|
1521
|
+
vendorUniqueId: resource.attributes['vendor_unique_id'],
|
|
1522
|
+
vendorName: resource.attributes['vendor_name'],
|
|
1523
|
+
amount: parseNumber(resource.attributes['amount']),
|
|
1524
|
+
commission: parseOptionalNumber(resource.attributes['commission']),
|
|
1525
|
+
status: resource.attributes['status'],
|
|
1526
|
+
payload: resource.attributes['payload'],
|
|
1527
|
+
createdAt: (_parseDate = parseDate(resource.attributes['created_at'])) != null ? _parseDate : new Date(),
|
|
1528
|
+
updatedAt: (_parseDate1 = parseDate(resource.attributes['updated_at'])) != null ? _parseDate1 : new Date()
|
|
1529
|
+
};
|
|
1530
|
+
}
|
|
1531
|
+
};
|
|
1532
|
+
|
|
1524
1533
|
function createVendorPaymentsService(transport, _config) {
|
|
1525
1534
|
return {
|
|
1526
1535
|
async get (paymentUniqueId) {
|
|
1527
1536
|
const response = await transport.get(`/payables/${paymentUniqueId}`);
|
|
1528
|
-
return
|
|
1529
|
-
id: response.id,
|
|
1530
|
-
uniqueId: response.unique_id,
|
|
1531
|
-
orderUniqueId: response.order_unique_id,
|
|
1532
|
-
detailUniqueId: response.detail_unique_id,
|
|
1533
|
-
vendorUniqueId: response.vendor_unique_id,
|
|
1534
|
-
amount: response.amount,
|
|
1535
|
-
currency: response.currency,
|
|
1536
|
-
status: response.status,
|
|
1537
|
-
paidAt: response.paid_at ? new Date(response.paid_at) : undefined,
|
|
1538
|
-
reference: response.reference,
|
|
1539
|
-
notes: response.notes,
|
|
1540
|
-
payload: response.payload,
|
|
1541
|
-
createdAt: new Date(response.created_at),
|
|
1542
|
-
updatedAt: new Date(response.updated_at)
|
|
1543
|
-
};
|
|
1537
|
+
return decodeOne(response, vendorPaymentMapper);
|
|
1544
1538
|
},
|
|
1545
1539
|
async create (orderUniqueId, detailUniqueId, vendorUniqueId, data) {
|
|
1546
1540
|
const response = await transport.post(`/orders/${orderUniqueId}/details/${detailUniqueId}/vendors/${vendorUniqueId}/payments`, {
|
|
@@ -1552,22 +1546,7 @@ function createVendorPaymentsService(transport, _config) {
|
|
|
1552
1546
|
payload: data.payload
|
|
1553
1547
|
}
|
|
1554
1548
|
});
|
|
1555
|
-
return
|
|
1556
|
-
id: response.id,
|
|
1557
|
-
uniqueId: response.unique_id,
|
|
1558
|
-
orderUniqueId: response.order_unique_id,
|
|
1559
|
-
detailUniqueId: response.detail_unique_id,
|
|
1560
|
-
vendorUniqueId: response.vendor_unique_id,
|
|
1561
|
-
amount: response.amount,
|
|
1562
|
-
currency: response.currency,
|
|
1563
|
-
status: response.status,
|
|
1564
|
-
paidAt: response.paid_at ? new Date(response.paid_at) : undefined,
|
|
1565
|
-
reference: response.reference,
|
|
1566
|
-
notes: response.notes,
|
|
1567
|
-
payload: response.payload,
|
|
1568
|
-
createdAt: new Date(response.created_at),
|
|
1569
|
-
updatedAt: new Date(response.updated_at)
|
|
1570
|
-
};
|
|
1549
|
+
return decodeOne(response, vendorPaymentMapper);
|
|
1571
1550
|
},
|
|
1572
1551
|
async update (orderUniqueId, detailUniqueId, vendorUniqueId, paymentUniqueId, data) {
|
|
1573
1552
|
const response = await transport.put(`/orders/${orderUniqueId}/details/${detailUniqueId}/vendors/${vendorUniqueId}/payments/${paymentUniqueId}`, {
|
|
@@ -1579,41 +1558,11 @@ function createVendorPaymentsService(transport, _config) {
|
|
|
1579
1558
|
payload: data.payload
|
|
1580
1559
|
}
|
|
1581
1560
|
});
|
|
1582
|
-
return
|
|
1583
|
-
id: response.id,
|
|
1584
|
-
uniqueId: response.unique_id,
|
|
1585
|
-
orderUniqueId: response.order_unique_id,
|
|
1586
|
-
detailUniqueId: response.detail_unique_id,
|
|
1587
|
-
vendorUniqueId: response.vendor_unique_id,
|
|
1588
|
-
amount: response.amount,
|
|
1589
|
-
currency: response.currency,
|
|
1590
|
-
status: response.status,
|
|
1591
|
-
paidAt: response.paid_at ? new Date(response.paid_at) : undefined,
|
|
1592
|
-
reference: response.reference,
|
|
1593
|
-
notes: response.notes,
|
|
1594
|
-
payload: response.payload,
|
|
1595
|
-
createdAt: new Date(response.created_at),
|
|
1596
|
-
updatedAt: new Date(response.updated_at)
|
|
1597
|
-
};
|
|
1561
|
+
return decodeOne(response, vendorPaymentMapper);
|
|
1598
1562
|
},
|
|
1599
1563
|
async pay (orderUniqueId, detailUniqueId, vendorUniqueId, paymentUniqueId) {
|
|
1600
1564
|
const response = await transport.put(`/orders/${orderUniqueId}/details/${detailUniqueId}/vendors/${vendorUniqueId}/payments/${paymentUniqueId}/pay`, {});
|
|
1601
|
-
return
|
|
1602
|
-
id: response.id,
|
|
1603
|
-
uniqueId: response.unique_id,
|
|
1604
|
-
orderUniqueId: response.order_unique_id,
|
|
1605
|
-
detailUniqueId: response.detail_unique_id,
|
|
1606
|
-
vendorUniqueId: response.vendor_unique_id,
|
|
1607
|
-
amount: response.amount,
|
|
1608
|
-
currency: response.currency,
|
|
1609
|
-
status: response.status,
|
|
1610
|
-
paidAt: response.paid_at ? new Date(response.paid_at) : undefined,
|
|
1611
|
-
reference: response.reference,
|
|
1612
|
-
notes: response.notes,
|
|
1613
|
-
payload: response.payload,
|
|
1614
|
-
createdAt: new Date(response.created_at),
|
|
1615
|
-
updatedAt: new Date(response.updated_at)
|
|
1616
|
-
};
|
|
1565
|
+
return decodeOne(response, vendorPaymentMapper);
|
|
1617
1566
|
},
|
|
1618
1567
|
async delete (orderUniqueId, detailUniqueId, vendorUniqueId, paymentUniqueId) {
|
|
1619
1568
|
await transport.delete(`/orders/${orderUniqueId}/details/${detailUniqueId}/vendors/${vendorUniqueId}/payments/${paymentUniqueId}`);
|
|
@@ -1627,19 +1576,7 @@ function createVendorPaymentsService(transport, _config) {
|
|
|
1627
1576
|
payload: data.payload
|
|
1628
1577
|
}
|
|
1629
1578
|
});
|
|
1630
|
-
return
|
|
1631
|
-
id: response.id,
|
|
1632
|
-
uniqueId: response.unique_id,
|
|
1633
|
-
orderDetailUniqueId: response.order_detail_unique_id,
|
|
1634
|
-
vendorUniqueId: response.vendor_unique_id,
|
|
1635
|
-
vendorName: response.vendor_name,
|
|
1636
|
-
amount: response.amount,
|
|
1637
|
-
commission: response.commission,
|
|
1638
|
-
status: response.status,
|
|
1639
|
-
payload: response.payload,
|
|
1640
|
-
createdAt: new Date(response.created_at),
|
|
1641
|
-
updatedAt: new Date(response.updated_at)
|
|
1642
|
-
};
|
|
1579
|
+
return decodeOne(response, orderDetailVendorMapper);
|
|
1643
1580
|
},
|
|
1644
1581
|
async createProviderBySource (sourceId, data) {
|
|
1645
1582
|
const response = await transport.post(`/sources/${sourceId}/providers`, {
|
|
@@ -1652,20 +1589,7 @@ function createVendorPaymentsService(transport, _config) {
|
|
|
1652
1589
|
payload: data.payload
|
|
1653
1590
|
}
|
|
1654
1591
|
});
|
|
1655
|
-
return
|
|
1656
|
-
id: response.id,
|
|
1657
|
-
uniqueId: response.unique_id,
|
|
1658
|
-
sourceId: response.source_id,
|
|
1659
|
-
orderDetailUniqueId: response.order_detail_unique_id,
|
|
1660
|
-
vendorUniqueId: response.vendor_unique_id,
|
|
1661
|
-
vendorName: response.vendor_name,
|
|
1662
|
-
amount: response.amount,
|
|
1663
|
-
commission: response.commission,
|
|
1664
|
-
status: response.status,
|
|
1665
|
-
payload: response.payload,
|
|
1666
|
-
createdAt: new Date(response.created_at),
|
|
1667
|
-
updatedAt: new Date(response.updated_at)
|
|
1668
|
-
};
|
|
1592
|
+
return decodeOne(response, orderDetailVendorMapper);
|
|
1669
1593
|
},
|
|
1670
1594
|
async updateProvider (orderUniqueId, orderDetailUniqueId, providerUniqueId, data) {
|
|
1671
1595
|
const response = await transport.put(`/orders/${orderUniqueId}/details/${orderDetailUniqueId}/providers/${providerUniqueId}`, {
|
|
@@ -1676,19 +1600,7 @@ function createVendorPaymentsService(transport, _config) {
|
|
|
1676
1600
|
payload: data.payload
|
|
1677
1601
|
}
|
|
1678
1602
|
});
|
|
1679
|
-
return
|
|
1680
|
-
id: response.id,
|
|
1681
|
-
uniqueId: response.unique_id,
|
|
1682
|
-
orderDetailUniqueId: response.order_detail_unique_id,
|
|
1683
|
-
vendorUniqueId: response.vendor_unique_id,
|
|
1684
|
-
vendorName: response.vendor_name,
|
|
1685
|
-
amount: response.amount,
|
|
1686
|
-
commission: response.commission,
|
|
1687
|
-
status: response.status,
|
|
1688
|
-
payload: response.payload,
|
|
1689
|
-
createdAt: new Date(response.created_at),
|
|
1690
|
-
updatedAt: new Date(response.updated_at)
|
|
1691
|
-
};
|
|
1603
|
+
return decodeOne(response, orderDetailVendorMapper);
|
|
1692
1604
|
},
|
|
1693
1605
|
async reportList (params) {
|
|
1694
1606
|
const response = await transport.post('/reports/vendors/payments/list', {
|
|
@@ -1723,7 +1635,7 @@ function createVendorPaymentsService(transport, _config) {
|
|
|
1723
1635
|
},
|
|
1724
1636
|
meta: {
|
|
1725
1637
|
totalCount: response.meta.total_count,
|
|
1726
|
-
|
|
1638
|
+
page: response.meta.current_page,
|
|
1727
1639
|
perPage: response.meta.per_page,
|
|
1728
1640
|
totalPages: response.meta.total_pages
|
|
1729
1641
|
}
|
|
@@ -1780,7 +1692,7 @@ function createVendorPaymentsService(transport, _config) {
|
|
|
1780
1692
|
},
|
|
1781
1693
|
meta: {
|
|
1782
1694
|
totalCount: response.meta.total_count,
|
|
1783
|
-
|
|
1695
|
+
page: response.meta.current_page,
|
|
1784
1696
|
perPage: response.meta.per_page,
|
|
1785
1697
|
totalPages: response.meta.total_pages
|
|
1786
1698
|
}
|
|
@@ -1882,4 +1794,4 @@ const salesBlockMetadata = {
|
|
|
1882
1794
|
]
|
|
1883
1795
|
};
|
|
1884
1796
|
|
|
1885
|
-
export { createFlexibleOrdersService, createMercadoPagoService, createOrderDetailsService, createOrderTaxesService, createOrdersService, createPaymentsService, createPurchasesService, createSalesBlock, createSalesCustomersService, createSalesEntitiesService, createSalesUsersService, createStripeService, createSubscriptionModelsService, createSubscriptionsService, createVendorPaymentsService, flexibleOrderMapper, orderDetailMapper, orderMapper, orderTaxMapper, parseBoolean, parseDate, parseNumber, parseOptionalNumber, parseOrderStatus, parsePaymentStatus, parseStatus, parseString, parseStringArray, parseSubscriptionInterval, parseSubscriptionStatus, paymentMapper, purchaseMapper, salesBlockMetadata, salesCustomerMapper, salesEntityMapper, salesUserMapper, subscriptionMapper, subscriptionModelMapper, userSubscriptionMapper };
|
|
1797
|
+
export { createFlexibleOrdersService, createMercadoPagoService, createOrderDetailsService, createOrderTaxesService, createOrdersService, createPaymentsService, createPurchasesService, createSalesBlock, createSalesCustomersService, createSalesEntitiesService, createSalesUsersService, createStripeService, createSubscriptionModelsService, createSubscriptionsService, createVendorPaymentsService, customerSubscriptionMapper, entitySubscriptionMapper, flexibleOrderMapper, mercadoPagoPaymentIntentMapper, mercadoPagoPaymentMethodMapper, orderDetailMapper, orderDetailVendorMapper, orderMapper, orderTaxMapper, parseBoolean, parseDate, parseNumber, parseOptionalNumber, parseOrderStatus, parsePaymentStatus, parseStatus, parseString, parseStringArray, parseSubscriptionInterval, parseSubscriptionStatus, paymentMapper, purchaseMapper, salesBlockMetadata, salesCustomerMapper, salesEntityMapper, salesUserMapper, stripeCheckoutSessionMapper, stripeCustomerPortalMapper, stripeCustomerResponseMapper, stripePaymentIntentMapper, stripeSubscriptionMapper, stripeWebhookMapper, subscriptionMapper, subscriptionModelMapper, userSubscriptionMapper, vendorPaymentMapper };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ResourceMapper } from '@23blocks/jsonapi-codec';
|
|
2
|
+
import type { CustomerSubscription } from '../types/customer.js';
|
|
3
|
+
export declare const customerSubscriptionMapper: ResourceMapper<CustomerSubscription>;
|
|
4
|
+
//# sourceMappingURL=customer-subscription.mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer-subscription.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/customer-subscription.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAGjE,eAAO,MAAM,0BAA0B,EAAE,cAAc,CAAC,oBAAoB,CAgB3E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-subscription.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/entity-subscription.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAG7D,eAAO,MAAM,wBAAwB,EAAE,cAAc,CAAC,kBAAkB,CAgBvE,CAAC"}
|
|
@@ -10,5 +10,11 @@ export * from './customer.mapper.js';
|
|
|
10
10
|
export * from './flexible-order.mapper.js';
|
|
11
11
|
export * from './purchase.mapper.js';
|
|
12
12
|
export * from './user-subscription.mapper.js';
|
|
13
|
+
export * from './customer-subscription.mapper.js';
|
|
14
|
+
export * from './entity-subscription.mapper.js';
|
|
15
|
+
export * from './vendor-payment.mapper.js';
|
|
16
|
+
export * from './order-detail-vendor.mapper.js';
|
|
17
|
+
export * from './stripe.mapper.js';
|
|
18
|
+
export * from './mercadopago.mapper.js';
|
|
13
19
|
export * from './utils.js';
|
|
14
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ResourceMapper } from '@23blocks/jsonapi-codec';
|
|
2
|
+
import type { MercadoPagoPaymentMethod, MercadoPagoPaymentIntent } from '../types/mercadopago.js';
|
|
3
|
+
export declare const mercadoPagoPaymentMethodMapper: ResourceMapper<MercadoPagoPaymentMethod>;
|
|
4
|
+
export declare const mercadoPagoPaymentIntentMapper: ResourceMapper<MercadoPagoPaymentIntent>;
|
|
5
|
+
//# sourceMappingURL=mercadopago.mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mercadopago.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/mercadopago.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AAGjC,eAAO,MAAM,8BAA8B,EAAE,cAAc,CAAC,wBAAwB,CAgBnF,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,cAAc,CAAC,wBAAwB,CAkBnF,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ResourceMapper } from '@23blocks/jsonapi-codec';
|
|
2
|
+
import type { OrderDetailVendor } from '../types/vendor-payment.js';
|
|
3
|
+
export declare const orderDetailVendorMapper: ResourceMapper<OrderDetailVendor>;
|
|
4
|
+
//# sourceMappingURL=order-detail-vendor.mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-detail-vendor.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/order-detail-vendor.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAGpE,eAAO,MAAM,uBAAuB,EAAE,cAAc,CAAC,iBAAiB,CAgBrE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ResourceMapper } from '@23blocks/jsonapi-codec';
|
|
2
|
+
import type { CreateStripeCustomerResponse, StripeCheckoutSession, StripePaymentIntent, StripeSubscription, StripeCustomerPortalSession, StripeWebhook } from '../types/stripe.js';
|
|
3
|
+
export declare const stripeCustomerResponseMapper: ResourceMapper<CreateStripeCustomerResponse>;
|
|
4
|
+
export declare const stripeCheckoutSessionMapper: ResourceMapper<StripeCheckoutSession>;
|
|
5
|
+
export declare const stripePaymentIntentMapper: ResourceMapper<StripePaymentIntent>;
|
|
6
|
+
export declare const stripeSubscriptionMapper: ResourceMapper<StripeSubscription>;
|
|
7
|
+
export declare const stripeCustomerPortalMapper: ResourceMapper<StripeCustomerPortalSession>;
|
|
8
|
+
export declare const stripeWebhookMapper: ResourceMapper<StripeWebhook>;
|
|
9
|
+
//# sourceMappingURL=stripe.mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stripe.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/stripe.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EACV,4BAA4B,EAC5B,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC3B,aAAa,EACd,MAAM,oBAAoB,CAAC;AAG5B,eAAO,MAAM,4BAA4B,EAAE,cAAc,CAAC,4BAA4B,CAcrF,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,cAAc,CAAC,qBAAqB,CAY7E,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,cAAc,CAAC,mBAAmB,CASzE,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,cAAc,CAAC,kBAAkB,CAavE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,cAAc,CAAC,2BAA2B,CAMlF,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,cAAc,CAAC,aAAa,CAS7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendor-payment.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/vendor-payment.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAGhE,eAAO,MAAM,mBAAmB,EAAE,cAAc,CAAC,aAAa,CAkB7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/customers.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,KAAK,EACV,aAAa,EACb,4BAA4B,EAC5B,oBAAoB,EACpB,iCAAiC,EACjC,iCAAiC,EAClC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"customers.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/customers.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,KAAK,EACV,aAAa,EACb,4BAA4B,EAC5B,oBAAoB,EACpB,iCAAiC,EACjC,iCAAiC,EAClC,MAAM,sBAAsB,CAAC;AAI9B,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAE9C;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAExF;;;OAGG;IACH,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAE/F;;;OAGG;IACH,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAiC,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAE7G;;;OAGG;IACH,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAiC,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAC5I;AAED,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,qBAAqB,CAiDnH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/entities.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,WAAW,EACX,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,kBAAkB,EAClB,+BAA+B,EAC/B,+BAA+B,EAChC,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"entities.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/entities.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,WAAW,EACX,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,kBAAkB,EAClB,+BAA+B,EAC/B,+BAA+B,EAChC,MAAM,oBAAoB,CAAC;AAI5B,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,IAAI,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;IAEzE;;;OAGG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAE5C;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEpF;;;OAGG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAE/E;;;OAGG;IACH,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,+BAA+B,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAEzG;;;OAGG;IACH,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,IAAI,EAAE,+BAA+B,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;CACxI;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,oBAAoB,CAoEjH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mercadopago.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/mercadopago.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"mercadopago.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/mercadopago.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EACxB,+BAA+B,EAC/B,2BAA2B,EAC5B,MAAM,yBAAyB,CAAC;AAGjC,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,kBAAkB,IAAI,OAAO,CAAC,wBAAwB,EAAE,CAAC,CAAC;IAE1D;;;OAGG;IACH,mBAAmB,CAAC,IAAI,EAAE,+BAA+B,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAE9F;;;OAGG;IACH,eAAe,CAAC,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;CACvF;AAED,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,kBAAkB,CAsE7G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/stripe.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"stripe.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/stripe.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,2BAA2B,EAC3B,4BAA4B,EAC5B,qBAAqB,EACrB,kCAAkC,EAClC,mBAAmB,EACnB,gCAAgC,EAChC,kBAAkB,EAClB,+BAA+B,EAC/B,+BAA+B,EAC/B,2BAA2B,EAC3B,iCAAiC,EACjC,aAAa,EACb,0BAA0B,EAC1B,6BAA6B,EAC9B,MAAM,oBAAoB,CAAC;AAU5B,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,cAAc,CAAC,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;IAEzF;;;OAGG;IACH,qBAAqB,CAAC,IAAI,EAAE,kCAAkC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAEhG;;;OAGG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAEjE;;;OAGG;IACH,mBAAmB,CAAC,IAAI,EAAE,gCAAgC,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE1F;;;OAGG;IACH,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAiC,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAEtH;;;OAGG;IACH,iBAAiB,CAAC,MAAM,CAAC,EAAE,6BAA6B,GAAG,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAEnG;;;OAGG;IACH,kBAAkB,CAAC,IAAI,EAAE,+BAA+B,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAEvF;;;OAGG;IACH,kBAAkB,CAAC,oBAAoB,EAAE,MAAM,EAAE,IAAI,EAAE,+BAA+B,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAErH;;OAEG;IACH,kBAAkB,CAAC,oBAAoB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhE;;;OAGG;IACH,YAAY,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAEzC;;;OAGG;IACH,aAAa,CAAC,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CACzE;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,aAAa,CA2JnG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendor-payments.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/vendor-payments.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"vendor-payments.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/vendor-payments.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,KAAK,EACV,aAAa,EACb,0BAA0B,EAC1B,0BAA0B,EAC1B,iBAAiB,EACjB,8BAA8B,EAC9B,8BAA8B,EAC9B,sCAAsC,EACvC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,0BAA0B,EAC1B,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAI5B,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,GAAG,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAErD;;;OAGG;IACH,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAExI;;;OAGG;IACH,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAEjK;;;OAGG;IACH,GAAG,CAAC,aAAa,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAE5H;;OAEG;IACH,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtH;;;OAGG;IACH,cAAc,CAAC,aAAa,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,EAAE,IAAI,EAAE,8BAA8B,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAErI;;;OAGG;IACH,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,sCAAsC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAEnH;;;OAGG;IACH,cAAc,CAAC,aAAa,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,8BAA8B,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAE/J;;;OAGG;IACH,UAAU,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAEhF;;;OAGG;IACH,aAAa,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAEtF;;;OAGG;IACH,kBAAkB,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAE9E;;;OAGG;IACH,qBAAqB,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACrF;AAED,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,qBAAqB,CAuMnH"}
|
package/package.json
CHANGED