cecon-interfaces 1.0.16 → 1.0.18
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/company/entities/company.entity.d.ts +3 -1
- package/dist/company/entities/company.entity.js +1 -0
- package/dist/company/interfaces/i-company.d.ts +3 -2
- package/dist/container/entities/container.entity.d.ts +6 -0
- package/dist/container/entities/container.entity.js +39 -0
- package/dist/container/entities/index.d.ts +1 -0
- package/dist/container/entities/index.js +5 -0
- package/dist/container/index.d.ts +2 -0
- package/dist/container/index.js +18 -0
- package/dist/container/interfaces/i-container.d.ts +4 -0
- package/dist/container/interfaces/index.d.ts +1 -0
- package/dist/device/entities/device.entity.d.ts +1 -0
- package/dist/device/entities/device.entity.js +2 -1
- package/dist/device/entities/metadata.entity.d.ts +1 -1
- package/dist/device/enums/device-mode.enum.d.ts +6 -6
- package/dist/device/enums/device-mode.enum.js +6 -6
- package/dist/device/interfaces/i-device.d.ts +2 -1
- package/dist/device/interfaces/index.d.ts +1 -1
- package/dist/esm2022/company/entities/company.entity.mjs +2 -1
- package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
- package/dist/esm2022/container/entities/container.entity.mjs +18 -0
- package/dist/esm2022/container/entities/index.mjs +2 -0
- package/dist/esm2022/container/index.mjs +3 -0
- package/dist/esm2022/container/interfaces/i-container.mjs +2 -0
- package/dist/esm2022/container/interfaces/index.mjs +2 -0
- package/dist/esm2022/device/entities/device.entity.mjs +3 -2
- package/dist/esm2022/device/entities/metadata.entity.mjs +1 -1
- package/dist/esm2022/device/enums/device-mode.enum.mjs +7 -7
- package/dist/esm2022/device/interfaces/i-device.mjs +1 -1
- package/dist/esm2022/device/interfaces/i-metadata.mjs +2 -0
- package/dist/esm2022/device/interfaces/index.mjs +1 -1
- package/dist/esm2022/general/entities/base.entity.mjs +22 -0
- package/dist/esm2022/general/entities/index.mjs +2 -1
- package/dist/esm2022/general/entities/origin.entity.mjs +2 -2
- package/dist/esm2022/general/entities/payment-method.entity.mjs +4 -4
- package/dist/esm2022/general/enums/boolean-string.enum.mjs +6 -0
- package/dist/esm2022/general/enums/index.mjs +3 -1
- package/dist/esm2022/general/enums/interval-type.enum.mjs +7 -0
- package/dist/esm2022/general/enums/lead-origin.enum.mjs +8 -8
- package/dist/esm2022/general/enums/payment-channel.enum.mjs +9 -9
- package/dist/esm2022/general/enums/payment-mode.enum.mjs +4 -4
- package/dist/esm2022/general/enums/payment-type.enum.mjs +19 -19
- package/dist/esm2022/general/enums/person-type.enum.mjs +6 -0
- package/dist/esm2022/general/enums/providers.enum.mjs +7 -7
- package/dist/esm2022/general/interfaces/i-base.mjs +3 -0
- package/dist/esm2022/general/interfaces/index.mjs +1 -1
- package/dist/esm2022/index.mjs +8 -1
- package/dist/esm2022/invite/entities/index.mjs +2 -0
- package/dist/esm2022/invite/entities/invite.entity.mjs +34 -0
- package/dist/esm2022/invite/enums/index.mjs +2 -0
- package/dist/esm2022/invite/enums/status.enum.mjs +9 -0
- package/dist/esm2022/invite/index.mjs +4 -0
- package/dist/esm2022/invite/interfaces/i-invite.mjs +2 -0
- package/dist/esm2022/invite/interfaces/index.mjs +2 -0
- package/dist/esm2022/iugu/entities/index.mjs +3 -0
- package/dist/esm2022/iugu/entities/payment-token-data.entity.mjs +24 -0
- package/dist/esm2022/iugu/entities/payment-token.entity.mjs +21 -0
- package/dist/esm2022/iugu/enums/index.mjs +3 -0
- package/dist/esm2022/iugu/enums/iugu-auto-advance.enum.mjs +8 -0
- package/dist/esm2022/iugu/enums/iugu-bank.enum.mjs +187 -0
- package/dist/esm2022/iugu/index.mjs +4 -0
- package/dist/esm2022/iugu/interfaces/i-account-configuration-bank-slip.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-account-configuration-creadit-card.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-account-configuration-pix.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-account-configuration.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-account-info-last-ver-req-data.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-account-informations.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-account-marketplace-split.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-account.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-change-plan-simulation.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-config-early-payment-discounts.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-customer.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-payment-token-data.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-payment-token.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-plan-feature.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-plan-price.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-plan.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-subscription-custom-variable.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-subscription-feature.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-subscription-features.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-subscription-log.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-subscription-recent-invoice.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-subscription-subitem.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-subscription.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/index.mjs +2 -0
- package/dist/esm2022/member/entities/index.mjs +2 -0
- package/dist/esm2022/member/entities/member.entity.mjs +28 -0
- package/dist/esm2022/member/enums/index.mjs +2 -0
- package/dist/esm2022/member/enums/member-rules.enum.mjs +12 -0
- package/dist/esm2022/member/index.mjs +4 -0
- package/dist/esm2022/member/interfaces/i-member.mjs +2 -0
- package/dist/esm2022/member/interfaces/index.mjs +2 -0
- package/dist/esm2022/order/entities/additional-fees.entity.mjs +17 -0
- package/dist/esm2022/order/entities/{order-additional-fees.entity.mjs → benefits-sponsor-ship.entity.mjs} +3 -3
- package/dist/esm2022/order/entities/benefits.entity.mjs +21 -0
- package/dist/esm2022/order/entities/cancellation.entity.mjs +18 -0
- package/dist/esm2022/order/entities/customer-phone.entity.mjs +19 -0
- package/dist/esm2022/order/entities/customer.entity.mjs +23 -0
- package/dist/esm2022/order/entities/index.mjs +19 -19
- package/dist/esm2022/order/entities/item-composition.entity.mjs +21 -0
- package/dist/esm2022/order/entities/item-option.entity.mjs +30 -0
- package/dist/esm2022/order/entities/item.entity.mjs +36 -0
- package/dist/esm2022/order/entities/order.entity.mjs +5 -5
- package/dist/esm2022/order/entities/payment-card.entity.mjs +16 -0
- package/dist/esm2022/order/entities/payment-cash.entity.mjs +16 -0
- package/dist/esm2022/order/entities/payment-method.entity.mjs +27 -0
- package/dist/esm2022/order/entities/payment-pix.entity.mjs +17 -0
- package/dist/esm2022/order/entities/payment-wallet.entity.mjs +16 -0
- package/dist/esm2022/order/entities/payment.entity.mjs +18 -0
- package/dist/esm2022/order/entities/scale-item.entity.mjs +17 -0
- package/dist/esm2022/order/entities/scale-price.entity.mjs +17 -0
- package/dist/esm2022/order/entities/total.entity.mjs +20 -0
- package/dist/esm2022/order/interfaces/i-additional-fee.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-benefits-sponsor-ship.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-benefits.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-cancellation.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-customer-phone.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-customer.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-item-composition.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-item-option.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-item.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order.mjs +1 -1
- package/dist/esm2022/order/interfaces/i-payment-card.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-payment-cash.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-payment-method.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-payment-pix.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-payment-wallet.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-payment.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-scale-item.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-scale-price.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-total.mjs +2 -0
- package/dist/esm2022/order/interfaces/index.mjs +1 -1
- package/dist/esm2022/partners/entities/index.mjs +2 -0
- package/dist/esm2022/partners/entities/partner.entity.mjs +23 -0
- package/dist/esm2022/partners/index.mjs +3 -0
- package/dist/esm2022/partners/interfaces/i-partner.mjs +2 -0
- package/dist/esm2022/partners/interfaces/index.mjs +2 -0
- package/dist/esm2022/plan/entities/feature.entity.mjs +24 -0
- package/dist/esm2022/plan/entities/index.mjs +3 -0
- package/dist/esm2022/plan/entities/plan.entity.mjs +26 -0
- package/dist/esm2022/plan/enums/index.mjs +2 -0
- package/dist/esm2022/plan/enums/plans-identifier.enum.mjs +6 -0
- package/dist/esm2022/plan/index.mjs +4 -0
- package/dist/esm2022/plan/interfaces/i-feature.mjs +2 -0
- package/dist/esm2022/plan/interfaces/i-plan.mjs +2 -0
- package/dist/esm2022/plan/interfaces/index.mjs +2 -0
- package/dist/esm2022/purchases/entities/purchase.entity.mjs +3 -3
- package/dist/esm2022/viacep/index.mjs +2 -0
- package/dist/esm2022/viacep/interfaces/i-via-cep.mjs +2 -0
- package/dist/esm2022/viacep/interfaces/index.mjs +2 -0
- package/dist/fesm2022/cecon-interfaces.mjs +579 -132
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/entities/base.entity.d.ts +9 -0
- package/dist/general/entities/base.entity.js +26 -0
- package/dist/general/entities/index.d.ts +1 -0
- package/dist/general/entities/index.js +3 -1
- package/dist/general/entities/origin.entity.js +1 -1
- package/dist/general/entities/payment-method.entity.js +3 -3
- package/dist/general/enums/boolean-string.enum.d.ts +4 -0
- package/dist/general/enums/boolean-string.enum.js +8 -0
- package/dist/general/enums/index.d.ts +2 -0
- package/dist/general/enums/index.js +5 -1
- package/dist/general/enums/interval-type.enum.d.ts +5 -0
- package/dist/general/enums/interval-type.enum.js +9 -0
- package/dist/general/enums/lead-origin.enum.d.ts +7 -7
- package/dist/general/enums/lead-origin.enum.js +7 -7
- package/dist/general/enums/payment-channel.enum.d.ts +8 -8
- package/dist/general/enums/payment-channel.enum.js +8 -8
- package/dist/general/enums/payment-mode.enum.d.ts +3 -3
- package/dist/general/enums/payment-mode.enum.js +3 -3
- package/dist/general/enums/payment-type.enum.d.ts +18 -18
- package/dist/general/enums/payment-type.enum.js +18 -18
- package/dist/general/enums/person-type.enum.d.ts +4 -0
- package/dist/general/enums/person-type.enum.js +8 -0
- package/dist/general/enums/providers.enum.d.ts +6 -6
- package/dist/general/enums/providers.enum.js +6 -6
- package/dist/general/interfaces/i-base.d.ts +8 -0
- package/dist/general/interfaces/i-base.js +3 -0
- package/dist/general/interfaces/index.d.ts +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/dist/invite/entities/index.d.ts +1 -0
- package/dist/invite/entities/index.js +5 -0
- package/dist/invite/entities/invite.entity.d.ts +23 -0
- package/dist/invite/entities/invite.entity.js +38 -0
- package/dist/invite/enums/index.d.ts +1 -0
- package/dist/invite/enums/index.js +5 -0
- package/dist/invite/enums/status.enum.d.ts +7 -0
- package/dist/invite/enums/status.enum.js +11 -0
- package/dist/invite/index.d.ts +3 -0
- package/dist/invite/index.js +19 -0
- package/dist/invite/interfaces/i-invite.d.ts +21 -0
- package/dist/invite/interfaces/index.d.ts +1 -0
- package/dist/iugu/entities/index.d.ts +2 -0
- package/dist/iugu/entities/index.js +7 -0
- package/dist/iugu/entities/payment-token-data.entity.d.ts +12 -0
- package/dist/iugu/entities/payment-token-data.entity.js +28 -0
- package/dist/iugu/entities/payment-token.entity.d.ts +9 -0
- package/dist/iugu/entities/payment-token.entity.js +25 -0
- package/dist/iugu/enums/index.d.ts +2 -0
- package/dist/iugu/enums/index.js +7 -0
- package/dist/iugu/enums/iugu-auto-advance.enum.d.ts +6 -0
- package/dist/iugu/enums/iugu-auto-advance.enum.js +10 -0
- package/dist/iugu/enums/iugu-bank.enum.d.ts +68 -0
- package/dist/iugu/enums/iugu-bank.enum.js +189 -0
- package/dist/iugu/index.d.ts +3 -0
- package/dist/iugu/index.js +19 -0
- package/dist/iugu/interfaces/i-account-configuration-bank-slip.d.ts +5 -0
- package/dist/iugu/interfaces/i-account-configuration-creadit-card.d.ts +8 -0
- package/dist/iugu/interfaces/i-account-configuration-pix.d.ts +3 -0
- package/dist/iugu/interfaces/i-account-configuration.d.ts +21 -0
- package/dist/iugu/interfaces/i-account-info-last-ver-req-data.d.ts +23 -0
- package/dist/iugu/interfaces/i-account-informations.d.ts +4 -0
- package/dist/iugu/interfaces/i-account-marketplace-split.d.ts +42 -0
- package/dist/iugu/interfaces/i-account.d.ts +79 -0
- package/dist/iugu/interfaces/i-change-plan-simulation.d.ts +8 -0
- package/dist/iugu/interfaces/i-config-early-payment-discounts.d.ts +4 -0
- package/dist/iugu/interfaces/i-customer.d.ts +24 -0
- package/dist/iugu/interfaces/i-payment-token-data.d.ts +11 -0
- package/dist/iugu/interfaces/i-payment-token.d.ts +8 -0
- package/dist/iugu/interfaces/i-plan-feature.d.ts +10 -0
- package/dist/iugu/interfaces/i-plan-price.d.ts +7 -0
- package/dist/iugu/interfaces/i-plan-price.js +2 -0
- package/dist/iugu/interfaces/i-plan.d.ts +13 -0
- package/dist/iugu/interfaces/i-plan.js +2 -0
- package/dist/iugu/interfaces/i-subscription-custom-variable.d.ts +4 -0
- package/dist/iugu/interfaces/i-subscription-custom-variable.js +2 -0
- package/dist/iugu/interfaces/i-subscription-feature.d.ts +4 -0
- package/dist/iugu/interfaces/i-subscription-feature.js +2 -0
- package/dist/iugu/interfaces/i-subscription-features.d.ts +4 -0
- package/dist/iugu/interfaces/i-subscription-features.js +2 -0
- package/dist/iugu/interfaces/i-subscription-log.d.ts +6 -0
- package/dist/iugu/interfaces/i-subscription-log.js +2 -0
- package/dist/iugu/interfaces/i-subscription-recent-invoice.d.ts +7 -0
- package/dist/iugu/interfaces/i-subscription-recent-invoice.js +2 -0
- package/dist/iugu/interfaces/i-subscription-subitem.d.ts +8 -0
- package/dist/iugu/interfaces/i-subscription-subitem.js +2 -0
- package/dist/iugu/interfaces/i-subscription.d.ts +39 -0
- package/dist/iugu/interfaces/i-subscription.js +2 -0
- package/dist/iugu/interfaces/index.d.ts +23 -0
- package/dist/iugu/interfaces/index.js +2 -0
- package/dist/member/entities/index.d.ts +1 -0
- package/dist/member/entities/index.js +5 -0
- package/dist/member/entities/member.entity.d.ts +16 -0
- package/dist/member/entities/member.entity.js +49 -0
- package/dist/member/enums/index.d.ts +1 -0
- package/dist/member/enums/index.js +5 -0
- package/dist/member/enums/member-rules.enum.d.ts +10 -0
- package/dist/member/enums/member-rules.enum.js +14 -0
- package/dist/member/index.d.ts +3 -0
- package/dist/member/index.js +19 -0
- package/dist/member/interfaces/i-member.d.ts +12 -0
- package/dist/member/interfaces/i-member.js +2 -0
- package/dist/member/interfaces/index.d.ts +1 -0
- package/dist/member/interfaces/index.js +2 -0
- package/dist/order/entities/{order-benefits.entity.d.ts → benefits.entity.d.ts} +1 -1
- package/dist/order/entities/{order-customer-phone.entity.d.ts → customer-phone.entity.d.ts} +2 -1
- package/dist/order/entities/{order-customer.entity.d.ts → customer.entity.d.ts} +3 -2
- package/dist/order/entities/{order-customer.entity.js → customer.entity.js} +2 -2
- package/dist/order/entities/index.d.ts +18 -18
- package/dist/order/entities/index.js +37 -37
- package/dist/order/entities/{order-item-option.entity.d.ts → item-option.entity.d.ts} +2 -1
- package/dist/order/entities/{order-item.entity.d.ts → item.entity.d.ts} +5 -4
- package/dist/order/entities/{order-item.entity.js → item.entity.js} +2 -2
- package/dist/order/entities/order.entity.d.ts +9 -8
- package/dist/order/entities/order.entity.js +8 -8
- package/dist/order/entities/{order-payment-method.entity.d.ts → payment-method.entity.d.ts} +7 -6
- package/dist/order/entities/{order-payment-method.entity.js → payment-method.entity.js} +1 -1
- package/dist/order/entities/payment.entity.d.ts +8 -0
- package/dist/order/entities/{order-scale-price.entity.d.ts → scale-price.entity.d.ts} +1 -1
- package/dist/order/entities/{order-total.entity.d.ts → total.entity.d.ts} +2 -1
- package/dist/order/interfaces/i-additional-fee.js +2 -0
- package/dist/order/interfaces/i-benefits-sponsor-ship.js +2 -0
- package/dist/order/interfaces/{i-order-benefits.d.ts → i-benefits.d.ts} +1 -1
- package/dist/order/interfaces/i-benefits.js +2 -0
- package/dist/order/interfaces/i-cancellation.js +2 -0
- package/dist/order/interfaces/i-customer-phone.js +2 -0
- package/dist/order/interfaces/{i-order-customer.d.ts → i-customer.d.ts} +1 -1
- package/dist/order/interfaces/i-customer.js +2 -0
- package/dist/order/interfaces/i-item-composition.js +2 -0
- package/dist/order/interfaces/i-item-option.js +2 -0
- package/dist/order/interfaces/{i-order-item.d.ts → i-item.d.ts} +3 -3
- package/dist/order/interfaces/i-item.js +2 -0
- package/dist/order/interfaces/i-order.d.ts +9 -9
- package/dist/order/interfaces/i-payment-card.js +2 -0
- package/dist/order/interfaces/i-payment-cash.js +2 -0
- package/dist/order/interfaces/i-payment-method.d.ts +18 -0
- package/dist/order/interfaces/i-payment-method.js +2 -0
- package/dist/order/interfaces/i-payment-pix.js +2 -0
- package/dist/order/interfaces/i-payment-wallet.js +2 -0
- package/dist/order/interfaces/{i-order-payment.d.ts → i-payment.d.ts} +1 -1
- package/dist/order/interfaces/i-payment.js +2 -0
- package/dist/order/interfaces/i-scale-item.js +2 -0
- package/dist/order/interfaces/{i-order-scale-price.d.ts → i-scale-price.d.ts} +1 -1
- package/dist/order/interfaces/i-scale-price.js +2 -0
- package/dist/order/interfaces/i-total.js +2 -0
- package/dist/order/interfaces/index.d.ts +18 -18
- package/dist/package.json +1 -1
- package/dist/partners/entities/index.d.ts +1 -0
- package/dist/partners/entities/index.js +5 -0
- package/dist/partners/entities/partner.entity.d.ts +11 -0
- package/dist/partners/entities/partner.entity.js +44 -0
- package/dist/partners/index.d.ts +2 -0
- package/dist/partners/index.js +18 -0
- package/dist/partners/interfaces/i-partner.d.ts +9 -0
- package/dist/partners/interfaces/i-partner.js +2 -0
- package/dist/partners/interfaces/index.d.ts +1 -0
- package/dist/partners/interfaces/index.js +2 -0
- package/dist/plan/entities/feature.entity.d.ts +13 -0
- package/dist/plan/entities/feature.entity.js +28 -0
- package/dist/plan/entities/index.d.ts +2 -0
- package/dist/plan/entities/index.js +7 -0
- package/dist/plan/entities/plan.entity.d.ts +16 -0
- package/dist/plan/entities/plan.entity.js +30 -0
- package/dist/plan/enums/index.d.ts +1 -0
- package/dist/plan/enums/index.js +5 -0
- package/dist/plan/enums/plans-identifier.enum.d.ts +4 -0
- package/dist/plan/enums/plans-identifier.enum.js +8 -0
- package/dist/plan/index.d.ts +3 -0
- package/dist/plan/index.js +19 -0
- package/dist/plan/interfaces/i-feature.d.ts +11 -0
- package/dist/plan/interfaces/i-feature.js +2 -0
- package/dist/plan/interfaces/i-plan.d.ts +14 -0
- package/dist/plan/interfaces/i-plan.js +2 -0
- package/dist/plan/interfaces/index.d.ts +2 -0
- package/dist/plan/interfaces/index.js +2 -0
- package/dist/purchases/entities/purchase.entity.js +2 -2
- package/dist/viacep/index.d.ts +1 -0
- package/dist/viacep/index.js +17 -0
- package/dist/viacep/interfaces/i-via-cep.d.ts +12 -0
- package/dist/viacep/interfaces/i-via-cep.js +2 -0
- package/dist/viacep/interfaces/index.d.ts +1 -0
- package/dist/viacep/interfaces/index.js +2 -0
- package/package.json +1 -1
- package/dist/esm2022/device/interfaces/i-device-metadata.mjs +0 -2
- package/dist/esm2022/order/entities/order-benefits-sponsor-ship.entity.mjs +0 -17
- package/dist/esm2022/order/entities/order-benefits.entity.mjs +0 -21
- package/dist/esm2022/order/entities/order-cancellation.entity.mjs +0 -18
- package/dist/esm2022/order/entities/order-customer-phone.entity.mjs +0 -19
- package/dist/esm2022/order/entities/order-customer.entity.mjs +0 -23
- package/dist/esm2022/order/entities/order-item-composition.entity.mjs +0 -21
- package/dist/esm2022/order/entities/order-item-option.entity.mjs +0 -30
- package/dist/esm2022/order/entities/order-item.entity.mjs +0 -36
- package/dist/esm2022/order/entities/order-payment-card.entity.mjs +0 -16
- package/dist/esm2022/order/entities/order-payment-cash.entity.mjs +0 -16
- package/dist/esm2022/order/entities/order-payment-method.entity.mjs +0 -27
- package/dist/esm2022/order/entities/order-payment-pix.entity.mjs +0 -17
- package/dist/esm2022/order/entities/order-payment-wallet.entity.mjs +0 -16
- package/dist/esm2022/order/entities/order-payment.entity.mjs +0 -18
- package/dist/esm2022/order/entities/order-scale-item.entity.mjs +0 -17
- package/dist/esm2022/order/entities/order-scale-price.entity.mjs +0 -17
- package/dist/esm2022/order/entities/order-total.entity.mjs +0 -20
- package/dist/esm2022/order/interfaces/i-order-additional-fee.mjs +0 -2
- package/dist/esm2022/order/interfaces/i-order-benefits-sponsor-ship.mjs +0 -2
- package/dist/esm2022/order/interfaces/i-order-benefits.mjs +0 -2
- package/dist/esm2022/order/interfaces/i-order-cancellation.mjs +0 -2
- package/dist/esm2022/order/interfaces/i-order-customer-phone.mjs +0 -2
- package/dist/esm2022/order/interfaces/i-order-customer.mjs +0 -2
- package/dist/esm2022/order/interfaces/i-order-item-composition.mjs +0 -2
- package/dist/esm2022/order/interfaces/i-order-item-option.mjs +0 -2
- package/dist/esm2022/order/interfaces/i-order-item.mjs +0 -2
- package/dist/esm2022/order/interfaces/i-order-payment-card.mjs +0 -2
- package/dist/esm2022/order/interfaces/i-order-payment-cash.mjs +0 -2
- package/dist/esm2022/order/interfaces/i-order-payment-method.mjs +0 -2
- package/dist/esm2022/order/interfaces/i-order-payment-pix.mjs +0 -2
- package/dist/esm2022/order/interfaces/i-order-payment-wallet.mjs +0 -2
- package/dist/esm2022/order/interfaces/i-order-payment.mjs +0 -2
- package/dist/esm2022/order/interfaces/i-order-scale-item.mjs +0 -2
- package/dist/esm2022/order/interfaces/i-order-scale-price.mjs +0 -2
- package/dist/esm2022/order/interfaces/i-order-total.mjs +0 -2
- package/dist/order/entities/order-payment.entity.d.ts +0 -7
- package/dist/order/interfaces/i-order-payment-method.d.ts +0 -18
- /package/dist/{device/interfaces/i-device-metadata.js → container/interfaces/i-container.js} +0 -0
- /package/dist/{order/interfaces/i-order-additional-fee.js → container/interfaces/index.js} +0 -0
- /package/dist/device/interfaces/{i-device-metadata.d.ts → i-metadata.d.ts} +0 -0
- /package/dist/{order/interfaces/i-order-benefits-sponsor-ship.js → device/interfaces/i-metadata.js} +0 -0
- /package/dist/{order/interfaces/i-order-benefits.js → invite/interfaces/i-invite.js} +0 -0
- /package/dist/{order/interfaces/i-order-cancellation.js → invite/interfaces/index.js} +0 -0
- /package/dist/{order/interfaces/i-order-customer-phone.js → iugu/interfaces/i-account-configuration-bank-slip.js} +0 -0
- /package/dist/{order/interfaces/i-order-customer.js → iugu/interfaces/i-account-configuration-creadit-card.js} +0 -0
- /package/dist/{order/interfaces/i-order-item-composition.js → iugu/interfaces/i-account-configuration-pix.js} +0 -0
- /package/dist/{order/interfaces/i-order-item-option.js → iugu/interfaces/i-account-configuration.js} +0 -0
- /package/dist/{order/interfaces/i-order-item.js → iugu/interfaces/i-account-info-last-ver-req-data.js} +0 -0
- /package/dist/{order/interfaces/i-order-payment-card.js → iugu/interfaces/i-account-informations.js} +0 -0
- /package/dist/{order/interfaces/i-order-payment-cash.js → iugu/interfaces/i-account-marketplace-split.js} +0 -0
- /package/dist/{order/interfaces/i-order-payment-method.js → iugu/interfaces/i-account.js} +0 -0
- /package/dist/{order/interfaces/i-order-payment-pix.js → iugu/interfaces/i-change-plan-simulation.js} +0 -0
- /package/dist/{order/interfaces/i-order-payment-wallet.js → iugu/interfaces/i-config-early-payment-discounts.js} +0 -0
- /package/dist/{order/interfaces/i-order-payment.js → iugu/interfaces/i-customer.js} +0 -0
- /package/dist/{order/interfaces/i-order-scale-item.js → iugu/interfaces/i-payment-token-data.js} +0 -0
- /package/dist/{order/interfaces/i-order-scale-price.js → iugu/interfaces/i-payment-token.js} +0 -0
- /package/dist/{order/interfaces/i-order-total.js → iugu/interfaces/i-plan-feature.js} +0 -0
- /package/dist/order/entities/{order-additional-fees.entity.d.ts → additional-fees.entity.d.ts} +0 -0
- /package/dist/order/entities/{order-additional-fees.entity.js → additional-fees.entity.js} +0 -0
- /package/dist/order/entities/{order-benefits-sponsor-ship.entity.d.ts → benefits-sponsor-ship.entity.d.ts} +0 -0
- /package/dist/order/entities/{order-benefits-sponsor-ship.entity.js → benefits-sponsor-ship.entity.js} +0 -0
- /package/dist/order/entities/{order-benefits.entity.js → benefits.entity.js} +0 -0
- /package/dist/order/entities/{order-cancellation.entity.d.ts → cancellation.entity.d.ts} +0 -0
- /package/dist/order/entities/{order-cancellation.entity.js → cancellation.entity.js} +0 -0
- /package/dist/order/entities/{order-customer-phone.entity.js → customer-phone.entity.js} +0 -0
- /package/dist/order/entities/{order-item-composition.entity.d.ts → item-composition.entity.d.ts} +0 -0
- /package/dist/order/entities/{order-item-composition.entity.js → item-composition.entity.js} +0 -0
- /package/dist/order/entities/{order-item-option.entity.js → item-option.entity.js} +0 -0
- /package/dist/order/entities/{order-payment-card.entity.d.ts → payment-card.entity.d.ts} +0 -0
- /package/dist/order/entities/{order-payment-card.entity.js → payment-card.entity.js} +0 -0
- /package/dist/order/entities/{order-payment-cash.entity.d.ts → payment-cash.entity.d.ts} +0 -0
- /package/dist/order/entities/{order-payment-cash.entity.js → payment-cash.entity.js} +0 -0
- /package/dist/order/entities/{order-payment-pix.entity.d.ts → payment-pix.entity.d.ts} +0 -0
- /package/dist/order/entities/{order-payment-pix.entity.js → payment-pix.entity.js} +0 -0
- /package/dist/order/entities/{order-payment-wallet.entity.d.ts → payment-wallet.entity.d.ts} +0 -0
- /package/dist/order/entities/{order-payment-wallet.entity.js → payment-wallet.entity.js} +0 -0
- /package/dist/order/entities/{order-payment.entity.js → payment.entity.js} +0 -0
- /package/dist/order/entities/{order-scale-item.entity.d.ts → scale-item.entity.d.ts} +0 -0
- /package/dist/order/entities/{order-scale-item.entity.js → scale-item.entity.js} +0 -0
- /package/dist/order/entities/{order-scale-price.entity.js → scale-price.entity.js} +0 -0
- /package/dist/order/entities/{order-total.entity.js → total.entity.js} +0 -0
- /package/dist/order/interfaces/{i-order-additional-fee.d.ts → i-additional-fee.d.ts} +0 -0
- /package/dist/order/interfaces/{i-order-benefits-sponsor-ship.d.ts → i-benefits-sponsor-ship.d.ts} +0 -0
- /package/dist/order/interfaces/{i-order-cancellation.d.ts → i-cancellation.d.ts} +0 -0
- /package/dist/order/interfaces/{i-order-customer-phone.d.ts → i-customer-phone.d.ts} +0 -0
- /package/dist/order/interfaces/{i-order-item-composition.d.ts → i-item-composition.d.ts} +0 -0
- /package/dist/order/interfaces/{i-order-item-option.d.ts → i-item-option.d.ts} +0 -0
- /package/dist/order/interfaces/{i-order-payment-card.d.ts → i-payment-card.d.ts} +0 -0
- /package/dist/order/interfaces/{i-order-payment-cash.d.ts → i-payment-cash.d.ts} +0 -0
- /package/dist/order/interfaces/{i-order-payment-pix.d.ts → i-payment-pix.d.ts} +0 -0
- /package/dist/order/interfaces/{i-order-payment-wallet.d.ts → i-payment-wallet.d.ts} +0 -0
- /package/dist/order/interfaces/{i-order-scale-item.d.ts → i-scale-item.d.ts} +0 -0
- /package/dist/order/interfaces/{i-order-total.d.ts → i-total.d.ts} +0 -0
@@ -35,6 +35,28 @@ class AddressEntity {
|
|
35
35
|
}
|
36
36
|
}
|
37
37
|
|
38
|
+
// src/models/base.entity.ts
|
39
|
+
class BaseEntity {
|
40
|
+
// #region Properties (6)
|
41
|
+
active = true;
|
42
|
+
companyId = '';
|
43
|
+
containerId = '';
|
44
|
+
createdAt = Date.now();
|
45
|
+
id = '';
|
46
|
+
updatedAt = Date.now();
|
47
|
+
// #endregion Properties (6)
|
48
|
+
// #region Constructors (1)
|
49
|
+
constructor(data) {
|
50
|
+
if (data) {
|
51
|
+
for (let key in data) {
|
52
|
+
if (data.hasOwnProperty(key) && key in this) {
|
53
|
+
this[key] = data[key];
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
38
60
|
class DeliveryAreaEntity {
|
39
61
|
// #region Properties (8)
|
40
62
|
deliveryFee = 0;
|
@@ -119,13 +141,13 @@ class MobyoApiConfigEntity {
|
|
119
141
|
|
120
142
|
var LeadOriginEnum;
|
121
143
|
(function (LeadOriginEnum) {
|
122
|
-
LeadOriginEnum["
|
123
|
-
LeadOriginEnum["
|
124
|
-
LeadOriginEnum["
|
125
|
-
LeadOriginEnum["
|
126
|
-
LeadOriginEnum["
|
127
|
-
LeadOriginEnum["
|
128
|
-
LeadOriginEnum["
|
144
|
+
LeadOriginEnum["FacebookAds"] = "Facebook Ads";
|
145
|
+
LeadOriginEnum["GoogleAds"] = "Google Ads";
|
146
|
+
LeadOriginEnum["EmailMarketing"] = "Email Marketing";
|
147
|
+
LeadOriginEnum["ReferredByFriend"] = "Indica\u00E7\u00E3o de amigo";
|
148
|
+
LeadOriginEnum["OrganicSearch"] = "Busca org\u00E2nica";
|
149
|
+
LeadOriginEnum["DirectVisit"] = "Visita Direta";
|
150
|
+
LeadOriginEnum["Others"] = "Outros";
|
129
151
|
})(LeadOriginEnum || (LeadOriginEnum = {}));
|
130
152
|
|
131
153
|
class OriginEntity {
|
@@ -135,7 +157,7 @@ class OriginEntity {
|
|
135
157
|
date = 0;
|
136
158
|
details = '';
|
137
159
|
referrer = '';
|
138
|
-
type = LeadOriginEnum.
|
160
|
+
type = LeadOriginEnum.Others;
|
139
161
|
// #endregion Properties (6)
|
140
162
|
// #region Constructors (1)
|
141
163
|
constructor(data) {
|
@@ -151,59 +173,59 @@ class OriginEntity {
|
|
151
173
|
|
152
174
|
var PaymentChannelEnum;
|
153
175
|
(function (PaymentChannelEnum) {
|
154
|
-
PaymentChannelEnum["
|
155
|
-
PaymentChannelEnum["
|
156
|
-
PaymentChannelEnum["
|
157
|
-
PaymentChannelEnum["
|
158
|
-
PaymentChannelEnum["
|
159
|
-
PaymentChannelEnum["
|
160
|
-
PaymentChannelEnum["
|
161
|
-
PaymentChannelEnum["
|
176
|
+
PaymentChannelEnum["App"] = "APP";
|
177
|
+
PaymentChannelEnum["Delivery"] = "DELIVERY";
|
178
|
+
PaymentChannelEnum["Automation"] = "AUTOMATION";
|
179
|
+
PaymentChannelEnum["Phone"] = "PHONE";
|
180
|
+
PaymentChannelEnum["Mail"] = "MAIL";
|
181
|
+
PaymentChannelEnum["Kiosk"] = "KIOSK";
|
182
|
+
PaymentChannelEnum["QrCode"] = "QR_CODE";
|
183
|
+
PaymentChannelEnum["Website"] = "WEBSITE";
|
162
184
|
})(PaymentChannelEnum || (PaymentChannelEnum = {}));
|
163
185
|
|
164
186
|
var PaymentModeEnum;
|
165
187
|
(function (PaymentModeEnum) {
|
166
|
-
PaymentModeEnum["
|
167
|
-
PaymentModeEnum["
|
168
|
-
PaymentModeEnum["
|
188
|
+
PaymentModeEnum["Electronic"] = "ELECTRONIC";
|
189
|
+
PaymentModeEnum["Manual"] = "MANUAL";
|
190
|
+
PaymentModeEnum["Digital"] = "DIGITAL";
|
169
191
|
})(PaymentModeEnum || (PaymentModeEnum = {}));
|
170
192
|
|
171
193
|
var PaymentTypeEnum;
|
172
194
|
(function (PaymentTypeEnum) {
|
173
|
-
PaymentTypeEnum["
|
174
|
-
PaymentTypeEnum["
|
175
|
-
PaymentTypeEnum["
|
176
|
-
PaymentTypeEnum["
|
177
|
-
PaymentTypeEnum["
|
178
|
-
PaymentTypeEnum["
|
179
|
-
PaymentTypeEnum["
|
180
|
-
PaymentTypeEnum["
|
181
|
-
PaymentTypeEnum["
|
182
|
-
PaymentTypeEnum["
|
183
|
-
PaymentTypeEnum["
|
184
|
-
PaymentTypeEnum["
|
185
|
-
PaymentTypeEnum["
|
186
|
-
PaymentTypeEnum["
|
187
|
-
PaymentTypeEnum["
|
188
|
-
PaymentTypeEnum["
|
189
|
-
PaymentTypeEnum["
|
190
|
-
PaymentTypeEnum["
|
195
|
+
PaymentTypeEnum["CreditCard"] = "CREDIT_CARD";
|
196
|
+
PaymentTypeEnum["DebitCard"] = "DEBIT_CARD";
|
197
|
+
PaymentTypeEnum["Cash"] = "CASH";
|
198
|
+
PaymentTypeEnum["Pix"] = "PIX";
|
199
|
+
PaymentTypeEnum["MobilePayment"] = "MOBILE_PAYMENT";
|
200
|
+
PaymentTypeEnum["Check"] = "CHECK";
|
201
|
+
PaymentTypeEnum["Cryptocurrency"] = "CRYPTOCURRENCY";
|
202
|
+
PaymentTypeEnum["ElectronicBanking"] = "ELECTRONIC_BANKING";
|
203
|
+
PaymentTypeEnum["MoneyOrder"] = "MONEY_ORDER";
|
204
|
+
PaymentTypeEnum["PrepaidCard"] = "PREPAID_CARD";
|
205
|
+
PaymentTypeEnum["EWallet"] = "E_WALLET";
|
206
|
+
PaymentTypeEnum["DirectDebit"] = "DIRECT_DEBIT";
|
207
|
+
PaymentTypeEnum["Paypal"] = "PAYPAL";
|
208
|
+
PaymentTypeEnum["CheckoutPro"] = "CHECKOUTPRO";
|
209
|
+
PaymentTypeEnum["WireTransfer"] = "WIRE_TRANSFER";
|
210
|
+
PaymentTypeEnum["GiftCard"] = "GIFT_CARD";
|
211
|
+
PaymentTypeEnum["Voucher"] = "VOUCHER";
|
212
|
+
PaymentTypeEnum["Billing"] = "BILLING";
|
191
213
|
})(PaymentTypeEnum || (PaymentTypeEnum = {}));
|
192
214
|
|
193
215
|
class PaymentMethodEntity {
|
194
216
|
// #region Properties (13)
|
195
217
|
active = false;
|
196
|
-
channel = PaymentChannelEnum.
|
218
|
+
channel = PaymentChannelEnum.Automation;
|
197
219
|
createdAt = 0;
|
198
220
|
fee = 0;
|
199
221
|
id = '';
|
200
222
|
index = 0;
|
201
223
|
maxAmount = 0;
|
202
224
|
minAmount = 0;
|
203
|
-
mode = PaymentModeEnum.
|
225
|
+
mode = PaymentModeEnum.Manual;
|
204
226
|
name = '';
|
205
227
|
token = '';
|
206
|
-
type = PaymentTypeEnum.
|
228
|
+
type = PaymentTypeEnum.CreditCard;
|
207
229
|
updatedAt = Date.now();
|
208
230
|
// #endregion Properties (13)
|
209
231
|
// #region Constructors (1)
|
@@ -305,20 +327,33 @@ class PaymentTokenEntity {
|
|
305
327
|
}
|
306
328
|
}
|
307
329
|
|
330
|
+
var BooleanStringEnum;
|
331
|
+
(function (BooleanStringEnum) {
|
332
|
+
BooleanStringEnum["False"] = "false";
|
333
|
+
BooleanStringEnum["True"] = "true";
|
334
|
+
})(BooleanStringEnum || (BooleanStringEnum = {}));
|
335
|
+
|
308
336
|
var DocTypeEnum;
|
309
337
|
(function (DocTypeEnum) {
|
310
338
|
DocTypeEnum["CPF"] = "CPF";
|
311
339
|
DocTypeEnum["CNPJ"] = "CNPJ";
|
312
340
|
})(DocTypeEnum || (DocTypeEnum = {}));
|
313
341
|
|
342
|
+
var IntervalTypeEnum;
|
343
|
+
(function (IntervalTypeEnum) {
|
344
|
+
IntervalTypeEnum["Days"] = "DAYS";
|
345
|
+
IntervalTypeEnum["Weeks"] = "WEEKS";
|
346
|
+
IntervalTypeEnum["Months"] = "MONTHS";
|
347
|
+
})(IntervalTypeEnum || (IntervalTypeEnum = {}));
|
348
|
+
|
314
349
|
var PaymentProviderEnum;
|
315
350
|
(function (PaymentProviderEnum) {
|
316
|
-
PaymentProviderEnum["
|
317
|
-
PaymentProviderEnum["
|
318
|
-
PaymentProviderEnum["
|
319
|
-
PaymentProviderEnum["
|
320
|
-
PaymentProviderEnum["
|
321
|
-
PaymentProviderEnum["
|
351
|
+
PaymentProviderEnum["Iugu"] = "IUGU";
|
352
|
+
PaymentProviderEnum["Desenfila"] = "DESENFILA";
|
353
|
+
PaymentProviderEnum["MercadoPago"] = "MERCADO PAGO";
|
354
|
+
PaymentProviderEnum["Stripe"] = "STRIPE";
|
355
|
+
PaymentProviderEnum["PayPal"] = "PAYPAL";
|
356
|
+
PaymentProviderEnum["Other"] = "OTHER";
|
322
357
|
})(PaymentProviderEnum || (PaymentProviderEnum = {}));
|
323
358
|
|
324
359
|
// index.ts
|
@@ -349,6 +384,7 @@ class CompanyEntity {
|
|
349
384
|
phoneNumber = '';
|
350
385
|
pubsubTopic = '';
|
351
386
|
sandbox = false;
|
387
|
+
tags = [];
|
352
388
|
updatedAt = 0;
|
353
389
|
version = '1.0.0';
|
354
390
|
// #endregion Properties (26)
|
@@ -384,14 +420,31 @@ var CompanyMessageTypeEnum;
|
|
384
420
|
|
385
421
|
// index.ts
|
386
422
|
|
423
|
+
class ContainerEntity extends BaseEntity {
|
424
|
+
// #region Properties (1)
|
425
|
+
name = '';
|
426
|
+
// #endregion Properties (1)
|
427
|
+
// #region Constructors (1)
|
428
|
+
constructor(data) {
|
429
|
+
super(data);
|
430
|
+
if (data) {
|
431
|
+
for (let key in data) {
|
432
|
+
if (data.hasOwnProperty(key) && key in this) {
|
433
|
+
this[key] = data[key];
|
434
|
+
}
|
435
|
+
}
|
436
|
+
}
|
437
|
+
}
|
438
|
+
}
|
439
|
+
|
387
440
|
var DeviceModeEnum;
|
388
441
|
(function (DeviceModeEnum) {
|
389
|
-
DeviceModeEnum["
|
390
|
-
DeviceModeEnum["
|
391
|
-
DeviceModeEnum["
|
392
|
-
DeviceModeEnum["
|
393
|
-
DeviceModeEnum["
|
394
|
-
DeviceModeEnum["
|
442
|
+
DeviceModeEnum["App"] = "APP";
|
443
|
+
DeviceModeEnum["Checkout"] = "CHECKOUT";
|
444
|
+
DeviceModeEnum["Screen"] = "SCREEN";
|
445
|
+
DeviceModeEnum["Natigo"] = "NATIGO";
|
446
|
+
DeviceModeEnum["SatManager"] = "SAT-MANAGER";
|
447
|
+
DeviceModeEnum["PdvNati"] = "PDV-NATI";
|
395
448
|
})(DeviceModeEnum || (DeviceModeEnum = {}));
|
396
449
|
|
397
450
|
class NatiGoEntity {
|
@@ -441,8 +494,9 @@ class DeviceEntity {
|
|
441
494
|
lastAccess = 0;
|
442
495
|
// Supondo que INatiGo tenha propriedades que você queira documentar
|
443
496
|
metadata = new MetadataEntity();
|
444
|
-
mode = DeviceModeEnum.
|
497
|
+
mode = DeviceModeEnum.Natigo;
|
445
498
|
name = '';
|
499
|
+
tags = [];
|
446
500
|
topicSubscriptions = [];
|
447
501
|
updatedAt = 0;
|
448
502
|
// #endregion Properties (13)
|
@@ -464,6 +518,324 @@ class DeviceEntity {
|
|
464
518
|
|
465
519
|
// index.ts
|
466
520
|
|
521
|
+
var InviteStatusEnum;
|
522
|
+
(function (InviteStatusEnum) {
|
523
|
+
InviteStatusEnum["Accepted"] = "ACCEPTED";
|
524
|
+
InviteStatusEnum["Pending"] = "PENDING";
|
525
|
+
InviteStatusEnum["Rejected"] = "REJECTED";
|
526
|
+
InviteStatusEnum["Expired"] = "EXPIRED";
|
527
|
+
InviteStatusEnum["Canceled"] = "CANCELED";
|
528
|
+
})(InviteStatusEnum || (InviteStatusEnum = {}));
|
529
|
+
|
530
|
+
class InviteEntity {
|
531
|
+
// #region Properties (17)
|
532
|
+
companyId = '';
|
533
|
+
companyName = '';
|
534
|
+
containerId = '';
|
535
|
+
createdAt = Date.now();
|
536
|
+
doc = '';
|
537
|
+
docType = DocTypeEnum.CNPJ;
|
538
|
+
email = '';
|
539
|
+
expireAt = Date.now() + 86400000;
|
540
|
+
expired = false;
|
541
|
+
id = '';
|
542
|
+
internationalCode = '+55';
|
543
|
+
name = '';
|
544
|
+
phoneNumber = '';
|
545
|
+
photoURL = '';
|
546
|
+
status = InviteStatusEnum.Pending;
|
547
|
+
uid = '';
|
548
|
+
updatedAt = Date.now();
|
549
|
+
// #endregion Properties (17)
|
550
|
+
// #region Constructors (1)
|
551
|
+
constructor(data) {
|
552
|
+
if (data) {
|
553
|
+
for (let key in data) {
|
554
|
+
if (data.hasOwnProperty(key) && key in this) {
|
555
|
+
this[key] = data[key];
|
556
|
+
}
|
557
|
+
}
|
558
|
+
}
|
559
|
+
}
|
560
|
+
}
|
561
|
+
|
562
|
+
class IuguPaymentTokenDataEntity {
|
563
|
+
// #region Properties (9)
|
564
|
+
bin = '';
|
565
|
+
brand = '';
|
566
|
+
displayNumber = '';
|
567
|
+
firstDigits = '';
|
568
|
+
holderName = '';
|
569
|
+
lastDigits = '';
|
570
|
+
maskedNumber = '';
|
571
|
+
month = 0;
|
572
|
+
year = 2035;
|
573
|
+
// #endregion Properties (9)
|
574
|
+
// #region Constructors (1)
|
575
|
+
constructor(data) {
|
576
|
+
if (data) {
|
577
|
+
for (let key in data) {
|
578
|
+
if (data.hasOwnProperty(key) && key in this) {
|
579
|
+
this[key] = data[key];
|
580
|
+
}
|
581
|
+
}
|
582
|
+
}
|
583
|
+
}
|
584
|
+
}
|
585
|
+
|
586
|
+
class IuguPaymentTokenEntity {
|
587
|
+
// #region Properties (5)
|
588
|
+
customerId = '';
|
589
|
+
data = new IuguPaymentTokenDataEntity();
|
590
|
+
description = '';
|
591
|
+
id = '';
|
592
|
+
itemType = '';
|
593
|
+
// #endregion Properties (5)
|
594
|
+
// #region Constructors (1)
|
595
|
+
constructor(data) {
|
596
|
+
if (data) {
|
597
|
+
for (let key in data) {
|
598
|
+
if (data.hasOwnProperty(key) && key in this) {
|
599
|
+
this[key] = data[key];
|
600
|
+
}
|
601
|
+
}
|
602
|
+
}
|
603
|
+
}
|
604
|
+
}
|
605
|
+
|
606
|
+
var IuguAutoAdvanceEnum;
|
607
|
+
(function (IuguAutoAdvanceEnum) {
|
608
|
+
IuguAutoAdvanceEnum["DaysAfterPayment"] = "days_after_payment";
|
609
|
+
IuguAutoAdvanceEnum["Daily"] = "daily";
|
610
|
+
IuguAutoAdvanceEnum["Weekly"] = "weekly";
|
611
|
+
IuguAutoAdvanceEnum["Monthly"] = "monthly";
|
612
|
+
})(IuguAutoAdvanceEnum || (IuguAutoAdvanceEnum = {}));
|
613
|
+
|
614
|
+
var IuguBankEnum;
|
615
|
+
(function (IuguBankEnum) {
|
616
|
+
IuguBankEnum["ITAU"] = "Ita\u00FA";
|
617
|
+
IuguBankEnum["BRADESCO"] = "Bradesco";
|
618
|
+
IuguBankEnum["CAIXA"] = "Caixa Econ\u00F4mica";
|
619
|
+
IuguBankEnum["BRASIL"] = "Banco do Brasil";
|
620
|
+
IuguBankEnum["SANTANDER"] = "Santander";
|
621
|
+
IuguBankEnum["BANRISUL"] = "Banrisul";
|
622
|
+
IuguBankEnum["SICRED"] = "Sicredi";
|
623
|
+
IuguBankEnum["SICOOB"] = "Sicoob";
|
624
|
+
IuguBankEnum["INTER"] = "Inter";
|
625
|
+
IuguBankEnum["BRB"] = "BRB";
|
626
|
+
IuguBankEnum["VIACRED"] = "Via Credi";
|
627
|
+
IuguBankEnum["NEON"] = "Neon";
|
628
|
+
IuguBankEnum["VOTORANTIN"] = "Votorantim";
|
629
|
+
IuguBankEnum["NUBANK"] = "Nubank";
|
630
|
+
IuguBankEnum["PAGSEGURO"] = "Pagseguro";
|
631
|
+
IuguBankEnum["ORIGINAL"] = "Banco Original";
|
632
|
+
IuguBankEnum["SAFRA"] = "Safra";
|
633
|
+
IuguBankEnum["MODAL"] = "Modal";
|
634
|
+
IuguBankEnum["BANESTES"] = "Banestes";
|
635
|
+
IuguBankEnum["UNICRED"] = "Unicred";
|
636
|
+
IuguBankEnum["MONEYPLUS"] = "Money Plus";
|
637
|
+
IuguBankEnum["MERCANTIL"] = "Mercantil do Brasil";
|
638
|
+
IuguBankEnum["JPMORGAN"] = "JP Morgan";
|
639
|
+
IuguBankEnum["GERENCIANET"] = "Gerencianet Pagamentos do Brasil";
|
640
|
+
IuguBankEnum["C6"] = "Banco C6";
|
641
|
+
IuguBankEnum["BS2"] = "BS2";
|
642
|
+
IuguBankEnum["TOPAZIO"] = "Banco Topazio";
|
643
|
+
IuguBankEnum["UNIPRIME"] = "Uniprime";
|
644
|
+
IuguBankEnum["STONE"] = "Stone";
|
645
|
+
IuguBankEnum["DAYCOVAL"] = "Banco Daycoval";
|
646
|
+
IuguBankEnum["RENDIMENTO"] = "Rendimento";
|
647
|
+
IuguBankEnum["NORDESTE"] = "Banco do Nordeste";
|
648
|
+
IuguBankEnum["CITIBANK"] = "Citibank";
|
649
|
+
IuguBankEnum["PJBANK"] = "PJBank";
|
650
|
+
IuguBankEnum["CCCNB"] = "Cooperativa Central de Credito Noroeste Brasileiro";
|
651
|
+
IuguBankEnum["UNIPRIMENPARANA"] = "Uniprime Norte do Paran\u00E1";
|
652
|
+
IuguBankEnum["GLOBALSCM"] = "Global SCM";
|
653
|
+
IuguBankEnum["NEXT"] = "Next";
|
654
|
+
IuguBankEnum["CORA"] = "Cora";
|
655
|
+
IuguBankEnum["MERCADOPAGO"] = "Mercado Pago";
|
656
|
+
IuguBankEnum["AMAZONIA"] = "Banco da Amazonia";
|
657
|
+
IuguBankEnum["BNP"] = "BNP Paribas Brasil";
|
658
|
+
IuguBankEnum["JUNO"] = "Juno";
|
659
|
+
IuguBankEnum["CRESOL"] = "Cresol";
|
660
|
+
IuguBankEnum["BRLTRUST"] = "BRL Trust DTVM";
|
661
|
+
IuguBankEnum["BANESE"] = "Banco Banese";
|
662
|
+
IuguBankEnum["BTGPACTUAL"] = "Banco BTG Pactual";
|
663
|
+
IuguBankEnum["OMNI"] = "Banco Omni";
|
664
|
+
IuguBankEnum["ACESSOSOLUCOES"] = "Acesso Solu\u00E7\u00F5es de Pagamento";
|
665
|
+
IuguBankEnum["CCR"] = "CCR de S\u00E3o Miguel do Oeste";
|
666
|
+
IuguBankEnum["POLOCRED"] = "Polocred";
|
667
|
+
IuguBankEnum["OTIMO"] = "\u00D3timo";
|
668
|
+
IuguBankEnum["RIBEIRAOPRETO"] = "Banco Ribeir\u00E3o Preto";
|
669
|
+
IuguBankEnum["ASAASIP"] = "ASAAS IP";
|
670
|
+
IuguBankEnum["PAN"] = "Banco Pan";
|
671
|
+
IuguBankEnum["VORTX"] = "VORTX DTVM LTDA";
|
672
|
+
IuguBankEnum["BMG"] = "Banco BMG";
|
673
|
+
})(IuguBankEnum || (IuguBankEnum = {}));
|
674
|
+
const IuguBankNumber = [
|
675
|
+
{ code: '341', label: IuguBankEnum.ITAU },
|
676
|
+
{ code: '237', label: IuguBankEnum.BRADESCO },
|
677
|
+
{ code: '104', label: IuguBankEnum.CAIXA },
|
678
|
+
{ code: '001', label: IuguBankEnum.BRASIL },
|
679
|
+
{ code: '033', label: IuguBankEnum.SANTANDER },
|
680
|
+
{ code: '041', label: IuguBankEnum.BANRISUL },
|
681
|
+
{ code: '748', label: IuguBankEnum.SICRED },
|
682
|
+
{ code: '756', label: IuguBankEnum.SICOOB },
|
683
|
+
{ code: '077', label: IuguBankEnum.INTER },
|
684
|
+
{ code: '070', label: IuguBankEnum.BRB },
|
685
|
+
{ code: '085', label: IuguBankEnum.VIACRED },
|
686
|
+
{ code: '735', label: IuguBankEnum.NEON },
|
687
|
+
{ code: '655', label: IuguBankEnum.VOTORANTIN },
|
688
|
+
{ code: '260', label: IuguBankEnum.NUBANK },
|
689
|
+
{ code: '290', label: IuguBankEnum.PAGSEGURO },
|
690
|
+
{ code: '212', label: IuguBankEnum.ORIGINAL },
|
691
|
+
{ code: '422', label: IuguBankEnum.SAFRA },
|
692
|
+
{ code: '746', label: IuguBankEnum.MODAL },
|
693
|
+
{ code: '021', label: IuguBankEnum.BANESTES },
|
694
|
+
{ code: '136', label: IuguBankEnum.UNICRED },
|
695
|
+
{ code: '274', label: IuguBankEnum.MONEYPLUS },
|
696
|
+
{ code: '389', label: IuguBankEnum.MERCANTIL },
|
697
|
+
{ code: '376', label: IuguBankEnum.JPMORGAN },
|
698
|
+
{ code: '364', label: IuguBankEnum.GERENCIANET },
|
699
|
+
{ code: '336', label: IuguBankEnum.C6 },
|
700
|
+
{ code: '218', label: IuguBankEnum.BS2 },
|
701
|
+
{ code: '082', label: IuguBankEnum.TOPAZIO },
|
702
|
+
{ code: '099', label: IuguBankEnum.UNIPRIME },
|
703
|
+
{ code: '197', label: IuguBankEnum.STONE },
|
704
|
+
{ code: '707', label: IuguBankEnum.DAYCOVAL },
|
705
|
+
{ code: '633', label: IuguBankEnum.RENDIMENTO },
|
706
|
+
{ code: '004', label: IuguBankEnum.NORDESTE },
|
707
|
+
{ code: '745', label: IuguBankEnum.CITIBANK },
|
708
|
+
{ code: '301', label: IuguBankEnum.PJBANK },
|
709
|
+
{ code: '320', label: IuguBankEnum.CCCNB },
|
710
|
+
{ code: '084', label: IuguBankEnum.UNIPRIMENPARANA },
|
711
|
+
{ code: '384', label: IuguBankEnum.GLOBALSCM },
|
712
|
+
{ code: '237', label: IuguBankEnum.NEXT },
|
713
|
+
{ code: '403', label: IuguBankEnum.CORA },
|
714
|
+
{ code: '323', label: IuguBankEnum.MERCADOPAGO },
|
715
|
+
{ code: '003', label: IuguBankEnum.AMAZONIA },
|
716
|
+
{ code: '752', label: IuguBankEnum.BNP },
|
717
|
+
{ code: '383', label: IuguBankEnum.JUNO },
|
718
|
+
{ code: '133', label: IuguBankEnum.CRESOL },
|
719
|
+
{ code: '173', label: IuguBankEnum.BRLTRUST },
|
720
|
+
{ code: '047', label: IuguBankEnum.BANESE },
|
721
|
+
{ code: '208', label: IuguBankEnum.BTGPACTUAL },
|
722
|
+
{ code: '613', label: IuguBankEnum.OMNI },
|
723
|
+
{ code: '332', label: IuguBankEnum.ACESSOSOLUCOES },
|
724
|
+
{ code: '281', label: IuguBankEnum.CCR },
|
725
|
+
{ code: '093', label: IuguBankEnum.POLOCRED },
|
726
|
+
{ code: '355', label: IuguBankEnum.OTIMO },
|
727
|
+
{ code: '741', label: IuguBankEnum.RIBEIRAOPRETO },
|
728
|
+
{ code: '461', label: IuguBankEnum.ASAASIP },
|
729
|
+
{ code: '623', label: IuguBankEnum.PAN },
|
730
|
+
{ code: '310', label: IuguBankEnum.VORTX },
|
731
|
+
{ code: '318', label: IuguBankEnum.BMG },
|
732
|
+
];
|
733
|
+
const IuguBankFormatter = [
|
734
|
+
{ name: 'Banco do Brasil', agency: '9999-D', account: '99999999-D' },
|
735
|
+
{ name: 'Santander', agency: '9999', account: '99999999-D' },
|
736
|
+
{ name: 'Caixa Econômica', agency: '9999', account: 'XXX99999999-D (X: Operação)' },
|
737
|
+
{ name: 'Caixa Econômica', agency: '9999', account: 'XXXX999999999-D (X: Operação - Novo formato CP)' },
|
738
|
+
{ name: 'Bradesco', agency: '9999-D', account: '9999999-D' },
|
739
|
+
{ name: 'Itaú', agency: '9999', account: '99999-D' },
|
740
|
+
{ name: 'Itaú', agency: '9999', account: '999999999-D (Itaú-Iti)' },
|
741
|
+
{ name: 'Agibank', agency: '9999', account: '9999999999' },
|
742
|
+
{ name: 'Banpará', agency: '9999', account: '999999999-D' },
|
743
|
+
{ name: 'Banrisul', agency: '9999', account: '999999999-D' },
|
744
|
+
{ name: 'Sicoob', agency: '9999', account: '999999999-D' },
|
745
|
+
{ name: 'Inter', agency: '9999', account: '999999999-D' },
|
746
|
+
{ name: 'BRB', agency: '9999', account: '999999999-D' },
|
747
|
+
{ name: 'Via Credi', agency: '9999', account: '99999999999-D' },
|
748
|
+
{ name: 'Neon/Votorantim', agency: '9999', account: '9999999999-D' },
|
749
|
+
{ name: 'Nubank', agency: '9999', account: '9999999999-D' },
|
750
|
+
{ name: 'Pagseguro', agency: '9999', account: '99999999-D' },
|
751
|
+
{ name: 'Banco Original', agency: '9999', account: '9999999-D' },
|
752
|
+
{ name: 'Safra', agency: '9999', account: '99999999-D' },
|
753
|
+
{ name: 'Modal', agency: '9999', account: '999999999-D' },
|
754
|
+
{ name: 'Banestes', agency: '9999', account: '99999999-D' },
|
755
|
+
{ name: 'Unicred', agency: '9999', account: '99999999-D' },
|
756
|
+
{ name: 'Money Plus', agency: '9', account: '99999999-D' },
|
757
|
+
{ name: 'Mercantil do Brasil', agency: '9999', account: '99999999-D' },
|
758
|
+
{ name: 'JP Morgan', agency: '9999', account: '99999999999-D' },
|
759
|
+
{ name: 'Gerencianet Pagamentos do Brasil', agency: '9999', account: '99999999-D' },
|
760
|
+
{ name: 'Banco C6', agency: '9999', account: '99999999-D' },
|
761
|
+
{ name: 'BS2', agency: '9999', account: '9999999-D' },
|
762
|
+
{ name: 'Banco Topazio', agency: '9999', account: '99999-D' },
|
763
|
+
{ name: 'Uniprime', agency: '9999', account: '9999-D' },
|
764
|
+
{ name: 'Stone', agency: '9999', account: '9999999-D' },
|
765
|
+
{ name: 'Rendimento', agency: '9999-D', account: '9999999999' },
|
766
|
+
{ name: 'Banco Daycoval', agency: '9999', account: '999999-D' },
|
767
|
+
{ name: 'Banco do Nordeste', agency: '999', account: '999999-D' },
|
768
|
+
{ name: 'Citibank', agency: '9999', account: '99999999' },
|
769
|
+
{ name: 'PJBank', agency: '9999', account: '9999999999-D' },
|
770
|
+
{ name: 'Cooperativa Central de Credito Noroeste Brasileiro', agency: '9999', account: '9999999-D' },
|
771
|
+
{ name: 'Uniprime Norte do Paraná', agency: '9999', account: '999999-D' },
|
772
|
+
{ name: 'Global SCM', agency: '9999', account: '99999999999' },
|
773
|
+
{ name: 'Next', agency: '9999-D', account: '9999999-D' },
|
774
|
+
{ name: 'Cora', agency: '9999', account: '9999999-D' },
|
775
|
+
{ name: 'Mercado Pago', agency: '9999', account: '9999999999-D' },
|
776
|
+
{ name: 'Banco da Amazonia', agency: '9999', account: '999999-D' },
|
777
|
+
{ name: 'BNP Paribas Brasil', agency: '999', account: '999999-DDD' },
|
778
|
+
{ name: 'Juno', agency: '9999', account: '9999999999-D' },
|
779
|
+
{ name: 'Cresol', agency: '9999', account: '99999999-D' },
|
780
|
+
{ name: 'BRL Trust DTVM', agency: '999', account: '999999-D' },
|
781
|
+
{ name: 'Banco Banese', agency: '999', account: '99999999-D' },
|
782
|
+
{ name: 'Banco BTG Pactual', agency: '9999', account: '9999999-D' },
|
783
|
+
{ name: 'Banco Omni', agency: '9999', account: '999999-D' },
|
784
|
+
{ name: 'Acesso Soluções de pagamento', agency: '9999', account: '99999999' },
|
785
|
+
{ name: 'CCR de São Miguel do Oeste', agency: '9999', account: '99999' },
|
786
|
+
{ name: 'Polocred', agency: '9999', account: '999999-D' },
|
787
|
+
{ name: 'Ótimo', agency: '9999', account: '99999-D' },
|
788
|
+
{ name: 'Picpay', agency: '9999', account: '99999999-D' },
|
789
|
+
{ name: 'Banco Genial', agency: '9999', account: '9999-D' },
|
790
|
+
{ name: 'Banco Capital S.A', agency: '9999', account: '999999999' },
|
791
|
+
{ name: 'Sicredi', agency: '9999', account: '99999999D' },
|
792
|
+
{ name: 'Banco Ribeirão Preto', agency: '99999', account: '9999999999' },
|
793
|
+
{ name: 'ASAAS IP', agency: '9999', account: '9999999-D' },
|
794
|
+
{ name: 'Banco Pan', agency: '9999', account: '999999999-D' },
|
795
|
+
{ name: 'Neon', agency: '9999', account: '9999999999-D' },
|
796
|
+
{ name: 'VORTX DTVM LTDA', agency: '9999-D', account: '999-D' },
|
797
|
+
{ name: 'Banco BMG', agency: '9999', account: '99999999-D' },
|
798
|
+
{ name: 'Fitbank', agency: '9999', account: '99999999-D' }
|
799
|
+
];
|
800
|
+
|
801
|
+
var MemberRulesEnum;
|
802
|
+
(function (MemberRulesEnum) {
|
803
|
+
MemberRulesEnum["Admin"] = "ADMIN";
|
804
|
+
MemberRulesEnum["User"] = "USER";
|
805
|
+
MemberRulesEnum["Owner"] = "OWNER";
|
806
|
+
MemberRulesEnum["Support"] = "SUPPORT";
|
807
|
+
MemberRulesEnum["Partner"] = "PARTNER";
|
808
|
+
MemberRulesEnum["Finance"] = "FINANCE";
|
809
|
+
MemberRulesEnum["Marketing"] = "MARKETING";
|
810
|
+
MemberRulesEnum["Sales"] = "SALES";
|
811
|
+
})(MemberRulesEnum || (MemberRulesEnum = {}));
|
812
|
+
|
813
|
+
class MemberEntity extends BaseEntity {
|
814
|
+
// #region Properties (10)
|
815
|
+
active = true;
|
816
|
+
companyName = '';
|
817
|
+
containerName = '';
|
818
|
+
email = '';
|
819
|
+
name = '';
|
820
|
+
phoneNumber = '';
|
821
|
+
photoURL = '';
|
822
|
+
rule = MemberRulesEnum.User;
|
823
|
+
tags = [];
|
824
|
+
uid = '';
|
825
|
+
// #endregion Properties (10)
|
826
|
+
// #region Constructors (1)
|
827
|
+
constructor(data) {
|
828
|
+
super(data);
|
829
|
+
if (data) {
|
830
|
+
for (let key in data) {
|
831
|
+
if (data.hasOwnProperty(key) && key in this) {
|
832
|
+
this[key] = data[key];
|
833
|
+
}
|
834
|
+
}
|
835
|
+
}
|
836
|
+
}
|
837
|
+
}
|
838
|
+
|
467
839
|
class OrderAdditionalFeeEntity {
|
468
840
|
// #region Properties (2)
|
469
841
|
type = '';
|
@@ -681,6 +1053,115 @@ class OrderItemEntity {
|
|
681
1053
|
}
|
682
1054
|
}
|
683
1055
|
|
1056
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
1057
|
+
var OrderStatusEnum;
|
1058
|
+
(function (OrderStatusEnum) {
|
1059
|
+
OrderStatusEnum["PLACED"] = "PLACED";
|
1060
|
+
OrderStatusEnum["INTEGRATED"] = "INTEGRATED";
|
1061
|
+
OrderStatusEnum["CONFIRMED"] = "CONFIRMED";
|
1062
|
+
OrderStatusEnum["PENDING"] = "PENDING";
|
1063
|
+
OrderStatusEnum["CANCELLATION_REQUESTED"] = "CANCELLATION_REQUESTED";
|
1064
|
+
OrderStatusEnum["CANCELLATION_REQUEST_FAILED"] = "CANCELLATION_REQUEST_FAILED";
|
1065
|
+
OrderStatusEnum["CANCELLED"] = "CANCELLED";
|
1066
|
+
OrderStatusEnum["GOING_TO_ORIGIN"] = "GOING_TO_ORIGIN";
|
1067
|
+
OrderStatusEnum["ARRIVED_AT_ORIGIN"] = "ARRIVED_AT_ORIGIN";
|
1068
|
+
OrderStatusEnum["ARRIVED_AT_DESTINATION"] = "ARRIVED_AT_DESTINATION";
|
1069
|
+
OrderStatusEnum["READY_TO_PICKUP"] = "READY_TO_PICKUP";
|
1070
|
+
OrderStatusEnum["COLLECTED"] = "COLLECTED";
|
1071
|
+
OrderStatusEnum["DISPATCHED"] = "DISPATCHED";
|
1072
|
+
OrderStatusEnum["DELIVERED"] = "DELIVERED";
|
1073
|
+
OrderStatusEnum["CONCLUDED"] = "CONCLUDED";
|
1074
|
+
OrderStatusEnum["PICKUP_AREA_ASSIGNED"] = "PICKUP_AREA_ASSIGNED";
|
1075
|
+
OrderStatusEnum["DELAY_NOTIFICATION"] = "DELAY_NOTIFICATION";
|
1076
|
+
OrderStatusEnum["CHANGE_PREPARATION_TIME"] = "CHANGE_PREPARATION_TIME";
|
1077
|
+
OrderStatusEnum["REQUEST_DRIVER_AVAILABILITY"] = "REQUEST_DRIVER_AVAILABILITY";
|
1078
|
+
OrderStatusEnum["REQUEST_DRIVER"] = "REQUEST_DRIVER";
|
1079
|
+
OrderStatusEnum["REQUEST_DRIVER_SUCCESS"] = "REQUEST_DRIVER_SUCCESS";
|
1080
|
+
OrderStatusEnum["REQUEST_DRIVER_FAILED"] = "REQUEST_DRIVER_FAILED";
|
1081
|
+
OrderStatusEnum["ASSIGN_DRIVER"] = "ASSIGN_DRIVER";
|
1082
|
+
OrderStatusEnum["CONSUMER_CANCELLATION_REQUESTED"] = "CONSUMER_CANCELLATION_REQUESTED";
|
1083
|
+
OrderStatusEnum["CONSUMER_CANCELLATION_ACCEPTED"] = "CONSUMER_CANCELLATION_ACCEPTED";
|
1084
|
+
OrderStatusEnum["CONSUMER_CANCELLATION_DENIED"] = "CONSUMER_CANCELLATION_DENIED";
|
1085
|
+
OrderStatusEnum["ADDED_TO_GROUP"] = "ADDED_TO_GROUP";
|
1086
|
+
OrderStatusEnum["EXECUTED_WITH_GROUP"] = "EXECUTED_WITH_GROUP";
|
1087
|
+
OrderStatusEnum["CANCELLED_WITH_GROUP"] = "CANCELLED_WITH_GROUP";
|
1088
|
+
OrderStatusEnum["COLLECTED_IN_GROUP"] = "COLLECTED_IN_GROUP";
|
1089
|
+
OrderStatusEnum["ASSIGNED_WITH_GROUP"] = "ASSIGNED_WITH_GROUP";
|
1090
|
+
OrderStatusEnum["UPDATE_REQUESTED"] = "UPDATE_REQUESTED";
|
1091
|
+
OrderStatusEnum["UPDATE_DENIED"] = "UPDATE_DENIED";
|
1092
|
+
OrderStatusEnum["UPDATED"] = "UPDATED";
|
1093
|
+
OrderStatusEnum["BOX_ASSIGNED"] = "BOX_ASSIGNED";
|
1094
|
+
})(OrderStatusEnum || (OrderStatusEnum = {}));
|
1095
|
+
|
1096
|
+
// index.ts
|
1097
|
+
|
1098
|
+
class OrderPaymentEntity {
|
1099
|
+
// #region Properties (3)
|
1100
|
+
methods = [];
|
1101
|
+
pending = 0;
|
1102
|
+
prepaid = 0;
|
1103
|
+
// #endregion Properties (3)
|
1104
|
+
// #region Constructors (1)
|
1105
|
+
constructor(data) {
|
1106
|
+
if (data) {
|
1107
|
+
for (let key in data) {
|
1108
|
+
if (data.hasOwnProperty(key) && key in this) {
|
1109
|
+
this[key] = data[key];
|
1110
|
+
}
|
1111
|
+
}
|
1112
|
+
}
|
1113
|
+
}
|
1114
|
+
}
|
1115
|
+
|
1116
|
+
class OrderTotalEntity {
|
1117
|
+
// #region Properties (5)
|
1118
|
+
additionalFees = 0;
|
1119
|
+
benefits = 0;
|
1120
|
+
deliveryFee = 0;
|
1121
|
+
orderAmount = 0;
|
1122
|
+
subTotal = 0;
|
1123
|
+
// #endregion Properties (5)
|
1124
|
+
// #region Constructors (1)
|
1125
|
+
constructor(data) {
|
1126
|
+
if (data) {
|
1127
|
+
for (let key in data) {
|
1128
|
+
if (data.hasOwnProperty(key) && key in this) {
|
1129
|
+
this[key] = data[key];
|
1130
|
+
}
|
1131
|
+
}
|
1132
|
+
}
|
1133
|
+
}
|
1134
|
+
}
|
1135
|
+
|
1136
|
+
class OrderEntity {
|
1137
|
+
// #region Properties (16)
|
1138
|
+
additionalFees = [];
|
1139
|
+
benefits = [];
|
1140
|
+
cancellation = new OrderCancellationEntity();
|
1141
|
+
companyId = '';
|
1142
|
+
containerId = '';
|
1143
|
+
createdAt = Date.now();
|
1144
|
+
customer = new OrderCustomerEntity();
|
1145
|
+
id = '';
|
1146
|
+
items = [];
|
1147
|
+
payments = new OrderPaymentEntity();
|
1148
|
+
salesChannel = '';
|
1149
|
+
sandbox = false;
|
1150
|
+
status = OrderStatusEnum.PENDING;
|
1151
|
+
total = new OrderTotalEntity();
|
1152
|
+
updatedAt = Date.now();
|
1153
|
+
version = '';
|
1154
|
+
constructor(data) {
|
1155
|
+
if (data) {
|
1156
|
+
for (let key in data) {
|
1157
|
+
if (data.hasOwnProperty(key) && key in this) {
|
1158
|
+
this[key] = data[key];
|
1159
|
+
}
|
1160
|
+
}
|
1161
|
+
}
|
1162
|
+
}
|
1163
|
+
}
|
1164
|
+
|
684
1165
|
class OrderPaymentCardEntity {
|
685
1166
|
// #region Properties (1)
|
686
1167
|
brand = '';
|
@@ -720,7 +1201,7 @@ class OrderPaymentMethodEntity {
|
|
720
1201
|
code = '';
|
721
1202
|
currency = 'BRL';
|
722
1203
|
id = '';
|
723
|
-
method = PaymentTypeEnum.
|
1204
|
+
method = PaymentTypeEnum.Cash;
|
724
1205
|
pix = null;
|
725
1206
|
prepaid = false;
|
726
1207
|
type = 'OFFLINE';
|
@@ -772,12 +1253,11 @@ class OrderPaymentWalletEntity {
|
|
772
1253
|
}
|
773
1254
|
}
|
774
1255
|
|
775
|
-
class
|
776
|
-
// #region Properties (
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
// #endregion Properties (3)
|
1256
|
+
class OrderScaleItemEntity {
|
1257
|
+
// #region Properties (2)
|
1258
|
+
minQuantity = 0;
|
1259
|
+
price = 0;
|
1260
|
+
// #endregion Properties (2)
|
781
1261
|
// #region Constructors (1)
|
782
1262
|
constructor(data) {
|
783
1263
|
if (data) {
|
@@ -790,13 +1270,17 @@ class OrderPaymentEntity {
|
|
790
1270
|
}
|
791
1271
|
}
|
792
1272
|
|
793
|
-
class
|
794
|
-
// #region Properties (
|
795
|
-
|
796
|
-
|
797
|
-
|
1273
|
+
class PartnerEntity extends BaseEntity {
|
1274
|
+
// #region Properties (5)
|
1275
|
+
address = new AddressEntity();
|
1276
|
+
doc = '';
|
1277
|
+
docType = DocTypeEnum.CNPJ;
|
1278
|
+
name = '';
|
1279
|
+
paymentProvider = new PaymentProviderEntity();
|
1280
|
+
// #endregion Properties (5)
|
798
1281
|
// #region Constructors (1)
|
799
1282
|
constructor(data) {
|
1283
|
+
super(data);
|
800
1284
|
if (data) {
|
801
1285
|
for (let key in data) {
|
802
1286
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -807,14 +1291,18 @@ class OrderScaleItemEntity {
|
|
807
1291
|
}
|
808
1292
|
}
|
809
1293
|
|
810
|
-
class
|
811
|
-
// #region Properties (
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
1294
|
+
class PlanFeatureEntity {
|
1295
|
+
// #region Properties (9)
|
1296
|
+
createdAt = Date.now();
|
1297
|
+
id = '';
|
1298
|
+
identifier = '';
|
1299
|
+
important = false;
|
1300
|
+
name = '';
|
1301
|
+
planId = '';
|
1302
|
+
position = 0;
|
1303
|
+
updatedAt = Date.now();
|
1304
|
+
value = 0;
|
1305
|
+
// #endregion Properties (9)
|
818
1306
|
// #region Constructors (1)
|
819
1307
|
constructor(data) {
|
820
1308
|
if (data) {
|
@@ -827,66 +1315,25 @@ class OrderTotalEntity {
|
|
827
1315
|
}
|
828
1316
|
}
|
829
1317
|
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
OrderStatusEnum["CONFIRMED"] = "CONFIRMED";
|
836
|
-
OrderStatusEnum["PENDING"] = "PENDING";
|
837
|
-
OrderStatusEnum["CANCELLATION_REQUESTED"] = "CANCELLATION_REQUESTED";
|
838
|
-
OrderStatusEnum["CANCELLATION_REQUEST_FAILED"] = "CANCELLATION_REQUEST_FAILED";
|
839
|
-
OrderStatusEnum["CANCELLED"] = "CANCELLED";
|
840
|
-
OrderStatusEnum["GOING_TO_ORIGIN"] = "GOING_TO_ORIGIN";
|
841
|
-
OrderStatusEnum["ARRIVED_AT_ORIGIN"] = "ARRIVED_AT_ORIGIN";
|
842
|
-
OrderStatusEnum["ARRIVED_AT_DESTINATION"] = "ARRIVED_AT_DESTINATION";
|
843
|
-
OrderStatusEnum["READY_TO_PICKUP"] = "READY_TO_PICKUP";
|
844
|
-
OrderStatusEnum["COLLECTED"] = "COLLECTED";
|
845
|
-
OrderStatusEnum["DISPATCHED"] = "DISPATCHED";
|
846
|
-
OrderStatusEnum["DELIVERED"] = "DELIVERED";
|
847
|
-
OrderStatusEnum["CONCLUDED"] = "CONCLUDED";
|
848
|
-
OrderStatusEnum["PICKUP_AREA_ASSIGNED"] = "PICKUP_AREA_ASSIGNED";
|
849
|
-
OrderStatusEnum["DELAY_NOTIFICATION"] = "DELAY_NOTIFICATION";
|
850
|
-
OrderStatusEnum["CHANGE_PREPARATION_TIME"] = "CHANGE_PREPARATION_TIME";
|
851
|
-
OrderStatusEnum["REQUEST_DRIVER_AVAILABILITY"] = "REQUEST_DRIVER_AVAILABILITY";
|
852
|
-
OrderStatusEnum["REQUEST_DRIVER"] = "REQUEST_DRIVER";
|
853
|
-
OrderStatusEnum["REQUEST_DRIVER_SUCCESS"] = "REQUEST_DRIVER_SUCCESS";
|
854
|
-
OrderStatusEnum["REQUEST_DRIVER_FAILED"] = "REQUEST_DRIVER_FAILED";
|
855
|
-
OrderStatusEnum["ASSIGN_DRIVER"] = "ASSIGN_DRIVER";
|
856
|
-
OrderStatusEnum["CONSUMER_CANCELLATION_REQUESTED"] = "CONSUMER_CANCELLATION_REQUESTED";
|
857
|
-
OrderStatusEnum["CONSUMER_CANCELLATION_ACCEPTED"] = "CONSUMER_CANCELLATION_ACCEPTED";
|
858
|
-
OrderStatusEnum["CONSUMER_CANCELLATION_DENIED"] = "CONSUMER_CANCELLATION_DENIED";
|
859
|
-
OrderStatusEnum["ADDED_TO_GROUP"] = "ADDED_TO_GROUP";
|
860
|
-
OrderStatusEnum["EXECUTED_WITH_GROUP"] = "EXECUTED_WITH_GROUP";
|
861
|
-
OrderStatusEnum["CANCELLED_WITH_GROUP"] = "CANCELLED_WITH_GROUP";
|
862
|
-
OrderStatusEnum["COLLECTED_IN_GROUP"] = "COLLECTED_IN_GROUP";
|
863
|
-
OrderStatusEnum["ASSIGNED_WITH_GROUP"] = "ASSIGNED_WITH_GROUP";
|
864
|
-
OrderStatusEnum["UPDATE_REQUESTED"] = "UPDATE_REQUESTED";
|
865
|
-
OrderStatusEnum["UPDATE_DENIED"] = "UPDATE_DENIED";
|
866
|
-
OrderStatusEnum["UPDATED"] = "UPDATED";
|
867
|
-
OrderStatusEnum["BOX_ASSIGNED"] = "BOX_ASSIGNED";
|
868
|
-
})(OrderStatusEnum || (OrderStatusEnum = {}));
|
1318
|
+
var PlanIdentifierEnum;
|
1319
|
+
(function (PlanIdentifierEnum) {
|
1320
|
+
PlanIdentifierEnum["NatiGo"] = "NATIGO-UNO";
|
1321
|
+
PlanIdentifierEnum["SatManagerNapoleon"] = "SAT-MANAGER-NAPOLEON";
|
1322
|
+
})(PlanIdentifierEnum || (PlanIdentifierEnum = {}));
|
869
1323
|
|
870
|
-
|
871
|
-
|
872
|
-
class OrderEntity {
|
873
|
-
// #region Properties (16)
|
874
|
-
additionalFees = [];
|
875
|
-
benefits = [];
|
876
|
-
cancellation = new OrderCancellationEntity();
|
877
|
-
companyId = '';
|
878
|
-
containerId = '';
|
1324
|
+
class PlanEntity {
|
1325
|
+
// #region Properties (9)
|
879
1326
|
createdAt = Date.now();
|
880
|
-
|
1327
|
+
features = [];
|
881
1328
|
id = '';
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
total = new OrderTotalEntity();
|
1329
|
+
identifier = PlanIdentifierEnum.NatiGo;
|
1330
|
+
interval = 12;
|
1331
|
+
intervalType = IntervalTypeEnum.Months;
|
1332
|
+
name = '';
|
1333
|
+
prices = 0;
|
888
1334
|
updatedAt = Date.now();
|
889
|
-
|
1335
|
+
// #endregion Properties (9)
|
1336
|
+
// #region Constructors (1)
|
890
1337
|
constructor(data) {
|
891
1338
|
if (data) {
|
892
1339
|
for (let key in data) {
|
@@ -921,11 +1368,11 @@ class PurchaseEntity extends OrderEntity {
|
|
921
1368
|
additionalNotes = '';
|
922
1369
|
appInfo = new AppInfoEntity();
|
923
1370
|
deviceUid = '';
|
924
|
-
providerName = PaymentProviderEnum.
|
1371
|
+
providerName = PaymentProviderEnum.Iugu;
|
925
1372
|
// #endregion Properties (4)
|
926
1373
|
// #region Constructors (1)
|
927
1374
|
constructor(data) {
|
928
|
-
super();
|
1375
|
+
super(data);
|
929
1376
|
if (data) {
|
930
1377
|
for (let key in data) {
|
931
1378
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -940,5 +1387,5 @@ class PurchaseEntity extends OrderEntity {
|
|
940
1387
|
* Generated bundle index. Do not edit.
|
941
1388
|
*/
|
942
1389
|
|
943
|
-
export { AddressEntity, AppInfoEntity, CompanyEntity, CompanyKeysEnum, CompanyMessageTypeEnum, CoordsEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, DeviceModeEnum, DocTypeEnum, LeadOriginEnum, MessagerChannelEntity, MetadataEntity, MobyoApiConfigEntity, NatiGoEntity, OrderAdditionalFeeEntity, OrderBenefitsEntity, OrderCancellationEntity, OrderCustomerEntity, OrderEntity, OrderItemCompositionEntity, OrderItemEntity, OrderItemOptionEntity, OrderPaymentCardEntity, OrderPaymentCashEntity, OrderPaymentEntity, OrderPaymentMethodEntity, OrderPaymentPixEntity, OrderPaymentWalletEntity, OrderScaleEntity, OrderScaleItemEntity, OrderStatusEnum, OrderTotalEntity, OrdersCustomerPhoneEntity, OriginEntity, PaymentChannelEnum, PaymentMethodEntity, PaymentModeEnum, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentProviderEnum, PaymentTokenDataEntity, PaymentTokenEntity, PaymentTypeEnum, PurchaseEntity, SponsorshipValuesEntity };
|
1390
|
+
export { AddressEntity, AppInfoEntity, BaseEntity, BooleanStringEnum, CompanyEntity, CompanyKeysEnum, CompanyMessageTypeEnum, ContainerEntity, CoordsEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, DeviceModeEnum, DocTypeEnum, IntervalTypeEnum, InviteEntity, InviteStatusEnum, IuguAutoAdvanceEnum, IuguBankEnum, IuguPaymentTokenDataEntity, IuguPaymentTokenEntity, LeadOriginEnum, MemberEntity, MemberRulesEnum, MessagerChannelEntity, MetadataEntity, MobyoApiConfigEntity, NatiGoEntity, OrderAdditionalFeeEntity, OrderBenefitsEntity, OrderCancellationEntity, OrderCustomerEntity, OrderEntity, OrderItemCompositionEntity, OrderItemEntity, OrderItemOptionEntity, OrderPaymentCardEntity, OrderPaymentCashEntity, OrderPaymentEntity, OrderPaymentMethodEntity, OrderPaymentPixEntity, OrderPaymentWalletEntity, OrderScaleEntity, OrderScaleItemEntity, OrderStatusEnum, OrderTotalEntity, OrdersCustomerPhoneEntity, OriginEntity, PartnerEntity, PaymentChannelEnum, PaymentMethodEntity, PaymentModeEnum, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentProviderEnum, PaymentTokenDataEntity, PaymentTokenEntity, PaymentTypeEnum, PlanEntity, PlanFeatureEntity, PlanIdentifierEnum, PurchaseEntity, SponsorshipValuesEntity };
|
944
1391
|
//# sourceMappingURL=cecon-interfaces.mjs.map
|