@infrab4a/connect 5.5.0 → 5.5.1-beta.0
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.addDays(new Date(), 1), 'yyyy-MM-dd'),
|
|
10002
|
+
expires_at: dateFns.format(dateFns.addDays(new Date(), 1), 'yyyy-MM-dd') + 'T23:59:59.999-03:00',
|
|
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(),
|
package/index.esm.js
CHANGED
|
@@ -9975,12 +9975,12 @@ class PagarMeV5RequestHelper {
|
|
|
9975
9975
|
}
|
|
9976
9976
|
static getPixOrder() {
|
|
9977
9977
|
return {
|
|
9978
|
-
expires_at: format(addDays(new Date(), 1), 'yyyy-MM-dd'),
|
|
9978
|
+
expires_at: format(addDays(new Date(), 1), 'yyyy-MM-dd') + 'T23:59:59.999-03:00',
|
|
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;
|