@infrab4a/connect 5.5.0 → 5.5.1-beta.1
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
CHANGED
|
@@ -9999,12 +9999,12 @@ class PagarMeV5RequestHelper {
|
|
|
9999
9999
|
}
|
|
10000
10000
|
static getPixOrder() {
|
|
10001
10001
|
return {
|
|
10002
|
-
expires_at: dateFns.format(dateFns.
|
|
10002
|
+
expires_at: dateFns.format(dateFns.addHours(new Date(), 24), "yyyy-MM-dd'T'HH:mm:ss.SSSxxx"),
|
|
10003
10003
|
};
|
|
10004
10004
|
}
|
|
10005
10005
|
static getBoletoOrder() {
|
|
10006
10006
|
return {
|
|
10007
|
-
due_at: dateFns.format(dateFns.addDays(new Date(), 3), 'yyyy-MM-dd'),
|
|
10007
|
+
due_at: dateFns.format(dateFns.addDays(new Date(), 3), 'yyyy-MM-dd') + 'T23:59:59.999-03:00',
|
|
10008
10008
|
instructions: 'Sr. Caixa, NÃO aceitar o pagamento após o vencimento.',
|
|
10009
10009
|
type: 'DM',
|
|
10010
10010
|
document_number: new Date().getTime().toString(),
|
|
@@ -10779,6 +10779,10 @@ Object.defineProperty(exports, 'addDays', {
|
|
|
10779
10779
|
enumerable: true,
|
|
10780
10780
|
get: function () { return dateFns.addDays; }
|
|
10781
10781
|
});
|
|
10782
|
+
Object.defineProperty(exports, 'addHours', {
|
|
10783
|
+
enumerable: true,
|
|
10784
|
+
get: function () { return dateFns.addHours; }
|
|
10785
|
+
});
|
|
10782
10786
|
Object.defineProperty(exports, 'addMonths', {
|
|
10783
10787
|
enumerable: true,
|
|
10784
10788
|
get: function () { return dateFns.addMonths; }
|
package/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import 'reflect-metadata';
|
|
|
2
2
|
import { __decorate, __metadata } from 'tslib';
|
|
3
3
|
import { plainToInstance, instanceToPlain, Type } from 'class-transformer';
|
|
4
4
|
import { parseISO, startOfDay, endOfDay, addHours, subDays, format, addDays } from 'date-fns';
|
|
5
|
-
export { add, addBusinessDays, addDays, addMonths, addYears, endOfDay, format, formatISO9075, parseISO, startOfDay, sub, subDays } from 'date-fns';
|
|
5
|
+
export { add, addBusinessDays, addDays, addHours, addMonths, addYears, endOfDay, format, formatISO9075, parseISO, startOfDay, sub, subDays } from 'date-fns';
|
|
6
6
|
import { utcToZonedTime } from 'date-fns-tz';
|
|
7
7
|
export { formatInTimeZone } from 'date-fns-tz';
|
|
8
8
|
import { compact, get, isNil, isArray, first, last, flatten, isString, omit, each, unset, isObject, isEmpty, isDate, isBoolean, isInteger, isNumber, isNaN as isNaN$1, set, chunk, sortBy } from 'lodash';
|
|
@@ -9975,12 +9975,12 @@ class PagarMeV5RequestHelper {
|
|
|
9975
9975
|
}
|
|
9976
9976
|
static getPixOrder() {
|
|
9977
9977
|
return {
|
|
9978
|
-
expires_at: format(
|
|
9978
|
+
expires_at: format(addHours(new Date(), 24), "yyyy-MM-dd'T'HH:mm:ss.SSSxxx"),
|
|
9979
9979
|
};
|
|
9980
9980
|
}
|
|
9981
9981
|
static getBoletoOrder() {
|
|
9982
9982
|
return {
|
|
9983
|
-
due_at: format(addDays(new Date(), 3), 'yyyy-MM-dd'),
|
|
9983
|
+
due_at: format(addDays(new Date(), 3), 'yyyy-MM-dd') + 'T23:59:59.999-03:00',
|
|
9984
9984
|
instructions: 'Sr. Caixa, NÃO aceitar o pagamento após o vencimento.',
|
|
9985
9985
|
type: 'DM',
|
|
9986
9986
|
document_number: new Date().getTime().toString(),
|
package/package.json
CHANGED
|
@@ -45,7 +45,8 @@ export type PagarMeV5OrderPaymentInfo = {
|
|
|
45
45
|
credit_card?: PagarMeV5OrderPaymentCardInfo;
|
|
46
46
|
};
|
|
47
47
|
export type PagarMeV5OrderPaymentPixInfo = {
|
|
48
|
-
expires_at
|
|
48
|
+
expires_at?: string;
|
|
49
|
+
expires_in?: number;
|
|
49
50
|
additional_information?: [
|
|
50
51
|
{
|
|
51
52
|
name: string;
|
package/src/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { add, addBusinessDays, addDays, addMonths, addYears, Duration, endOfDay, format, formatISO9075, parseISO, startOfDay, sub, subDays } from 'date-fns';
|
|
1
|
+
import { add, addBusinessDays, addDays, addHours, addMonths, addYears, Duration, endOfDay, format, formatISO9075, parseISO, startOfDay, sub, subDays } from 'date-fns';
|
|
2
2
|
import { formatInTimeZone } from 'date-fns-tz';
|
|
3
3
|
import { chunk, each, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, pick, set, sortBy, unset } from 'lodash';
|
|
4
4
|
export type DateDuration = Duration;
|
|
@@ -14,4 +14,4 @@ export * from './obs-emitter';
|
|
|
14
14
|
export * from './parse-datetime';
|
|
15
15
|
export * from './serialize';
|
|
16
16
|
export * from './types';
|
|
17
|
-
export { add, addBusinessDays, addDays, addMonths, addYears, formatInTimeZone, chunk, each, endOfDay, format, formatISO9075, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, parseISO, pick, set, sortBy, startOfDay, sub, subDays, unset, };
|
|
17
|
+
export { add, addBusinessDays, addHours, addDays, addMonths, addYears, formatInTimeZone, chunk, each, endOfDay, format, formatISO9075, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, parseISO, pick, set, sortBy, startOfDay, sub, subDays, unset, };
|