diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f4ce76a..1720843b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: permissions: contents: read id-token: write - runs-on: ${{ github.repository == 'stainless-sdks/lithic-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: |- github.repository == 'stainless-sdks/lithic-go' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') @@ -49,7 +49,7 @@ jobs: lint: timeout-minutes: 10 name: lint - runs-on: ${{ github.repository == 'stainless-sdks/lithic-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: @@ -65,7 +65,7 @@ jobs: test: timeout-minutes: 10 name: test - runs-on: ${{ github.repository == 'stainless-sdks/lithic-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d3dc9f51..988e843f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.115.0" + ".": "0.116.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 189b2dd2..8a3de29b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 214 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-9e397c65ffb81e2928b8ecf979769a79131ae6058b6fb373a5e930dc8a168732.yml -openapi_spec_hash: 93aea3855d2d1c390107d223762aa818 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-90a1307b64fb449a81303dd73185b15e40f48c10415f4e4f483e59d828c53084.yml +openapi_spec_hash: 4c752106ab99b1c537fc364535736eaa config_hash: 5bb913c05ebeb301ec925b16e75bb251 diff --git a/CHANGELOG.md b/CHANGELOG.md index bba55dcb..591871b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,31 @@ # Changelog +## 0.116.0 (2026-07-22) + +Full Changelog: [v0.115.0...v0.116.0](https://github.com/lithic-com/lithic-go/compare/v0.115.0...v0.116.0) + +### Features + +* **api:** add embed.session_generated and embed.viewed webhook event types ([8390f53](https://github.com/lithic-com/lithic-go/commit/8390f539f5b3a7318b3f383a4e4427f71f0ac8c1)) +* **api:** add PAYMENT event type to book transfers ([030f8d1](https://github.com/lithic-com/lithic-go/commit/030f8d1641d8f3885039f2e597d97553c398ff96)) +* **api:** add PROGRAM_TRANSFER category and event types to financial transaction types ([4f41a62](https://github.com/lithic-com/lithic-go/commit/4f41a62df97ba7b41f2db2a06e0182cb3d399e97)) +* **api:** add recipient_name field to payment method attributes ([8e7e6da](https://github.com/lithic-com/lithic-go/commit/8e7e6dabd2b9dbef32ad087cfa630803a7bbbd3c)) +* **api:** add REVERSED status to payment list parameters ([778117c](https://github.com/lithic-com/lithic-go/commit/778117c555bbed242991722481bb8c2ed1637db7)) +* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([38d2c5f](https://github.com/lithic-com/lithic-go/commit/38d2c5fe79e876071fce56f643988b5df2cd1c91)) + + +### Bug Fixes + +* **types:** make comment/created_at/fraud_type/updated_at nullable in fraud_transaction ([93e72ca](https://github.com/lithic-com/lithic-go/commit/93e72caa416a97b8b97bc333ae9b945794553144)) + + +### Documentation + +* **api:** clarify SimulateClearing supports multiple calls ([be5af7c](https://github.com/lithic-com/lithic-go/commit/be5af7c05e9876ca298bd5f7557960a63aa18d58)) +* **api:** update category parameter description in external payment list ([b140a08](https://github.com/lithic-com/lithic-go/commit/b140a0824b51b1a08b28fd257457387fd93cc418)) +* **api:** update max duration for velocity limit period in auth rule v2 ([7ceb706](https://github.com/lithic-com/lithic-go/commit/7ceb7065bc83e6f5c9413def796b4cdd76b8da63)) +* **types:** clarify dispute event type descriptions ([0d4a3b0](https://github.com/lithic-com/lithic-go/commit/0d4a3b07a2c3d4c421411249326972cb75e83e61)) + ## 0.115.0 (2026-06-29) Full Changelog: [v0.114.0...v0.115.0](https://github.com/lithic-com/lithic-go/compare/v0.114.0...v0.115.0) diff --git a/README.md b/README.md index a1799b35..3053be0f 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Or to pin the version: ```sh -go get -u 'github.com/lithic-com/lithic-go@v0.115.0' +go get -u 'github.com/lithic-com/lithic-go@v0.116.0' ``` diff --git a/accountactivity.go b/accountactivity.go index 8ac9063a..f82e7662 100644 --- a/accountactivity.go +++ b/accountactivity.go @@ -466,11 +466,12 @@ const ( AccountActivityListResponseFinancialTransactionCategoryManagementDisbursement AccountActivityListResponseFinancialTransactionCategory = "MANAGEMENT_DISBURSEMENT" AccountActivityListResponseFinancialTransactionCategoryHold AccountActivityListResponseFinancialTransactionCategory = "HOLD" AccountActivityListResponseFinancialTransactionCategoryProgramFunding AccountActivityListResponseFinancialTransactionCategory = "PROGRAM_FUNDING" + AccountActivityListResponseFinancialTransactionCategoryProgramTransfer AccountActivityListResponseFinancialTransactionCategory = "PROGRAM_TRANSFER" ) func (r AccountActivityListResponseFinancialTransactionCategory) IsKnown() bool { switch r { - case AccountActivityListResponseFinancialTransactionCategoryACH, AccountActivityListResponseFinancialTransactionCategoryWire, AccountActivityListResponseFinancialTransactionCategoryBalanceOrFunding, AccountActivityListResponseFinancialTransactionCategoryFee, AccountActivityListResponseFinancialTransactionCategoryReward, AccountActivityListResponseFinancialTransactionCategoryAdjustment, AccountActivityListResponseFinancialTransactionCategoryDerecognition, AccountActivityListResponseFinancialTransactionCategoryDispute, AccountActivityListResponseFinancialTransactionCategoryCard, AccountActivityListResponseFinancialTransactionCategoryExternalACH, AccountActivityListResponseFinancialTransactionCategoryExternalCheck, AccountActivityListResponseFinancialTransactionCategoryExternalFednow, AccountActivityListResponseFinancialTransactionCategoryExternalRtp, AccountActivityListResponseFinancialTransactionCategoryExternalTransfer, AccountActivityListResponseFinancialTransactionCategoryExternalWire, AccountActivityListResponseFinancialTransactionCategoryManagementAdjustment, AccountActivityListResponseFinancialTransactionCategoryManagementDispute, AccountActivityListResponseFinancialTransactionCategoryManagementFee, AccountActivityListResponseFinancialTransactionCategoryManagementReward, AccountActivityListResponseFinancialTransactionCategoryManagementDisbursement, AccountActivityListResponseFinancialTransactionCategoryHold, AccountActivityListResponseFinancialTransactionCategoryProgramFunding: + case AccountActivityListResponseFinancialTransactionCategoryACH, AccountActivityListResponseFinancialTransactionCategoryWire, AccountActivityListResponseFinancialTransactionCategoryBalanceOrFunding, AccountActivityListResponseFinancialTransactionCategoryFee, AccountActivityListResponseFinancialTransactionCategoryReward, AccountActivityListResponseFinancialTransactionCategoryAdjustment, AccountActivityListResponseFinancialTransactionCategoryDerecognition, AccountActivityListResponseFinancialTransactionCategoryDispute, AccountActivityListResponseFinancialTransactionCategoryCard, AccountActivityListResponseFinancialTransactionCategoryExternalACH, AccountActivityListResponseFinancialTransactionCategoryExternalCheck, AccountActivityListResponseFinancialTransactionCategoryExternalFednow, AccountActivityListResponseFinancialTransactionCategoryExternalRtp, AccountActivityListResponseFinancialTransactionCategoryExternalTransfer, AccountActivityListResponseFinancialTransactionCategoryExternalWire, AccountActivityListResponseFinancialTransactionCategoryManagementAdjustment, AccountActivityListResponseFinancialTransactionCategoryManagementDispute, AccountActivityListResponseFinancialTransactionCategoryManagementFee, AccountActivityListResponseFinancialTransactionCategoryManagementReward, AccountActivityListResponseFinancialTransactionCategoryManagementDisbursement, AccountActivityListResponseFinancialTransactionCategoryHold, AccountActivityListResponseFinancialTransactionCategoryProgramFunding, AccountActivityListResponseFinancialTransactionCategoryProgramTransfer: return true } return false @@ -648,13 +649,14 @@ const ( AccountActivityListResponseCategoryManagementDisbursement AccountActivityListResponseCategory = "MANAGEMENT_DISBURSEMENT" AccountActivityListResponseCategoryHold AccountActivityListResponseCategory = "HOLD" AccountActivityListResponseCategoryProgramFunding AccountActivityListResponseCategory = "PROGRAM_FUNDING" + AccountActivityListResponseCategoryProgramTransfer AccountActivityListResponseCategory = "PROGRAM_TRANSFER" AccountActivityListResponseCategoryInternal AccountActivityListResponseCategory = "INTERNAL" AccountActivityListResponseCategoryTransfer AccountActivityListResponseCategory = "TRANSFER" ) func (r AccountActivityListResponseCategory) IsKnown() bool { switch r { - case AccountActivityListResponseCategoryACH, AccountActivityListResponseCategoryWire, AccountActivityListResponseCategoryBalanceOrFunding, AccountActivityListResponseCategoryFee, AccountActivityListResponseCategoryReward, AccountActivityListResponseCategoryAdjustment, AccountActivityListResponseCategoryDerecognition, AccountActivityListResponseCategoryDispute, AccountActivityListResponseCategoryCard, AccountActivityListResponseCategoryExternalACH, AccountActivityListResponseCategoryExternalCheck, AccountActivityListResponseCategoryExternalFednow, AccountActivityListResponseCategoryExternalRtp, AccountActivityListResponseCategoryExternalTransfer, AccountActivityListResponseCategoryExternalWire, AccountActivityListResponseCategoryManagementAdjustment, AccountActivityListResponseCategoryManagementDispute, AccountActivityListResponseCategoryManagementFee, AccountActivityListResponseCategoryManagementReward, AccountActivityListResponseCategoryManagementDisbursement, AccountActivityListResponseCategoryHold, AccountActivityListResponseCategoryProgramFunding, AccountActivityListResponseCategoryInternal, AccountActivityListResponseCategoryTransfer: + case AccountActivityListResponseCategoryACH, AccountActivityListResponseCategoryWire, AccountActivityListResponseCategoryBalanceOrFunding, AccountActivityListResponseCategoryFee, AccountActivityListResponseCategoryReward, AccountActivityListResponseCategoryAdjustment, AccountActivityListResponseCategoryDerecognition, AccountActivityListResponseCategoryDispute, AccountActivityListResponseCategoryCard, AccountActivityListResponseCategoryExternalACH, AccountActivityListResponseCategoryExternalCheck, AccountActivityListResponseCategoryExternalFednow, AccountActivityListResponseCategoryExternalRtp, AccountActivityListResponseCategoryExternalTransfer, AccountActivityListResponseCategoryExternalWire, AccountActivityListResponseCategoryManagementAdjustment, AccountActivityListResponseCategoryManagementDispute, AccountActivityListResponseCategoryManagementFee, AccountActivityListResponseCategoryManagementReward, AccountActivityListResponseCategoryManagementDisbursement, AccountActivityListResponseCategoryHold, AccountActivityListResponseCategoryProgramFunding, AccountActivityListResponseCategoryProgramTransfer, AccountActivityListResponseCategoryInternal, AccountActivityListResponseCategoryTransfer: return true } return false @@ -1189,11 +1191,12 @@ const ( AccountActivityGetTransactionResponseFinancialTransactionCategoryManagementDisbursement AccountActivityGetTransactionResponseFinancialTransactionCategory = "MANAGEMENT_DISBURSEMENT" AccountActivityGetTransactionResponseFinancialTransactionCategoryHold AccountActivityGetTransactionResponseFinancialTransactionCategory = "HOLD" AccountActivityGetTransactionResponseFinancialTransactionCategoryProgramFunding AccountActivityGetTransactionResponseFinancialTransactionCategory = "PROGRAM_FUNDING" + AccountActivityGetTransactionResponseFinancialTransactionCategoryProgramTransfer AccountActivityGetTransactionResponseFinancialTransactionCategory = "PROGRAM_TRANSFER" ) func (r AccountActivityGetTransactionResponseFinancialTransactionCategory) IsKnown() bool { switch r { - case AccountActivityGetTransactionResponseFinancialTransactionCategoryACH, AccountActivityGetTransactionResponseFinancialTransactionCategoryWire, AccountActivityGetTransactionResponseFinancialTransactionCategoryBalanceOrFunding, AccountActivityGetTransactionResponseFinancialTransactionCategoryFee, AccountActivityGetTransactionResponseFinancialTransactionCategoryReward, AccountActivityGetTransactionResponseFinancialTransactionCategoryAdjustment, AccountActivityGetTransactionResponseFinancialTransactionCategoryDerecognition, AccountActivityGetTransactionResponseFinancialTransactionCategoryDispute, AccountActivityGetTransactionResponseFinancialTransactionCategoryCard, AccountActivityGetTransactionResponseFinancialTransactionCategoryExternalACH, AccountActivityGetTransactionResponseFinancialTransactionCategoryExternalCheck, AccountActivityGetTransactionResponseFinancialTransactionCategoryExternalFednow, AccountActivityGetTransactionResponseFinancialTransactionCategoryExternalRtp, AccountActivityGetTransactionResponseFinancialTransactionCategoryExternalTransfer, AccountActivityGetTransactionResponseFinancialTransactionCategoryExternalWire, AccountActivityGetTransactionResponseFinancialTransactionCategoryManagementAdjustment, AccountActivityGetTransactionResponseFinancialTransactionCategoryManagementDispute, AccountActivityGetTransactionResponseFinancialTransactionCategoryManagementFee, AccountActivityGetTransactionResponseFinancialTransactionCategoryManagementReward, AccountActivityGetTransactionResponseFinancialTransactionCategoryManagementDisbursement, AccountActivityGetTransactionResponseFinancialTransactionCategoryHold, AccountActivityGetTransactionResponseFinancialTransactionCategoryProgramFunding: + case AccountActivityGetTransactionResponseFinancialTransactionCategoryACH, AccountActivityGetTransactionResponseFinancialTransactionCategoryWire, AccountActivityGetTransactionResponseFinancialTransactionCategoryBalanceOrFunding, AccountActivityGetTransactionResponseFinancialTransactionCategoryFee, AccountActivityGetTransactionResponseFinancialTransactionCategoryReward, AccountActivityGetTransactionResponseFinancialTransactionCategoryAdjustment, AccountActivityGetTransactionResponseFinancialTransactionCategoryDerecognition, AccountActivityGetTransactionResponseFinancialTransactionCategoryDispute, AccountActivityGetTransactionResponseFinancialTransactionCategoryCard, AccountActivityGetTransactionResponseFinancialTransactionCategoryExternalACH, AccountActivityGetTransactionResponseFinancialTransactionCategoryExternalCheck, AccountActivityGetTransactionResponseFinancialTransactionCategoryExternalFednow, AccountActivityGetTransactionResponseFinancialTransactionCategoryExternalRtp, AccountActivityGetTransactionResponseFinancialTransactionCategoryExternalTransfer, AccountActivityGetTransactionResponseFinancialTransactionCategoryExternalWire, AccountActivityGetTransactionResponseFinancialTransactionCategoryManagementAdjustment, AccountActivityGetTransactionResponseFinancialTransactionCategoryManagementDispute, AccountActivityGetTransactionResponseFinancialTransactionCategoryManagementFee, AccountActivityGetTransactionResponseFinancialTransactionCategoryManagementReward, AccountActivityGetTransactionResponseFinancialTransactionCategoryManagementDisbursement, AccountActivityGetTransactionResponseFinancialTransactionCategoryHold, AccountActivityGetTransactionResponseFinancialTransactionCategoryProgramFunding, AccountActivityGetTransactionResponseFinancialTransactionCategoryProgramTransfer: return true } return false @@ -1372,13 +1375,14 @@ const ( AccountActivityGetTransactionResponseCategoryManagementDisbursement AccountActivityGetTransactionResponseCategory = "MANAGEMENT_DISBURSEMENT" AccountActivityGetTransactionResponseCategoryHold AccountActivityGetTransactionResponseCategory = "HOLD" AccountActivityGetTransactionResponseCategoryProgramFunding AccountActivityGetTransactionResponseCategory = "PROGRAM_FUNDING" + AccountActivityGetTransactionResponseCategoryProgramTransfer AccountActivityGetTransactionResponseCategory = "PROGRAM_TRANSFER" AccountActivityGetTransactionResponseCategoryInternal AccountActivityGetTransactionResponseCategory = "INTERNAL" AccountActivityGetTransactionResponseCategoryTransfer AccountActivityGetTransactionResponseCategory = "TRANSFER" ) func (r AccountActivityGetTransactionResponseCategory) IsKnown() bool { switch r { - case AccountActivityGetTransactionResponseCategoryACH, AccountActivityGetTransactionResponseCategoryWire, AccountActivityGetTransactionResponseCategoryBalanceOrFunding, AccountActivityGetTransactionResponseCategoryFee, AccountActivityGetTransactionResponseCategoryReward, AccountActivityGetTransactionResponseCategoryAdjustment, AccountActivityGetTransactionResponseCategoryDerecognition, AccountActivityGetTransactionResponseCategoryDispute, AccountActivityGetTransactionResponseCategoryCard, AccountActivityGetTransactionResponseCategoryExternalACH, AccountActivityGetTransactionResponseCategoryExternalCheck, AccountActivityGetTransactionResponseCategoryExternalFednow, AccountActivityGetTransactionResponseCategoryExternalRtp, AccountActivityGetTransactionResponseCategoryExternalTransfer, AccountActivityGetTransactionResponseCategoryExternalWire, AccountActivityGetTransactionResponseCategoryManagementAdjustment, AccountActivityGetTransactionResponseCategoryManagementDispute, AccountActivityGetTransactionResponseCategoryManagementFee, AccountActivityGetTransactionResponseCategoryManagementReward, AccountActivityGetTransactionResponseCategoryManagementDisbursement, AccountActivityGetTransactionResponseCategoryHold, AccountActivityGetTransactionResponseCategoryProgramFunding, AccountActivityGetTransactionResponseCategoryInternal, AccountActivityGetTransactionResponseCategoryTransfer: + case AccountActivityGetTransactionResponseCategoryACH, AccountActivityGetTransactionResponseCategoryWire, AccountActivityGetTransactionResponseCategoryBalanceOrFunding, AccountActivityGetTransactionResponseCategoryFee, AccountActivityGetTransactionResponseCategoryReward, AccountActivityGetTransactionResponseCategoryAdjustment, AccountActivityGetTransactionResponseCategoryDerecognition, AccountActivityGetTransactionResponseCategoryDispute, AccountActivityGetTransactionResponseCategoryCard, AccountActivityGetTransactionResponseCategoryExternalACH, AccountActivityGetTransactionResponseCategoryExternalCheck, AccountActivityGetTransactionResponseCategoryExternalFednow, AccountActivityGetTransactionResponseCategoryExternalRtp, AccountActivityGetTransactionResponseCategoryExternalTransfer, AccountActivityGetTransactionResponseCategoryExternalWire, AccountActivityGetTransactionResponseCategoryManagementAdjustment, AccountActivityGetTransactionResponseCategoryManagementDispute, AccountActivityGetTransactionResponseCategoryManagementFee, AccountActivityGetTransactionResponseCategoryManagementReward, AccountActivityGetTransactionResponseCategoryManagementDisbursement, AccountActivityGetTransactionResponseCategoryHold, AccountActivityGetTransactionResponseCategoryProgramFunding, AccountActivityGetTransactionResponseCategoryProgramTransfer, AccountActivityGetTransactionResponseCategoryInternal, AccountActivityGetTransactionResponseCategoryTransfer: return true } return false @@ -1616,11 +1620,12 @@ const ( AccountActivityListParamsCategoryManagementDisbursement AccountActivityListParamsCategory = "MANAGEMENT_DISBURSEMENT" AccountActivityListParamsCategoryHold AccountActivityListParamsCategory = "HOLD" AccountActivityListParamsCategoryProgramFunding AccountActivityListParamsCategory = "PROGRAM_FUNDING" + AccountActivityListParamsCategoryProgramTransfer AccountActivityListParamsCategory = "PROGRAM_TRANSFER" ) func (r AccountActivityListParamsCategory) IsKnown() bool { switch r { - case AccountActivityListParamsCategoryACH, AccountActivityListParamsCategoryWire, AccountActivityListParamsCategoryBalanceOrFunding, AccountActivityListParamsCategoryFee, AccountActivityListParamsCategoryReward, AccountActivityListParamsCategoryAdjustment, AccountActivityListParamsCategoryDerecognition, AccountActivityListParamsCategoryDispute, AccountActivityListParamsCategoryCard, AccountActivityListParamsCategoryExternalACH, AccountActivityListParamsCategoryExternalCheck, AccountActivityListParamsCategoryExternalFednow, AccountActivityListParamsCategoryExternalRtp, AccountActivityListParamsCategoryExternalTransfer, AccountActivityListParamsCategoryExternalWire, AccountActivityListParamsCategoryManagementAdjustment, AccountActivityListParamsCategoryManagementDispute, AccountActivityListParamsCategoryManagementFee, AccountActivityListParamsCategoryManagementReward, AccountActivityListParamsCategoryManagementDisbursement, AccountActivityListParamsCategoryHold, AccountActivityListParamsCategoryProgramFunding: + case AccountActivityListParamsCategoryACH, AccountActivityListParamsCategoryWire, AccountActivityListParamsCategoryBalanceOrFunding, AccountActivityListParamsCategoryFee, AccountActivityListParamsCategoryReward, AccountActivityListParamsCategoryAdjustment, AccountActivityListParamsCategoryDerecognition, AccountActivityListParamsCategoryDispute, AccountActivityListParamsCategoryCard, AccountActivityListParamsCategoryExternalACH, AccountActivityListParamsCategoryExternalCheck, AccountActivityListParamsCategoryExternalFednow, AccountActivityListParamsCategoryExternalRtp, AccountActivityListParamsCategoryExternalTransfer, AccountActivityListParamsCategoryExternalWire, AccountActivityListParamsCategoryManagementAdjustment, AccountActivityListParamsCategoryManagementDispute, AccountActivityListParamsCategoryManagementFee, AccountActivityListParamsCategoryManagementReward, AccountActivityListParamsCategoryManagementDisbursement, AccountActivityListParamsCategoryHold, AccountActivityListParamsCategoryProgramFunding, AccountActivityListParamsCategoryProgramTransfer: return true } return false diff --git a/aliases.go b/aliases.go index 3c100d6e..97e5a216 100644 --- a/aliases.go +++ b/aliases.go @@ -439,6 +439,12 @@ const FinancialEventTypeReturnedPaymentReversal = shared.FinancialEventTypeRetur // This is an alias to an internal value. const FinancialEventTypeLithicNetworkPayment = shared.FinancialEventTypeLithicNetworkPayment +// This is an alias to an internal value. +const FinancialEventTypeLithicProgramTransfer = shared.FinancialEventTypeLithicProgramTransfer + +// This is an alias to an internal value. +const FinancialEventTypeBankProgramTransfer = shared.FinancialEventTypeBankProgramTransfer + // This is an alias to an internal value. const FinancialEventTypeAnnual = shared.FinancialEventTypeAnnual diff --git a/api.md b/api.md index b15a7148..ba52b532 100644 --- a/api.md +++ b/api.md @@ -966,6 +966,8 @@ Response Types: - lithic.DigitalWalletTokenizationUpdatedWebhookEvent - lithic.DisputeUpdatedWebhookEvent - lithic.DisputeEvidenceUploadFailedWebhookEvent +- lithic.EmbedSessionGeneratedWebhookEvent +- lithic.EmbedViewedWebhookEvent - lithic.ExternalBankAccountCreatedWebhookEvent - lithic.ExternalBankAccountUpdatedWebhookEvent - lithic.ExternalPaymentCreatedWebhookEvent diff --git a/authrulev2.go b/authrulev2.go index 086894b3..89e1a87d 100644 --- a/authrulev2.go +++ b/authrulev2.go @@ -7180,7 +7180,7 @@ type VelocityLimitPeriod struct { // 7 is Sunday. Defaults to Monday if not specified. DayOfWeek int64 `json:"day_of_week"` // The size of the trailing window to calculate Spend Velocity over in seconds. The - // minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days). + // minimum value is 10 seconds, and the maximum value is 7776000 seconds (90 days). Duration int64 `json:"duration"` // The month to start from. 1 is January and 12 is December. Defaults to January if // not specified. @@ -7263,7 +7263,7 @@ func init() { type VelocityLimitPeriodTrailingWindowObject struct { // The size of the trailing window to calculate Spend Velocity over in seconds. The - // minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days). + // minimum value is 10 seconds, and the maximum value is 7776000 seconds (90 days). Duration int64 `json:"duration" api:"required"` Type VelocityLimitPeriodTrailingWindowObjectType `json:"type" api:"required"` JSON velocityLimitPeriodTrailingWindowObjectJSON `json:"-"` @@ -7505,7 +7505,7 @@ type VelocityLimitPeriodParam struct { // 7 is Sunday. Defaults to Monday if not specified. DayOfWeek param.Field[int64] `json:"day_of_week"` // The size of the trailing window to calculate Spend Velocity over in seconds. The - // minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days). + // minimum value is 10 seconds, and the maximum value is 7776000 seconds (90 days). Duration param.Field[int64] `json:"duration"` // The month to start from. 1 is January and 12 is December. Defaults to January if // not specified. @@ -7531,7 +7531,7 @@ type VelocityLimitPeriodUnionParam interface { type VelocityLimitPeriodTrailingWindowObjectParam struct { // The size of the trailing window to calculate Spend Velocity over in seconds. The - // minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days). + // minimum value is 10 seconds, and the maximum value is 7776000 seconds (90 days). Duration param.Field[int64] `json:"duration" api:"required"` Type param.Field[VelocityLimitPeriodTrailingWindowObjectType] `json:"type" api:"required"` } diff --git a/booktransfer.go b/booktransfer.go index 28fb1d2e..39c4e1b7 100644 --- a/booktransfer.go +++ b/booktransfer.go @@ -195,12 +195,13 @@ const ( BookTransferResponseCategoryInternal BookTransferResponseCategory = "INTERNAL" BookTransferResponseCategoryReward BookTransferResponseCategory = "REWARD" BookTransferResponseCategoryProgramFunding BookTransferResponseCategory = "PROGRAM_FUNDING" + BookTransferResponseCategoryProgramTransfer BookTransferResponseCategory = "PROGRAM_TRANSFER" BookTransferResponseCategoryTransfer BookTransferResponseCategory = "TRANSFER" ) func (r BookTransferResponseCategory) IsKnown() bool { switch r { - case BookTransferResponseCategoryAdjustment, BookTransferResponseCategoryBalanceOrFunding, BookTransferResponseCategoryDerecognition, BookTransferResponseCategoryDispute, BookTransferResponseCategoryFee, BookTransferResponseCategoryInternal, BookTransferResponseCategoryReward, BookTransferResponseCategoryProgramFunding, BookTransferResponseCategoryTransfer: + case BookTransferResponseCategoryAdjustment, BookTransferResponseCategoryBalanceOrFunding, BookTransferResponseCategoryDerecognition, BookTransferResponseCategoryDispute, BookTransferResponseCategoryFee, BookTransferResponseCategoryInternal, BookTransferResponseCategoryReward, BookTransferResponseCategoryProgramFunding, BookTransferResponseCategoryProgramTransfer, BookTransferResponseCategoryTransfer: return true } return false @@ -307,6 +308,7 @@ const ( BookTransferResponseEventsTypeInterest BookTransferResponseEventsType = "INTEREST" BookTransferResponseEventsTypeLatePayment BookTransferResponseEventsType = "LATE_PAYMENT" BookTransferResponseEventsTypeBillPayment BookTransferResponseEventsType = "BILL_PAYMENT" + BookTransferResponseEventsTypePaymentFee BookTransferResponseEventsType = "PAYMENT_FEE" BookTransferResponseEventsTypeCashBack BookTransferResponseEventsType = "CASH_BACK" BookTransferResponseEventsTypeAccountToAccount BookTransferResponseEventsType = "ACCOUNT_TO_ACCOUNT" BookTransferResponseEventsTypeCardToCard BookTransferResponseEventsType = "CARD_TO_CARD" @@ -322,11 +324,13 @@ const ( BookTransferResponseEventsTypeService BookTransferResponseEventsType = "SERVICE" BookTransferResponseEventsTypeTransfer BookTransferResponseEventsType = "TRANSFER" BookTransferResponseEventsTypeCollection BookTransferResponseEventsType = "COLLECTION" + BookTransferResponseEventsTypeLithicProgramTransfer BookTransferResponseEventsType = "LITHIC_PROGRAM_TRANSFER" + BookTransferResponseEventsTypeBankProgramTransfer BookTransferResponseEventsType = "BANK_PROGRAM_TRANSFER" ) func (r BookTransferResponseEventsType) IsKnown() bool { switch r { - case BookTransferResponseEventsTypeAtmBalanceInquiry, BookTransferResponseEventsTypeAtmWithdrawal, BookTransferResponseEventsTypeAtmDecline, BookTransferResponseEventsTypeInternationalAtmWithdrawal, BookTransferResponseEventsTypeInactivity, BookTransferResponseEventsTypeStatement, BookTransferResponseEventsTypeMonthly, BookTransferResponseEventsTypeQuarterly, BookTransferResponseEventsTypeAnnual, BookTransferResponseEventsTypeCustomerService, BookTransferResponseEventsTypeAccountMaintenance, BookTransferResponseEventsTypeAccountActivation, BookTransferResponseEventsTypeAccountClosure, BookTransferResponseEventsTypeCardReplacement, BookTransferResponseEventsTypeCardDelivery, BookTransferResponseEventsTypeCardCreate, BookTransferResponseEventsTypeCurrencyConversion, BookTransferResponseEventsTypeInterest, BookTransferResponseEventsTypeLatePayment, BookTransferResponseEventsTypeBillPayment, BookTransferResponseEventsTypeCashBack, BookTransferResponseEventsTypeAccountToAccount, BookTransferResponseEventsTypeCardToCard, BookTransferResponseEventsTypeDisburse, BookTransferResponseEventsTypeBillingError, BookTransferResponseEventsTypeLossWriteOff, BookTransferResponseEventsTypeExpiredCard, BookTransferResponseEventsTypeEarlyDerecognition, BookTransferResponseEventsTypeEscheatment, BookTransferResponseEventsTypeInactivityFeeDown, BookTransferResponseEventsTypeProvisionalCredit, BookTransferResponseEventsTypeDisputeWon, BookTransferResponseEventsTypeService, BookTransferResponseEventsTypeTransfer, BookTransferResponseEventsTypeCollection: + case BookTransferResponseEventsTypeAtmBalanceInquiry, BookTransferResponseEventsTypeAtmWithdrawal, BookTransferResponseEventsTypeAtmDecline, BookTransferResponseEventsTypeInternationalAtmWithdrawal, BookTransferResponseEventsTypeInactivity, BookTransferResponseEventsTypeStatement, BookTransferResponseEventsTypeMonthly, BookTransferResponseEventsTypeQuarterly, BookTransferResponseEventsTypeAnnual, BookTransferResponseEventsTypeCustomerService, BookTransferResponseEventsTypeAccountMaintenance, BookTransferResponseEventsTypeAccountActivation, BookTransferResponseEventsTypeAccountClosure, BookTransferResponseEventsTypeCardReplacement, BookTransferResponseEventsTypeCardDelivery, BookTransferResponseEventsTypeCardCreate, BookTransferResponseEventsTypeCurrencyConversion, BookTransferResponseEventsTypeInterest, BookTransferResponseEventsTypeLatePayment, BookTransferResponseEventsTypeBillPayment, BookTransferResponseEventsTypePaymentFee, BookTransferResponseEventsTypeCashBack, BookTransferResponseEventsTypeAccountToAccount, BookTransferResponseEventsTypeCardToCard, BookTransferResponseEventsTypeDisburse, BookTransferResponseEventsTypeBillingError, BookTransferResponseEventsTypeLossWriteOff, BookTransferResponseEventsTypeExpiredCard, BookTransferResponseEventsTypeEarlyDerecognition, BookTransferResponseEventsTypeEscheatment, BookTransferResponseEventsTypeInactivityFeeDown, BookTransferResponseEventsTypeProvisionalCredit, BookTransferResponseEventsTypeDisputeWon, BookTransferResponseEventsTypeService, BookTransferResponseEventsTypeTransfer, BookTransferResponseEventsTypeCollection, BookTransferResponseEventsTypeLithicProgramTransfer, BookTransferResponseEventsTypeBankProgramTransfer: return true } return false @@ -451,12 +455,13 @@ const ( BookTransferNewParamsCategoryInternal BookTransferNewParamsCategory = "INTERNAL" BookTransferNewParamsCategoryReward BookTransferNewParamsCategory = "REWARD" BookTransferNewParamsCategoryProgramFunding BookTransferNewParamsCategory = "PROGRAM_FUNDING" + BookTransferNewParamsCategoryProgramTransfer BookTransferNewParamsCategory = "PROGRAM_TRANSFER" BookTransferNewParamsCategoryTransfer BookTransferNewParamsCategory = "TRANSFER" ) func (r BookTransferNewParamsCategory) IsKnown() bool { switch r { - case BookTransferNewParamsCategoryAdjustment, BookTransferNewParamsCategoryBalanceOrFunding, BookTransferNewParamsCategoryDerecognition, BookTransferNewParamsCategoryDispute, BookTransferNewParamsCategoryFee, BookTransferNewParamsCategoryInternal, BookTransferNewParamsCategoryReward, BookTransferNewParamsCategoryProgramFunding, BookTransferNewParamsCategoryTransfer: + case BookTransferNewParamsCategoryAdjustment, BookTransferNewParamsCategoryBalanceOrFunding, BookTransferNewParamsCategoryDerecognition, BookTransferNewParamsCategoryDispute, BookTransferNewParamsCategoryFee, BookTransferNewParamsCategoryInternal, BookTransferNewParamsCategoryReward, BookTransferNewParamsCategoryProgramFunding, BookTransferNewParamsCategoryProgramTransfer, BookTransferNewParamsCategoryTransfer: return true } return false @@ -486,6 +491,7 @@ const ( BookTransferNewParamsTypeInterest BookTransferNewParamsType = "INTEREST" BookTransferNewParamsTypeLatePayment BookTransferNewParamsType = "LATE_PAYMENT" BookTransferNewParamsTypeBillPayment BookTransferNewParamsType = "BILL_PAYMENT" + BookTransferNewParamsTypePaymentFee BookTransferNewParamsType = "PAYMENT_FEE" BookTransferNewParamsTypeCashBack BookTransferNewParamsType = "CASH_BACK" BookTransferNewParamsTypeAccountToAccount BookTransferNewParamsType = "ACCOUNT_TO_ACCOUNT" BookTransferNewParamsTypeCardToCard BookTransferNewParamsType = "CARD_TO_CARD" @@ -501,11 +507,13 @@ const ( BookTransferNewParamsTypeService BookTransferNewParamsType = "SERVICE" BookTransferNewParamsTypeTransfer BookTransferNewParamsType = "TRANSFER" BookTransferNewParamsTypeCollection BookTransferNewParamsType = "COLLECTION" + BookTransferNewParamsTypeLithicProgramTransfer BookTransferNewParamsType = "LITHIC_PROGRAM_TRANSFER" + BookTransferNewParamsTypeBankProgramTransfer BookTransferNewParamsType = "BANK_PROGRAM_TRANSFER" ) func (r BookTransferNewParamsType) IsKnown() bool { switch r { - case BookTransferNewParamsTypeAtmBalanceInquiry, BookTransferNewParamsTypeAtmWithdrawal, BookTransferNewParamsTypeAtmDecline, BookTransferNewParamsTypeInternationalAtmWithdrawal, BookTransferNewParamsTypeInactivity, BookTransferNewParamsTypeStatement, BookTransferNewParamsTypeMonthly, BookTransferNewParamsTypeQuarterly, BookTransferNewParamsTypeAnnual, BookTransferNewParamsTypeCustomerService, BookTransferNewParamsTypeAccountMaintenance, BookTransferNewParamsTypeAccountActivation, BookTransferNewParamsTypeAccountClosure, BookTransferNewParamsTypeCardReplacement, BookTransferNewParamsTypeCardDelivery, BookTransferNewParamsTypeCardCreate, BookTransferNewParamsTypeCurrencyConversion, BookTransferNewParamsTypeInterest, BookTransferNewParamsTypeLatePayment, BookTransferNewParamsTypeBillPayment, BookTransferNewParamsTypeCashBack, BookTransferNewParamsTypeAccountToAccount, BookTransferNewParamsTypeCardToCard, BookTransferNewParamsTypeDisburse, BookTransferNewParamsTypeBillingError, BookTransferNewParamsTypeLossWriteOff, BookTransferNewParamsTypeExpiredCard, BookTransferNewParamsTypeEarlyDerecognition, BookTransferNewParamsTypeEscheatment, BookTransferNewParamsTypeInactivityFeeDown, BookTransferNewParamsTypeProvisionalCredit, BookTransferNewParamsTypeDisputeWon, BookTransferNewParamsTypeService, BookTransferNewParamsTypeTransfer, BookTransferNewParamsTypeCollection: + case BookTransferNewParamsTypeAtmBalanceInquiry, BookTransferNewParamsTypeAtmWithdrawal, BookTransferNewParamsTypeAtmDecline, BookTransferNewParamsTypeInternationalAtmWithdrawal, BookTransferNewParamsTypeInactivity, BookTransferNewParamsTypeStatement, BookTransferNewParamsTypeMonthly, BookTransferNewParamsTypeQuarterly, BookTransferNewParamsTypeAnnual, BookTransferNewParamsTypeCustomerService, BookTransferNewParamsTypeAccountMaintenance, BookTransferNewParamsTypeAccountActivation, BookTransferNewParamsTypeAccountClosure, BookTransferNewParamsTypeCardReplacement, BookTransferNewParamsTypeCardDelivery, BookTransferNewParamsTypeCardCreate, BookTransferNewParamsTypeCurrencyConversion, BookTransferNewParamsTypeInterest, BookTransferNewParamsTypeLatePayment, BookTransferNewParamsTypeBillPayment, BookTransferNewParamsTypePaymentFee, BookTransferNewParamsTypeCashBack, BookTransferNewParamsTypeAccountToAccount, BookTransferNewParamsTypeCardToCard, BookTransferNewParamsTypeDisburse, BookTransferNewParamsTypeBillingError, BookTransferNewParamsTypeLossWriteOff, BookTransferNewParamsTypeExpiredCard, BookTransferNewParamsTypeEarlyDerecognition, BookTransferNewParamsTypeEscheatment, BookTransferNewParamsTypeInactivityFeeDown, BookTransferNewParamsTypeProvisionalCredit, BookTransferNewParamsTypeDisputeWon, BookTransferNewParamsTypeService, BookTransferNewParamsTypeTransfer, BookTransferNewParamsTypeCollection, BookTransferNewParamsTypeLithicProgramTransfer, BookTransferNewParamsTypeBankProgramTransfer: return true } return false @@ -575,12 +583,13 @@ const ( BookTransferListParamsCategoryInternal BookTransferListParamsCategory = "INTERNAL" BookTransferListParamsCategoryReward BookTransferListParamsCategory = "REWARD" BookTransferListParamsCategoryProgramFunding BookTransferListParamsCategory = "PROGRAM_FUNDING" + BookTransferListParamsCategoryProgramTransfer BookTransferListParamsCategory = "PROGRAM_TRANSFER" BookTransferListParamsCategoryTransfer BookTransferListParamsCategory = "TRANSFER" ) func (r BookTransferListParamsCategory) IsKnown() bool { switch r { - case BookTransferListParamsCategoryAdjustment, BookTransferListParamsCategoryBalanceOrFunding, BookTransferListParamsCategoryDerecognition, BookTransferListParamsCategoryDispute, BookTransferListParamsCategoryFee, BookTransferListParamsCategoryInternal, BookTransferListParamsCategoryReward, BookTransferListParamsCategoryProgramFunding, BookTransferListParamsCategoryTransfer: + case BookTransferListParamsCategoryAdjustment, BookTransferListParamsCategoryBalanceOrFunding, BookTransferListParamsCategoryDerecognition, BookTransferListParamsCategoryDispute, BookTransferListParamsCategoryFee, BookTransferListParamsCategoryInternal, BookTransferListParamsCategoryReward, BookTransferListParamsCategoryProgramFunding, BookTransferListParamsCategoryProgramTransfer, BookTransferListParamsCategoryTransfer: return true } return false diff --git a/card.go b/card.go index a2a26f24..051e36cd 100644 --- a/card.go +++ b/card.go @@ -132,6 +132,9 @@ func (r *CardService) ConvertPhysical(ctx context.Context, cardToken string, bod return res, err } +// **Deprecated.** Use the modern embedded card flow instead: create a session with +// `POST /v1/cards/{card_token}/embed` and render it via `GET /v1/embed`. +// // Handling full card PANs and CVV codes requires that you comply with the Payment // Card Industry Data Security Standards (PCI DSS). Some clients choose to reduce // their compliance obligations by leveraging our embedded card UI solution @@ -161,6 +164,8 @@ func (r *CardService) ConvertPhysical(ctx context.Context, cardToken string, bod // the whole iframe) on the server or make an ajax call from your front end code, // but **do not ever embed your API key into front end code, as doing so introduces // a serious security vulnerability**. +// +// Deprecated: deprecated func (r *CardService) Embed(ctx context.Context, query CardEmbedParams, opts ...option.RequestOption) (res *string, err error) { opts = slices.Concat(r.Options, opts) opts = append([]option.RequestOption{option.WithHeader("Accept", "text/html")}, opts...) diff --git a/cardauthorization.go b/cardauthorization.go index ca871ad1..127bc572 100644 --- a/cardauthorization.go +++ b/cardauthorization.go @@ -38,7 +38,7 @@ func NewCardAuthorizationService(opts ...option.RequestOption) (r *CardAuthoriza // Card program's response to Authorization Challenge. Programs that have // Authorization Challenges configured as Out of Band receive a -// [card_authorization.challenge](https://docs.lithic.com/reference/post_card-authorization-challenge) +// [card_authorization.challenge](https://docs.lithic.com/reference/cardauthorizationchallengewebhook) // webhook when an authorization attempt triggers a challenge. The card program // should respond using this endpoint after the cardholder completes the challenge. func (r *CardAuthorizationService) ChallengeResponse(ctx context.Context, eventToken string, body CardAuthorizationChallengeResponseParams, opts ...option.RequestOption) (err error) { diff --git a/event.go b/event.go index 65fd64b3..d287b990 100644 --- a/event.go +++ b/event.go @@ -115,7 +115,7 @@ type Event struct { // The type of event that occurred. Possible values: // // - account_holder_document.updated: Occurs when an account holder's document - // upload status has been updated + // upload status has been updated. // - account_holder.created: Occurs when a new account_holder is created. // - account_holder.updated: Occurs when an account_holder is updated. // - account_holder.verification: Occurs when an asynchronous account_holder's @@ -179,10 +179,25 @@ type Event struct { // This event will be deprecated in the future. We recommend using // `tokenization.updated` instead. // - // - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. + // - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a + // dispute filed through the Chargebacks API (`/v1/disputes`). + // + // This event is not emitted for Managed Disputes. + // // - dispute_transaction.created: Occurs when a new dispute transaction is created - // - dispute_transaction.updated: Occurs when a dispute transaction is updated - // - dispute.updated: Occurs when a dispute is updated. + // for a Managed Disputes case. + // - dispute_transaction.updated: Occurs when a dispute transaction for a Managed + // Disputes case is updated. + // - dispute.updated: Occurs when a dispute filed through the Chargebacks API + // (`/v1/disputes`) is created or updated. + // + // This event is not emitted for Managed Disputes. Use + // `dispute_transaction.created` and `dispute_transaction.updated` instead. + // + // - embed.session_generated: Occurs when a card embed session is successfully + // generated. + // - embed.viewed: Occurs when a card detail is successfully revealed through an + // embed. // - external_bank_account.created: Occurs when an external bank account is // created. // - external_bank_account.updated: Occurs when an external bank account is @@ -204,12 +219,12 @@ type Event struct { // - payment_transaction.updated: Occurs when a payment transaction is updated. // - settlement_report.updated: Occurs when a settlement report is created or // updated. - // - statements.created: Occurs when a statement has been created + // - statements.created: Occurs when a statement has been created. // - three_ds_authentication.challenge: The `three_ds_authentication.challenge` // event. Upon receiving this request, the Card Program should issue its own // challenge to the cardholder. After a cardholder challenge is successfully // completed, the Card Program needs to respond back to Lithic by call to - // [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). + // [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). // Then the cardholder must navigate back to the merchant checkout flow to // complete the transaction. Some merchants will include an `app_requestor_url` // for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -251,7 +266,7 @@ func (r eventJSON) RawJSON() string { // The type of event that occurred. Possible values: // // - account_holder_document.updated: Occurs when an account holder's document -// upload status has been updated +// upload status has been updated. // - account_holder.created: Occurs when a new account_holder is created. // - account_holder.updated: Occurs when an account_holder is updated. // - account_holder.verification: Occurs when an asynchronous account_holder's @@ -315,10 +330,25 @@ func (r eventJSON) RawJSON() string { // This event will be deprecated in the future. We recommend using // `tokenization.updated` instead. // -// - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. +// - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a +// dispute filed through the Chargebacks API (`/v1/disputes`). +// +// This event is not emitted for Managed Disputes. +// // - dispute_transaction.created: Occurs when a new dispute transaction is created -// - dispute_transaction.updated: Occurs when a dispute transaction is updated -// - dispute.updated: Occurs when a dispute is updated. +// for a Managed Disputes case. +// - dispute_transaction.updated: Occurs when a dispute transaction for a Managed +// Disputes case is updated. +// - dispute.updated: Occurs when a dispute filed through the Chargebacks API +// (`/v1/disputes`) is created or updated. +// +// This event is not emitted for Managed Disputes. Use +// `dispute_transaction.created` and `dispute_transaction.updated` instead. +// +// - embed.session_generated: Occurs when a card embed session is successfully +// generated. +// - embed.viewed: Occurs when a card detail is successfully revealed through an +// embed. // - external_bank_account.created: Occurs when an external bank account is // created. // - external_bank_account.updated: Occurs when an external bank account is @@ -340,12 +370,12 @@ func (r eventJSON) RawJSON() string { // - payment_transaction.updated: Occurs when a payment transaction is updated. // - settlement_report.updated: Occurs when a settlement report is created or // updated. -// - statements.created: Occurs when a statement has been created +// - statements.created: Occurs when a statement has been created. // - three_ds_authentication.challenge: The `three_ds_authentication.challenge` // event. Upon receiving this request, the Card Program should issue its own // challenge to the cardholder. After a cardholder challenge is successfully // completed, the Card Program needs to respond back to Lithic by call to -// [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). +// [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). // Then the cardholder must navigate back to the merchant checkout flow to // complete the transaction. Some merchants will include an `app_requestor_url` // for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -396,6 +426,8 @@ const ( EventEventTypeDisputeTransactionCreated EventEventType = "dispute_transaction.created" EventEventTypeDisputeTransactionUpdated EventEventType = "dispute_transaction.updated" EventEventTypeDisputeUpdated EventEventType = "dispute.updated" + EventEventTypeEmbedSessionGenerated EventEventType = "embed.session_generated" + EventEventTypeEmbedViewed EventEventType = "embed.viewed" EventEventTypeExternalBankAccountCreated EventEventType = "external_bank_account.created" EventEventTypeExternalBankAccountUpdated EventEventType = "external_bank_account.updated" EventEventTypeExternalPaymentCreated EventEventType = "external_payment.created" @@ -427,7 +459,7 @@ const ( func (r EventEventType) IsKnown() bool { switch r { - case EventEventTypeAccountHolderDocumentUpdated, EventEventTypeAccountHolderCreated, EventEventTypeAccountHolderUpdated, EventEventTypeAccountHolderVerification, EventEventTypeAuthRulesBacktestReportCreated, EventEventTypeBalanceUpdated, EventEventTypeBookTransferTransactionCreated, EventEventTypeBookTransferTransactionUpdated, EventEventTypeCardAuthorizationChallenge, EventEventTypeCardAuthorizationChallengeResponse, EventEventTypeCardTransactionEnhancedDataCreated, EventEventTypeCardTransactionEnhancedDataUpdated, EventEventTypeCardTransactionUpdated, EventEventTypeCardConverted, EventEventTypeCardCreated, EventEventTypeCardReissued, EventEventTypeCardRenewed, EventEventTypeCardShipped, EventEventTypeCardUpdated, EventEventTypeClaimDocumentAccepted, EventEventTypeClaimDocumentRejected, EventEventTypeClaimDocumentUploaded, EventEventTypeClaimCreated, EventEventTypeClaimUpdated, EventEventTypeDigitalWalletTokenizationResult, EventEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCode, EventEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCodeSent, EventEventTypeDigitalWalletTokenizationUpdated, EventEventTypeDisputeEvidenceUploadFailed, EventEventTypeDisputeTransactionCreated, EventEventTypeDisputeTransactionUpdated, EventEventTypeDisputeUpdated, EventEventTypeExternalBankAccountCreated, EventEventTypeExternalBankAccountUpdated, EventEventTypeExternalPaymentCreated, EventEventTypeExternalPaymentUpdated, EventEventTypeFinancialAccountCreated, EventEventTypeFinancialAccountUpdated, EventEventTypeFundingEventCreated, EventEventTypeInternalTransactionCreated, EventEventTypeInternalTransactionUpdated, EventEventTypeLoanTapeCreated, EventEventTypeLoanTapeUpdated, EventEventTypeManagementOperationCreated, EventEventTypeManagementOperationUpdated, EventEventTypeNetworkTotalCreated, EventEventTypeNetworkTotalUpdated, EventEventTypePaymentTransactionCreated, EventEventTypePaymentTransactionUpdated, EventEventTypeSettlementReportUpdated, EventEventTypeStatementsCreated, EventEventTypeThreeDSAuthenticationChallenge, EventEventTypeThreeDSAuthenticationCreated, EventEventTypeThreeDSAuthenticationUpdated, EventEventTypeTokenizationApprovalRequest, EventEventTypeTokenizationResult, EventEventTypeTokenizationTwoFactorAuthenticationCode, EventEventTypeTokenizationTwoFactorAuthenticationCodeSent, EventEventTypeTokenizationUpdated: + case EventEventTypeAccountHolderDocumentUpdated, EventEventTypeAccountHolderCreated, EventEventTypeAccountHolderUpdated, EventEventTypeAccountHolderVerification, EventEventTypeAuthRulesBacktestReportCreated, EventEventTypeBalanceUpdated, EventEventTypeBookTransferTransactionCreated, EventEventTypeBookTransferTransactionUpdated, EventEventTypeCardAuthorizationChallenge, EventEventTypeCardAuthorizationChallengeResponse, EventEventTypeCardTransactionEnhancedDataCreated, EventEventTypeCardTransactionEnhancedDataUpdated, EventEventTypeCardTransactionUpdated, EventEventTypeCardConverted, EventEventTypeCardCreated, EventEventTypeCardReissued, EventEventTypeCardRenewed, EventEventTypeCardShipped, EventEventTypeCardUpdated, EventEventTypeClaimDocumentAccepted, EventEventTypeClaimDocumentRejected, EventEventTypeClaimDocumentUploaded, EventEventTypeClaimCreated, EventEventTypeClaimUpdated, EventEventTypeDigitalWalletTokenizationResult, EventEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCode, EventEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCodeSent, EventEventTypeDigitalWalletTokenizationUpdated, EventEventTypeDisputeEvidenceUploadFailed, EventEventTypeDisputeTransactionCreated, EventEventTypeDisputeTransactionUpdated, EventEventTypeDisputeUpdated, EventEventTypeEmbedSessionGenerated, EventEventTypeEmbedViewed, EventEventTypeExternalBankAccountCreated, EventEventTypeExternalBankAccountUpdated, EventEventTypeExternalPaymentCreated, EventEventTypeExternalPaymentUpdated, EventEventTypeFinancialAccountCreated, EventEventTypeFinancialAccountUpdated, EventEventTypeFundingEventCreated, EventEventTypeInternalTransactionCreated, EventEventTypeInternalTransactionUpdated, EventEventTypeLoanTapeCreated, EventEventTypeLoanTapeUpdated, EventEventTypeManagementOperationCreated, EventEventTypeManagementOperationUpdated, EventEventTypeNetworkTotalCreated, EventEventTypeNetworkTotalUpdated, EventEventTypePaymentTransactionCreated, EventEventTypePaymentTransactionUpdated, EventEventTypeSettlementReportUpdated, EventEventTypeStatementsCreated, EventEventTypeThreeDSAuthenticationChallenge, EventEventTypeThreeDSAuthenticationCreated, EventEventTypeThreeDSAuthenticationUpdated, EventEventTypeTokenizationApprovalRequest, EventEventTypeTokenizationResult, EventEventTypeTokenizationTwoFactorAuthenticationCode, EventEventTypeTokenizationTwoFactorAuthenticationCodeSent, EventEventTypeTokenizationUpdated: return true } return false @@ -469,7 +501,7 @@ func (r eventSubscriptionJSON) RawJSON() string { // The type of event that occurred. Possible values: // // - account_holder_document.updated: Occurs when an account holder's document -// upload status has been updated +// upload status has been updated. // - account_holder.created: Occurs when a new account_holder is created. // - account_holder.updated: Occurs when an account_holder is updated. // - account_holder.verification: Occurs when an asynchronous account_holder's @@ -533,10 +565,25 @@ func (r eventSubscriptionJSON) RawJSON() string { // This event will be deprecated in the future. We recommend using // `tokenization.updated` instead. // -// - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. +// - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a +// dispute filed through the Chargebacks API (`/v1/disputes`). +// +// This event is not emitted for Managed Disputes. +// // - dispute_transaction.created: Occurs when a new dispute transaction is created -// - dispute_transaction.updated: Occurs when a dispute transaction is updated -// - dispute.updated: Occurs when a dispute is updated. +// for a Managed Disputes case. +// - dispute_transaction.updated: Occurs when a dispute transaction for a Managed +// Disputes case is updated. +// - dispute.updated: Occurs when a dispute filed through the Chargebacks API +// (`/v1/disputes`) is created or updated. +// +// This event is not emitted for Managed Disputes. Use +// `dispute_transaction.created` and `dispute_transaction.updated` instead. +// +// - embed.session_generated: Occurs when a card embed session is successfully +// generated. +// - embed.viewed: Occurs when a card detail is successfully revealed through an +// embed. // - external_bank_account.created: Occurs when an external bank account is // created. // - external_bank_account.updated: Occurs when an external bank account is @@ -558,12 +605,12 @@ func (r eventSubscriptionJSON) RawJSON() string { // - payment_transaction.updated: Occurs when a payment transaction is updated. // - settlement_report.updated: Occurs when a settlement report is created or // updated. -// - statements.created: Occurs when a statement has been created +// - statements.created: Occurs when a statement has been created. // - three_ds_authentication.challenge: The `three_ds_authentication.challenge` // event. Upon receiving this request, the Card Program should issue its own // challenge to the cardholder. After a cardholder challenge is successfully // completed, the Card Program needs to respond back to Lithic by call to -// [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). +// [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). // Then the cardholder must navigate back to the merchant checkout flow to // complete the transaction. Some merchants will include an `app_requestor_url` // for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -614,6 +661,8 @@ const ( EventSubscriptionEventTypeDisputeTransactionCreated EventSubscriptionEventType = "dispute_transaction.created" EventSubscriptionEventTypeDisputeTransactionUpdated EventSubscriptionEventType = "dispute_transaction.updated" EventSubscriptionEventTypeDisputeUpdated EventSubscriptionEventType = "dispute.updated" + EventSubscriptionEventTypeEmbedSessionGenerated EventSubscriptionEventType = "embed.session_generated" + EventSubscriptionEventTypeEmbedViewed EventSubscriptionEventType = "embed.viewed" EventSubscriptionEventTypeExternalBankAccountCreated EventSubscriptionEventType = "external_bank_account.created" EventSubscriptionEventTypeExternalBankAccountUpdated EventSubscriptionEventType = "external_bank_account.updated" EventSubscriptionEventTypeExternalPaymentCreated EventSubscriptionEventType = "external_payment.created" @@ -645,7 +694,7 @@ const ( func (r EventSubscriptionEventType) IsKnown() bool { switch r { - case EventSubscriptionEventTypeAccountHolderDocumentUpdated, EventSubscriptionEventTypeAccountHolderCreated, EventSubscriptionEventTypeAccountHolderUpdated, EventSubscriptionEventTypeAccountHolderVerification, EventSubscriptionEventTypeAuthRulesBacktestReportCreated, EventSubscriptionEventTypeBalanceUpdated, EventSubscriptionEventTypeBookTransferTransactionCreated, EventSubscriptionEventTypeBookTransferTransactionUpdated, EventSubscriptionEventTypeCardAuthorizationChallenge, EventSubscriptionEventTypeCardAuthorizationChallengeResponse, EventSubscriptionEventTypeCardTransactionEnhancedDataCreated, EventSubscriptionEventTypeCardTransactionEnhancedDataUpdated, EventSubscriptionEventTypeCardTransactionUpdated, EventSubscriptionEventTypeCardConverted, EventSubscriptionEventTypeCardCreated, EventSubscriptionEventTypeCardReissued, EventSubscriptionEventTypeCardRenewed, EventSubscriptionEventTypeCardShipped, EventSubscriptionEventTypeCardUpdated, EventSubscriptionEventTypeClaimDocumentAccepted, EventSubscriptionEventTypeClaimDocumentRejected, EventSubscriptionEventTypeClaimDocumentUploaded, EventSubscriptionEventTypeClaimCreated, EventSubscriptionEventTypeClaimUpdated, EventSubscriptionEventTypeDigitalWalletTokenizationResult, EventSubscriptionEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCode, EventSubscriptionEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCodeSent, EventSubscriptionEventTypeDigitalWalletTokenizationUpdated, EventSubscriptionEventTypeDisputeEvidenceUploadFailed, EventSubscriptionEventTypeDisputeTransactionCreated, EventSubscriptionEventTypeDisputeTransactionUpdated, EventSubscriptionEventTypeDisputeUpdated, EventSubscriptionEventTypeExternalBankAccountCreated, EventSubscriptionEventTypeExternalBankAccountUpdated, EventSubscriptionEventTypeExternalPaymentCreated, EventSubscriptionEventTypeExternalPaymentUpdated, EventSubscriptionEventTypeFinancialAccountCreated, EventSubscriptionEventTypeFinancialAccountUpdated, EventSubscriptionEventTypeFundingEventCreated, EventSubscriptionEventTypeInternalTransactionCreated, EventSubscriptionEventTypeInternalTransactionUpdated, EventSubscriptionEventTypeLoanTapeCreated, EventSubscriptionEventTypeLoanTapeUpdated, EventSubscriptionEventTypeManagementOperationCreated, EventSubscriptionEventTypeManagementOperationUpdated, EventSubscriptionEventTypeNetworkTotalCreated, EventSubscriptionEventTypeNetworkTotalUpdated, EventSubscriptionEventTypePaymentTransactionCreated, EventSubscriptionEventTypePaymentTransactionUpdated, EventSubscriptionEventTypeSettlementReportUpdated, EventSubscriptionEventTypeStatementsCreated, EventSubscriptionEventTypeThreeDSAuthenticationChallenge, EventSubscriptionEventTypeThreeDSAuthenticationCreated, EventSubscriptionEventTypeThreeDSAuthenticationUpdated, EventSubscriptionEventTypeTokenizationApprovalRequest, EventSubscriptionEventTypeTokenizationResult, EventSubscriptionEventTypeTokenizationTwoFactorAuthenticationCode, EventSubscriptionEventTypeTokenizationTwoFactorAuthenticationCodeSent, EventSubscriptionEventTypeTokenizationUpdated: + case EventSubscriptionEventTypeAccountHolderDocumentUpdated, EventSubscriptionEventTypeAccountHolderCreated, EventSubscriptionEventTypeAccountHolderUpdated, EventSubscriptionEventTypeAccountHolderVerification, EventSubscriptionEventTypeAuthRulesBacktestReportCreated, EventSubscriptionEventTypeBalanceUpdated, EventSubscriptionEventTypeBookTransferTransactionCreated, EventSubscriptionEventTypeBookTransferTransactionUpdated, EventSubscriptionEventTypeCardAuthorizationChallenge, EventSubscriptionEventTypeCardAuthorizationChallengeResponse, EventSubscriptionEventTypeCardTransactionEnhancedDataCreated, EventSubscriptionEventTypeCardTransactionEnhancedDataUpdated, EventSubscriptionEventTypeCardTransactionUpdated, EventSubscriptionEventTypeCardConverted, EventSubscriptionEventTypeCardCreated, EventSubscriptionEventTypeCardReissued, EventSubscriptionEventTypeCardRenewed, EventSubscriptionEventTypeCardShipped, EventSubscriptionEventTypeCardUpdated, EventSubscriptionEventTypeClaimDocumentAccepted, EventSubscriptionEventTypeClaimDocumentRejected, EventSubscriptionEventTypeClaimDocumentUploaded, EventSubscriptionEventTypeClaimCreated, EventSubscriptionEventTypeClaimUpdated, EventSubscriptionEventTypeDigitalWalletTokenizationResult, EventSubscriptionEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCode, EventSubscriptionEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCodeSent, EventSubscriptionEventTypeDigitalWalletTokenizationUpdated, EventSubscriptionEventTypeDisputeEvidenceUploadFailed, EventSubscriptionEventTypeDisputeTransactionCreated, EventSubscriptionEventTypeDisputeTransactionUpdated, EventSubscriptionEventTypeDisputeUpdated, EventSubscriptionEventTypeEmbedSessionGenerated, EventSubscriptionEventTypeEmbedViewed, EventSubscriptionEventTypeExternalBankAccountCreated, EventSubscriptionEventTypeExternalBankAccountUpdated, EventSubscriptionEventTypeExternalPaymentCreated, EventSubscriptionEventTypeExternalPaymentUpdated, EventSubscriptionEventTypeFinancialAccountCreated, EventSubscriptionEventTypeFinancialAccountUpdated, EventSubscriptionEventTypeFundingEventCreated, EventSubscriptionEventTypeInternalTransactionCreated, EventSubscriptionEventTypeInternalTransactionUpdated, EventSubscriptionEventTypeLoanTapeCreated, EventSubscriptionEventTypeLoanTapeUpdated, EventSubscriptionEventTypeManagementOperationCreated, EventSubscriptionEventTypeManagementOperationUpdated, EventSubscriptionEventTypeNetworkTotalCreated, EventSubscriptionEventTypeNetworkTotalUpdated, EventSubscriptionEventTypePaymentTransactionCreated, EventSubscriptionEventTypePaymentTransactionUpdated, EventSubscriptionEventTypeSettlementReportUpdated, EventSubscriptionEventTypeStatementsCreated, EventSubscriptionEventTypeThreeDSAuthenticationChallenge, EventSubscriptionEventTypeThreeDSAuthenticationCreated, EventSubscriptionEventTypeThreeDSAuthenticationUpdated, EventSubscriptionEventTypeTokenizationApprovalRequest, EventSubscriptionEventTypeTokenizationResult, EventSubscriptionEventTypeTokenizationTwoFactorAuthenticationCode, EventSubscriptionEventTypeTokenizationTwoFactorAuthenticationCodeSent, EventSubscriptionEventTypeTokenizationUpdated: return true } return false @@ -745,7 +794,7 @@ func (r EventListParams) URLQuery() (v url.Values) { // The type of event that occurred. Possible values: // // - account_holder_document.updated: Occurs when an account holder's document -// upload status has been updated +// upload status has been updated. // - account_holder.created: Occurs when a new account_holder is created. // - account_holder.updated: Occurs when an account_holder is updated. // - account_holder.verification: Occurs when an asynchronous account_holder's @@ -809,10 +858,25 @@ func (r EventListParams) URLQuery() (v url.Values) { // This event will be deprecated in the future. We recommend using // `tokenization.updated` instead. // -// - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. +// - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a +// dispute filed through the Chargebacks API (`/v1/disputes`). +// +// This event is not emitted for Managed Disputes. +// // - dispute_transaction.created: Occurs when a new dispute transaction is created -// - dispute_transaction.updated: Occurs when a dispute transaction is updated -// - dispute.updated: Occurs when a dispute is updated. +// for a Managed Disputes case. +// - dispute_transaction.updated: Occurs when a dispute transaction for a Managed +// Disputes case is updated. +// - dispute.updated: Occurs when a dispute filed through the Chargebacks API +// (`/v1/disputes`) is created or updated. +// +// This event is not emitted for Managed Disputes. Use +// `dispute_transaction.created` and `dispute_transaction.updated` instead. +// +// - embed.session_generated: Occurs when a card embed session is successfully +// generated. +// - embed.viewed: Occurs when a card detail is successfully revealed through an +// embed. // - external_bank_account.created: Occurs when an external bank account is // created. // - external_bank_account.updated: Occurs when an external bank account is @@ -834,12 +898,12 @@ func (r EventListParams) URLQuery() (v url.Values) { // - payment_transaction.updated: Occurs when a payment transaction is updated. // - settlement_report.updated: Occurs when a settlement report is created or // updated. -// - statements.created: Occurs when a statement has been created +// - statements.created: Occurs when a statement has been created. // - three_ds_authentication.challenge: The `three_ds_authentication.challenge` // event. Upon receiving this request, the Card Program should issue its own // challenge to the cardholder. After a cardholder challenge is successfully // completed, the Card Program needs to respond back to Lithic by call to -// [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). +// [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). // Then the cardholder must navigate back to the merchant checkout flow to // complete the transaction. Some merchants will include an `app_requestor_url` // for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -890,6 +954,8 @@ const ( EventListParamsEventTypeDisputeTransactionCreated EventListParamsEventType = "dispute_transaction.created" EventListParamsEventTypeDisputeTransactionUpdated EventListParamsEventType = "dispute_transaction.updated" EventListParamsEventTypeDisputeUpdated EventListParamsEventType = "dispute.updated" + EventListParamsEventTypeEmbedSessionGenerated EventListParamsEventType = "embed.session_generated" + EventListParamsEventTypeEmbedViewed EventListParamsEventType = "embed.viewed" EventListParamsEventTypeExternalBankAccountCreated EventListParamsEventType = "external_bank_account.created" EventListParamsEventTypeExternalBankAccountUpdated EventListParamsEventType = "external_bank_account.updated" EventListParamsEventTypeExternalPaymentCreated EventListParamsEventType = "external_payment.created" @@ -921,7 +987,7 @@ const ( func (r EventListParamsEventType) IsKnown() bool { switch r { - case EventListParamsEventTypeAccountHolderDocumentUpdated, EventListParamsEventTypeAccountHolderCreated, EventListParamsEventTypeAccountHolderUpdated, EventListParamsEventTypeAccountHolderVerification, EventListParamsEventTypeAuthRulesBacktestReportCreated, EventListParamsEventTypeBalanceUpdated, EventListParamsEventTypeBookTransferTransactionCreated, EventListParamsEventTypeBookTransferTransactionUpdated, EventListParamsEventTypeCardAuthorizationChallenge, EventListParamsEventTypeCardAuthorizationChallengeResponse, EventListParamsEventTypeCardTransactionEnhancedDataCreated, EventListParamsEventTypeCardTransactionEnhancedDataUpdated, EventListParamsEventTypeCardTransactionUpdated, EventListParamsEventTypeCardConverted, EventListParamsEventTypeCardCreated, EventListParamsEventTypeCardReissued, EventListParamsEventTypeCardRenewed, EventListParamsEventTypeCardShipped, EventListParamsEventTypeCardUpdated, EventListParamsEventTypeClaimDocumentAccepted, EventListParamsEventTypeClaimDocumentRejected, EventListParamsEventTypeClaimDocumentUploaded, EventListParamsEventTypeClaimCreated, EventListParamsEventTypeClaimUpdated, EventListParamsEventTypeDigitalWalletTokenizationResult, EventListParamsEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCode, EventListParamsEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCodeSent, EventListParamsEventTypeDigitalWalletTokenizationUpdated, EventListParamsEventTypeDisputeEvidenceUploadFailed, EventListParamsEventTypeDisputeTransactionCreated, EventListParamsEventTypeDisputeTransactionUpdated, EventListParamsEventTypeDisputeUpdated, EventListParamsEventTypeExternalBankAccountCreated, EventListParamsEventTypeExternalBankAccountUpdated, EventListParamsEventTypeExternalPaymentCreated, EventListParamsEventTypeExternalPaymentUpdated, EventListParamsEventTypeFinancialAccountCreated, EventListParamsEventTypeFinancialAccountUpdated, EventListParamsEventTypeFundingEventCreated, EventListParamsEventTypeInternalTransactionCreated, EventListParamsEventTypeInternalTransactionUpdated, EventListParamsEventTypeLoanTapeCreated, EventListParamsEventTypeLoanTapeUpdated, EventListParamsEventTypeManagementOperationCreated, EventListParamsEventTypeManagementOperationUpdated, EventListParamsEventTypeNetworkTotalCreated, EventListParamsEventTypeNetworkTotalUpdated, EventListParamsEventTypePaymentTransactionCreated, EventListParamsEventTypePaymentTransactionUpdated, EventListParamsEventTypeSettlementReportUpdated, EventListParamsEventTypeStatementsCreated, EventListParamsEventTypeThreeDSAuthenticationChallenge, EventListParamsEventTypeThreeDSAuthenticationCreated, EventListParamsEventTypeThreeDSAuthenticationUpdated, EventListParamsEventTypeTokenizationApprovalRequest, EventListParamsEventTypeTokenizationResult, EventListParamsEventTypeTokenizationTwoFactorAuthenticationCode, EventListParamsEventTypeTokenizationTwoFactorAuthenticationCodeSent, EventListParamsEventTypeTokenizationUpdated: + case EventListParamsEventTypeAccountHolderDocumentUpdated, EventListParamsEventTypeAccountHolderCreated, EventListParamsEventTypeAccountHolderUpdated, EventListParamsEventTypeAccountHolderVerification, EventListParamsEventTypeAuthRulesBacktestReportCreated, EventListParamsEventTypeBalanceUpdated, EventListParamsEventTypeBookTransferTransactionCreated, EventListParamsEventTypeBookTransferTransactionUpdated, EventListParamsEventTypeCardAuthorizationChallenge, EventListParamsEventTypeCardAuthorizationChallengeResponse, EventListParamsEventTypeCardTransactionEnhancedDataCreated, EventListParamsEventTypeCardTransactionEnhancedDataUpdated, EventListParamsEventTypeCardTransactionUpdated, EventListParamsEventTypeCardConverted, EventListParamsEventTypeCardCreated, EventListParamsEventTypeCardReissued, EventListParamsEventTypeCardRenewed, EventListParamsEventTypeCardShipped, EventListParamsEventTypeCardUpdated, EventListParamsEventTypeClaimDocumentAccepted, EventListParamsEventTypeClaimDocumentRejected, EventListParamsEventTypeClaimDocumentUploaded, EventListParamsEventTypeClaimCreated, EventListParamsEventTypeClaimUpdated, EventListParamsEventTypeDigitalWalletTokenizationResult, EventListParamsEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCode, EventListParamsEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCodeSent, EventListParamsEventTypeDigitalWalletTokenizationUpdated, EventListParamsEventTypeDisputeEvidenceUploadFailed, EventListParamsEventTypeDisputeTransactionCreated, EventListParamsEventTypeDisputeTransactionUpdated, EventListParamsEventTypeDisputeUpdated, EventListParamsEventTypeEmbedSessionGenerated, EventListParamsEventTypeEmbedViewed, EventListParamsEventTypeExternalBankAccountCreated, EventListParamsEventTypeExternalBankAccountUpdated, EventListParamsEventTypeExternalPaymentCreated, EventListParamsEventTypeExternalPaymentUpdated, EventListParamsEventTypeFinancialAccountCreated, EventListParamsEventTypeFinancialAccountUpdated, EventListParamsEventTypeFundingEventCreated, EventListParamsEventTypeInternalTransactionCreated, EventListParamsEventTypeInternalTransactionUpdated, EventListParamsEventTypeLoanTapeCreated, EventListParamsEventTypeLoanTapeUpdated, EventListParamsEventTypeManagementOperationCreated, EventListParamsEventTypeManagementOperationUpdated, EventListParamsEventTypeNetworkTotalCreated, EventListParamsEventTypeNetworkTotalUpdated, EventListParamsEventTypePaymentTransactionCreated, EventListParamsEventTypePaymentTransactionUpdated, EventListParamsEventTypeSettlementReportUpdated, EventListParamsEventTypeStatementsCreated, EventListParamsEventTypeThreeDSAuthenticationChallenge, EventListParamsEventTypeThreeDSAuthenticationCreated, EventListParamsEventTypeThreeDSAuthenticationUpdated, EventListParamsEventTypeTokenizationApprovalRequest, EventListParamsEventTypeTokenizationResult, EventListParamsEventTypeTokenizationTwoFactorAuthenticationCode, EventListParamsEventTypeTokenizationTwoFactorAuthenticationCodeSent, EventListParamsEventTypeTokenizationUpdated: return true } return false diff --git a/eventsubscription.go b/eventsubscription.go index a8b4d2aa..972f8853 100644 --- a/eventsubscription.go +++ b/eventsubscription.go @@ -243,7 +243,7 @@ func (r EventSubscriptionNewParams) MarshalJSON() (data []byte, err error) { // The type of event that occurred. Possible values: // // - account_holder_document.updated: Occurs when an account holder's document -// upload status has been updated +// upload status has been updated. // - account_holder.created: Occurs when a new account_holder is created. // - account_holder.updated: Occurs when an account_holder is updated. // - account_holder.verification: Occurs when an asynchronous account_holder's @@ -307,10 +307,25 @@ func (r EventSubscriptionNewParams) MarshalJSON() (data []byte, err error) { // This event will be deprecated in the future. We recommend using // `tokenization.updated` instead. // -// - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. +// - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a +// dispute filed through the Chargebacks API (`/v1/disputes`). +// +// This event is not emitted for Managed Disputes. +// // - dispute_transaction.created: Occurs when a new dispute transaction is created -// - dispute_transaction.updated: Occurs when a dispute transaction is updated -// - dispute.updated: Occurs when a dispute is updated. +// for a Managed Disputes case. +// - dispute_transaction.updated: Occurs when a dispute transaction for a Managed +// Disputes case is updated. +// - dispute.updated: Occurs when a dispute filed through the Chargebacks API +// (`/v1/disputes`) is created or updated. +// +// This event is not emitted for Managed Disputes. Use +// `dispute_transaction.created` and `dispute_transaction.updated` instead. +// +// - embed.session_generated: Occurs when a card embed session is successfully +// generated. +// - embed.viewed: Occurs when a card detail is successfully revealed through an +// embed. // - external_bank_account.created: Occurs when an external bank account is // created. // - external_bank_account.updated: Occurs when an external bank account is @@ -332,12 +347,12 @@ func (r EventSubscriptionNewParams) MarshalJSON() (data []byte, err error) { // - payment_transaction.updated: Occurs when a payment transaction is updated. // - settlement_report.updated: Occurs when a settlement report is created or // updated. -// - statements.created: Occurs when a statement has been created +// - statements.created: Occurs when a statement has been created. // - three_ds_authentication.challenge: The `three_ds_authentication.challenge` // event. Upon receiving this request, the Card Program should issue its own // challenge to the cardholder. After a cardholder challenge is successfully // completed, the Card Program needs to respond back to Lithic by call to -// [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). +// [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). // Then the cardholder must navigate back to the merchant checkout flow to // complete the transaction. Some merchants will include an `app_requestor_url` // for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -388,6 +403,8 @@ const ( EventSubscriptionNewParamsEventTypeDisputeTransactionCreated EventSubscriptionNewParamsEventType = "dispute_transaction.created" EventSubscriptionNewParamsEventTypeDisputeTransactionUpdated EventSubscriptionNewParamsEventType = "dispute_transaction.updated" EventSubscriptionNewParamsEventTypeDisputeUpdated EventSubscriptionNewParamsEventType = "dispute.updated" + EventSubscriptionNewParamsEventTypeEmbedSessionGenerated EventSubscriptionNewParamsEventType = "embed.session_generated" + EventSubscriptionNewParamsEventTypeEmbedViewed EventSubscriptionNewParamsEventType = "embed.viewed" EventSubscriptionNewParamsEventTypeExternalBankAccountCreated EventSubscriptionNewParamsEventType = "external_bank_account.created" EventSubscriptionNewParamsEventTypeExternalBankAccountUpdated EventSubscriptionNewParamsEventType = "external_bank_account.updated" EventSubscriptionNewParamsEventTypeExternalPaymentCreated EventSubscriptionNewParamsEventType = "external_payment.created" @@ -419,7 +436,7 @@ const ( func (r EventSubscriptionNewParamsEventType) IsKnown() bool { switch r { - case EventSubscriptionNewParamsEventTypeAccountHolderDocumentUpdated, EventSubscriptionNewParamsEventTypeAccountHolderCreated, EventSubscriptionNewParamsEventTypeAccountHolderUpdated, EventSubscriptionNewParamsEventTypeAccountHolderVerification, EventSubscriptionNewParamsEventTypeAuthRulesBacktestReportCreated, EventSubscriptionNewParamsEventTypeBalanceUpdated, EventSubscriptionNewParamsEventTypeBookTransferTransactionCreated, EventSubscriptionNewParamsEventTypeBookTransferTransactionUpdated, EventSubscriptionNewParamsEventTypeCardAuthorizationChallenge, EventSubscriptionNewParamsEventTypeCardAuthorizationChallengeResponse, EventSubscriptionNewParamsEventTypeCardTransactionEnhancedDataCreated, EventSubscriptionNewParamsEventTypeCardTransactionEnhancedDataUpdated, EventSubscriptionNewParamsEventTypeCardTransactionUpdated, EventSubscriptionNewParamsEventTypeCardConverted, EventSubscriptionNewParamsEventTypeCardCreated, EventSubscriptionNewParamsEventTypeCardReissued, EventSubscriptionNewParamsEventTypeCardRenewed, EventSubscriptionNewParamsEventTypeCardShipped, EventSubscriptionNewParamsEventTypeCardUpdated, EventSubscriptionNewParamsEventTypeClaimDocumentAccepted, EventSubscriptionNewParamsEventTypeClaimDocumentRejected, EventSubscriptionNewParamsEventTypeClaimDocumentUploaded, EventSubscriptionNewParamsEventTypeClaimCreated, EventSubscriptionNewParamsEventTypeClaimUpdated, EventSubscriptionNewParamsEventTypeDigitalWalletTokenizationResult, EventSubscriptionNewParamsEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCode, EventSubscriptionNewParamsEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCodeSent, EventSubscriptionNewParamsEventTypeDigitalWalletTokenizationUpdated, EventSubscriptionNewParamsEventTypeDisputeEvidenceUploadFailed, EventSubscriptionNewParamsEventTypeDisputeTransactionCreated, EventSubscriptionNewParamsEventTypeDisputeTransactionUpdated, EventSubscriptionNewParamsEventTypeDisputeUpdated, EventSubscriptionNewParamsEventTypeExternalBankAccountCreated, EventSubscriptionNewParamsEventTypeExternalBankAccountUpdated, EventSubscriptionNewParamsEventTypeExternalPaymentCreated, EventSubscriptionNewParamsEventTypeExternalPaymentUpdated, EventSubscriptionNewParamsEventTypeFinancialAccountCreated, EventSubscriptionNewParamsEventTypeFinancialAccountUpdated, EventSubscriptionNewParamsEventTypeFundingEventCreated, EventSubscriptionNewParamsEventTypeInternalTransactionCreated, EventSubscriptionNewParamsEventTypeInternalTransactionUpdated, EventSubscriptionNewParamsEventTypeLoanTapeCreated, EventSubscriptionNewParamsEventTypeLoanTapeUpdated, EventSubscriptionNewParamsEventTypeManagementOperationCreated, EventSubscriptionNewParamsEventTypeManagementOperationUpdated, EventSubscriptionNewParamsEventTypeNetworkTotalCreated, EventSubscriptionNewParamsEventTypeNetworkTotalUpdated, EventSubscriptionNewParamsEventTypePaymentTransactionCreated, EventSubscriptionNewParamsEventTypePaymentTransactionUpdated, EventSubscriptionNewParamsEventTypeSettlementReportUpdated, EventSubscriptionNewParamsEventTypeStatementsCreated, EventSubscriptionNewParamsEventTypeThreeDSAuthenticationChallenge, EventSubscriptionNewParamsEventTypeThreeDSAuthenticationCreated, EventSubscriptionNewParamsEventTypeThreeDSAuthenticationUpdated, EventSubscriptionNewParamsEventTypeTokenizationApprovalRequest, EventSubscriptionNewParamsEventTypeTokenizationResult, EventSubscriptionNewParamsEventTypeTokenizationTwoFactorAuthenticationCode, EventSubscriptionNewParamsEventTypeTokenizationTwoFactorAuthenticationCodeSent, EventSubscriptionNewParamsEventTypeTokenizationUpdated: + case EventSubscriptionNewParamsEventTypeAccountHolderDocumentUpdated, EventSubscriptionNewParamsEventTypeAccountHolderCreated, EventSubscriptionNewParamsEventTypeAccountHolderUpdated, EventSubscriptionNewParamsEventTypeAccountHolderVerification, EventSubscriptionNewParamsEventTypeAuthRulesBacktestReportCreated, EventSubscriptionNewParamsEventTypeBalanceUpdated, EventSubscriptionNewParamsEventTypeBookTransferTransactionCreated, EventSubscriptionNewParamsEventTypeBookTransferTransactionUpdated, EventSubscriptionNewParamsEventTypeCardAuthorizationChallenge, EventSubscriptionNewParamsEventTypeCardAuthorizationChallengeResponse, EventSubscriptionNewParamsEventTypeCardTransactionEnhancedDataCreated, EventSubscriptionNewParamsEventTypeCardTransactionEnhancedDataUpdated, EventSubscriptionNewParamsEventTypeCardTransactionUpdated, EventSubscriptionNewParamsEventTypeCardConverted, EventSubscriptionNewParamsEventTypeCardCreated, EventSubscriptionNewParamsEventTypeCardReissued, EventSubscriptionNewParamsEventTypeCardRenewed, EventSubscriptionNewParamsEventTypeCardShipped, EventSubscriptionNewParamsEventTypeCardUpdated, EventSubscriptionNewParamsEventTypeClaimDocumentAccepted, EventSubscriptionNewParamsEventTypeClaimDocumentRejected, EventSubscriptionNewParamsEventTypeClaimDocumentUploaded, EventSubscriptionNewParamsEventTypeClaimCreated, EventSubscriptionNewParamsEventTypeClaimUpdated, EventSubscriptionNewParamsEventTypeDigitalWalletTokenizationResult, EventSubscriptionNewParamsEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCode, EventSubscriptionNewParamsEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCodeSent, EventSubscriptionNewParamsEventTypeDigitalWalletTokenizationUpdated, EventSubscriptionNewParamsEventTypeDisputeEvidenceUploadFailed, EventSubscriptionNewParamsEventTypeDisputeTransactionCreated, EventSubscriptionNewParamsEventTypeDisputeTransactionUpdated, EventSubscriptionNewParamsEventTypeDisputeUpdated, EventSubscriptionNewParamsEventTypeEmbedSessionGenerated, EventSubscriptionNewParamsEventTypeEmbedViewed, EventSubscriptionNewParamsEventTypeExternalBankAccountCreated, EventSubscriptionNewParamsEventTypeExternalBankAccountUpdated, EventSubscriptionNewParamsEventTypeExternalPaymentCreated, EventSubscriptionNewParamsEventTypeExternalPaymentUpdated, EventSubscriptionNewParamsEventTypeFinancialAccountCreated, EventSubscriptionNewParamsEventTypeFinancialAccountUpdated, EventSubscriptionNewParamsEventTypeFundingEventCreated, EventSubscriptionNewParamsEventTypeInternalTransactionCreated, EventSubscriptionNewParamsEventTypeInternalTransactionUpdated, EventSubscriptionNewParamsEventTypeLoanTapeCreated, EventSubscriptionNewParamsEventTypeLoanTapeUpdated, EventSubscriptionNewParamsEventTypeManagementOperationCreated, EventSubscriptionNewParamsEventTypeManagementOperationUpdated, EventSubscriptionNewParamsEventTypeNetworkTotalCreated, EventSubscriptionNewParamsEventTypeNetworkTotalUpdated, EventSubscriptionNewParamsEventTypePaymentTransactionCreated, EventSubscriptionNewParamsEventTypePaymentTransactionUpdated, EventSubscriptionNewParamsEventTypeSettlementReportUpdated, EventSubscriptionNewParamsEventTypeStatementsCreated, EventSubscriptionNewParamsEventTypeThreeDSAuthenticationChallenge, EventSubscriptionNewParamsEventTypeThreeDSAuthenticationCreated, EventSubscriptionNewParamsEventTypeThreeDSAuthenticationUpdated, EventSubscriptionNewParamsEventTypeTokenizationApprovalRequest, EventSubscriptionNewParamsEventTypeTokenizationResult, EventSubscriptionNewParamsEventTypeTokenizationTwoFactorAuthenticationCode, EventSubscriptionNewParamsEventTypeTokenizationTwoFactorAuthenticationCodeSent, EventSubscriptionNewParamsEventTypeTokenizationUpdated: return true } return false @@ -444,7 +461,7 @@ func (r EventSubscriptionUpdateParams) MarshalJSON() (data []byte, err error) { // The type of event that occurred. Possible values: // // - account_holder_document.updated: Occurs when an account holder's document -// upload status has been updated +// upload status has been updated. // - account_holder.created: Occurs when a new account_holder is created. // - account_holder.updated: Occurs when an account_holder is updated. // - account_holder.verification: Occurs when an asynchronous account_holder's @@ -508,10 +525,25 @@ func (r EventSubscriptionUpdateParams) MarshalJSON() (data []byte, err error) { // This event will be deprecated in the future. We recommend using // `tokenization.updated` instead. // -// - dispute_evidence.upload_failed: Occurs when a dispute evidence upload fails. +// - dispute_evidence.upload_failed: Occurs when an evidence upload fails for a +// dispute filed through the Chargebacks API (`/v1/disputes`). +// +// This event is not emitted for Managed Disputes. +// // - dispute_transaction.created: Occurs when a new dispute transaction is created -// - dispute_transaction.updated: Occurs when a dispute transaction is updated -// - dispute.updated: Occurs when a dispute is updated. +// for a Managed Disputes case. +// - dispute_transaction.updated: Occurs when a dispute transaction for a Managed +// Disputes case is updated. +// - dispute.updated: Occurs when a dispute filed through the Chargebacks API +// (`/v1/disputes`) is created or updated. +// +// This event is not emitted for Managed Disputes. Use +// `dispute_transaction.created` and `dispute_transaction.updated` instead. +// +// - embed.session_generated: Occurs when a card embed session is successfully +// generated. +// - embed.viewed: Occurs when a card detail is successfully revealed through an +// embed. // - external_bank_account.created: Occurs when an external bank account is // created. // - external_bank_account.updated: Occurs when an external bank account is @@ -533,12 +565,12 @@ func (r EventSubscriptionUpdateParams) MarshalJSON() (data []byte, err error) { // - payment_transaction.updated: Occurs when a payment transaction is updated. // - settlement_report.updated: Occurs when a settlement report is created or // updated. -// - statements.created: Occurs when a statement has been created +// - statements.created: Occurs when a statement has been created. // - three_ds_authentication.challenge: The `three_ds_authentication.challenge` // event. Upon receiving this request, the Card Program should issue its own // challenge to the cardholder. After a cardholder challenge is successfully // completed, the Card Program needs to respond back to Lithic by call to -// [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/post_v1-three-ds-decisioning-challenge-response). +// [/v1/three_ds_decisioning/challenge_response](https://docs.lithic.com/reference/postthreedschallengeresponse). // Then the cardholder must navigate back to the merchant checkout flow to // complete the transaction. Some merchants will include an `app_requestor_url` // for app-based purchases; Lithic recommends triggering a redirect to that URL @@ -589,6 +621,8 @@ const ( EventSubscriptionUpdateParamsEventTypeDisputeTransactionCreated EventSubscriptionUpdateParamsEventType = "dispute_transaction.created" EventSubscriptionUpdateParamsEventTypeDisputeTransactionUpdated EventSubscriptionUpdateParamsEventType = "dispute_transaction.updated" EventSubscriptionUpdateParamsEventTypeDisputeUpdated EventSubscriptionUpdateParamsEventType = "dispute.updated" + EventSubscriptionUpdateParamsEventTypeEmbedSessionGenerated EventSubscriptionUpdateParamsEventType = "embed.session_generated" + EventSubscriptionUpdateParamsEventTypeEmbedViewed EventSubscriptionUpdateParamsEventType = "embed.viewed" EventSubscriptionUpdateParamsEventTypeExternalBankAccountCreated EventSubscriptionUpdateParamsEventType = "external_bank_account.created" EventSubscriptionUpdateParamsEventTypeExternalBankAccountUpdated EventSubscriptionUpdateParamsEventType = "external_bank_account.updated" EventSubscriptionUpdateParamsEventTypeExternalPaymentCreated EventSubscriptionUpdateParamsEventType = "external_payment.created" @@ -620,7 +654,7 @@ const ( func (r EventSubscriptionUpdateParamsEventType) IsKnown() bool { switch r { - case EventSubscriptionUpdateParamsEventTypeAccountHolderDocumentUpdated, EventSubscriptionUpdateParamsEventTypeAccountHolderCreated, EventSubscriptionUpdateParamsEventTypeAccountHolderUpdated, EventSubscriptionUpdateParamsEventTypeAccountHolderVerification, EventSubscriptionUpdateParamsEventTypeAuthRulesBacktestReportCreated, EventSubscriptionUpdateParamsEventTypeBalanceUpdated, EventSubscriptionUpdateParamsEventTypeBookTransferTransactionCreated, EventSubscriptionUpdateParamsEventTypeBookTransferTransactionUpdated, EventSubscriptionUpdateParamsEventTypeCardAuthorizationChallenge, EventSubscriptionUpdateParamsEventTypeCardAuthorizationChallengeResponse, EventSubscriptionUpdateParamsEventTypeCardTransactionEnhancedDataCreated, EventSubscriptionUpdateParamsEventTypeCardTransactionEnhancedDataUpdated, EventSubscriptionUpdateParamsEventTypeCardTransactionUpdated, EventSubscriptionUpdateParamsEventTypeCardConverted, EventSubscriptionUpdateParamsEventTypeCardCreated, EventSubscriptionUpdateParamsEventTypeCardReissued, EventSubscriptionUpdateParamsEventTypeCardRenewed, EventSubscriptionUpdateParamsEventTypeCardShipped, EventSubscriptionUpdateParamsEventTypeCardUpdated, EventSubscriptionUpdateParamsEventTypeClaimDocumentAccepted, EventSubscriptionUpdateParamsEventTypeClaimDocumentRejected, EventSubscriptionUpdateParamsEventTypeClaimDocumentUploaded, EventSubscriptionUpdateParamsEventTypeClaimCreated, EventSubscriptionUpdateParamsEventTypeClaimUpdated, EventSubscriptionUpdateParamsEventTypeDigitalWalletTokenizationResult, EventSubscriptionUpdateParamsEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCode, EventSubscriptionUpdateParamsEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCodeSent, EventSubscriptionUpdateParamsEventTypeDigitalWalletTokenizationUpdated, EventSubscriptionUpdateParamsEventTypeDisputeEvidenceUploadFailed, EventSubscriptionUpdateParamsEventTypeDisputeTransactionCreated, EventSubscriptionUpdateParamsEventTypeDisputeTransactionUpdated, EventSubscriptionUpdateParamsEventTypeDisputeUpdated, EventSubscriptionUpdateParamsEventTypeExternalBankAccountCreated, EventSubscriptionUpdateParamsEventTypeExternalBankAccountUpdated, EventSubscriptionUpdateParamsEventTypeExternalPaymentCreated, EventSubscriptionUpdateParamsEventTypeExternalPaymentUpdated, EventSubscriptionUpdateParamsEventTypeFinancialAccountCreated, EventSubscriptionUpdateParamsEventTypeFinancialAccountUpdated, EventSubscriptionUpdateParamsEventTypeFundingEventCreated, EventSubscriptionUpdateParamsEventTypeInternalTransactionCreated, EventSubscriptionUpdateParamsEventTypeInternalTransactionUpdated, EventSubscriptionUpdateParamsEventTypeLoanTapeCreated, EventSubscriptionUpdateParamsEventTypeLoanTapeUpdated, EventSubscriptionUpdateParamsEventTypeManagementOperationCreated, EventSubscriptionUpdateParamsEventTypeManagementOperationUpdated, EventSubscriptionUpdateParamsEventTypeNetworkTotalCreated, EventSubscriptionUpdateParamsEventTypeNetworkTotalUpdated, EventSubscriptionUpdateParamsEventTypePaymentTransactionCreated, EventSubscriptionUpdateParamsEventTypePaymentTransactionUpdated, EventSubscriptionUpdateParamsEventTypeSettlementReportUpdated, EventSubscriptionUpdateParamsEventTypeStatementsCreated, EventSubscriptionUpdateParamsEventTypeThreeDSAuthenticationChallenge, EventSubscriptionUpdateParamsEventTypeThreeDSAuthenticationCreated, EventSubscriptionUpdateParamsEventTypeThreeDSAuthenticationUpdated, EventSubscriptionUpdateParamsEventTypeTokenizationApprovalRequest, EventSubscriptionUpdateParamsEventTypeTokenizationResult, EventSubscriptionUpdateParamsEventTypeTokenizationTwoFactorAuthenticationCode, EventSubscriptionUpdateParamsEventTypeTokenizationTwoFactorAuthenticationCodeSent, EventSubscriptionUpdateParamsEventTypeTokenizationUpdated: + case EventSubscriptionUpdateParamsEventTypeAccountHolderDocumentUpdated, EventSubscriptionUpdateParamsEventTypeAccountHolderCreated, EventSubscriptionUpdateParamsEventTypeAccountHolderUpdated, EventSubscriptionUpdateParamsEventTypeAccountHolderVerification, EventSubscriptionUpdateParamsEventTypeAuthRulesBacktestReportCreated, EventSubscriptionUpdateParamsEventTypeBalanceUpdated, EventSubscriptionUpdateParamsEventTypeBookTransferTransactionCreated, EventSubscriptionUpdateParamsEventTypeBookTransferTransactionUpdated, EventSubscriptionUpdateParamsEventTypeCardAuthorizationChallenge, EventSubscriptionUpdateParamsEventTypeCardAuthorizationChallengeResponse, EventSubscriptionUpdateParamsEventTypeCardTransactionEnhancedDataCreated, EventSubscriptionUpdateParamsEventTypeCardTransactionEnhancedDataUpdated, EventSubscriptionUpdateParamsEventTypeCardTransactionUpdated, EventSubscriptionUpdateParamsEventTypeCardConverted, EventSubscriptionUpdateParamsEventTypeCardCreated, EventSubscriptionUpdateParamsEventTypeCardReissued, EventSubscriptionUpdateParamsEventTypeCardRenewed, EventSubscriptionUpdateParamsEventTypeCardShipped, EventSubscriptionUpdateParamsEventTypeCardUpdated, EventSubscriptionUpdateParamsEventTypeClaimDocumentAccepted, EventSubscriptionUpdateParamsEventTypeClaimDocumentRejected, EventSubscriptionUpdateParamsEventTypeClaimDocumentUploaded, EventSubscriptionUpdateParamsEventTypeClaimCreated, EventSubscriptionUpdateParamsEventTypeClaimUpdated, EventSubscriptionUpdateParamsEventTypeDigitalWalletTokenizationResult, EventSubscriptionUpdateParamsEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCode, EventSubscriptionUpdateParamsEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCodeSent, EventSubscriptionUpdateParamsEventTypeDigitalWalletTokenizationUpdated, EventSubscriptionUpdateParamsEventTypeDisputeEvidenceUploadFailed, EventSubscriptionUpdateParamsEventTypeDisputeTransactionCreated, EventSubscriptionUpdateParamsEventTypeDisputeTransactionUpdated, EventSubscriptionUpdateParamsEventTypeDisputeUpdated, EventSubscriptionUpdateParamsEventTypeEmbedSessionGenerated, EventSubscriptionUpdateParamsEventTypeEmbedViewed, EventSubscriptionUpdateParamsEventTypeExternalBankAccountCreated, EventSubscriptionUpdateParamsEventTypeExternalBankAccountUpdated, EventSubscriptionUpdateParamsEventTypeExternalPaymentCreated, EventSubscriptionUpdateParamsEventTypeExternalPaymentUpdated, EventSubscriptionUpdateParamsEventTypeFinancialAccountCreated, EventSubscriptionUpdateParamsEventTypeFinancialAccountUpdated, EventSubscriptionUpdateParamsEventTypeFundingEventCreated, EventSubscriptionUpdateParamsEventTypeInternalTransactionCreated, EventSubscriptionUpdateParamsEventTypeInternalTransactionUpdated, EventSubscriptionUpdateParamsEventTypeLoanTapeCreated, EventSubscriptionUpdateParamsEventTypeLoanTapeUpdated, EventSubscriptionUpdateParamsEventTypeManagementOperationCreated, EventSubscriptionUpdateParamsEventTypeManagementOperationUpdated, EventSubscriptionUpdateParamsEventTypeNetworkTotalCreated, EventSubscriptionUpdateParamsEventTypeNetworkTotalUpdated, EventSubscriptionUpdateParamsEventTypePaymentTransactionCreated, EventSubscriptionUpdateParamsEventTypePaymentTransactionUpdated, EventSubscriptionUpdateParamsEventTypeSettlementReportUpdated, EventSubscriptionUpdateParamsEventTypeStatementsCreated, EventSubscriptionUpdateParamsEventTypeThreeDSAuthenticationChallenge, EventSubscriptionUpdateParamsEventTypeThreeDSAuthenticationCreated, EventSubscriptionUpdateParamsEventTypeThreeDSAuthenticationUpdated, EventSubscriptionUpdateParamsEventTypeTokenizationApprovalRequest, EventSubscriptionUpdateParamsEventTypeTokenizationResult, EventSubscriptionUpdateParamsEventTypeTokenizationTwoFactorAuthenticationCode, EventSubscriptionUpdateParamsEventTypeTokenizationTwoFactorAuthenticationCodeSent, EventSubscriptionUpdateParamsEventTypeTokenizationUpdated: return true } return false @@ -771,6 +805,8 @@ const ( EventSubscriptionSendSimulatedExampleParamsEventTypeDisputeTransactionCreated EventSubscriptionSendSimulatedExampleParamsEventType = "dispute_transaction.created" EventSubscriptionSendSimulatedExampleParamsEventTypeDisputeTransactionUpdated EventSubscriptionSendSimulatedExampleParamsEventType = "dispute_transaction.updated" EventSubscriptionSendSimulatedExampleParamsEventTypeDisputeUpdated EventSubscriptionSendSimulatedExampleParamsEventType = "dispute.updated" + EventSubscriptionSendSimulatedExampleParamsEventTypeEmbedSessionGenerated EventSubscriptionSendSimulatedExampleParamsEventType = "embed.session_generated" + EventSubscriptionSendSimulatedExampleParamsEventTypeEmbedViewed EventSubscriptionSendSimulatedExampleParamsEventType = "embed.viewed" EventSubscriptionSendSimulatedExampleParamsEventTypeExternalBankAccountCreated EventSubscriptionSendSimulatedExampleParamsEventType = "external_bank_account.created" EventSubscriptionSendSimulatedExampleParamsEventTypeExternalBankAccountUpdated EventSubscriptionSendSimulatedExampleParamsEventType = "external_bank_account.updated" EventSubscriptionSendSimulatedExampleParamsEventTypeExternalPaymentCreated EventSubscriptionSendSimulatedExampleParamsEventType = "external_payment.created" @@ -802,7 +838,7 @@ const ( func (r EventSubscriptionSendSimulatedExampleParamsEventType) IsKnown() bool { switch r { - case EventSubscriptionSendSimulatedExampleParamsEventTypeAccountHolderDocumentUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeAccountHolderCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeAccountHolderUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeAccountHolderVerification, EventSubscriptionSendSimulatedExampleParamsEventTypeAuthRulesBacktestReportCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeBalanceUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeBookTransferTransactionCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeBookTransferTransactionUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeCardAuthorizationChallenge, EventSubscriptionSendSimulatedExampleParamsEventTypeCardAuthorizationChallengeResponse, EventSubscriptionSendSimulatedExampleParamsEventTypeCardTransactionEnhancedDataCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeCardTransactionEnhancedDataUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeCardTransactionUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeCardConverted, EventSubscriptionSendSimulatedExampleParamsEventTypeCardCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeCardReissued, EventSubscriptionSendSimulatedExampleParamsEventTypeCardRenewed, EventSubscriptionSendSimulatedExampleParamsEventTypeCardShipped, EventSubscriptionSendSimulatedExampleParamsEventTypeCardUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeClaimDocumentAccepted, EventSubscriptionSendSimulatedExampleParamsEventTypeClaimDocumentRejected, EventSubscriptionSendSimulatedExampleParamsEventTypeClaimDocumentUploaded, EventSubscriptionSendSimulatedExampleParamsEventTypeClaimCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeClaimUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeDigitalWalletTokenizationResult, EventSubscriptionSendSimulatedExampleParamsEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCode, EventSubscriptionSendSimulatedExampleParamsEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCodeSent, EventSubscriptionSendSimulatedExampleParamsEventTypeDigitalWalletTokenizationUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeDisputeEvidenceUploadFailed, EventSubscriptionSendSimulatedExampleParamsEventTypeDisputeTransactionCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeDisputeTransactionUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeDisputeUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeExternalBankAccountCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeExternalBankAccountUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeExternalPaymentCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeExternalPaymentUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeFinancialAccountCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeFinancialAccountUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeFundingEventCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeInternalTransactionCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeInternalTransactionUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeLoanTapeCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeLoanTapeUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeManagementOperationCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeManagementOperationUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeNetworkTotalCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeNetworkTotalUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypePaymentTransactionCreated, EventSubscriptionSendSimulatedExampleParamsEventTypePaymentTransactionUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeSettlementReportUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeStatementsCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeThreeDSAuthenticationChallenge, EventSubscriptionSendSimulatedExampleParamsEventTypeThreeDSAuthenticationCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeThreeDSAuthenticationUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeTokenizationApprovalRequest, EventSubscriptionSendSimulatedExampleParamsEventTypeTokenizationResult, EventSubscriptionSendSimulatedExampleParamsEventTypeTokenizationTwoFactorAuthenticationCode, EventSubscriptionSendSimulatedExampleParamsEventTypeTokenizationTwoFactorAuthenticationCodeSent, EventSubscriptionSendSimulatedExampleParamsEventTypeTokenizationUpdated: + case EventSubscriptionSendSimulatedExampleParamsEventTypeAccountHolderDocumentUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeAccountHolderCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeAccountHolderUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeAccountHolderVerification, EventSubscriptionSendSimulatedExampleParamsEventTypeAuthRulesBacktestReportCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeBalanceUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeBookTransferTransactionCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeBookTransferTransactionUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeCardAuthorizationChallenge, EventSubscriptionSendSimulatedExampleParamsEventTypeCardAuthorizationChallengeResponse, EventSubscriptionSendSimulatedExampleParamsEventTypeCardTransactionEnhancedDataCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeCardTransactionEnhancedDataUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeCardTransactionUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeCardConverted, EventSubscriptionSendSimulatedExampleParamsEventTypeCardCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeCardReissued, EventSubscriptionSendSimulatedExampleParamsEventTypeCardRenewed, EventSubscriptionSendSimulatedExampleParamsEventTypeCardShipped, EventSubscriptionSendSimulatedExampleParamsEventTypeCardUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeClaimDocumentAccepted, EventSubscriptionSendSimulatedExampleParamsEventTypeClaimDocumentRejected, EventSubscriptionSendSimulatedExampleParamsEventTypeClaimDocumentUploaded, EventSubscriptionSendSimulatedExampleParamsEventTypeClaimCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeClaimUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeDigitalWalletTokenizationResult, EventSubscriptionSendSimulatedExampleParamsEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCode, EventSubscriptionSendSimulatedExampleParamsEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCodeSent, EventSubscriptionSendSimulatedExampleParamsEventTypeDigitalWalletTokenizationUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeDisputeEvidenceUploadFailed, EventSubscriptionSendSimulatedExampleParamsEventTypeDisputeTransactionCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeDisputeTransactionUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeDisputeUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeEmbedSessionGenerated, EventSubscriptionSendSimulatedExampleParamsEventTypeEmbedViewed, EventSubscriptionSendSimulatedExampleParamsEventTypeExternalBankAccountCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeExternalBankAccountUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeExternalPaymentCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeExternalPaymentUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeFinancialAccountCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeFinancialAccountUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeFundingEventCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeInternalTransactionCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeInternalTransactionUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeLoanTapeCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeLoanTapeUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeManagementOperationCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeManagementOperationUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeNetworkTotalCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeNetworkTotalUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypePaymentTransactionCreated, EventSubscriptionSendSimulatedExampleParamsEventTypePaymentTransactionUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeSettlementReportUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeStatementsCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeThreeDSAuthenticationChallenge, EventSubscriptionSendSimulatedExampleParamsEventTypeThreeDSAuthenticationCreated, EventSubscriptionSendSimulatedExampleParamsEventTypeThreeDSAuthenticationUpdated, EventSubscriptionSendSimulatedExampleParamsEventTypeTokenizationApprovalRequest, EventSubscriptionSendSimulatedExampleParamsEventTypeTokenizationResult, EventSubscriptionSendSimulatedExampleParamsEventTypeTokenizationTwoFactorAuthenticationCode, EventSubscriptionSendSimulatedExampleParamsEventTypeTokenizationTwoFactorAuthenticationCodeSent, EventSubscriptionSendSimulatedExampleParamsEventTypeTokenizationUpdated: return true } return false diff --git a/externalpayment.go b/externalpayment.go index baef7cc1..cd2e5da4 100644 --- a/externalpayment.go +++ b/externalpayment.go @@ -448,7 +448,7 @@ type ExternalPaymentListParams struct { // will be included. UTC time zone. Begin param.Field[time.Time] `query:"begin" format:"date-time"` BusinessAccountToken param.Field[string] `query:"business_account_token" format:"uuid"` - // External Payment category to be returned. + // The external rail the funds moved on Category param.Field[ExternalPaymentListParamsCategory] `query:"category"` // Date string in RFC 3339 format. Only entries created before the specified time // will be included. UTC time zone. @@ -479,7 +479,7 @@ func (r ExternalPaymentListParams) URLQuery() (v url.Values) { }) } -// External Payment category to be returned. +// The external rail the funds moved on type ExternalPaymentListParamsCategory string const ( diff --git a/financialaccountstatementlineitem.go b/financialaccountstatementlineitem.go index 8d4e1959..d72aa14b 100644 --- a/financialaccountstatementlineitem.go +++ b/financialaccountstatementlineitem.go @@ -182,11 +182,12 @@ const ( StatementLineItemsDataCategoryManagementDisbursement StatementLineItemsDataCategory = "MANAGEMENT_DISBURSEMENT" StatementLineItemsDataCategoryHold StatementLineItemsDataCategory = "HOLD" StatementLineItemsDataCategoryProgramFunding StatementLineItemsDataCategory = "PROGRAM_FUNDING" + StatementLineItemsDataCategoryProgramTransfer StatementLineItemsDataCategory = "PROGRAM_TRANSFER" ) func (r StatementLineItemsDataCategory) IsKnown() bool { switch r { - case StatementLineItemsDataCategoryACH, StatementLineItemsDataCategoryWire, StatementLineItemsDataCategoryBalanceOrFunding, StatementLineItemsDataCategoryFee, StatementLineItemsDataCategoryReward, StatementLineItemsDataCategoryAdjustment, StatementLineItemsDataCategoryDerecognition, StatementLineItemsDataCategoryDispute, StatementLineItemsDataCategoryCard, StatementLineItemsDataCategoryExternalACH, StatementLineItemsDataCategoryExternalCheck, StatementLineItemsDataCategoryExternalFednow, StatementLineItemsDataCategoryExternalRtp, StatementLineItemsDataCategoryExternalTransfer, StatementLineItemsDataCategoryExternalWire, StatementLineItemsDataCategoryManagementAdjustment, StatementLineItemsDataCategoryManagementDispute, StatementLineItemsDataCategoryManagementFee, StatementLineItemsDataCategoryManagementReward, StatementLineItemsDataCategoryManagementDisbursement, StatementLineItemsDataCategoryHold, StatementLineItemsDataCategoryProgramFunding: + case StatementLineItemsDataCategoryACH, StatementLineItemsDataCategoryWire, StatementLineItemsDataCategoryBalanceOrFunding, StatementLineItemsDataCategoryFee, StatementLineItemsDataCategoryReward, StatementLineItemsDataCategoryAdjustment, StatementLineItemsDataCategoryDerecognition, StatementLineItemsDataCategoryDispute, StatementLineItemsDataCategoryCard, StatementLineItemsDataCategoryExternalACH, StatementLineItemsDataCategoryExternalCheck, StatementLineItemsDataCategoryExternalFednow, StatementLineItemsDataCategoryExternalRtp, StatementLineItemsDataCategoryExternalTransfer, StatementLineItemsDataCategoryExternalWire, StatementLineItemsDataCategoryManagementAdjustment, StatementLineItemsDataCategoryManagementDispute, StatementLineItemsDataCategoryManagementFee, StatementLineItemsDataCategoryManagementReward, StatementLineItemsDataCategoryManagementDisbursement, StatementLineItemsDataCategoryHold, StatementLineItemsDataCategoryProgramFunding, StatementLineItemsDataCategoryProgramTransfer: return true } return false @@ -276,6 +277,8 @@ const ( StatementLineItemsDataEventTypeReturnedPayment StatementLineItemsDataEventType = "RETURNED_PAYMENT" StatementLineItemsDataEventTypeReturnedPaymentReversal StatementLineItemsDataEventType = "RETURNED_PAYMENT_REVERSAL" StatementLineItemsDataEventTypeLithicNetworkPayment StatementLineItemsDataEventType = "LITHIC_NETWORK_PAYMENT" + StatementLineItemsDataEventTypeLithicProgramTransfer StatementLineItemsDataEventType = "LITHIC_PROGRAM_TRANSFER" + StatementLineItemsDataEventTypeBankProgramTransfer StatementLineItemsDataEventType = "BANK_PROGRAM_TRANSFER" StatementLineItemsDataEventTypeAnnual StatementLineItemsDataEventType = "ANNUAL" StatementLineItemsDataEventTypeAnnualReversal StatementLineItemsDataEventType = "ANNUAL_REVERSAL" StatementLineItemsDataEventTypeQuarterly StatementLineItemsDataEventType = "QUARTERLY" @@ -287,7 +290,7 @@ const ( func (r StatementLineItemsDataEventType) IsKnown() bool { switch r { - case StatementLineItemsDataEventTypeACHOriginationCancelled, StatementLineItemsDataEventTypeACHOriginationInitiated, StatementLineItemsDataEventTypeACHOriginationProcessed, StatementLineItemsDataEventTypeACHOriginationReleased, StatementLineItemsDataEventTypeACHOriginationRejected, StatementLineItemsDataEventTypeACHOriginationReviewed, StatementLineItemsDataEventTypeACHOriginationSettled, StatementLineItemsDataEventTypeACHReceiptProcessed, StatementLineItemsDataEventTypeACHReceiptReleased, StatementLineItemsDataEventTypeACHReceiptSettled, StatementLineItemsDataEventTypeACHReturnInitiated, StatementLineItemsDataEventTypeACHReturnProcessed, StatementLineItemsDataEventTypeACHReturnRejected, StatementLineItemsDataEventTypeACHReturnSettled, StatementLineItemsDataEventTypeAuthorization, StatementLineItemsDataEventTypeAuthorizationAdvice, StatementLineItemsDataEventTypeAuthorizationExpiry, StatementLineItemsDataEventTypeAuthorizationReversal, StatementLineItemsDataEventTypeBalanceInquiry, StatementLineItemsDataEventTypeBillingError, StatementLineItemsDataEventTypeBillingErrorReversal, StatementLineItemsDataEventTypeCardToCard, StatementLineItemsDataEventTypeCashBack, StatementLineItemsDataEventTypeCashBackReversal, StatementLineItemsDataEventTypeClearing, StatementLineItemsDataEventTypeCollection, StatementLineItemsDataEventTypeCorrectionCredit, StatementLineItemsDataEventTypeCorrectionDebit, StatementLineItemsDataEventTypeCreditAuthorization, StatementLineItemsDataEventTypeCreditAuthorizationAdvice, StatementLineItemsDataEventTypeCurrencyConversion, StatementLineItemsDataEventTypeCurrencyConversionReversal, StatementLineItemsDataEventTypeDisputeWon, StatementLineItemsDataEventTypeExternalACHCanceled, StatementLineItemsDataEventTypeExternalACHInitiated, StatementLineItemsDataEventTypeExternalACHReleased, StatementLineItemsDataEventTypeExternalACHReversed, StatementLineItemsDataEventTypeExternalACHSettled, StatementLineItemsDataEventTypeExternalCheckCanceled, StatementLineItemsDataEventTypeExternalCheckInitiated, StatementLineItemsDataEventTypeExternalCheckReleased, StatementLineItemsDataEventTypeExternalCheckReversed, StatementLineItemsDataEventTypeExternalCheckSettled, StatementLineItemsDataEventTypeExternalFednowCanceled, StatementLineItemsDataEventTypeExternalFednowInitiated, StatementLineItemsDataEventTypeExternalFednowReleased, StatementLineItemsDataEventTypeExternalFednowReversed, StatementLineItemsDataEventTypeExternalFednowSettled, StatementLineItemsDataEventTypeExternalRtpCanceled, StatementLineItemsDataEventTypeExternalRtpInitiated, StatementLineItemsDataEventTypeExternalRtpReleased, StatementLineItemsDataEventTypeExternalRtpReversed, StatementLineItemsDataEventTypeExternalRtpSettled, StatementLineItemsDataEventTypeExternalTransferCanceled, StatementLineItemsDataEventTypeExternalTransferInitiated, StatementLineItemsDataEventTypeExternalTransferReleased, StatementLineItemsDataEventTypeExternalTransferReversed, StatementLineItemsDataEventTypeExternalTransferSettled, StatementLineItemsDataEventTypeExternalWireCanceled, StatementLineItemsDataEventTypeExternalWireInitiated, StatementLineItemsDataEventTypeExternalWireReleased, StatementLineItemsDataEventTypeExternalWireReversed, StatementLineItemsDataEventTypeExternalWireSettled, StatementLineItemsDataEventTypeFinancialAuthorization, StatementLineItemsDataEventTypeFinancialCreditAuthorization, StatementLineItemsDataEventTypeInterest, StatementLineItemsDataEventTypeInterestReversal, StatementLineItemsDataEventTypeInternalAdjustment, StatementLineItemsDataEventTypeLatePayment, StatementLineItemsDataEventTypeLatePaymentReversal, StatementLineItemsDataEventTypeLossWriteOff, StatementLineItemsDataEventTypeProvisionalCredit, StatementLineItemsDataEventTypeProvisionalCreditReversal, StatementLineItemsDataEventTypeService, StatementLineItemsDataEventTypeReturn, StatementLineItemsDataEventTypeReturnReversal, StatementLineItemsDataEventTypeTransfer, StatementLineItemsDataEventTypeTransferInsufficientFunds, StatementLineItemsDataEventTypeReturnedPayment, StatementLineItemsDataEventTypeReturnedPaymentReversal, StatementLineItemsDataEventTypeLithicNetworkPayment, StatementLineItemsDataEventTypeAnnual, StatementLineItemsDataEventTypeAnnualReversal, StatementLineItemsDataEventTypeQuarterly, StatementLineItemsDataEventTypeQuarterlyReversal, StatementLineItemsDataEventTypeMonthly, StatementLineItemsDataEventTypeMonthlyReversal, StatementLineItemsDataEventTypeAccountToAccount: + case StatementLineItemsDataEventTypeACHOriginationCancelled, StatementLineItemsDataEventTypeACHOriginationInitiated, StatementLineItemsDataEventTypeACHOriginationProcessed, StatementLineItemsDataEventTypeACHOriginationReleased, StatementLineItemsDataEventTypeACHOriginationRejected, StatementLineItemsDataEventTypeACHOriginationReviewed, StatementLineItemsDataEventTypeACHOriginationSettled, StatementLineItemsDataEventTypeACHReceiptProcessed, StatementLineItemsDataEventTypeACHReceiptReleased, StatementLineItemsDataEventTypeACHReceiptSettled, StatementLineItemsDataEventTypeACHReturnInitiated, StatementLineItemsDataEventTypeACHReturnProcessed, StatementLineItemsDataEventTypeACHReturnRejected, StatementLineItemsDataEventTypeACHReturnSettled, StatementLineItemsDataEventTypeAuthorization, StatementLineItemsDataEventTypeAuthorizationAdvice, StatementLineItemsDataEventTypeAuthorizationExpiry, StatementLineItemsDataEventTypeAuthorizationReversal, StatementLineItemsDataEventTypeBalanceInquiry, StatementLineItemsDataEventTypeBillingError, StatementLineItemsDataEventTypeBillingErrorReversal, StatementLineItemsDataEventTypeCardToCard, StatementLineItemsDataEventTypeCashBack, StatementLineItemsDataEventTypeCashBackReversal, StatementLineItemsDataEventTypeClearing, StatementLineItemsDataEventTypeCollection, StatementLineItemsDataEventTypeCorrectionCredit, StatementLineItemsDataEventTypeCorrectionDebit, StatementLineItemsDataEventTypeCreditAuthorization, StatementLineItemsDataEventTypeCreditAuthorizationAdvice, StatementLineItemsDataEventTypeCurrencyConversion, StatementLineItemsDataEventTypeCurrencyConversionReversal, StatementLineItemsDataEventTypeDisputeWon, StatementLineItemsDataEventTypeExternalACHCanceled, StatementLineItemsDataEventTypeExternalACHInitiated, StatementLineItemsDataEventTypeExternalACHReleased, StatementLineItemsDataEventTypeExternalACHReversed, StatementLineItemsDataEventTypeExternalACHSettled, StatementLineItemsDataEventTypeExternalCheckCanceled, StatementLineItemsDataEventTypeExternalCheckInitiated, StatementLineItemsDataEventTypeExternalCheckReleased, StatementLineItemsDataEventTypeExternalCheckReversed, StatementLineItemsDataEventTypeExternalCheckSettled, StatementLineItemsDataEventTypeExternalFednowCanceled, StatementLineItemsDataEventTypeExternalFednowInitiated, StatementLineItemsDataEventTypeExternalFednowReleased, StatementLineItemsDataEventTypeExternalFednowReversed, StatementLineItemsDataEventTypeExternalFednowSettled, StatementLineItemsDataEventTypeExternalRtpCanceled, StatementLineItemsDataEventTypeExternalRtpInitiated, StatementLineItemsDataEventTypeExternalRtpReleased, StatementLineItemsDataEventTypeExternalRtpReversed, StatementLineItemsDataEventTypeExternalRtpSettled, StatementLineItemsDataEventTypeExternalTransferCanceled, StatementLineItemsDataEventTypeExternalTransferInitiated, StatementLineItemsDataEventTypeExternalTransferReleased, StatementLineItemsDataEventTypeExternalTransferReversed, StatementLineItemsDataEventTypeExternalTransferSettled, StatementLineItemsDataEventTypeExternalWireCanceled, StatementLineItemsDataEventTypeExternalWireInitiated, StatementLineItemsDataEventTypeExternalWireReleased, StatementLineItemsDataEventTypeExternalWireReversed, StatementLineItemsDataEventTypeExternalWireSettled, StatementLineItemsDataEventTypeFinancialAuthorization, StatementLineItemsDataEventTypeFinancialCreditAuthorization, StatementLineItemsDataEventTypeInterest, StatementLineItemsDataEventTypeInterestReversal, StatementLineItemsDataEventTypeInternalAdjustment, StatementLineItemsDataEventTypeLatePayment, StatementLineItemsDataEventTypeLatePaymentReversal, StatementLineItemsDataEventTypeLossWriteOff, StatementLineItemsDataEventTypeProvisionalCredit, StatementLineItemsDataEventTypeProvisionalCreditReversal, StatementLineItemsDataEventTypeService, StatementLineItemsDataEventTypeReturn, StatementLineItemsDataEventTypeReturnReversal, StatementLineItemsDataEventTypeTransfer, StatementLineItemsDataEventTypeTransferInsufficientFunds, StatementLineItemsDataEventTypeReturnedPayment, StatementLineItemsDataEventTypeReturnedPaymentReversal, StatementLineItemsDataEventTypeLithicNetworkPayment, StatementLineItemsDataEventTypeLithicProgramTransfer, StatementLineItemsDataEventTypeBankProgramTransfer, StatementLineItemsDataEventTypeAnnual, StatementLineItemsDataEventTypeAnnualReversal, StatementLineItemsDataEventTypeQuarterly, StatementLineItemsDataEventTypeQuarterlyReversal, StatementLineItemsDataEventTypeMonthly, StatementLineItemsDataEventTypeMonthlyReversal, StatementLineItemsDataEventTypeAccountToAccount: return true } return false diff --git a/fraudtransaction.go b/fraudtransaction.go index 4403c2fa..01478044 100644 --- a/fraudtransaction.go +++ b/fraudtransaction.go @@ -81,9 +81,9 @@ type FraudTransactionGetResponse struct { // reported. TransactionToken string `json:"transaction_token" api:"required" format:"uuid"` // Provides additional context or details about the fraud report. - Comment string `json:"comment"` + Comment string `json:"comment" api:"nullable"` // Timestamp representing when the fraud report was created. - CreatedAt time.Time `json:"created_at" format:"date-time"` + CreatedAt time.Time `json:"created_at" api:"nullable" format:"date-time"` // Specifies the type or category of fraud that the transaction is suspected or // confirmed to involve, string (enum) supporting the following values: // @@ -105,9 +105,9 @@ type FraudTransactionGetResponse struct { // - `CARDHOLDER_MANIPULATION`: This type of fraud occurs when a fraudster // manipulates or coerces a legitimate cardholder into unauthorized transactions, // often through social engineering tactics. - FraudType FraudTransactionGetResponseFraudType `json:"fraud_type"` + FraudType FraudTransactionGetResponseFraudType `json:"fraud_type" api:"nullable"` // Timestamp representing the last update to the fraud report. - UpdatedAt time.Time `json:"updated_at" format:"date-time"` + UpdatedAt time.Time `json:"updated_at" api:"nullable" format:"date-time"` JSON fraudTransactionGetResponseJSON `json:"-"` } @@ -222,9 +222,9 @@ type FraudTransactionReportResponse struct { // reported. TransactionToken string `json:"transaction_token" api:"required" format:"uuid"` // Provides additional context or details about the fraud report. - Comment string `json:"comment"` + Comment string `json:"comment" api:"nullable"` // Timestamp representing when the fraud report was created. - CreatedAt time.Time `json:"created_at" format:"date-time"` + CreatedAt time.Time `json:"created_at" api:"nullable" format:"date-time"` // Specifies the type or category of fraud that the transaction is suspected or // confirmed to involve, string (enum) supporting the following values: // @@ -246,9 +246,9 @@ type FraudTransactionReportResponse struct { // - `CARDHOLDER_MANIPULATION`: This type of fraud occurs when a fraudster // manipulates or coerces a legitimate cardholder into unauthorized transactions, // often through social engineering tactics. - FraudType FraudTransactionReportResponseFraudType `json:"fraud_type"` + FraudType FraudTransactionReportResponseFraudType `json:"fraud_type" api:"nullable"` // Timestamp representing the last update to the fraud report. - UpdatedAt time.Time `json:"updated_at" format:"date-time"` + UpdatedAt time.Time `json:"updated_at" api:"nullable" format:"date-time"` JSON fraudTransactionReportResponseJSON `json:"-"` } diff --git a/internal/version.go b/internal/version.go index f239ff7c..9f9ad828 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.115.0" // x-release-please-version +const PackageVersion = "0.116.0" // x-release-please-version diff --git a/payment.go b/payment.go index bdedb3b3..7054eeed 100644 --- a/payment.go +++ b/payment.go @@ -274,11 +274,12 @@ const ( PaymentCategoryManagementDisbursement PaymentCategory = "MANAGEMENT_DISBURSEMENT" PaymentCategoryHold PaymentCategory = "HOLD" PaymentCategoryProgramFunding PaymentCategory = "PROGRAM_FUNDING" + PaymentCategoryProgramTransfer PaymentCategory = "PROGRAM_TRANSFER" ) func (r PaymentCategory) IsKnown() bool { switch r { - case PaymentCategoryACH, PaymentCategoryWire, PaymentCategoryBalanceOrFunding, PaymentCategoryFee, PaymentCategoryReward, PaymentCategoryAdjustment, PaymentCategoryDerecognition, PaymentCategoryDispute, PaymentCategoryCard, PaymentCategoryExternalACH, PaymentCategoryExternalCheck, PaymentCategoryExternalFednow, PaymentCategoryExternalRtp, PaymentCategoryExternalTransfer, PaymentCategoryExternalWire, PaymentCategoryManagementAdjustment, PaymentCategoryManagementDispute, PaymentCategoryManagementFee, PaymentCategoryManagementReward, PaymentCategoryManagementDisbursement, PaymentCategoryHold, PaymentCategoryProgramFunding: + case PaymentCategoryACH, PaymentCategoryWire, PaymentCategoryBalanceOrFunding, PaymentCategoryFee, PaymentCategoryReward, PaymentCategoryAdjustment, PaymentCategoryDerecognition, PaymentCategoryDispute, PaymentCategoryCard, PaymentCategoryExternalACH, PaymentCategoryExternalCheck, PaymentCategoryExternalFednow, PaymentCategoryExternalRtp, PaymentCategoryExternalTransfer, PaymentCategoryExternalWire, PaymentCategoryManagementAdjustment, PaymentCategoryManagementDispute, PaymentCategoryManagementFee, PaymentCategoryManagementReward, PaymentCategoryManagementDisbursement, PaymentCategoryHold, PaymentCategoryProgramFunding, PaymentCategoryProgramTransfer: return true } return false @@ -573,6 +574,8 @@ type PaymentMethodAttributes struct { OverrideCompanyName string `json:"override_company_name" api:"nullable"` // Receipt routing number ReceiptRoutingNumber string `json:"receipt_routing_number" api:"nullable"` + // Name of the recipient on ACH receipts. Reflects the originating bank's record + RecipientName string `json:"recipient_name" api:"nullable"` // Payment details or invoice reference RemittanceInformation string `json:"remittance_information" api:"nullable"` // Number of retries attempted @@ -602,6 +605,7 @@ type paymentMethodAttributesJSON struct { MessageID apijson.Field OverrideCompanyName apijson.Field ReceiptRoutingNumber apijson.Field + RecipientName apijson.Field RemittanceInformation apijson.Field Retries apijson.Field ReturnReasonCode apijson.Field @@ -673,6 +677,8 @@ type PaymentMethodAttributesACHMethodAttributes struct { OverrideCompanyName string `json:"override_company_name" api:"nullable"` // Receipt routing number ReceiptRoutingNumber string `json:"receipt_routing_number" api:"nullable"` + // Name of the recipient on ACH receipts. Reflects the originating bank's record + RecipientName string `json:"recipient_name" api:"nullable"` // Number of retries attempted Retries int64 `json:"retries" api:"nullable"` // Return reason code if the transaction was returned @@ -691,6 +697,7 @@ type paymentMethodAttributesACHMethodAttributesJSON struct { CompanyID apijson.Field OverrideCompanyName apijson.Field ReceiptRoutingNumber apijson.Field + RecipientName apijson.Field Retries apijson.Field ReturnReasonCode apijson.Field TraceNumbers apijson.Field @@ -1299,12 +1306,13 @@ const ( PaymentListParamsStatusDeclined PaymentListParamsStatus = "DECLINED" PaymentListParamsStatusPending PaymentListParamsStatus = "PENDING" PaymentListParamsStatusReturned PaymentListParamsStatus = "RETURNED" + PaymentListParamsStatusReversed PaymentListParamsStatus = "REVERSED" PaymentListParamsStatusSettled PaymentListParamsStatus = "SETTLED" ) func (r PaymentListParamsStatus) IsKnown() bool { switch r { - case PaymentListParamsStatusDeclined, PaymentListParamsStatusPending, PaymentListParamsStatusReturned, PaymentListParamsStatusSettled: + case PaymentListParamsStatusDeclined, PaymentListParamsStatusPending, PaymentListParamsStatusReturned, PaymentListParamsStatusReversed, PaymentListParamsStatusSettled: return true } return false diff --git a/shared/shared.go b/shared/shared.go index 226329b9..5460ec03 100644 --- a/shared/shared.go +++ b/shared/shared.go @@ -420,6 +420,8 @@ const ( FinancialEventTypeReturnedPayment FinancialEventType = "RETURNED_PAYMENT" FinancialEventTypeReturnedPaymentReversal FinancialEventType = "RETURNED_PAYMENT_REVERSAL" FinancialEventTypeLithicNetworkPayment FinancialEventType = "LITHIC_NETWORK_PAYMENT" + FinancialEventTypeLithicProgramTransfer FinancialEventType = "LITHIC_PROGRAM_TRANSFER" + FinancialEventTypeBankProgramTransfer FinancialEventType = "BANK_PROGRAM_TRANSFER" FinancialEventTypeAnnual FinancialEventType = "ANNUAL" FinancialEventTypeAnnualReversal FinancialEventType = "ANNUAL_REVERSAL" FinancialEventTypeQuarterly FinancialEventType = "QUARTERLY" @@ -431,7 +433,7 @@ const ( func (r FinancialEventType) IsKnown() bool { switch r { - case FinancialEventTypeACHOriginationCancelled, FinancialEventTypeACHOriginationInitiated, FinancialEventTypeACHOriginationProcessed, FinancialEventTypeACHOriginationReleased, FinancialEventTypeACHOriginationRejected, FinancialEventTypeACHOriginationReviewed, FinancialEventTypeACHOriginationSettled, FinancialEventTypeACHReceiptProcessed, FinancialEventTypeACHReceiptReleased, FinancialEventTypeACHReceiptSettled, FinancialEventTypeACHReturnInitiated, FinancialEventTypeACHReturnProcessed, FinancialEventTypeACHReturnRejected, FinancialEventTypeACHReturnSettled, FinancialEventTypeAuthorization, FinancialEventTypeAuthorizationAdvice, FinancialEventTypeAuthorizationExpiry, FinancialEventTypeAuthorizationReversal, FinancialEventTypeBalanceInquiry, FinancialEventTypeBillingError, FinancialEventTypeBillingErrorReversal, FinancialEventTypeCardToCard, FinancialEventTypeCashBack, FinancialEventTypeCashBackReversal, FinancialEventTypeClearing, FinancialEventTypeCollection, FinancialEventTypeCorrectionCredit, FinancialEventTypeCorrectionDebit, FinancialEventTypeCreditAuthorization, FinancialEventTypeCreditAuthorizationAdvice, FinancialEventTypeCurrencyConversion, FinancialEventTypeCurrencyConversionReversal, FinancialEventTypeDisputeWon, FinancialEventTypeExternalACHCanceled, FinancialEventTypeExternalACHInitiated, FinancialEventTypeExternalACHReleased, FinancialEventTypeExternalACHReversed, FinancialEventTypeExternalACHSettled, FinancialEventTypeExternalCheckCanceled, FinancialEventTypeExternalCheckInitiated, FinancialEventTypeExternalCheckReleased, FinancialEventTypeExternalCheckReversed, FinancialEventTypeExternalCheckSettled, FinancialEventTypeExternalFednowCanceled, FinancialEventTypeExternalFednowInitiated, FinancialEventTypeExternalFednowReleased, FinancialEventTypeExternalFednowReversed, FinancialEventTypeExternalFednowSettled, FinancialEventTypeExternalRtpCanceled, FinancialEventTypeExternalRtpInitiated, FinancialEventTypeExternalRtpReleased, FinancialEventTypeExternalRtpReversed, FinancialEventTypeExternalRtpSettled, FinancialEventTypeExternalTransferCanceled, FinancialEventTypeExternalTransferInitiated, FinancialEventTypeExternalTransferReleased, FinancialEventTypeExternalTransferReversed, FinancialEventTypeExternalTransferSettled, FinancialEventTypeExternalWireCanceled, FinancialEventTypeExternalWireInitiated, FinancialEventTypeExternalWireReleased, FinancialEventTypeExternalWireReversed, FinancialEventTypeExternalWireSettled, FinancialEventTypeFinancialAuthorization, FinancialEventTypeFinancialCreditAuthorization, FinancialEventTypeInterest, FinancialEventTypeInterestReversal, FinancialEventTypeInternalAdjustment, FinancialEventTypeLatePayment, FinancialEventTypeLatePaymentReversal, FinancialEventTypeLossWriteOff, FinancialEventTypeProvisionalCredit, FinancialEventTypeProvisionalCreditReversal, FinancialEventTypeService, FinancialEventTypeReturn, FinancialEventTypeReturnReversal, FinancialEventTypeTransfer, FinancialEventTypeTransferInsufficientFunds, FinancialEventTypeReturnedPayment, FinancialEventTypeReturnedPaymentReversal, FinancialEventTypeLithicNetworkPayment, FinancialEventTypeAnnual, FinancialEventTypeAnnualReversal, FinancialEventTypeQuarterly, FinancialEventTypeQuarterlyReversal, FinancialEventTypeMonthly, FinancialEventTypeMonthlyReversal, FinancialEventTypeAccountToAccount: + case FinancialEventTypeACHOriginationCancelled, FinancialEventTypeACHOriginationInitiated, FinancialEventTypeACHOriginationProcessed, FinancialEventTypeACHOriginationReleased, FinancialEventTypeACHOriginationRejected, FinancialEventTypeACHOriginationReviewed, FinancialEventTypeACHOriginationSettled, FinancialEventTypeACHReceiptProcessed, FinancialEventTypeACHReceiptReleased, FinancialEventTypeACHReceiptSettled, FinancialEventTypeACHReturnInitiated, FinancialEventTypeACHReturnProcessed, FinancialEventTypeACHReturnRejected, FinancialEventTypeACHReturnSettled, FinancialEventTypeAuthorization, FinancialEventTypeAuthorizationAdvice, FinancialEventTypeAuthorizationExpiry, FinancialEventTypeAuthorizationReversal, FinancialEventTypeBalanceInquiry, FinancialEventTypeBillingError, FinancialEventTypeBillingErrorReversal, FinancialEventTypeCardToCard, FinancialEventTypeCashBack, FinancialEventTypeCashBackReversal, FinancialEventTypeClearing, FinancialEventTypeCollection, FinancialEventTypeCorrectionCredit, FinancialEventTypeCorrectionDebit, FinancialEventTypeCreditAuthorization, FinancialEventTypeCreditAuthorizationAdvice, FinancialEventTypeCurrencyConversion, FinancialEventTypeCurrencyConversionReversal, FinancialEventTypeDisputeWon, FinancialEventTypeExternalACHCanceled, FinancialEventTypeExternalACHInitiated, FinancialEventTypeExternalACHReleased, FinancialEventTypeExternalACHReversed, FinancialEventTypeExternalACHSettled, FinancialEventTypeExternalCheckCanceled, FinancialEventTypeExternalCheckInitiated, FinancialEventTypeExternalCheckReleased, FinancialEventTypeExternalCheckReversed, FinancialEventTypeExternalCheckSettled, FinancialEventTypeExternalFednowCanceled, FinancialEventTypeExternalFednowInitiated, FinancialEventTypeExternalFednowReleased, FinancialEventTypeExternalFednowReversed, FinancialEventTypeExternalFednowSettled, FinancialEventTypeExternalRtpCanceled, FinancialEventTypeExternalRtpInitiated, FinancialEventTypeExternalRtpReleased, FinancialEventTypeExternalRtpReversed, FinancialEventTypeExternalRtpSettled, FinancialEventTypeExternalTransferCanceled, FinancialEventTypeExternalTransferInitiated, FinancialEventTypeExternalTransferReleased, FinancialEventTypeExternalTransferReversed, FinancialEventTypeExternalTransferSettled, FinancialEventTypeExternalWireCanceled, FinancialEventTypeExternalWireInitiated, FinancialEventTypeExternalWireReleased, FinancialEventTypeExternalWireReversed, FinancialEventTypeExternalWireSettled, FinancialEventTypeFinancialAuthorization, FinancialEventTypeFinancialCreditAuthorization, FinancialEventTypeInterest, FinancialEventTypeInterestReversal, FinancialEventTypeInternalAdjustment, FinancialEventTypeLatePayment, FinancialEventTypeLatePaymentReversal, FinancialEventTypeLossWriteOff, FinancialEventTypeProvisionalCredit, FinancialEventTypeProvisionalCreditReversal, FinancialEventTypeService, FinancialEventTypeReturn, FinancialEventTypeReturnReversal, FinancialEventTypeTransfer, FinancialEventTypeTransferInsufficientFunds, FinancialEventTypeReturnedPayment, FinancialEventTypeReturnedPaymentReversal, FinancialEventTypeLithicNetworkPayment, FinancialEventTypeLithicProgramTransfer, FinancialEventTypeBankProgramTransfer, FinancialEventTypeAnnual, FinancialEventTypeAnnualReversal, FinancialEventTypeQuarterly, FinancialEventTypeQuarterlyReversal, FinancialEventTypeMonthly, FinancialEventTypeMonthlyReversal, FinancialEventTypeAccountToAccount: return true } return false diff --git a/threedsdecisioning.go b/threedsdecisioning.go index 0a3c4ec2..2af35a56 100644 --- a/threedsdecisioning.go +++ b/threedsdecisioning.go @@ -34,7 +34,7 @@ func NewThreeDSDecisioningService(opts ...option.RequestOption) (r *ThreeDSDecis // Card program's response to a 3DS Challenge Request. Challenge Request is emitted // as a webhook -// [three_ds_authentication.challenge](https://docs.lithic.com/reference/post_three-ds-authentication-challenge) +// [three_ds_authentication.challenge](https://docs.lithic.com/reference/threedsauthenticationchallengewebhook) // and your Card Program needs to be configured with Out of Band (OOB) Challenges // in order to receive it (see https://docs.lithic.com/docs/3ds-challenge-flow for // more information). diff --git a/transaction.go b/transaction.go index c5fd2515..f9edce93 100644 --- a/transaction.go +++ b/transaction.go @@ -136,9 +136,10 @@ func (r *TransactionService) SimulateAuthorizationAdvice(ctx context.Context, bo // Clears an existing authorization, either debit or credit. After this event, the // transaction transitions from `PENDING` to `SETTLED` status. // -// If `amount` is not set, the full amount of the transaction will be cleared. -// Transactions that have already cleared, either partially or fully, cannot be -// cleared again using this endpoint. +// If `amount` is not set, the full amount of the transaction will be cleared. This +// endpoint may be called multiple times against the same authorization to simulate +// a multiple-completion scenario, with each call creating a separate clearing +// event. func (r *TransactionService) SimulateClearing(ctx context.Context, body TransactionSimulateClearingParams, opts ...option.RequestOption) (res *TransactionSimulateClearingResponse, err error) { opts = slices.Concat(r.Options, opts) path := "v1/simulate/clearing" @@ -2140,9 +2141,10 @@ type TransactionSimulateClearingParams struct { // example, entering 100 in this field will result in a -100 amount in the // transaction, if the original authorization is a credit authorization. // - // If `amount` is not set, the full amount of the transaction will be cleared. - // Transactions that have already cleared, either partially or fully, cannot be - // cleared again using this endpoint. + // If `amount` is not set, the full amount of the transaction will be cleared. This + // endpoint may be called multiple times against the same authorization to simulate + // a multiple-completion scenario, with each call creating a separate clearing + // event. Amount param.Field[int64] `json:"amount"` } diff --git a/webhook.go b/webhook.go index 1f5e0e68..760a8690 100644 --- a/webhook.go +++ b/webhook.go @@ -3238,6 +3238,194 @@ func (r DisputeEvidenceUploadFailedWebhookEventEventType) IsKnown() bool { return false } +type EmbedSessionGeneratedWebhookEvent struct { + // The token of the account associated with the card + AccountToken string `json:"account_token" api:"required" format:"uuid"` + // The token of the card associated with the embed session + CardToken string `json:"card_token" api:"required" format:"uuid"` + // Details about the request that generated the embed session + DeviceDetails EmbedSessionGeneratedWebhookEventDeviceDetails `json:"device_details" api:"required"` + // The type of event + EventType EmbedSessionGeneratedWebhookEventEventType `json:"event_type" api:"required"` + // The identifier shared by webhook events for the same embed session. + SessionID string `json:"session_id" api:"required" format:"uuid"` + // The type of embed session that was generated + SessionType EmbedSessionGeneratedWebhookEventSessionType `json:"session_type" api:"required"` + JSON embedSessionGeneratedWebhookEventJSON `json:"-"` +} + +// embedSessionGeneratedWebhookEventJSON contains the JSON metadata for the struct +// [EmbedSessionGeneratedWebhookEvent] +type embedSessionGeneratedWebhookEventJSON struct { + AccountToken apijson.Field + CardToken apijson.Field + DeviceDetails apijson.Field + EventType apijson.Field + SessionID apijson.Field + SessionType apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *EmbedSessionGeneratedWebhookEvent) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r embedSessionGeneratedWebhookEventJSON) RawJSON() string { + return r.raw +} + +func (r EmbedSessionGeneratedWebhookEvent) implementsParsedWebhookEvent() {} + +// Details about the request that generated the embed session +type EmbedSessionGeneratedWebhookEventDeviceDetails struct { + // The IP address recorded for the request that generated the event + IPAddress string `json:"ip_address" api:"required"` + JSON embedSessionGeneratedWebhookEventDeviceDetailsJSON `json:"-"` +} + +// embedSessionGeneratedWebhookEventDeviceDetailsJSON contains the JSON metadata +// for the struct [EmbedSessionGeneratedWebhookEventDeviceDetails] +type embedSessionGeneratedWebhookEventDeviceDetailsJSON struct { + IPAddress apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *EmbedSessionGeneratedWebhookEventDeviceDetails) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r embedSessionGeneratedWebhookEventDeviceDetailsJSON) RawJSON() string { + return r.raw +} + +// The type of event +type EmbedSessionGeneratedWebhookEventEventType string + +const ( + EmbedSessionGeneratedWebhookEventEventTypeEmbedSessionGenerated EmbedSessionGeneratedWebhookEventEventType = "embed.session_generated" +) + +func (r EmbedSessionGeneratedWebhookEventEventType) IsKnown() bool { + switch r { + case EmbedSessionGeneratedWebhookEventEventTypeEmbedSessionGenerated: + return true + } + return false +} + +// The type of embed session that was generated +type EmbedSessionGeneratedWebhookEventSessionType string + +const ( + EmbedSessionGeneratedWebhookEventSessionTypeCardEmbed EmbedSessionGeneratedWebhookEventSessionType = "CARD_EMBED" + EmbedSessionGeneratedWebhookEventSessionTypePinSettingEmbed EmbedSessionGeneratedWebhookEventSessionType = "PIN_SETTING_EMBED" +) + +func (r EmbedSessionGeneratedWebhookEventSessionType) IsKnown() bool { + switch r { + case EmbedSessionGeneratedWebhookEventSessionTypeCardEmbed, EmbedSessionGeneratedWebhookEventSessionTypePinSettingEmbed: + return true + } + return false +} + +type EmbedViewedWebhookEvent struct { + // The token of the account associated with the card + AccountToken string `json:"account_token" api:"required" format:"uuid"` + // The token of the card whose details were revealed + CardToken string `json:"card_token" api:"required" format:"uuid"` + // Details about the request that revealed the card detail + DeviceDetails EmbedViewedWebhookEventDeviceDetails `json:"device_details" api:"required"` + // The type of card detail that was revealed + EmbedType EmbedViewedWebhookEventEmbedType `json:"embed_type" api:"required"` + // The type of event + EventType EmbedViewedWebhookEventEventType `json:"event_type" api:"required"` + // The identifier shared by webhook events for the same embed session. + SessionID string `json:"session_id" api:"required" format:"uuid"` + JSON embedViewedWebhookEventJSON `json:"-"` +} + +// embedViewedWebhookEventJSON contains the JSON metadata for the struct +// [EmbedViewedWebhookEvent] +type embedViewedWebhookEventJSON struct { + AccountToken apijson.Field + CardToken apijson.Field + DeviceDetails apijson.Field + EmbedType apijson.Field + EventType apijson.Field + SessionID apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *EmbedViewedWebhookEvent) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r embedViewedWebhookEventJSON) RawJSON() string { + return r.raw +} + +func (r EmbedViewedWebhookEvent) implementsParsedWebhookEvent() {} + +// Details about the request that revealed the card detail +type EmbedViewedWebhookEventDeviceDetails struct { + // The IP address recorded for the request that generated the event + IPAddress string `json:"ip_address" api:"required"` + JSON embedViewedWebhookEventDeviceDetailsJSON `json:"-"` +} + +// embedViewedWebhookEventDeviceDetailsJSON contains the JSON metadata for the +// struct [EmbedViewedWebhookEventDeviceDetails] +type embedViewedWebhookEventDeviceDetailsJSON struct { + IPAddress apijson.Field + raw string + ExtraFields map[string]apijson.Field +} + +func (r *EmbedViewedWebhookEventDeviceDetails) UnmarshalJSON(data []byte) (err error) { + return apijson.UnmarshalRoot(data, r) +} + +func (r embedViewedWebhookEventDeviceDetailsJSON) RawJSON() string { + return r.raw +} + +// The type of card detail that was revealed +type EmbedViewedWebhookEventEmbedType string + +const ( + EmbedViewedWebhookEventEmbedTypePan EmbedViewedWebhookEventEmbedType = "PAN" + EmbedViewedWebhookEventEmbedTypeCvv EmbedViewedWebhookEventEmbedType = "CVV" + EmbedViewedWebhookEventEmbedTypeExpMonth EmbedViewedWebhookEventEmbedType = "EXP_MONTH" + EmbedViewedWebhookEventEmbedTypeExpYear EmbedViewedWebhookEventEmbedType = "EXP_YEAR" +) + +func (r EmbedViewedWebhookEventEmbedType) IsKnown() bool { + switch r { + case EmbedViewedWebhookEventEmbedTypePan, EmbedViewedWebhookEventEmbedTypeCvv, EmbedViewedWebhookEventEmbedTypeExpMonth, EmbedViewedWebhookEventEmbedTypeExpYear: + return true + } + return false +} + +// The type of event +type EmbedViewedWebhookEventEventType string + +const ( + EmbedViewedWebhookEventEventTypeEmbedViewed EmbedViewedWebhookEventEventType = "embed.viewed" +) + +func (r EmbedViewedWebhookEventEventType) IsKnown() bool { + switch r { + case EmbedViewedWebhookEventEventTypeEmbedViewed: + return true + } + return false +} + type ExternalBankAccountCreatedWebhookEvent struct { // The type of event that occurred. EventType ExternalBankAccountCreatedWebhookEventEventType `json:"event_type" api:"required"` @@ -5052,6 +5240,10 @@ type ParsedWebhookEvent struct { // This field can have the runtime type of [[]SettlementSummaryDetails]. Details interface{} `json:"details"` Device Device `json:"device"` + // This field can have the runtime type of + // [EmbedSessionGeneratedWebhookEventDeviceDetails], + // [EmbedViewedWebhookEventDeviceDetails]. + DeviceDetails interface{} `json:"device_details"` // Contains the metadata for the digital wallet being tokenized. DigitalWalletTokenMetadata TokenMetadata `json:"digital_wallet_token_metadata"` Direction ParsedWebhookEventDirection `json:"direction"` @@ -5084,6 +5276,8 @@ type ParsedWebhookEvent struct { // If updated, the newly updated email associated with the account_holder otherwise // the existing email is provided. Email string `json:"email"` + // The type of card detail that was revealed + EmbedType ParsedWebhookEventEmbedType `json:"embed_type"` // Balance at the end of the day EndingBalance int64 `json:"ending_balance"` // The token of the entity that the document belongs to @@ -5335,6 +5529,10 @@ type ParsedWebhookEvent struct { // This field can have the runtime type of [CardAuthorizationServiceLocation], // [TransactionServiceLocation]. ServiceLocation interface{} `json:"service_location"` + // The identifier shared by webhook events for the same embed session. + SessionID string `json:"session_id" format:"uuid"` + // The type of embed session that was generated + SessionType ParsedWebhookEventSessionType `json:"session_type"` // Deprecated, use `amounts`. Amount (in cents) of the transaction that has been // settled, including any acquirer fees. // @@ -5566,6 +5764,7 @@ type parsedWebhookEventJSON struct { Descriptor apijson.Field Details apijson.Field Device apijson.Field + DeviceDetails apijson.Field DigitalWalletTokenMetadata apijson.Field Direction apijson.Field Disposition apijson.Field @@ -5578,6 +5777,7 @@ type parsedWebhookEventJSON struct { DownloadURL apijson.Field DownloadURLExpiresAt apijson.Field Email apijson.Field + EmbedType apijson.Field EndingBalance apijson.Field EntityToken apijson.Field EventToken apijson.Field @@ -5668,6 +5868,8 @@ type parsedWebhookEventJSON struct { RoutingNumber apijson.Field RuleResults apijson.Field ServiceLocation apijson.Field + SessionID apijson.Field + SessionType apijson.Field SettledAmount apijson.Field SettledNetAmount apijson.Field SettlementInstitutionID apijson.Field @@ -5766,8 +5968,8 @@ func (r *ParsedWebhookEvent) UnmarshalJSON(data []byte) (err error) { // [DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent], // [DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent], // [DigitalWalletTokenizationUpdatedWebhookEvent], [DisputeUpdatedWebhookEvent], -// [DisputeEvidenceUploadFailedWebhookEvent], -// [ExternalBankAccountCreatedWebhookEvent], +// [DisputeEvidenceUploadFailedWebhookEvent], [EmbedSessionGeneratedWebhookEvent], +// [EmbedViewedWebhookEvent], [ExternalBankAccountCreatedWebhookEvent], // [ExternalBankAccountUpdatedWebhookEvent], [ExternalPaymentCreatedWebhookEvent], // [ExternalPaymentUpdatedWebhookEvent], [FinancialAccountCreatedWebhookEvent], // [FinancialAccountUpdatedWebhookEvent], [FundingEventCreatedWebhookEvent], @@ -5816,8 +6018,8 @@ func (r ParsedWebhookEvent) AsUnion() ParsedWebhookEventUnion { // [DigitalWalletTokenizationTwoFactorAuthenticationCodeWebhookEvent], // [DigitalWalletTokenizationTwoFactorAuthenticationCodeSentWebhookEvent], // [DigitalWalletTokenizationUpdatedWebhookEvent], [DisputeUpdatedWebhookEvent], -// [DisputeEvidenceUploadFailedWebhookEvent], -// [ExternalBankAccountCreatedWebhookEvent], +// [DisputeEvidenceUploadFailedWebhookEvent], [EmbedSessionGeneratedWebhookEvent], +// [EmbedViewedWebhookEvent], [ExternalBankAccountCreatedWebhookEvent], // [ExternalBankAccountUpdatedWebhookEvent], [ExternalPaymentCreatedWebhookEvent], // [ExternalPaymentUpdatedWebhookEvent], [FinancialAccountCreatedWebhookEvent], // [FinancialAccountUpdatedWebhookEvent], [FundingEventCreatedWebhookEvent], @@ -5982,6 +6184,14 @@ func init() { TypeFilter: gjson.JSON, Type: reflect.TypeOf(DisputeEvidenceUploadFailedWebhookEvent{}), }, + apijson.UnionVariant{ + TypeFilter: gjson.JSON, + Type: reflect.TypeOf(EmbedSessionGeneratedWebhookEvent{}), + }, + apijson.UnionVariant{ + TypeFilter: gjson.JSON, + Type: reflect.TypeOf(EmbedViewedWebhookEvent{}), + }, apijson.UnionVariant{ TypeFilter: gjson.JSON, Type: reflect.TypeOf(ExternalBankAccountCreatedWebhookEvent{}), @@ -6701,6 +6911,7 @@ const ( ParsedWebhookEventCategoryInternal ParsedWebhookEventCategory = "INTERNAL" ParsedWebhookEventCategoryReward ParsedWebhookEventCategory = "REWARD" ParsedWebhookEventCategoryProgramFunding ParsedWebhookEventCategory = "PROGRAM_FUNDING" + ParsedWebhookEventCategoryProgramTransfer ParsedWebhookEventCategory = "PROGRAM_TRANSFER" ParsedWebhookEventCategoryTransfer ParsedWebhookEventCategory = "TRANSFER" ParsedWebhookEventCategoryExternalWire ParsedWebhookEventCategory = "EXTERNAL_WIRE" ParsedWebhookEventCategoryExternalACH ParsedWebhookEventCategory = "EXTERNAL_ACH" @@ -6721,7 +6932,7 @@ const ( func (r ParsedWebhookEventCategory) IsKnown() bool { switch r { - case ParsedWebhookEventCategoryAdjustment, ParsedWebhookEventCategoryBalanceOrFunding, ParsedWebhookEventCategoryDerecognition, ParsedWebhookEventCategoryDispute, ParsedWebhookEventCategoryFee, ParsedWebhookEventCategoryInternal, ParsedWebhookEventCategoryReward, ParsedWebhookEventCategoryProgramFunding, ParsedWebhookEventCategoryTransfer, ParsedWebhookEventCategoryExternalWire, ParsedWebhookEventCategoryExternalACH, ParsedWebhookEventCategoryExternalCheck, ParsedWebhookEventCategoryExternalFednow, ParsedWebhookEventCategoryExternalRtp, ParsedWebhookEventCategoryExternalTransfer, ParsedWebhookEventCategoryManagementFee, ParsedWebhookEventCategoryManagementDispute, ParsedWebhookEventCategoryManagementReward, ParsedWebhookEventCategoryManagementAdjustment, ParsedWebhookEventCategoryManagementDisbursement, ParsedWebhookEventCategoryACH, ParsedWebhookEventCategoryWire, ParsedWebhookEventCategoryCard, ParsedWebhookEventCategoryHold: + case ParsedWebhookEventCategoryAdjustment, ParsedWebhookEventCategoryBalanceOrFunding, ParsedWebhookEventCategoryDerecognition, ParsedWebhookEventCategoryDispute, ParsedWebhookEventCategoryFee, ParsedWebhookEventCategoryInternal, ParsedWebhookEventCategoryReward, ParsedWebhookEventCategoryProgramFunding, ParsedWebhookEventCategoryProgramTransfer, ParsedWebhookEventCategoryTransfer, ParsedWebhookEventCategoryExternalWire, ParsedWebhookEventCategoryExternalACH, ParsedWebhookEventCategoryExternalCheck, ParsedWebhookEventCategoryExternalFednow, ParsedWebhookEventCategoryExternalRtp, ParsedWebhookEventCategoryExternalTransfer, ParsedWebhookEventCategoryManagementFee, ParsedWebhookEventCategoryManagementDispute, ParsedWebhookEventCategoryManagementReward, ParsedWebhookEventCategoryManagementAdjustment, ParsedWebhookEventCategoryManagementDisbursement, ParsedWebhookEventCategoryACH, ParsedWebhookEventCategoryWire, ParsedWebhookEventCategoryCard, ParsedWebhookEventCategoryHold: return true } return false @@ -6885,6 +7096,24 @@ func (r ParsedWebhookEventDocumentType) IsKnown() bool { return false } +// The type of card detail that was revealed +type ParsedWebhookEventEmbedType string + +const ( + ParsedWebhookEventEmbedTypePan ParsedWebhookEventEmbedType = "PAN" + ParsedWebhookEventEmbedTypeCvv ParsedWebhookEventEmbedType = "CVV" + ParsedWebhookEventEmbedTypeExpMonth ParsedWebhookEventEmbedType = "EXP_MONTH" + ParsedWebhookEventEmbedTypeExpYear ParsedWebhookEventEmbedType = "EXP_YEAR" +) + +func (r ParsedWebhookEventEmbedType) IsKnown() bool { + switch r { + case ParsedWebhookEventEmbedTypePan, ParsedWebhookEventEmbedTypeCvv, ParsedWebhookEventEmbedTypeExpMonth, ParsedWebhookEventEmbedTypeExpYear: + return true + } + return false +} + // The type of event that occurred. type ParsedWebhookEventEventType string @@ -6921,6 +7150,8 @@ const ( ParsedWebhookEventEventTypeDigitalWalletTokenizationUpdated ParsedWebhookEventEventType = "digital_wallet.tokenization_updated" ParsedWebhookEventEventTypeDisputeUpdated ParsedWebhookEventEventType = "dispute.updated" ParsedWebhookEventEventTypeDisputeEvidenceUploadFailed ParsedWebhookEventEventType = "dispute_evidence.upload_failed" + ParsedWebhookEventEventTypeEmbedSessionGenerated ParsedWebhookEventEventType = "embed.session_generated" + ParsedWebhookEventEventTypeEmbedViewed ParsedWebhookEventEventType = "embed.viewed" ParsedWebhookEventEventTypeExternalBankAccountCreated ParsedWebhookEventEventType = "external_bank_account.created" ParsedWebhookEventEventTypeExternalBankAccountUpdated ParsedWebhookEventEventType = "external_bank_account.updated" ParsedWebhookEventEventTypeExternalPaymentCreated ParsedWebhookEventEventType = "external_payment.created" @@ -6955,7 +7186,7 @@ const ( func (r ParsedWebhookEventEventType) IsKnown() bool { switch r { - case ParsedWebhookEventEventTypeAccountHolderCreated, ParsedWebhookEventEventTypeAccountHolderUpdated, ParsedWebhookEventEventTypeAccountHolderVerification, ParsedWebhookEventEventTypeAccountHolderDocumentUpdated, ParsedWebhookEventEventTypeCardAuthorizationApprovalRequest, ParsedWebhookEventEventTypeCardAuthorizationChallenge, ParsedWebhookEventEventTypeCardAuthorizationChallengeResponse, ParsedWebhookEventEventTypeAuthRulesBacktestReportCreated, ParsedWebhookEventEventTypeBalanceUpdated, ParsedWebhookEventEventTypeBookTransferTransactionCreated, ParsedWebhookEventEventTypeBookTransferTransactionUpdated, ParsedWebhookEventEventTypeCardCreated, ParsedWebhookEventEventTypeCardConverted, ParsedWebhookEventEventTypeCardRenewed, ParsedWebhookEventEventTypeCardReissued, ParsedWebhookEventEventTypeCardShipped, ParsedWebhookEventEventTypeCardUpdated, ParsedWebhookEventEventTypeCardTransactionUpdated, ParsedWebhookEventEventTypeCardTransactionEnhancedDataCreated, ParsedWebhookEventEventTypeCardTransactionEnhancedDataUpdated, ParsedWebhookEventEventTypeClaimCreated, ParsedWebhookEventEventTypeClaimUpdated, ParsedWebhookEventEventTypeClaimDocumentUploaded, ParsedWebhookEventEventTypeClaimDocumentAccepted, ParsedWebhookEventEventTypeClaimDocumentRejected, ParsedWebhookEventEventTypeDigitalWalletTokenizationApprovalRequest, ParsedWebhookEventEventTypeDigitalWalletTokenizationResult, ParsedWebhookEventEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCode, ParsedWebhookEventEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCodeSent, ParsedWebhookEventEventTypeDigitalWalletTokenizationUpdated, ParsedWebhookEventEventTypeDisputeUpdated, ParsedWebhookEventEventTypeDisputeEvidenceUploadFailed, ParsedWebhookEventEventTypeExternalBankAccountCreated, ParsedWebhookEventEventTypeExternalBankAccountUpdated, ParsedWebhookEventEventTypeExternalPaymentCreated, ParsedWebhookEventEventTypeExternalPaymentUpdated, ParsedWebhookEventEventTypeFinancialAccountCreated, ParsedWebhookEventEventTypeFinancialAccountUpdated, ParsedWebhookEventEventTypeFundingEventCreated, ParsedWebhookEventEventTypeLoanTapeCreated, ParsedWebhookEventEventTypeLoanTapeUpdated, ParsedWebhookEventEventTypeManagementOperationCreated, ParsedWebhookEventEventTypeManagementOperationUpdated, ParsedWebhookEventEventTypeInternalTransactionCreated, ParsedWebhookEventEventTypeInternalTransactionUpdated, ParsedWebhookEventEventTypeNetworkTotalCreated, ParsedWebhookEventEventTypeNetworkTotalUpdated, ParsedWebhookEventEventTypePaymentTransactionCreated, ParsedWebhookEventEventTypePaymentTransactionUpdated, ParsedWebhookEventEventTypeSettlementReportUpdated, ParsedWebhookEventEventTypeStatementsCreated, ParsedWebhookEventEventTypeThreeDSAuthenticationCreated, ParsedWebhookEventEventTypeThreeDSAuthenticationUpdated, ParsedWebhookEventEventTypeThreeDSAuthenticationChallenge, ParsedWebhookEventEventTypeTokenizationApprovalRequest, ParsedWebhookEventEventTypeTokenizationResult, ParsedWebhookEventEventTypeTokenizationTwoFactorAuthenticationCode, ParsedWebhookEventEventTypeTokenizationTwoFactorAuthenticationCodeSent, ParsedWebhookEventEventTypeTokenizationUpdated, ParsedWebhookEventEventTypeThreeDSAuthenticationApprovalRequest, ParsedWebhookEventEventTypeDisputeTransactionCreated, ParsedWebhookEventEventTypeDisputeTransactionUpdated: + case ParsedWebhookEventEventTypeAccountHolderCreated, ParsedWebhookEventEventTypeAccountHolderUpdated, ParsedWebhookEventEventTypeAccountHolderVerification, ParsedWebhookEventEventTypeAccountHolderDocumentUpdated, ParsedWebhookEventEventTypeCardAuthorizationApprovalRequest, ParsedWebhookEventEventTypeCardAuthorizationChallenge, ParsedWebhookEventEventTypeCardAuthorizationChallengeResponse, ParsedWebhookEventEventTypeAuthRulesBacktestReportCreated, ParsedWebhookEventEventTypeBalanceUpdated, ParsedWebhookEventEventTypeBookTransferTransactionCreated, ParsedWebhookEventEventTypeBookTransferTransactionUpdated, ParsedWebhookEventEventTypeCardCreated, ParsedWebhookEventEventTypeCardConverted, ParsedWebhookEventEventTypeCardRenewed, ParsedWebhookEventEventTypeCardReissued, ParsedWebhookEventEventTypeCardShipped, ParsedWebhookEventEventTypeCardUpdated, ParsedWebhookEventEventTypeCardTransactionUpdated, ParsedWebhookEventEventTypeCardTransactionEnhancedDataCreated, ParsedWebhookEventEventTypeCardTransactionEnhancedDataUpdated, ParsedWebhookEventEventTypeClaimCreated, ParsedWebhookEventEventTypeClaimUpdated, ParsedWebhookEventEventTypeClaimDocumentUploaded, ParsedWebhookEventEventTypeClaimDocumentAccepted, ParsedWebhookEventEventTypeClaimDocumentRejected, ParsedWebhookEventEventTypeDigitalWalletTokenizationApprovalRequest, ParsedWebhookEventEventTypeDigitalWalletTokenizationResult, ParsedWebhookEventEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCode, ParsedWebhookEventEventTypeDigitalWalletTokenizationTwoFactorAuthenticationCodeSent, ParsedWebhookEventEventTypeDigitalWalletTokenizationUpdated, ParsedWebhookEventEventTypeDisputeUpdated, ParsedWebhookEventEventTypeDisputeEvidenceUploadFailed, ParsedWebhookEventEventTypeEmbedSessionGenerated, ParsedWebhookEventEventTypeEmbedViewed, ParsedWebhookEventEventTypeExternalBankAccountCreated, ParsedWebhookEventEventTypeExternalBankAccountUpdated, ParsedWebhookEventEventTypeExternalPaymentCreated, ParsedWebhookEventEventTypeExternalPaymentUpdated, ParsedWebhookEventEventTypeFinancialAccountCreated, ParsedWebhookEventEventTypeFinancialAccountUpdated, ParsedWebhookEventEventTypeFundingEventCreated, ParsedWebhookEventEventTypeLoanTapeCreated, ParsedWebhookEventEventTypeLoanTapeUpdated, ParsedWebhookEventEventTypeManagementOperationCreated, ParsedWebhookEventEventTypeManagementOperationUpdated, ParsedWebhookEventEventTypeInternalTransactionCreated, ParsedWebhookEventEventTypeInternalTransactionUpdated, ParsedWebhookEventEventTypeNetworkTotalCreated, ParsedWebhookEventEventTypeNetworkTotalUpdated, ParsedWebhookEventEventTypePaymentTransactionCreated, ParsedWebhookEventEventTypePaymentTransactionUpdated, ParsedWebhookEventEventTypeSettlementReportUpdated, ParsedWebhookEventEventTypeStatementsCreated, ParsedWebhookEventEventTypeThreeDSAuthenticationCreated, ParsedWebhookEventEventTypeThreeDSAuthenticationUpdated, ParsedWebhookEventEventTypeThreeDSAuthenticationChallenge, ParsedWebhookEventEventTypeTokenizationApprovalRequest, ParsedWebhookEventEventTypeTokenizationResult, ParsedWebhookEventEventTypeTokenizationTwoFactorAuthenticationCode, ParsedWebhookEventEventTypeTokenizationTwoFactorAuthenticationCodeSent, ParsedWebhookEventEventTypeTokenizationUpdated, ParsedWebhookEventEventTypeThreeDSAuthenticationApprovalRequest, ParsedWebhookEventEventTypeDisputeTransactionCreated, ParsedWebhookEventEventTypeDisputeTransactionUpdated: return true } return false @@ -7236,6 +7467,22 @@ func (r ParsedWebhookEventResult) IsKnown() bool { return false } +// The type of embed session that was generated +type ParsedWebhookEventSessionType string + +const ( + ParsedWebhookEventSessionTypeCardEmbed ParsedWebhookEventSessionType = "CARD_EMBED" + ParsedWebhookEventSessionTypePinSettingEmbed ParsedWebhookEventSessionType = "PIN_SETTING_EMBED" +) + +func (r ParsedWebhookEventSessionType) IsKnown() bool { + switch r { + case ParsedWebhookEventSessionTypeCardEmbed, ParsedWebhookEventSessionTypePinSettingEmbed: + return true + } + return false +} + // The specific shipping method used to ship the card. type ParsedWebhookEventShippingMethod string