@felloh-org/lambda-wrapper 1.11.100 → 1.11.102
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.js +1 -987
- package/package.json +14 -7
- package/webpack.config.js +41 -0
- package/dist/config/dependencies.js +0 -58
- package/dist/dependency-injection/dependency-aware.js +0 -43
- package/dist/dependency-injection/dependency-injection.js +0 -135
- package/dist/entity/acquirer/adjustment/index.js +0 -128
- package/dist/entity/acquirer/band/index.js +0 -60
- package/dist/entity/acquirer/band_rate/index.js +0 -65
- package/dist/entity/acquirer/batch/index.js +0 -165
- package/dist/entity/acquirer/bin/index.js +0 -142
- package/dist/entity/acquirer/bin-rules/index.js +0 -231
- package/dist/entity/acquirer/bin-type-grouping/index.js +0 -56
- package/dist/entity/acquirer/country-type/index.js +0 -44
- package/dist/entity/acquirer/fee/index.js +0 -127
- package/dist/entity/acquirer/index.js +0 -22
- package/dist/entity/acquirer/organisation-band/index.js +0 -61
- package/dist/entity/acquirer/transaction-settlement/index.js +0 -123
- package/dist/entity/agent-data/booking/index.js +0 -346
- package/dist/entity/agent-data/booking-bank-transaction/index.js +0 -68
- package/dist/entity/agent-data/booking-component/index.js +0 -153
- package/dist/entity/agent-data/booking-component-type/index.js +0 -42
- package/dist/entity/agent-data/booking-package-type/index.js +0 -38
- package/dist/entity/agent-data/index.js +0 -28
- package/dist/entity/agent-data/supplier/index.js +0 -87
- package/dist/entity/agent-data/supplier-type/index.js +0 -42
- package/dist/entity/aisp/gocardless-account/index.js +0 -142
- package/dist/entity/aisp/gocardless-agreement/index.js +0 -73
- package/dist/entity/aisp/gocardless-requisition/index.js +0 -132
- package/dist/entity/aisp/index.js +0 -20
- package/dist/entity/aisp/transaction/index.js +0 -231
- package/dist/entity/bank/account/index.js +0 -96
- package/dist/entity/bank/adjustment/index.js +0 -168
- package/dist/entity/bank/adjustment-batch/index.js +0 -83
- package/dist/entity/bank/amendment/index.js +0 -161
- package/dist/entity/bank/beneficiary/index.js +0 -125
- package/dist/entity/bank/currency/index.js +0 -66
- package/dist/entity/bank/disbursal/index.js +0 -210
- package/dist/entity/bank/index.js +0 -34
- package/dist/entity/bank/ledger/index.js +0 -212
- package/dist/entity/bank/settled-transaction/index.js +0 -117
- package/dist/entity/bank/transaction-batch/index.js +0 -93
- package/dist/entity/bank/vendor/index.js +0 -56
- package/dist/entity/basis-theory/index.js +0 -14
- package/dist/entity/basis-theory/token/index.js +0 -133
- package/dist/entity/index.js +0 -42
- package/dist/entity/nuapay/account/index.js +0 -95
- package/dist/entity/nuapay/balance/index.js +0 -63
- package/dist/entity/nuapay/beneficiary/index.js +0 -59
- package/dist/entity/nuapay/index.js +0 -20
- package/dist/entity/nuapay/transaction/index.js +0 -119
- package/dist/entity/nuvei/batch/index.js +0 -84
- package/dist/entity/nuvei/index.js +0 -20
- package/dist/entity/nuvei/merchant/index.js +0 -55
- package/dist/entity/nuvei/transaction/index.js +0 -229
- package/dist/entity/nuvei/transaction-metadata/index.js +0 -283
- package/dist/entity/operations/fingerprint-exclusion/index.js +0 -38
- package/dist/entity/operations/index.js +0 -14
- package/dist/entity/operations/ip-exclusion/index.js +0 -38
- package/dist/entity/payment/chargeback/index.js +0 -141
- package/dist/entity/payment/credit-note/index.js +0 -184
- package/dist/entity/payment/customer/index.js +0 -197
- package/dist/entity/payment/ecommerce/index.js +0 -321
- package/dist/entity/payment/index.js +0 -60
- package/dist/entity/payment/organisation-payment-provider/index.js +0 -233
- package/dist/entity/payment/organisation-payment-provider-method/index.js +0 -63
- package/dist/entity/payment/organisation-tokenisation-provider/index.js +0 -79
- package/dist/entity/payment/payment-link/index.js +0 -424
- package/dist/entity/payment/payment-link-type/index.js +0 -38
- package/dist/entity/payment/payment-provider/index.js +0 -89
- package/dist/entity/payment/refund/index.js +0 -210
- package/dist/entity/payment/refund-status/index.js +0 -44
- package/dist/entity/payment/tokenisation-provider/index.js +0 -51
- package/dist/entity/payment/transaction/index.js +0 -546
- package/dist/entity/payment/transaction-event/index.js +0 -81
- package/dist/entity/payment/transaction-event-type/index.js +0 -49
- package/dist/entity/payment/transaction-metadata/index.js +0 -158
- package/dist/entity/payment/transaction-method/index.js +0 -38
- package/dist/entity/payment/transaction-rate/index.js +0 -140
- package/dist/entity/payment/transaction-reason/index.js +0 -60
- package/dist/entity/payment/transaction-risk/index.js +0 -143
- package/dist/entity/payment/transaction-source/index.js +0 -38
- package/dist/entity/payment/transaction-status/index.js +0 -48
- package/dist/entity/payment/transaction-surcharge/index.js +0 -87
- package/dist/entity/payment/transaction-type/index.js +0 -38
- package/dist/entity/reference/country/index.js +0 -45
- package/dist/entity/reference/index.js +0 -14
- package/dist/entity/saltedge/account/index.js +0 -182
- package/dist/entity/saltedge/connection/index.js +0 -133
- package/dist/entity/saltedge/customer/index.js +0 -70
- package/dist/entity/saltedge/index.js +0 -22
- package/dist/entity/saltedge/lead/index.js +0 -75
- package/dist/entity/saltedge/transaction/index.js +0 -327
- package/dist/entity/scratch/abta-members/index.js +0 -282
- package/dist/entity/scratch/index.js +0 -14
- package/dist/entity/token/index.js +0 -14
- package/dist/entity/token/token/index.js +0 -143
- package/dist/entity/total-processing/index.js +0 -16
- package/dist/entity/total-processing/transaction/index.js +0 -174
- package/dist/entity/total-processing/transaction-metadata/index.js +0 -137
- package/dist/entity/trust-payments/account-fees/index.js +0 -94
- package/dist/entity/trust-payments/adjustment/index.js +0 -113
- package/dist/entity/trust-payments/batch/index.js +0 -84
- package/dist/entity/trust-payments/chargeback/index.js +0 -128
- package/dist/entity/trust-payments/index.js +0 -28
- package/dist/entity/trust-payments/ingested-data/index.js +0 -56
- package/dist/entity/trust-payments/merchant/index.js +0 -139
- package/dist/entity/trust-payments/transaction/index.js +0 -183
- package/dist/entity/trust-payments/transaction-charges/index.js +0 -81
- package/dist/entity/user/feature/index.js +0 -87
- package/dist/entity/user/index.js +0 -42
- package/dist/entity/user/login-link/index.js +0 -82
- package/dist/entity/user/mailer-log/index.js +0 -75
- package/dist/entity/user/organisation/index.js +0 -242
- package/dist/entity/user/organisation-feature/index.js +0 -68
- package/dist/entity/user/organisation-partner/index.js +0 -66
- package/dist/entity/user/organisation-payout-config/index.js +0 -96
- package/dist/entity/user/organisation-type/index.js +0 -43
- package/dist/entity/user/organisation-webhook/index.js +0 -119
- package/dist/entity/user/role/index.js +0 -124
- package/dist/entity/user/user/index.js +0 -218
- package/dist/entity/user/user-activity/index.js +0 -116
- package/dist/entity/user/user-role/index.js +0 -82
- package/dist/entity/user/webhook-log/index.js +0 -89
- package/dist/entity/user/webhook-types/index.js +0 -119
- package/dist/enums/payment-initation-types/index.js +0 -11
- package/dist/event/base-event/index.js +0 -76
- package/dist/event/csv/email/index.js +0 -23
- package/dist/event/index.js +0 -55
- package/dist/event/posc/request/index.js +0 -23
- package/dist/event/transaction/complete/email/index.js +0 -23
- package/dist/event/transaction/complete/index.js +0 -23
- package/dist/event/transaction/refund-request/index.js +0 -23
- package/dist/event/user/password/changed/index.js +0 -23
- package/dist/event/user/password/reset/index.js +0 -23
- package/dist/event/user/registration/index.js +0 -23
- package/dist/event/user/sandbox-registration/index.js +0 -23
- package/dist/migration/acquirer/1686830639312-acquirer_entities.js +0 -21
- package/dist/migration/acquirer/1686833169652-acquirer_batch_relation.js +0 -23
- package/dist/migration/acquirer/1686834512382-acquirer_batch_remove_organisation.js +0 -14
- package/dist/migration/acquirer/1686913849538-acquirer_batch_in_trust.js +0 -12
- package/dist/migration/acquirer/1692102029462-acquirer_adjustment.js +0 -19
- package/dist/migration/acquirer/1692873462263-acquirer_bin_list.js +0 -13
- package/dist/migration/acquirer/1692877747460-acquirer_bin_rules.js +0 -15
- package/dist/migration/acquirer/1692878000108-acquirer_bin_rules_nullable.js +0 -15
- package/dist/migration/acquirer/1705493819447-bin_rules_country.js +0 -19
- package/dist/migration/acquirer/1708596720562-bandings.js +0 -25
- package/dist/migration/acquirer/1708598335438-band_rate.js +0 -17
- package/dist/migration/acquirer/1708605040113-transaction_rate.js +0 -19
- package/dist/migration/acquirer/1708609916248-bin_type_grouping.js +0 -13
- package/dist/migration/acquirer/1708616903284-field_length.js +0 -25
- package/dist/migration/acquirer/1709030948477-update_precission_fee.js +0 -19
- package/dist/migration/acquirer/1709822228302-update_precission_band_rate.js +0 -13
- package/dist/migration/agent-data/1642121041760-inital.js +0 -15
- package/dist/migration/agent-data/1642121610577-organisation-suppliers.js +0 -13
- package/dist/migration/agent-data/1642121681610-organisation-suppliers-type.js +0 -13
- package/dist/migration/agent-data/1642122014731-booking-component-type.js +0 -13
- package/dist/migration/agent-data/1642505882721-booking-fields.js +0 -29
- package/dist/migration/agent-data/1642508385880-booking-id.js +0 -19
- package/dist/migration/agent-data/1642771380681-add-supplier-detail.js +0 -17
- package/dist/migration/agent-data/1642771909248-swap-uuid.js +0 -41
- package/dist/migration/agent-data/1656410109048-booking_gross.js +0 -13
- package/dist/migration/agent-data/1656411834978-booking_nullables.js +0 -13
- package/dist/migration/agent-data/1656421768668-booking_components.js +0 -27
- package/dist/migration/agent-data/1656422133900-booking_components_organisation.js +0 -15
- package/dist/migration/agent-data/1659707743290-booking_soft_delete.js +0 -13
- package/dist/migration/agent-data/1660137703368-booking-index.js +0 -13
- package/dist/migration/agent-data/1660741384852-bookings_is_temporary.js +0 -12
- package/dist/migration/agent-data/1664181706131-ecom.js +0 -19
- package/dist/migration/agent-data/1664790996613-payment_link_soft_delete.js +0 -13
- package/dist/migration/agent-data/1676565874446-booking-currency.js +0 -13
- package/dist/migration/agent-data/1680598468694-create-booking-package-type-table.js +0 -19
- package/dist/migration/agent-data/1683899996464-booking_atol_receipt_number.js +0 -13
- package/dist/migration/agent-data/1684158044886-booking_bank_transaction.js +0 -17
- package/dist/migration/aisp/1710334149128-aisp_agreement.js +0 -17
- package/dist/migration/aisp/1710340812651-aisp_requisition.js +0 -19
- package/dist/migration/aisp/1710342798216-aisp_commenced_completed.js +0 -15
- package/dist/migration/aisp/1710349579447-aisp_account.js +0 -17
- package/dist/migration/aisp/1710350514324-balancesandcurrencies.js +0 -17
- package/dist/migration/aisp/1710362598295-transaction_aisp.js +0 -21
- package/dist/migration/aisp/1710370387188-account_organisation.js +0 -15
- package/dist/migration/aisp/1710371316539-add_nickname.js +0 -13
- package/dist/migration/aisp/1710372510335-institution_name.js +0 -13
- package/dist/migration/aisp/1712138801073-aisp_type_code.js +0 -13
- package/dist/migration/aisp/1713354543529-transaction_batch_link.js +0 -15
- package/dist/migration/aisp/1713365208792-found_customer_account.js +0 -13
- package/dist/migration/bank/1642313073694-bank-initial.js +0 -15
- package/dist/migration/bank/1645101410250-bank_disbursal.js +0 -28
- package/dist/migration/bank/1645102501719-bank_disbursal_unique.js +0 -17
- package/dist/migration/bank/1645103420324-ledger.js +0 -19
- package/dist/migration/bank/1645103864454-ledger-defaults.js +0 -15
- package/dist/migration/bank/1645108723739-bank-settled-transaction.js +0 -19
- package/dist/migration/bank/1651658976210-batches.js +0 -17
- package/dist/migration/bank/1651659772400-batches_id_chage.js +0 -25
- package/dist/migration/bank/1651660836295-batches_completed_at.js +0 -13
- package/dist/migration/bank/1651671204869-beneficiary.js +0 -17
- package/dist/migration/bank/1657625543494-amendment.js +0 -19
- package/dist/migration/bank/1657630420519-amendment_undertaken_at.js +0 -12
- package/dist/migration/bank/1657630681583-vendor.js +0 -17
- package/dist/migration/bank/1657631323026-ammed_supplier_ref.js +0 -12
- package/dist/migration/bank/1657637492675-transaction-provider-metadata.js +0 -13
- package/dist/migration/bank/1657711121280-adjustment.js +0 -17
- package/dist/migration/bank/1657713850640-ledger_adjustment.js +0 -15
- package/dist/migration/bank/1658999065280-currency_table.js +0 -13
- package/dist/migration/bank/1664879624602-currency-metadata.js +0 -18
- package/dist/migration/bank/1665571290711-disbursement_provider_reference.js +0 -13
- package/dist/migration/bank/1665652395554-disbursement_ledgered.js +0 -13
- package/dist/migration/bank/1670517416837-disbursal_manual_review.js +0 -13
- package/dist/migration/bank/1670929960647-disbursal_updated_legacy_system.js +0 -13
- package/dist/migration/bank/1686303842122-bank_setlement_amount_and_currency.js +0 -17
- package/dist/migration/bank/1714140033660-adjustment_batch.js +0 -19
- package/dist/migration/bank/1714381892560-adjustment_column_fix.js +0 -19
- package/dist/migration/basis-theory/1704976983106-basis_theory.js +0 -13
- package/dist/migration/basis-theory/1705322282519-basis_theory_token_store.js +0 -15
- package/dist/migration/basis-theory/1705327854669-basis_theory_token_customer.js +0 -19
- package/dist/migration/basis-theory/1705330136016-basis_theory_token_bin_brand.js +0 -15
- package/dist/migration/nuapay/1642200051764-initial.js +0 -13
- package/dist/migration/nuapay/1642201303413-add-fields-nuapay.js +0 -15
- package/dist/migration/nuapay/1642282666475-add-nuapay-account.js +0 -13
- package/dist/migration/nuapay/1642283420696-fix-iban-length.js +0 -15
- package/dist/migration/nuapay/1642283781684-account-relation.js +0 -15
- package/dist/migration/nuapay/1642286393959-beneficiary.js +0 -13
- package/dist/migration/nuapay/1642316424390-account-ibans.js +0 -21
- package/dist/migration/nuapay/1642318117667-cleanup-beneficaries.js +0 -23
- package/dist/migration/nuapay/1642365244026-nullable-bic.js +0 -13
- package/dist/migration/nuapay/1642366232568-remove-bic.js +0 -13
- package/dist/migration/nuapay/1642370449589-transaction.js +0 -17
- package/dist/migration/nuvei/1658229415800-nuvei-transaction-schema.js +0 -13
- package/dist/migration/nuvei/1668703920070-nuvei-transaction-id-extend-length.js +0 -13
- package/dist/migration/nuvei/1669564062461-create_nuvei_transaction_metadata_table.js +0 -16
- package/dist/migration/nuvei/1670420255443-add-nuvei-webhook-additional-columns-to-trnasaction-metadata.js +0 -41
- package/dist/migration/nuvei/1670932754369-add_nuvei_transaction_id_column.js +0 -51
- package/dist/migration/nuvei/1671555132026-nuvei_batch_and_merchant.js +0 -17
- package/dist/migration/nuvei/1673268042534-nuvei-transaction-metadata-increase-avs-column-size.js +0 -13
- package/dist/migration/nuvei/1673432057176-nuvei-transaction-metadata-make-card-type-nullable.js +0 -13
- package/dist/migration/nuvei/1673532192232-make-merchant-columns-and-session-token-nullable-nuvei-trnsaction.js +0 -17
- package/dist/migration/operations/1695811546501-ip_exclusion_list.js +0 -13
- package/dist/migration/operations/1695820446445-fingerprint.js +0 -15
- package/dist/migration/payment/1642120204899-inital.js +0 -21
- package/dist/migration/payment/1642514728358-payment-link-updates.js +0 -39
- package/dist/migration/payment/1642516017835-payment-link-add-booking.js +0 -15
- package/dist/migration/payment/1642519453365-transaction.js +0 -63
- package/dist/migration/payment/1642520774562-transaction-payment-link.js +0 -15
- package/dist/migration/payment/1642533711013-transaction-metadata.js +0 -15
- package/dist/migration/payment/1642540883807-transaction-event.js +0 -27
- package/dist/migration/payment/1642805897210-payment-link-customer.js +0 -13
- package/dist/migration/payment/1643717852114-payment-providers.js +0 -19
- package/dist/migration/payment/1643718714719-payment-providers-method.js +0 -15
- package/dist/migration/payment/1643719203328-payment-providers-method.js +0 -22
- package/dist/migration/payment/1644395533722-transaction_provider.js +0 -15
- package/dist/migration/payment/1644396011044-transaction_provider_ref.js +0 -13
- package/dist/migration/payment/1647251762169-payment_link_methods.js +0 -15
- package/dist/migration/payment/1647271619083-payment_link_moto.js +0 -13
- package/dist/migration/payment/1647292573651-provider_secret_length.js +0 -15
- package/dist/migration/payment/1647294601399-provider_secret_length.js +0 -15
- package/dist/migration/payment/1647428635630-transaction_organisation_payment_provider.js +0 -15
- package/dist/migration/payment/1647437109221-transaction_message.js +0 -13
- package/dist/migration/payment/1647437500834-transaction_updated_at.js +0 -13
- package/dist/migration/payment/1649925229394-add_payment_link_status.js +0 -13
- package/dist/migration/payment/1650357812532-payment_chargeback.js +0 -15
- package/dist/migration/payment/1650974827938-update_to_with_timezones.js +0 -49
- package/dist/migration/payment/1651050178971-update_to_with_timestamp.js +0 -59
- package/dist/migration/payment/1651747895363-transaction_charges.js +0 -13
- package/dist/migration/payment/1653296149259-transaction_source.js +0 -17
- package/dist/migration/payment/1656341396697-payment_link_descriptions.js +0 -17
- package/dist/migration/payment/1656341762925-description_not_null.js +0 -13
- package/dist/migration/payment/1657616863683-payment-provider-public-creds.js +0 -13
- package/dist/migration/payment/1658478874188-payment-provider-active-weighting.js +0 -19
- package/dist/migration/payment/1658483667045-payment-provider-payment-method.js +0 -18
- package/dist/migration/payment/1658998508532-transactions_currency.js +0 -13
- package/dist/migration/payment/1658998881887-all_currencies.js +0 -23
- package/dist/migration/payment/1659431411240-organisation-payment-provider-enable-soft-delete.js +0 -15
- package/dist/migration/payment/1659527810407-organisation-payment-provider-name.js +0 -26
- package/dist/migration/payment/1661262743555-organisation-payment-provider-method-weight.js +0 -25
- package/dist/migration/payment/1661876528683-organisation-payment-provider-cleanup-weight-attr.js +0 -13
- package/dist/migration/payment/1662027037400-nullable_payment_link_urls.js +0 -17
- package/dist/migration/payment/1664283726285-organisation-payment-provider-currency.js +0 -19
- package/dist/migration/payment/1664285327423-organisation-payment-provider-currency-populate.js +0 -17
- package/dist/migration/payment/1665959547444-transaction_reason.js +0 -13
- package/dist/migration/payment/1666878091167-credit_note.js +0 -19
- package/dist/migration/payment/1666880510631-credit_notes_customer_name.js +0 -13
- package/dist/migration/payment/1666947609074-credit_notes_short_id.js +0 -13
- package/dist/migration/payment/1667918366826-insert_applepay_and_googlepay_transaction_types.js +0 -14
- package/dist/migration/payment/1667925229730-organisation_payment_provider_add_applepay_googlepay_columns.js +0 -15
- package/dist/migration/payment/1669031343148-ecommerce_deleted_at.js +0 -13
- package/dist/migration/payment/1669040104944-ecommerce_transaction.js +0 -15
- package/dist/migration/payment/1669300217086-preauth.js +0 -15
- package/dist/migration/payment/1670494400647-payment_link_metadata.js +0 -13
- package/dist/migration/payment/1671012060001-transaction_assigned_at.js +0 -13
- package/dist/migration/payment/1676992104022-create-payment-link-type-table.js +0 -21
- package/dist/migration/payment/1689673317316-customer_entity.js +0 -21
- package/dist/migration/payment/1690368777929-customer_organisation.js +0 -13
- package/dist/migration/payment/1690368949313-customer_organisation_notnull.js +0 -15
- package/dist/migration/payment/1692783372591-tokenisation_provider.js +0 -13
- package/dist/migration/payment/1692784096414-tokenisation_provider_links.js +0 -21
- package/dist/migration/payment/1695209857606-refund.js +0 -23
- package/dist/migration/payment/1695368446155-refund_org.js +0 -15
- package/dist/migration/payment/1695734492122-transaction_tracing.js +0 -15
- package/dist/migration/payment/1695986876527-refund_failure_reason.js +0 -15
- package/dist/migration/payment/1698312655310-swap_pk_refunds.js +0 -23
- package/dist/migration/payment/1701960843276-customer_fields.js +0 -19
- package/dist/migration/payment/1702583802282-status_grouping.js +0 -13
- package/dist/migration/payment/1704881345200-surcharge_table.js +0 -15
- package/dist/migration/payment/1705495053739-org_tokenisation_provider.js +0 -17
- package/dist/migration/payment/1707862771162-transaction_ris.js +0 -16
- package/dist/migration/payment/1707863333445-transaction_risk_fix.js +0 -13
- package/dist/migration/reference/1660724885440-countries.js +0 -13
- package/dist/migration/saltedge/1674567015124-saltedge_entities.js +0 -41
- package/dist/migration/saltedge/1674569837946-saltedge_last_updated_at.js +0 -13
- package/dist/migration/saltedge/1674572364647-saltedge_update_transaction_ibans.js +0 -21
- package/dist/migration/saltedge/1678721742595-saltedge_currencies.js +0 -17
- package/dist/migration/saltedge/1679405632954-saltedge_lead.js +0 -15
- package/dist/migration/saltedge/1679499976511-connection_to_lead.js +0 -17
- package/dist/migration/saltedge/1679500440910-account_to_lead.js +0 -15
- package/dist/migration/saltedge/1679670597259-saltedge_connection_status.js +0 -13
- package/dist/migration/saltedge/1680523636126-saltedge_tx_updates.js +0 -33
- package/dist/migration/saltedge/1680526517354-saltedge_tx_type_nullable.js +0 -15
- package/dist/migration/saltedge/1680530730952-saltedge_tx_disbursal.js +0 -15
- package/dist/migration/saltedge/1686156816151-saltedge_multi_account.js +0 -21
- package/dist/migration/saltedge/1686157077928-saltedge_multi_account_fix.js +0 -19
- package/dist/migration/saltedge/1686218317938-saltedge_account_nickname.js +0 -13
- package/dist/migration/saltedge/1699281692894-ai_fields.js +0 -23
- package/dist/migration/scratch/1651181353263-scratch_abta_members.js +0 -13
- package/dist/migration/scratch/1651183064044-scratch_abta_members_fix.js +0 -19
- package/dist/migration/scratch/1651183188924-scratch_abta_members_length_fix.js +0 -19
- package/dist/migration/scratch/1651187490208-scratch_abta_members_financials.js +0 -23
- package/dist/migration/scratch/1651223911459-scratch_abta_members_company_number.js +0 -13
- package/dist/migration/scratch/1651225059114-scratch_abta_members_atol.js +0 -14
- package/dist/migration/scratch/1651225316981-scratch_abta_members_atol_fix.js +0 -15
- package/dist/migration/scratch/1651241112556-scratch_abta_members_atol_group.js +0 -13
- package/dist/migration/scratch/1651241351537-scratch_abta_members_atol_tta_id.js +0 -15
- package/dist/migration/token/1645613145774-token.js +0 -15
- package/dist/migration/token/1645618345963-token_secret_length.js +0 -15
- package/dist/migration/token/1645621420506-token_user.js +0 -17
- package/dist/migration/token/1656064704919-token_entity_timezones.js +0 -21
- package/dist/migration/total-processing/1644309449035-tpro_transactions.js +0 -13
- package/dist/migration/total-processing/1644411639660-total_processing_entity.js +0 -13
- package/dist/migration/total-processing/1644842797566-relations.js +0 -19
- package/dist/migration/total-processing/1644926407236-tp_rec_nullable.js +0 -13
- package/dist/migration/total-processing/1644933594682-tp_rec_status.js +0 -13
- package/dist/migration/total-processing/1645010756173-tp_transaction_metadata.js +0 -15
- package/dist/migration/total-processing/1663945952356-tpmessagecode.js +0 -15
- package/dist/migration/total-processing/1664533758035-tp_transaction_batch_number.js +0 -13
- package/dist/migration/total-processing/1669385847562-tp_transaction_id.js +0 -13
- package/dist/migration/total-processing/1689160105601-total_uuid.js +0 -13
- package/dist/migration/total-processing/1689161863334-total_nullable_merchant_account_number.js +0 -12
- package/dist/migration/trust-payments/1644016335590-tp_merchants.js +0 -13
- package/dist/migration/trust-payments/1644018105481-tp_add_batch.js +0 -15
- package/dist/migration/trust-payments/1644020330502-tp_transaction.js +0 -17
- package/dist/migration/trust-payments/1644791277717-chargeback.js +0 -15
- package/dist/migration/trust-payments/1648137333608-trust_chargeback_due.js +0 -13
- package/dist/migration/trust-payments/1648204597084-trust_ftp_log.js +0 -13
- package/dist/migration/trust-payments/1648218902763-trust_charges.js +0 -15
- package/dist/migration/trust-payments/1648717679150-trust_account_fees.js +0 -15
- package/dist/migration/trust-payments/1653905489904-trust_adjustment.js +0 -13
- package/dist/migration/trust-payments/1653905701399-trust_adjustment_merchant_number.js +0 -15
- package/dist/migration/trust-payments/1653911779226-trust_adjustment_bank_ref.js +0 -15
- package/dist/migration/trust-payments/1660211087722-trust_in_omnipay.js +0 -13
- package/dist/migration/trust-payments/1663666433231-trust_rolling_reserve.js +0 -13
- package/dist/migration/trust-payments/1664533949460-trust_transaction_batch_number_fix.js +0 -15
- package/dist/migration/trust-payments/1686301976291-trust_settlement_amount.js +0 -13
- package/dist/migration/trust-payments/1686303440691-trust_settlement_currency.js +0 -13
- package/dist/migration/trust-payments/1688382475027-trust_always_scrape.js +0 -13
- package/dist/migration/trust-payments/1688382817741-trust_import_transactions.js +0 -13
- package/dist/migration/trust-payments/1688461589610-trust_organisation_mapping.js +0 -15
- package/dist/migration/user/1641774481300-initial.js +0 -27
- package/dist/migration/user/1641829697638-add_parent_org.js +0 -25
- package/dist/migration/user/1641901624008-add_roles.js +0 -21
- package/dist/migration/user/1641903059924-add_roles_kyc.js +0 -13
- package/dist/migration/user/1641903425025-roles-defaults.js +0 -15
- package/dist/migration/user/1641939221103-feature.js +0 -13
- package/dist/migration/user/1642019067334-organisation-feature.js +0 -17
- package/dist/migration/user/1642078564295-user-activity-relation.js +0 -16
- package/dist/migration/user/1642207858247-fix-user-constraint.js +0 -19
- package/dist/migration/user/1643154226214-user-cognito-sub.js +0 -15
- package/dist/migration/user/1643195417761-user-nullable-mobile.js +0 -13
- package/dist/migration/user/1643296114720-user-login-link.js +0 -15
- package/dist/migration/user/1643323827662-login-link-used.js +0 -13
- package/dist/migration/user/1645621100580-user_is_api_user.js +0 -13
- package/dist/migration/user/1651582800086-organisation_image.js +0 -13
- package/dist/migration/user/1656057725099-timezoned_users.js +0 -22
- package/dist/migration/user/1656062997392-nullable_user_email.js +0 -13
- package/dist/migration/user/1656063685417-nullable_user_names.js +0 -15
- package/dist/migration/user/1658920205370-org_legacy_id.js +0 -13
- package/dist/migration/user/1659017405242-password_changed.js +0 -12
- package/dist/migration/user/1659017792935-audit.js +0 -27
- package/dist/migration/user/1659081328054-uuid_id_string.js +0 -19
- package/dist/migration/user/1660126405407-webhooks.js +0 -26
- package/dist/migration/user/1660170110686-webhook_child_orgs.js +0 -21
- package/dist/migration/user/1664880667093-organisation_payout_config.js +0 -15
- package/dist/migration/user/1669151569675-organisation_type.js +0 -17
- package/dist/migration/user/1684418112293-org_unpaid_invoice.js +0 -13
- package/dist/migration/user/1684765687786-org_partner_table.js +0 -17
- package/dist/migration/user/1688040388864-org_billing_enabled.js +0 -13
- package/dist/migration/user/1692182636537-organisation_archive.js +0 -13
- package/dist/migration/user/1694768586499-feature_descriptions.js +0 -13
- package/dist/migration/user/1694771670423-feature_is_beta.js +0 -13
- package/dist/migration/user/1695127749722-dependent_feature.js +0 -13
- package/dist/migration/user/1696844776497-webhook_log.js +0 -15
- package/dist/migration/user/1704271899435-webhook_response.js +0 -15
- package/dist/migration/user/1712740853812-surcharging_enabled.js +0 -13
- package/dist/model/index.js +0 -45
- package/dist/model/response/index.js +0 -159
- package/dist/model/response/status-codes.js +0 -74
- package/dist/model/status/index.js +0 -80
- package/dist/model/webhook/refund/index.js +0 -30
- package/dist/model/webhook/transaction/index.js +0 -50
- package/dist/service/audit-logger.js +0 -37
- package/dist/service/authentication.js +0 -168
- package/dist/service/event-bridge.js +0 -41
- package/dist/service/http.js +0 -53
- package/dist/service/logger.js +0 -238
- package/dist/service/payment-initiation-object/index.js +0 -101
- package/dist/service/request.js +0 -355
- package/dist/service/secrets.js +0 -44
- package/dist/service/user.js +0 -74
- package/dist/service/warehouse.js +0 -99
- package/dist/util/lambda-termination.js +0 -39
- package/dist/util/promisified-delay.js +0 -59
- package/dist/wrapper/index.js +0 -163
|
@@ -1,546 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _typeorm = require("typeorm");
|
|
9
|
-
|
|
10
|
-
var _booking = _interopRequireDefault(require("../../agent-data/booking"));
|
|
11
|
-
|
|
12
|
-
var _organisation = _interopRequireDefault(require("../../user/organisation"));
|
|
13
|
-
|
|
14
|
-
var _transactionType = _interopRequireDefault(require("../transaction-type"));
|
|
15
|
-
|
|
16
|
-
var _transactionMethod = _interopRequireDefault(require("../transaction-method"));
|
|
17
|
-
|
|
18
|
-
var _transactionStatus = _interopRequireDefault(require("../transaction-status"));
|
|
19
|
-
|
|
20
|
-
var _paymentLink = _interopRequireDefault(require("../payment-link"));
|
|
21
|
-
|
|
22
|
-
var _transactionMetadata = _interopRequireDefault(require("../transaction-metadata"));
|
|
23
|
-
|
|
24
|
-
var _transactionRisk = _interopRequireDefault(require("../transaction-risk"));
|
|
25
|
-
|
|
26
|
-
var _paymentProvider = _interopRequireDefault(require("../payment-provider"));
|
|
27
|
-
|
|
28
|
-
var _organisationPaymentProvider = _interopRequireDefault(require("../organisation-payment-provider"));
|
|
29
|
-
|
|
30
|
-
var _transactionBatch = _interopRequireDefault(require("../../bank/transaction-batch"));
|
|
31
|
-
|
|
32
|
-
var _transactionSource = _interopRequireDefault(require("../transaction-source"));
|
|
33
|
-
|
|
34
|
-
var _ecommerce = _interopRequireDefault(require("../ecommerce"));
|
|
35
|
-
|
|
36
|
-
var _currency = require("../../bank/currency");
|
|
37
|
-
|
|
38
|
-
var _transactionSettlement = _interopRequireDefault(require("../../acquirer/transaction-settlement"));
|
|
39
|
-
|
|
40
|
-
var _tokenisationProvider = _interopRequireDefault(require("../tokenisation-provider"));
|
|
41
|
-
|
|
42
|
-
var _transactionSurcharge = _interopRequireDefault(require("../transaction-surcharge"));
|
|
43
|
-
|
|
44
|
-
var _refund = _interopRequireDefault(require("../refund"));
|
|
45
|
-
|
|
46
|
-
var _customer = _interopRequireDefault(require("../customer"));
|
|
47
|
-
|
|
48
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31;
|
|
49
|
-
|
|
50
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
51
|
-
|
|
52
|
-
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
53
|
-
|
|
54
|
-
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
55
|
-
|
|
56
|
-
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
57
|
-
|
|
58
|
-
let Transaction = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
59
|
-
name: 'transaction',
|
|
60
|
-
schema: 'payment'
|
|
61
|
-
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.Column)({
|
|
62
|
-
type: "int"
|
|
63
|
-
}), _dec4 = (0, _typeorm.ManyToOne)(() => _booking.default, {
|
|
64
|
-
nullable: true
|
|
65
|
-
}), _dec5 = (0, _typeorm.JoinColumn)({
|
|
66
|
-
name: 'booking_id',
|
|
67
|
-
referencedColumnName: 'id'
|
|
68
|
-
}), _dec6 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec7 = (0, _typeorm.JoinColumn)({
|
|
69
|
-
name: 'organisation_id',
|
|
70
|
-
referencedColumnName: 'id'
|
|
71
|
-
}), _dec8 = (0, _typeorm.ManyToOne)(() => _transactionStatus.default), _dec9 = (0, _typeorm.JoinColumn)({
|
|
72
|
-
name: 'status_id',
|
|
73
|
-
referencedColumnName: 'id'
|
|
74
|
-
}), _dec10 = (0, _typeorm.ManyToOne)(() => _transactionMethod.default), _dec11 = (0, _typeorm.JoinColumn)({
|
|
75
|
-
name: 'method_id',
|
|
76
|
-
referencedColumnName: 'id'
|
|
77
|
-
}), _dec12 = (0, _typeorm.ManyToOne)(() => _transactionType.default), _dec13 = (0, _typeorm.JoinColumn)({
|
|
78
|
-
name: 'type_id',
|
|
79
|
-
referencedColumnName: 'id'
|
|
80
|
-
}), _dec14 = (0, _typeorm.ManyToOne)(() => _transactionSource.default, {
|
|
81
|
-
nullable: true
|
|
82
|
-
}), _dec15 = (0, _typeorm.JoinColumn)({
|
|
83
|
-
name: 'source_id',
|
|
84
|
-
referencedColumnName: 'id'
|
|
85
|
-
}), _dec16 = (0, _typeorm.ManyToOne)(() => _paymentLink.default, {
|
|
86
|
-
nullable: true
|
|
87
|
-
}), _dec17 = (0, _typeorm.JoinColumn)({
|
|
88
|
-
name: 'payment_link_id',
|
|
89
|
-
referencedColumnName: 'id'
|
|
90
|
-
}), _dec18 = (0, _typeorm.ManyToOne)(() => _ecommerce.default, {
|
|
91
|
-
nullable: true
|
|
92
|
-
}), _dec19 = (0, _typeorm.JoinColumn)({
|
|
93
|
-
name: 'ecommerce_id',
|
|
94
|
-
referencedColumnName: 'id'
|
|
95
|
-
}), _dec20 = (0, _typeorm.OneToOne)(() => _transactionMetadata.default, transactionMetadata => transactionMetadata.transaction), _dec21 = (0, _typeorm.OneToOne)(() => _transactionRisk.default, transactionRisk => transactionRisk.transaction), _dec22 = (0, _typeorm.ManyToOne)(() => _paymentProvider.default), _dec23 = (0, _typeorm.JoinColumn)({
|
|
96
|
-
name: 'payment_provider_id',
|
|
97
|
-
referencedColumnName: 'id'
|
|
98
|
-
}), _dec24 = (0, _typeorm.ManyToOne)(() => _organisationPaymentProvider.default, {
|
|
99
|
-
nullable: true
|
|
100
|
-
}), _dec25 = (0, _typeorm.JoinColumn)({
|
|
101
|
-
name: 'organisation_payment_provider_id',
|
|
102
|
-
referencedColumnName: 'id'
|
|
103
|
-
}), _dec26 = (0, _typeorm.ManyToOne)(() => _tokenisationProvider.default, {
|
|
104
|
-
nullable: true
|
|
105
|
-
}), _dec27 = (0, _typeorm.JoinColumn)({
|
|
106
|
-
name: 'tokenisation_provider_id',
|
|
107
|
-
referencedColumnName: 'id'
|
|
108
|
-
}), _dec28 = (0, _typeorm.OneToMany)(() => _refund.default, refund => refund.transaction, {
|
|
109
|
-
nullable: true
|
|
110
|
-
}), _dec29 = (0, _typeorm.OneToOne)(() => _transactionSurcharge.default, transactionSurcharge => transactionSurcharge.transaction, {
|
|
111
|
-
nullable: true
|
|
112
|
-
}), _dec30 = (0, _typeorm.Column)({
|
|
113
|
-
type: "varchar",
|
|
114
|
-
length: "250",
|
|
115
|
-
nullable: true
|
|
116
|
-
}), _dec31 = (0, _typeorm.Column)({
|
|
117
|
-
type: "varchar",
|
|
118
|
-
length: "3",
|
|
119
|
-
default: _currency.DEFAULT_CURRENCY
|
|
120
|
-
}), _dec32 = (0, _typeorm.Column)({
|
|
121
|
-
type: "json",
|
|
122
|
-
nullable: true
|
|
123
|
-
}), _dec33 = (0, _typeorm.Column)({
|
|
124
|
-
type: "timestamp with time zone",
|
|
125
|
-
nullable: true
|
|
126
|
-
}), _dec34 = (0, _typeorm.Column)({
|
|
127
|
-
type: "text",
|
|
128
|
-
nullable: true
|
|
129
|
-
}), _dec35 = (0, _typeorm.Column)({
|
|
130
|
-
type: "text",
|
|
131
|
-
nullable: true
|
|
132
|
-
}), _dec36 = (0, _typeorm.Column)({
|
|
133
|
-
type: "varchar",
|
|
134
|
-
length: "15",
|
|
135
|
-
nullable: true
|
|
136
|
-
}), _dec37 = (0, _typeorm.Column)({
|
|
137
|
-
type: "varchar",
|
|
138
|
-
nullable: true
|
|
139
|
-
}), _dec38 = (0, _typeorm.CreateDateColumn)({
|
|
140
|
-
type: 'timestamp with time zone'
|
|
141
|
-
}), _dec39 = (0, _typeorm.UpdateDateColumn)({
|
|
142
|
-
type: 'timestamp with time zone'
|
|
143
|
-
}), _dec40 = (0, _typeorm.OneToMany)(() => _transactionBatch.default, transactionBatch => transactionBatch.transaction), _dec41 = (0, _typeorm.Column)({
|
|
144
|
-
type: "timestamp with time zone",
|
|
145
|
-
nullable: true
|
|
146
|
-
}), _dec42 = (0, _typeorm.OneToOne)(() => _transactionSettlement.default, transactionSettlement => transactionSettlement.transaction), _dec43 = (0, _typeorm.ManyToOne)(() => _customer.default, {
|
|
147
|
-
nullable: true
|
|
148
|
-
}), _dec44 = (0, _typeorm.JoinColumn)({
|
|
149
|
-
name: 'customer_id',
|
|
150
|
-
referencedColumnName: 'id'
|
|
151
|
-
}), _dec(_class = (_class2 = class Transaction {
|
|
152
|
-
constructor() {
|
|
153
|
-
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
154
|
-
|
|
155
|
-
_initializerDefineProperty(this, "amount", _descriptor2, this);
|
|
156
|
-
|
|
157
|
-
_initializerDefineProperty(this, "booking", _descriptor3, this);
|
|
158
|
-
|
|
159
|
-
_initializerDefineProperty(this, "organisation", _descriptor4, this);
|
|
160
|
-
|
|
161
|
-
_initializerDefineProperty(this, "status", _descriptor5, this);
|
|
162
|
-
|
|
163
|
-
_initializerDefineProperty(this, "method", _descriptor6, this);
|
|
164
|
-
|
|
165
|
-
_initializerDefineProperty(this, "type", _descriptor7, this);
|
|
166
|
-
|
|
167
|
-
_initializerDefineProperty(this, "source", _descriptor8, this);
|
|
168
|
-
|
|
169
|
-
_initializerDefineProperty(this, "payment_link", _descriptor9, this);
|
|
170
|
-
|
|
171
|
-
_initializerDefineProperty(this, "ecommerce", _descriptor10, this);
|
|
172
|
-
|
|
173
|
-
_initializerDefineProperty(this, "metadata", _descriptor11, this);
|
|
174
|
-
|
|
175
|
-
_initializerDefineProperty(this, "risk", _descriptor12, this);
|
|
176
|
-
|
|
177
|
-
_initializerDefineProperty(this, "payment_provider", _descriptor13, this);
|
|
178
|
-
|
|
179
|
-
_initializerDefineProperty(this, "organisation_payment_provider", _descriptor14, this);
|
|
180
|
-
|
|
181
|
-
_initializerDefineProperty(this, "tokenisation_provider", _descriptor15, this);
|
|
182
|
-
|
|
183
|
-
_initializerDefineProperty(this, "refund", _descriptor16, this);
|
|
184
|
-
|
|
185
|
-
_initializerDefineProperty(this, "surcharge", _descriptor17, this);
|
|
186
|
-
|
|
187
|
-
_initializerDefineProperty(this, "provider_reference", _descriptor18, this);
|
|
188
|
-
|
|
189
|
-
_initializerDefineProperty(this, "currency", _descriptor19, this);
|
|
190
|
-
|
|
191
|
-
_initializerDefineProperty(this, "provider_metadata", _descriptor20, this);
|
|
192
|
-
|
|
193
|
-
_initializerDefineProperty(this, "completed_at", _descriptor21, this);
|
|
194
|
-
|
|
195
|
-
_initializerDefineProperty(this, "message", _descriptor22, this);
|
|
196
|
-
|
|
197
|
-
_initializerDefineProperty(this, "user_agent", _descriptor23, this);
|
|
198
|
-
|
|
199
|
-
_initializerDefineProperty(this, "ip_address", _descriptor24, this);
|
|
200
|
-
|
|
201
|
-
_initializerDefineProperty(this, "fingerprint", _descriptor25, this);
|
|
202
|
-
|
|
203
|
-
_initializerDefineProperty(this, "created_at", _descriptor26, this);
|
|
204
|
-
|
|
205
|
-
_initializerDefineProperty(this, "updated_at", _descriptor27, this);
|
|
206
|
-
|
|
207
|
-
_initializerDefineProperty(this, "batch", _descriptor28, this);
|
|
208
|
-
|
|
209
|
-
_initializerDefineProperty(this, "assigned_at", _descriptor29, this);
|
|
210
|
-
|
|
211
|
-
_initializerDefineProperty(this, "settlement", _descriptor30, this);
|
|
212
|
-
|
|
213
|
-
_initializerDefineProperty(this, "customer", _descriptor31, this);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
getPublicData() {
|
|
217
|
-
var _this$refund, _this$refund$status, _this$refund2;
|
|
218
|
-
|
|
219
|
-
const response = {
|
|
220
|
-
id: this.id,
|
|
221
|
-
amount: this.amount,
|
|
222
|
-
status: this.status.id,
|
|
223
|
-
method: this.method.id,
|
|
224
|
-
message: this.message,
|
|
225
|
-
type: this.type.id,
|
|
226
|
-
created_at: this.created_at,
|
|
227
|
-
completed_at: this.completed_at,
|
|
228
|
-
currency: this.currency,
|
|
229
|
-
provider_reference: this.provider_reference,
|
|
230
|
-
booking: null,
|
|
231
|
-
payment_link: null,
|
|
232
|
-
ecommerce: null,
|
|
233
|
-
metadata: null,
|
|
234
|
-
risk: null,
|
|
235
|
-
organisation: null,
|
|
236
|
-
assigned_at: this.assigned_at
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
if (this.customer !== null && typeof this.customer.id !== 'undefined') {
|
|
240
|
-
response.customer = this.customer.getPublicData();
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
if (this.settlement !== null && typeof this.settlement !== 'undefined') {
|
|
244
|
-
response.settlement = this.settlement;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
if (this.refund !== null && typeof ((_this$refund = this.refund) === null || _this$refund === void 0 ? void 0 : (_this$refund$status = _this$refund.status) === null || _this$refund$status === void 0 ? void 0 : _this$refund$status.id) !== 'undefined' && typeof ((_this$refund2 = this.refund) === null || _this$refund2 === void 0 ? void 0 : _this$refund2.getPublicData) === 'function') {
|
|
248
|
-
response.refund = this.refund.getPublicData();
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
if (this.booking !== null && typeof this.booking.id !== 'undefined' && typeof this.booking.getPublicData === 'function') {
|
|
252
|
-
response.booking = this.booking.getPublicData();
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
if (this.payment_link !== null && typeof this.payment_link !== 'undefined' && typeof this.payment_link.getPublicData === 'function') {
|
|
256
|
-
response.payment_link = this.payment_link.getPublicData();
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
if (this.ecommerce !== null && typeof this.ecommerce !== 'undefined' && typeof this.ecommerce.getPublicData === 'function') {
|
|
260
|
-
response.ecommerce = this.ecommerce.getPublicData();
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
if (this.surcharge !== null && typeof this.surcharge !== 'undefined' && typeof this.surcharge.getPublicData === 'function') {
|
|
264
|
-
response.surcharge = this.surcharge.getPublicData();
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
if (this.metadata !== null) {
|
|
268
|
-
response.metadata = this.metadata;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
if (this.risk !== null) {
|
|
272
|
-
response.risk = this.risk;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
if (this.organisation !== null && typeof this.organisation.id !== 'undefined' && typeof this.organisation.getPublicCompactData === 'function') {
|
|
276
|
-
response.organisation = this.organisation.getPublicCompactData();
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
if (this.batch && this.batch.length >= 1 && this.batch[0].disbursal) {
|
|
280
|
-
response.disbursal = {
|
|
281
|
-
id: this.batch[0].disbursal.id
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
if (this.payment_provider !== null && typeof this.payment_provider.id !== 'undefined') {
|
|
286
|
-
response.payment_provider = this.payment_provider;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
return response;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
getPublicCompactData() {
|
|
293
|
-
var _this$refund3, _this$refund3$status, _this$refund4;
|
|
294
|
-
|
|
295
|
-
const response = {
|
|
296
|
-
id: this.id,
|
|
297
|
-
amount: this.amount,
|
|
298
|
-
status: this.status.id,
|
|
299
|
-
method: this.method.id,
|
|
300
|
-
type: this.type.id,
|
|
301
|
-
created_at: this.created_at,
|
|
302
|
-
completed_at: this.completed_at,
|
|
303
|
-
currency: this.currency,
|
|
304
|
-
provider_reference: this.provider_reference,
|
|
305
|
-
assigned_at: this.assigned_at
|
|
306
|
-
};
|
|
307
|
-
|
|
308
|
-
if (this.customer !== null && typeof this.customer.id !== 'undefined') {
|
|
309
|
-
response.customer = this.customer.getPublicData();
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
if (this.settlement !== null && typeof this.settlement !== 'undefined') {
|
|
313
|
-
response.settlement = this.settlement;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
if (this.refund !== null && typeof ((_this$refund3 = this.refund) === null || _this$refund3 === void 0 ? void 0 : (_this$refund3$status = _this$refund3.status) === null || _this$refund3$status === void 0 ? void 0 : _this$refund3$status.id) !== 'undefined' && typeof ((_this$refund4 = this.refund) === null || _this$refund4 === void 0 ? void 0 : _this$refund4.getPublicData) === 'function') {
|
|
317
|
-
response.refund = this.refund.getPublicData();
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
if (this.booking !== null && typeof this.booking.id !== 'undefined' && typeof this.booking.getPublicCompactData === 'function') {
|
|
321
|
-
response.booking = this.booking.getPublicCompactData();
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
if (this.payment_link !== null && typeof this.payment_link !== 'undefined' && typeof this.payment_link.getPublicUltraCompactData === 'function') {
|
|
325
|
-
response.payment_link = this.payment_link.getPublicUltraCompactData();
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
if (this.batch && this.batch.length >= 1 && this.batch[0].disbursal) {
|
|
329
|
-
response.disbursal = {
|
|
330
|
-
id: this.batch[0].disbursal.id
|
|
331
|
-
};
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
if (this.ecommerce !== null && typeof this.ecommerce !== 'undefined' && typeof this.ecommerce.getPublicData === 'function') {
|
|
335
|
-
response.ecommerce = this.ecommerce.getPublicUltraCompactData();
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
if (this.metadata !== null) {
|
|
339
|
-
response.metadata = this.metadata;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
if (this.risk !== null) {
|
|
343
|
-
response.risk = this.risk;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
if (this.organisation !== null && typeof this.organisation.id !== 'undefined' && typeof this.organisation.getPublicCompactData === 'function') {
|
|
347
|
-
response.organisation = this.organisation.getPublicCompactData();
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
if (this.payment_provider !== null && typeof this.payment_provider.id !== 'undefined') {
|
|
351
|
-
response.payment_provider = this.payment_provider;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
return response;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
358
|
-
configurable: true,
|
|
359
|
-
enumerable: true,
|
|
360
|
-
writable: true,
|
|
361
|
-
initializer: function () {
|
|
362
|
-
return undefined;
|
|
363
|
-
}
|
|
364
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec3], {
|
|
365
|
-
configurable: true,
|
|
366
|
-
enumerable: true,
|
|
367
|
-
writable: true,
|
|
368
|
-
initializer: null
|
|
369
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "booking", [_dec4, _dec5], {
|
|
370
|
-
configurable: true,
|
|
371
|
-
enumerable: true,
|
|
372
|
-
writable: true,
|
|
373
|
-
initializer: function () {
|
|
374
|
-
return _booking.default;
|
|
375
|
-
}
|
|
376
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec6, _dec7], {
|
|
377
|
-
configurable: true,
|
|
378
|
-
enumerable: true,
|
|
379
|
-
writable: true,
|
|
380
|
-
initializer: function () {
|
|
381
|
-
return _organisation.default;
|
|
382
|
-
}
|
|
383
|
-
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "status", [_dec8, _dec9], {
|
|
384
|
-
configurable: true,
|
|
385
|
-
enumerable: true,
|
|
386
|
-
writable: true,
|
|
387
|
-
initializer: function () {
|
|
388
|
-
return _transactionStatus.default;
|
|
389
|
-
}
|
|
390
|
-
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "method", [_dec10, _dec11], {
|
|
391
|
-
configurable: true,
|
|
392
|
-
enumerable: true,
|
|
393
|
-
writable: true,
|
|
394
|
-
initializer: function () {
|
|
395
|
-
return _transactionMethod.default;
|
|
396
|
-
}
|
|
397
|
-
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "type", [_dec12, _dec13], {
|
|
398
|
-
configurable: true,
|
|
399
|
-
enumerable: true,
|
|
400
|
-
writable: true,
|
|
401
|
-
initializer: function () {
|
|
402
|
-
return _transactionType.default;
|
|
403
|
-
}
|
|
404
|
-
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "source", [_dec14, _dec15], {
|
|
405
|
-
configurable: true,
|
|
406
|
-
enumerable: true,
|
|
407
|
-
writable: true,
|
|
408
|
-
initializer: function () {
|
|
409
|
-
return _transactionSource.default;
|
|
410
|
-
}
|
|
411
|
-
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "payment_link", [_dec16, _dec17], {
|
|
412
|
-
configurable: true,
|
|
413
|
-
enumerable: true,
|
|
414
|
-
writable: true,
|
|
415
|
-
initializer: function () {
|
|
416
|
-
return _paymentLink.default;
|
|
417
|
-
}
|
|
418
|
-
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, "ecommerce", [_dec18, _dec19], {
|
|
419
|
-
configurable: true,
|
|
420
|
-
enumerable: true,
|
|
421
|
-
writable: true,
|
|
422
|
-
initializer: function () {
|
|
423
|
-
return _ecommerce.default;
|
|
424
|
-
}
|
|
425
|
-
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, "metadata", [_dec20], {
|
|
426
|
-
configurable: true,
|
|
427
|
-
enumerable: true,
|
|
428
|
-
writable: true,
|
|
429
|
-
initializer: null
|
|
430
|
-
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, "risk", [_dec21], {
|
|
431
|
-
configurable: true,
|
|
432
|
-
enumerable: true,
|
|
433
|
-
writable: true,
|
|
434
|
-
initializer: null
|
|
435
|
-
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, "payment_provider", [_dec22, _dec23], {
|
|
436
|
-
configurable: true,
|
|
437
|
-
enumerable: true,
|
|
438
|
-
writable: true,
|
|
439
|
-
initializer: function () {
|
|
440
|
-
return _paymentProvider.default;
|
|
441
|
-
}
|
|
442
|
-
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, "organisation_payment_provider", [_dec24, _dec25], {
|
|
443
|
-
configurable: true,
|
|
444
|
-
enumerable: true,
|
|
445
|
-
writable: true,
|
|
446
|
-
initializer: function () {
|
|
447
|
-
return _organisationPaymentProvider.default;
|
|
448
|
-
}
|
|
449
|
-
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, "tokenisation_provider", [_dec26, _dec27], {
|
|
450
|
-
configurable: true,
|
|
451
|
-
enumerable: true,
|
|
452
|
-
writable: true,
|
|
453
|
-
initializer: function () {
|
|
454
|
-
return _tokenisationProvider.default;
|
|
455
|
-
}
|
|
456
|
-
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, "refund", [_dec28], {
|
|
457
|
-
configurable: true,
|
|
458
|
-
enumerable: true,
|
|
459
|
-
writable: true,
|
|
460
|
-
initializer: null
|
|
461
|
-
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, "surcharge", [_dec29], {
|
|
462
|
-
configurable: true,
|
|
463
|
-
enumerable: true,
|
|
464
|
-
writable: true,
|
|
465
|
-
initializer: null
|
|
466
|
-
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, "provider_reference", [_dec30], {
|
|
467
|
-
configurable: true,
|
|
468
|
-
enumerable: true,
|
|
469
|
-
writable: true,
|
|
470
|
-
initializer: function () {
|
|
471
|
-
return "";
|
|
472
|
-
}
|
|
473
|
-
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec31], {
|
|
474
|
-
configurable: true,
|
|
475
|
-
enumerable: true,
|
|
476
|
-
writable: true,
|
|
477
|
-
initializer: function () {
|
|
478
|
-
return _currency.DEFAULT_CURRENCY;
|
|
479
|
-
}
|
|
480
|
-
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, "provider_metadata", [_dec32], {
|
|
481
|
-
configurable: true,
|
|
482
|
-
enumerable: true,
|
|
483
|
-
writable: true,
|
|
484
|
-
initializer: null
|
|
485
|
-
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, "completed_at", [_dec33], {
|
|
486
|
-
configurable: true,
|
|
487
|
-
enumerable: true,
|
|
488
|
-
writable: true,
|
|
489
|
-
initializer: null
|
|
490
|
-
}), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, "message", [_dec34], {
|
|
491
|
-
configurable: true,
|
|
492
|
-
enumerable: true,
|
|
493
|
-
writable: true,
|
|
494
|
-
initializer: null
|
|
495
|
-
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, "user_agent", [_dec35], {
|
|
496
|
-
configurable: true,
|
|
497
|
-
enumerable: true,
|
|
498
|
-
writable: true,
|
|
499
|
-
initializer: null
|
|
500
|
-
}), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, "ip_address", [_dec36], {
|
|
501
|
-
configurable: true,
|
|
502
|
-
enumerable: true,
|
|
503
|
-
writable: true,
|
|
504
|
-
initializer: function () {
|
|
505
|
-
return "";
|
|
506
|
-
}
|
|
507
|
-
}), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, "fingerprint", [_dec37], {
|
|
508
|
-
configurable: true,
|
|
509
|
-
enumerable: true,
|
|
510
|
-
writable: true,
|
|
511
|
-
initializer: function () {
|
|
512
|
-
return "";
|
|
513
|
-
}
|
|
514
|
-
}), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec38], {
|
|
515
|
-
configurable: true,
|
|
516
|
-
enumerable: true,
|
|
517
|
-
writable: true,
|
|
518
|
-
initializer: null
|
|
519
|
-
}), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec39], {
|
|
520
|
-
configurable: true,
|
|
521
|
-
enumerable: true,
|
|
522
|
-
writable: true,
|
|
523
|
-
initializer: null
|
|
524
|
-
}), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec40], {
|
|
525
|
-
configurable: true,
|
|
526
|
-
enumerable: true,
|
|
527
|
-
writable: true,
|
|
528
|
-
initializer: null
|
|
529
|
-
}), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, "assigned_at", [_dec41], {
|
|
530
|
-
configurable: true,
|
|
531
|
-
enumerable: true,
|
|
532
|
-
writable: true,
|
|
533
|
-
initializer: null
|
|
534
|
-
}), _descriptor30 = _applyDecoratedDescriptor(_class2.prototype, "settlement", [_dec42], {
|
|
535
|
-
configurable: true,
|
|
536
|
-
enumerable: true,
|
|
537
|
-
writable: true,
|
|
538
|
-
initializer: null
|
|
539
|
-
}), _descriptor31 = _applyDecoratedDescriptor(_class2.prototype, "customer", [_dec43, _dec44], {
|
|
540
|
-
configurable: true,
|
|
541
|
-
enumerable: true,
|
|
542
|
-
writable: true,
|
|
543
|
-
initializer: function () {
|
|
544
|
-
return _customer.default;
|
|
545
|
-
}
|
|
546
|
-
})), _class2)) || _class);
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _typeorm = require("typeorm");
|
|
9
|
-
|
|
10
|
-
var _transactionEventType = _interopRequireDefault(require("../transaction-event-type"));
|
|
11
|
-
|
|
12
|
-
var _transaction = _interopRequireDefault(require("../transaction"));
|
|
13
|
-
|
|
14
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
19
|
-
|
|
20
|
-
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
21
|
-
|
|
22
|
-
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
23
|
-
|
|
24
|
-
let TransactionEvent = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
25
|
-
name: 'transaction_event',
|
|
26
|
-
schema: 'payment'
|
|
27
|
-
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.ManyToOne)(() => _transaction.default), _dec4 = (0, _typeorm.JoinColumn)({
|
|
28
|
-
name: 'transaction_id',
|
|
29
|
-
referencedColumnName: 'id'
|
|
30
|
-
}), _dec5 = (0, _typeorm.ManyToOne)(() => _transactionEventType.default), _dec6 = (0, _typeorm.JoinColumn)({
|
|
31
|
-
name: 'event_type_id',
|
|
32
|
-
referencedColumnName: 'id'
|
|
33
|
-
}), _dec7 = (0, _typeorm.CreateDateColumn)({
|
|
34
|
-
type: 'timestamp with time zone'
|
|
35
|
-
}), _dec8 = (0, _typeorm.UpdateDateColumn)({
|
|
36
|
-
type: 'timestamp with time zone'
|
|
37
|
-
}), _dec(_class = (_class2 = class TransactionEvent {
|
|
38
|
-
constructor() {
|
|
39
|
-
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
40
|
-
|
|
41
|
-
_initializerDefineProperty(this, "transaction", _descriptor2, this);
|
|
42
|
-
|
|
43
|
-
_initializerDefineProperty(this, "event_type", _descriptor3, this);
|
|
44
|
-
|
|
45
|
-
_initializerDefineProperty(this, "created_at", _descriptor4, this);
|
|
46
|
-
|
|
47
|
-
_initializerDefineProperty(this, "updated_at", _descriptor5, this);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
51
|
-
configurable: true,
|
|
52
|
-
enumerable: true,
|
|
53
|
-
writable: true,
|
|
54
|
-
initializer: function () {
|
|
55
|
-
return undefined;
|
|
56
|
-
}
|
|
57
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "transaction", [_dec3, _dec4], {
|
|
58
|
-
configurable: true,
|
|
59
|
-
enumerable: true,
|
|
60
|
-
writable: true,
|
|
61
|
-
initializer: function () {
|
|
62
|
-
return _transaction.default;
|
|
63
|
-
}
|
|
64
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "event_type", [_dec5, _dec6], {
|
|
65
|
-
configurable: true,
|
|
66
|
-
enumerable: true,
|
|
67
|
-
writable: true,
|
|
68
|
-
initializer: function () {
|
|
69
|
-
return _transactionEventType.default;
|
|
70
|
-
}
|
|
71
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec7], {
|
|
72
|
-
configurable: true,
|
|
73
|
-
enumerable: true,
|
|
74
|
-
writable: true,
|
|
75
|
-
initializer: null
|
|
76
|
-
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec8], {
|
|
77
|
-
configurable: true,
|
|
78
|
-
enumerable: true,
|
|
79
|
-
writable: true,
|
|
80
|
-
initializer: null
|
|
81
|
-
})), _class2)) || _class);
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _typeorm = require("typeorm");
|
|
9
|
-
|
|
10
|
-
var _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3;
|
|
11
|
-
|
|
12
|
-
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
13
|
-
|
|
14
|
-
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
15
|
-
|
|
16
|
-
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
17
|
-
|
|
18
|
-
let TransactionEventType = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
19
|
-
name: 'transaction_event_type',
|
|
20
|
-
schema: 'payment'
|
|
21
|
-
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.CreateDateColumn)({
|
|
22
|
-
type: 'timestamp with time zone'
|
|
23
|
-
}), _dec4 = (0, _typeorm.UpdateDateColumn)({
|
|
24
|
-
type: 'timestamp with time zone'
|
|
25
|
-
}), _dec(_class = (_class2 = class TransactionEventType {
|
|
26
|
-
constructor() {
|
|
27
|
-
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
28
|
-
|
|
29
|
-
_initializerDefineProperty(this, "created_at", _descriptor2, this);
|
|
30
|
-
|
|
31
|
-
_initializerDefineProperty(this, "updated_at", _descriptor3, this);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
35
|
-
configurable: true,
|
|
36
|
-
enumerable: true,
|
|
37
|
-
writable: true,
|
|
38
|
-
initializer: null
|
|
39
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec3], {
|
|
40
|
-
configurable: true,
|
|
41
|
-
enumerable: true,
|
|
42
|
-
writable: true,
|
|
43
|
-
initializer: null
|
|
44
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec4], {
|
|
45
|
-
configurable: true,
|
|
46
|
-
enumerable: true,
|
|
47
|
-
writable: true,
|
|
48
|
-
initializer: null
|
|
49
|
-
})), _class2)) || _class);
|