From 37bb87dacb2b63eb933303b66830bce11f50f8b5 Mon Sep 17 00:00:00 2001 From: Haydn Dias Date: Wed, 30 Oct 2024 17:18:38 +0000 Subject: [PATCH] Regenerate SDK with Core API 3.0.24, up from 3.0.19 --- Marqeta.Core.Sdk/CoreAPI.yaml | 612 ++++---- .../Item/Disputes/DisputesRequestBuilder.cs | 24 +- .../Earlyfunds/EarlyfundsRequestBuilder.cs | 4 +- .../Transitions/TransitionsRequestBuilder.cs | 2 +- .../Bundles/BundlesRequestBuilder.cs | 2 +- .../Item/Promote/PromoteRequestBuilder.cs | 4 +- .../Item/WithTokenItemRequestBuilder.cs | 4 +- .../Fundingsources/Ach/AchRequestBuilder.cs | 4 +- .../VerificationamountsRequestBuilder.cs | 86 -- ...hFunding_source_tokenItemRequestBuilder.cs | 53 - .../Generated/Models/AccountConfigReq.cs | 4 +- .../Generated/Models/AccountConfigResponse.cs | 2 +- .../Generated/Models/Ach_response_model.cs | 2 +- .../Models/Ach_verification_model.cs | 64 - .../Generated/Models/AmountFilter.cs | 61 - .../Generated/Models/Ani_information.cs | 10 + .../Models/Bank_transfer_response_model.cs | 4 + .../Models/Base_ach_response_model.cs | 2 +- .../Generated/Models/Card_life_cycle.cs | 4 + .../Models/Card_life_cycle_reloadability.cs | 23 + ...Control_token_request_controltoken_type.cs | 4 +- .../Models/Digital_wallet_tokenization.cs | 2 +- .../Generated/Models/DirectDepositResponse.cs | 12 +- .../Models/DirectDepositTransitionResponse.cs | 12 +- .../Models/Early_funds_request_model.cs | 2 +- Marqeta.Core.Sdk/Generated/Models/Flex.cs | 103 ++ .../Models/Funding_account_response_model.cs | 2 +- .../Models/Jit_funding_api_method.cs | 4 + .../Generated/Models/Jit_program_response.cs | 10 + .../Generated/Models/MccDynamicFilter.cs | 63 - .../Generated/Models/MerchantScope.cs | 4 + .../Generated/Models/Network_metadata.cs | 10 + .../PolicyProductMinPaymentPercentage.cs | 4 + .../PolicyProductPaymentConfiguration.cs | 4 +- ...ewardRule.cs => PolicyRewardConversion.cs} | 50 +- ...eType.cs => PolicyRewardConversionType.cs} | 8 +- .../Models/PolicyRewardPlatformRule.cs | 89 ++ ...licyRewardPlatformRule_calculation_type.cs | 14 + .../Models/PolicyRewardPlatformRule_type.cs | 14 + .../Generated/Models/PolicyRewardReq.cs | 22 +- .../Generated/Models/PolicyRewardResponse.cs | 24 +- ...lters.cs => PolicyRewardRuleAttributes.cs} | 38 +- .../Models/PolicyRewardRuleOutcome.cs | 61 - ...cType.cs => PolicyRewardSettlementType.cs} | 8 +- Marqeta.Core.Sdk/Generated/Models/Pos.cs | 16 +- .../Models/Pos_transaction_initiated_by.cs | 30 + .../Pos_transaction_initiated_category.cs | 62 + .../Generated/Models/ProductConfig.cs | 4 +- .../Models/ProductMinPaymentPercentage.cs | 4 + .../Generated/Models/Provisioning_controls.cs | 8 + .../Generated/Models/RewardCreateReq.cs | 4 + .../Generated/Models/RewardType.cs | 4 + .../Generated/Models/SubstatusCreateReq.cs | 10 +- .../Models/SubstatusCreateReq_attributes.cs | 2 +- .../SubstatusCreateReq_resource_type.cs | 2 +- .../Generated/Models/SubstatusEvent.cs | 8 +- .../Models/SubstatusEventResponseDetails.cs | 2 +- .../SubstatusEventResponseDetails_state.cs | 2 +- .../Models/SubstatusEvent_channel.cs | 2 +- .../Generated/Models/SubstatusEvent_state.cs | 2 +- .../Generated/Models/SubstatusPage.cs | 4 +- .../Generated/Models/SubstatusResponse.cs | 14 +- .../Models/SubstatusResponse_attributes.cs | 2 +- .../Models/SubstatusResponse_resource_type.cs | 10 +- .../Models/SubstatusResponse_state.cs | 2 +- .../Generated/Models/SubstatusUpdateReq.cs | 8 +- .../Models/SubstatusUpdateReq_channel.cs | 2 +- .../Models/SubstatusUpdateReq_state.cs | 2 +- .../Generated/Models/Terminal_model.cs | 16 +- ...Terminal_model_transaction_initiated_by.cs | 30 + ...al_model_transaction_initiated_category.cs | 62 + .../Models/Transaction_card_acceptor.cs | 10 + .../Generated/Models/Transaction_model.cs | 16 +- .../Models/Transaction_model_type.cs | 4 + .../Velocity_control_balance_response.cs | 4 +- .../Models/Velocity_control_request.cs | 6 +- ...elocity_control_request_velocity_window.cs | 2 +- .../Models/Velocity_control_response.cs | 4 +- .../Models/Velocity_control_update_request.cs | 6 +- ..._control_update_request_velocity_window.cs | 2 +- .../PaymentsourcesRequestBuilder.cs | 14 +- .../Generated/Pins/PinsRequestBuilder.cs | 4 +- .../Pins/Reveal/RevealRequestBuilder.cs | 4 +- .../GetSubstatusesQueryParameterType.cs | 4 + .../WithSubstatus_tokenItemRequestBuilder.cs | 4 +- .../Substatuses/SubstatusesRequestBuilder.cs | 21 +- Marqeta.Core.Sdk/Generated/kiota-lock.json | 2 +- Marqeta.Core.Sdk/SourceCoreAPI.yaml | 1236 +++++++++-------- 88 files changed, 1822 insertions(+), 1370 deletions(-) delete mode 100644 Marqeta.Core.Sdk/Generated/Fundingsources/Ach/Item/Verificationamounts/VerificationamountsRequestBuilder.cs delete mode 100644 Marqeta.Core.Sdk/Generated/Models/Ach_verification_model.cs delete mode 100644 Marqeta.Core.Sdk/Generated/Models/AmountFilter.cs create mode 100644 Marqeta.Core.Sdk/Generated/Models/Card_life_cycle_reloadability.cs create mode 100644 Marqeta.Core.Sdk/Generated/Models/Flex.cs delete mode 100644 Marqeta.Core.Sdk/Generated/Models/MccDynamicFilter.cs rename Marqeta.Core.Sdk/Generated/Models/{PolicyRewardRule.cs => PolicyRewardConversion.cs} (53%) rename Marqeta.Core.Sdk/Generated/Models/{PolicyRewardRuleType.cs => PolicyRewardConversionType.cs} (54%) create mode 100644 Marqeta.Core.Sdk/Generated/Models/PolicyRewardPlatformRule.cs create mode 100644 Marqeta.Core.Sdk/Generated/Models/PolicyRewardPlatformRule_calculation_type.cs create mode 100644 Marqeta.Core.Sdk/Generated/Models/PolicyRewardPlatformRule_type.cs rename Marqeta.Core.Sdk/Generated/Models/{PolicyRewardRuleFilters.cs => PolicyRewardRuleAttributes.cs} (56%) delete mode 100644 Marqeta.Core.Sdk/Generated/Models/PolicyRewardRuleOutcome.cs rename Marqeta.Core.Sdk/Generated/Models/{DynamicMccType.cs => PolicyRewardSettlementType.cs} (53%) create mode 100644 Marqeta.Core.Sdk/Generated/Models/Pos_transaction_initiated_by.cs create mode 100644 Marqeta.Core.Sdk/Generated/Models/Pos_transaction_initiated_category.cs create mode 100644 Marqeta.Core.Sdk/Generated/Models/Terminal_model_transaction_initiated_by.cs create mode 100644 Marqeta.Core.Sdk/Generated/Models/Terminal_model_transaction_initiated_category.cs diff --git a/Marqeta.Core.Sdk/CoreAPI.yaml b/Marqeta.Core.Sdk/CoreAPI.yaml index cbdd0937..6a49c624 100644 --- a/Marqeta.Core.Sdk/CoreAPI.yaml +++ b/Marqeta.Core.Sdk/CoreAPI.yaml @@ -6,7 +6,7 @@ info: contact: name: Marqeta email: support@marqeta.com - version: 3.0.19 + version: 3.0.24 servers: - url: /v3 paths: @@ -1032,6 +1032,24 @@ paths: - '-lastModifiedTime' type: string default: '-lastModifiedTime' + - name: ledger_entry_tokens + in: query + description: "Unique identifier of the journal entry in dispute.\nThis type of identifier can only be used for `authorization.clearing`-type journal entries." + style: form + schema: + type: array + items: + type: string + x-allowableValues: Existing `authorization.clearing`-type journal entry token + - name: statuses + in: query + description: Status of the dispute. + style: form + schema: + type: array + items: + $ref: '#/components/schemas/DisputeStatus' + x-allowableValues: Valid dispute status responses: '200': description: Expected response to a valid request @@ -3045,7 +3063,7 @@ paths: schema: $ref: '#/components/schemas/ApiError' security: - - zionToken: [ ] + - nileToken: [ ] /admin/replayfailedstatements: post: tags: @@ -3067,7 +3085,7 @@ paths: schema: $ref: '#/components/schemas/ApiError' security: - - zionToken: [ ] + - nileToken: [ ] '/admin/replayfailedstatements/{short_code}': post: tags: @@ -3097,7 +3115,7 @@ paths: schema: $ref: '#/components/schemas/ApiError' security: - - zionToken: [ ] + - nileToken: [ ] /admin/scheduleStatements: post: tags: @@ -3119,7 +3137,7 @@ paths: schema: $ref: '#/components/schemas/ApiError' security: - - zionToken: [ ] + - nileToken: [ ] '/admin/{short_code}/replayfailedstatement/{account_token}': post: tags: @@ -3156,7 +3174,7 @@ paths: schema: $ref: '#/components/schemas/ApiError' security: - - zionToken: [ ] + - nileToken: [ ] '/admin/{short_code}/retryachpayments': post: tags: @@ -3192,6 +3210,8 @@ paths: application/json: schema: $ref: '#/components/schemas/ApiError' + security: + - nileToken: [ ] /authcontrols: get: tags: @@ -3792,11 +3812,11 @@ paths: post: tags: - Funding via ACH (Beta) - summary: Apply a provisional credit to ACH transfer - description: Applies a provisional credit to an ACH transfer. + summary: Perform faster funds ACH transfer + description: Use this endpoint to post funds from an existing bank transfer more quickly to the cardholder's account. operationId: postApplyProvisionalCreditToBankTransfer requestBody: - description: ACH early funds request model + description: Early funds request model content: application/json: schema: @@ -3860,7 +3880,7 @@ paths: default: 0 - name: sort_by in: query - description: "Field on which to sort.\nUse any field in the resource model, or one of the system fields lastModifiedTime or createdTime.\nPrefix the field name with a hyphen (-) to sort in descending order.\nOmit the hyphen to sort in ascending order." + description: "Field on which to sort.\nUse any field in the resource model, or one of the system fields `lastModifiedTime` or `createdTime`.\nPrefix the field name with a hyphen (-) to sort in descending order.\nOmit the hyphen to sort in ascending order." style: form schema: type: string @@ -4061,7 +4081,7 @@ paths: default: 0 - name: sort_by in: query - description: "Field on which to sort.\nPrefix the field name with a hyphen (`-`) to sort in descending order.\nOmit the hyphen to sort in ascending order.\n\n*NOTE:*\nYou must sort using system field names such as `lastModifiedTime`, and not by the field names appearing in response bodies such as `last_modified_time`." + description: "Field on which to sort.\nPrefix the field name with a hyphen (`-`) to sort in descending order.\nOmit the hyphen to sort in ascending order.\n\n*NOTE:*\nYou must sort using system field names such as `lastModifiedTime`, not by the field names appearing in response bodies: for example, `last_modified_time`." style: form schema: enum: @@ -4163,7 +4183,7 @@ paths: tags: - Bundles (Beta) summary: Update bundle - description: 'Update a specific bundle that is not `ACTIVE` or `ARCHIVED`. Bundles are created in a `DRAFT` state, and are still modifiable at this point. Using the transitions endpoint a bundle can be transitioned from `DRAFT`, to `ACTIVE`. Once a bundle is active, it is immutable, and cannot be modified.' + description: "Update a specific bundle that is not `ACTIVE` or `ARCHIVED`.\nBundles are created in a `DRAFT` state, and are still modifiable at this point.\nUsing the transitions endpoint a bundle can be transitioned from `DRAFT`, to `ACTIVE`.\nOnce a bundle is active, it cannot be modified." operationId: updateBundle parameters: - name: token @@ -4297,7 +4317,7 @@ paths: tags: - Bundles (Beta) summary: Promote bundle - description: 'Promote a specific bundle, which replaces the current active bundle and activates the promoted bundle.' + description: Promote a specific bundle that replaces the current active bundle and activates the promoted bundle. operationId: promoteBundle parameters: - name: token @@ -5351,6 +5371,7 @@ paths: description: Number of card transitions to retrieve. style: form schema: + minimum: 0 type: integer format: int32 default: 5 @@ -7157,7 +7178,7 @@ paths: tags: - Account Holder Funding Sources summary: Create ACH source - description: "Create an ACH funding source for an existing account holder.\nSpecify the account holder of the funding source by passing a user or business token.\n\nWhen adding an ACH funding source, a small amount is deposited in the bank account as a test.\nThe test deposit should be reflected in the account after two to three business days.\nYou must then make an API call to verify the deposit amount in order to activate the ACH account.\nSee <> on this page for more information.\n\nThe response body returns details about the account, including the verification status.\nPossible ACH verification status values include `ACH_VERIFIED`, `ACH_FAILED`, and `VERIFICATION_PENDING`." + description: "Create an ACH funding source for an existing account holder.\nSpecify the account holder of the funding source by passing a user or business token.\n\nThe response body returns details about the account, including the verification status.\nPossible ACH verification status values include `ACH_VERIFIED`, `ACH_FAILED`, and `VERIFICATION_PENDING`." operationId: postFundingsourcesAch requestBody: content: @@ -7230,66 +7251,6 @@ paths: application/json: schema: $ref: '#/components/schemas/ApiError' - put: - tags: - - Account Holder Funding Sources - summary: Verify or update ACH source - description: "Verify or update an ACH funding source.\n\nIf you are verifying the ACH source, include the verification amounts in the body of the request.\nACH verification will fail if the verification amounts are not entered in the correct order.\n`verify_amount1` must match the first deposit amount, and `verify_amount2` must match the second.\n\nIf you are updating the ACH source, include the `active` field instead.\nThe `active` field is the only field you can update." - operationId: putFundingsourcesAchFundingsourcetoken - parameters: - - name: funding_source_token - in: path - description: "Unique identifier of the funding source.\n\nSend a `GET` request to `/fundingsources/user/{user_token}` to retrieve existing funding source tokens for a user or to `/fundingsources/business/{business_token}` to retrieve existing funding source tokens for a business." - required: true - style: simple - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ach_verification_model' - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/ach_response_model' - default: - description: Error response - content: - application/json: - schema: - $ref: '#/components/schemas/ApiError' - '/fundingsources/ach/{funding_source_token}/verificationamounts': - get: - tags: - - Account Holder Funding Sources - summary: Retrieve ACH verification amounts - description: "In your sandbox environment, retrieve the amounts used to verify the association with your ACH account.\n\nUse this endpoint for testing purposes only.\nIn production, verification amounts are retrieved from the bank statement of the account holder." - operationId: getFundingsourcesAchFundingsourcetokenVerificationamounts - parameters: - - name: funding_source_token - in: path - description: "Unique identifier of the funding source.\n\nSend a `GET` request to `/fundingsources/user/{user_token}` to retrieve existing funding source tokens for a user or to `/fundingsources/business/{business_token}` to retrieve existing funding source tokens for a business." - required: true - style: simple - schema: - type: string - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/ach_verification_model' - default: - description: Error response - content: - application/json: - schema: - $ref: '#/components/schemas/ApiError' /fundingsources/addresses: post: tags: @@ -8591,6 +8552,14 @@ paths: - '-lastModifiedTime' type: string default: '-lastModifiedTime' + - name: statuses + in: query + description: Array of statuses to use for filtering payment sources. + style: form + schema: + type: array + items: + $ref: '#/components/schemas/PaymentSourceStatusEnum' responses: '200': description: Response containing a list of all payment sources for a provided account @@ -8951,7 +8920,7 @@ paths: tags: - PINs summary: Create or update PIN - description: "Creates or updates a personal identification number (PIN) for an existing card.\n\nIf you want to manage a card's PIN, first create a new control token for the card by sending a `POST` request to `/pins/controltoken`, and then use that token to update the PIN.\nYou must create a card before you can manage a PIN.\n\nUnless PIN reveal functionality has been enabled for your program, you cannot retrieve a PIN that has previously been created.\nIf the PIN has been forgotten, you must either update the card's PIN or create a new card and PIN.\n\nIf you have enabled PIN reveal functionality for your program, you can send a `POST` request to the `/pins/reveal` endpoint to retrieve an existing PIN.\nSee <> on this page for details.\n\n[WARNING]\nSending a request to this endpoint requires PCI DSS compliance.\nYou must comply with PCI DSS data security requirements if you want to store, transmit, or process sensitive card data such as the cardholder's primary account number (PAN), personal identification number (PIN), and card expiration date." + description: "Creates or updates a personal identification number (PIN) for an existing card.\nAlthough cardholders might choose a four-, five-, or six-digit PIN if they set their PIN at an automated teller machine, they can only set a four-digit PIN using Marqeta's Set PIN widget or the create or update PIN endpoint (`PUT /pins`).\nCardholders can update their PIN through the API regardless of its length, but the new PIN value they choose must contain four digits.\n\nIf you want to manage a card's PIN, first create a new control token for the card by sending a `POST` request to `/pins/controltoken`, and then use that token to update the PIN.\nYou must create a card before you can manage a PIN.\n\nUnless PIN reveal functionality has been enabled for your program, you cannot retrieve a PIN that has previously been created.\nIf the PIN has been forgotten, you must either update the card's PIN or create a new card and PIN.\n\nIf you have enabled PIN reveal functionality for your program, you can send a `POST` request to the `/pins/reveal` endpoint to retrieve an existing PIN.\nSee <> on this page for details.\n\n[WARNING]\nSending a request to this endpoint requires PCI DSS compliance.\nYou must comply with PCI DSS data security requirements if you want to store, transmit, or process sensitive card data such as the cardholder's primary account number (PAN), personal identification number (PIN), and card expiration date." operationId: putPins requestBody: content: @@ -8997,7 +8966,7 @@ paths: tags: - PINs summary: Reveal PIN - description: "Reveals the personal identification number (PIN) of an existing, active card.\n\n*WARNING:* Only use this endpoint to access a PIN in order to reveal it to its cardholder.\nDo not use this endpoint for the purpose of storing a PIN at any location.\n\nSending a request to this endpoint requires PCI DSS compliance.\nYou must comply with PCI DSS data security requirements if you want to store, transmit, or process sensitive card data such as the cardholder's primary account number (PAN), personal identification number (PIN), and card expiration date.\n\nIf you want instead to update a card's PIN, send a `PUT` request to the `/pins` endpoint.\nSee <> on this page for details.\n\nRevealing a card's PIN is a two-step process.\nYou must first create a new control token for the card by sending a `POST` request to `/pins/controltoken`, and then use that token to reveal the PIN." + description: "Reveals the personal identification number (PIN) of an existing, active card.\nBe aware that while a cardholder can only set a four-digit PIN using the Marqeta Set PIN widget or `PUT /pins` API, you may see a four-, five-, or six-digit PIN in cases where your cardholders have set a new PIN at an automated teller machine.\n\n[WARNING]\nOnly use this endpoint to access a PIN in order to reveal it to its cardholder.\nDo not use this endpoint for the purpose of storing a PIN at any location.\n\nSending a request to this endpoint requires PCI DSS compliance.\nYou must comply with PCI DSS data security requirements if you want to store, transmit, or process sensitive card data such as the cardholder's primary account number (PAN), personal identification number (PIN), and card expiration date.\n\nIf you want to update a card's PIN instead, send a `PUT` request to the `/pins` endpoint.\nSee <> on this page for details.\n\nRevealing a card's PIN is a two-step process.\nYou must first create a new control token for the card by sending a `POST` request to `/pins/controltoken`, and then use that token to reveal the PIN." operationId: revealPins requestBody: content: @@ -9866,7 +9835,7 @@ paths: x-allowableValues: Existing reward policy token responses: '200': - description: A JSON object containing reward policy information + description: A JSON object containing reward policy information. content: application/json: schema: @@ -10403,6 +10372,7 @@ paths: description: Number of program transfers to retrieve. style: form schema: + maximum: 100 type: integer format: int32 default: 5 @@ -12118,31 +12088,35 @@ paths: /substatuses: get: tags: - - Substatus + - Credit Substatuses summary: List substatuses - description: Get list of substatuses + description: "Retrieve an array of substatuses.\nThis endpoint supports <>." operationId: listSubStatuses parameters: - name: account_token in: query - description: The account token to filter by. + description: "Unique identifier of the account for which to retrieve substatuses.\n\nSend a `GET` request to `/credit/accounts` to retrieve existing account tokens." style: form schema: type: string + x-allowableValues: Existing account token - name: user_token in: query - description: The user token to filter by. + description: "Unique identifier of the user for which to retrieve substatuses.\n\nSend a `GET` request to `/users` to retrieve existing user tokens." style: form schema: type: string + x-allowableValues: Existing user token - name: is_active in: query + description: Denotes whether a substatus is active. style: form schema: type: boolean + x-allowableValues: '`true`, `false`' - name: substatuses in: query - description: "comma-deliminited list of substatuses types to include\nAllowable values:\nHARDSHIP,FRAUD,MLA,SCRA,DECEASED,BANKRUPTCY" + description: "Comma-delimited list of substatus types to include.\nAllowable values:\n`HARDSHIP`, `FRAUD`, `MLA`, `SCRA`, `DECEASED`, `BANKRUPTCY`, `POWER_OF_ATTORNEY`" style: form schema: type: array @@ -12154,6 +12128,7 @@ paths: - SCRA - DECEASED - BANKRUPTCY + - POWER_OF_ATTORNEY type: string - name: count in: query @@ -12166,7 +12141,7 @@ paths: default: 5 - name: start_index in: query - description: Show n-th paginated page + description: Sort order index of the first resource in the returned array. style: form schema: minimum: 0 @@ -12184,7 +12159,7 @@ paths: default: '-createdTime' responses: '200': - description: Expected response to a valid request + description: Expected response to a valid request. content: application/json: schema: @@ -12199,9 +12174,9 @@ paths: - zionToken: [ ] post: tags: - - Substatus + - Credit Substatuses summary: Create substatus - description: Create a sub status for an existing user or account. + description: Create a new substatus for a credit account or user. operationId: createSubStatus requestBody: content: @@ -12211,7 +12186,7 @@ paths: required: true responses: '201': - description: Expected response to a valid request + description: Expected response to a valid request. content: application/json: schema: @@ -12227,14 +12202,14 @@ paths: '/substatuses/{substatus_token}': get: tags: - - Substatus - summary: Retrieve Substatus + - Credit Substatuses + summary: Retrieve substatus description: Retrieve a user or account substatus. operationId: retrieveSubStatus parameters: - name: substatus_token in: path - description: "The unique identifier of the substatus to retrieve.\n\nSend a `GET` request to `/credit/substatuses` to retrieve existing substatus tokens." + description: "Unique identifier of the substatus to retrieve.\n\nSend a `GET` request to `/credit/substatuses` to retrieve existing substatus tokens." required: true style: simple schema: @@ -12257,14 +12232,14 @@ paths: - zionToken: [ ] put: tags: - - Substatus + - Credit Substatuses summary: Update substatus - description: Update substatus for an user or account. + description: Updating a substatus registers a new event that changes the substatus' state. operationId: updateSubStatus parameters: - name: substatus_token in: path - description: The unique identifier of the substatus to update. + description: "Unique identifier of the account substatus resource to retrieve.\n\nSend a `GET` request to `/credit/substatuses` to retrieve existing substatus tokens." required: true style: simple schema: @@ -12278,7 +12253,7 @@ paths: required: true responses: '200': - description: Updated substatus response + description: Updated substatus response. content: application/json: schema: @@ -13682,6 +13657,7 @@ paths: - Payments - Statements - Delinquency + - Credit Substatuses summary: Resend credit event notification description: "Resends a credit event notification to your webhook endpoint.\n\nAlthough you send this request as a `POST`, all parameters are passed in the URL and the body is empty.\nThe event notification is resent to your webhook endpoint and also returned in the response to this request.\n\nFor details on how to configure your webhook endpoint, see the About Webhooks <>.\nFor the complete `/webhooks` endpoint reference, see <>." operationId: resendWebhookEvent @@ -13700,15 +13676,16 @@ paths: - paymenttransition - delinquencytransition - paymentreminders + - substatus type: string - name: resource_token in: path - description: "Unique identifier of the resource for which you want to resend a notification.\n\nSend a `GET` request to `/credit/accounts/{account_token}/journalentries` to retrieve existing journal entry tokens.\n\nSend a `GET` request to `/credit/accounts/{account_token}/ledgerentries` to retrieve existing ledger entry tokens.\n\nSend a `GET` request to `/accounts/{account_token}/accounttransitions` to retrieve existing account transition tokens.\n\nSend a `GET` request to `/credit/accounts/{account_token}/payments/{payment_token}` to retrieve existing payment transition tokens.\n\nSend a `GET` request to `/accounts/{account_token}/statements` to retrieve existing statement summary tokens.\n\nSend a `GET` request to `/accounts/{account_token}/delinquencystate/transitions` to retrieve existing delinquency state transition tokens.\n\nSend a `GET` request to `/accounts/{account_token}/statements/{statement_summary_token}/paymentreminders/{token}` to retrieve existing payment reminder tokens." + description: "Unique identifier of the resource for which you want to resend a notification.\n\nSend a `GET` request to `/credit/accounts/{account_token}/journalentries` to retrieve existing journal entry tokens.\n\nSend a `GET` request to `/credit/accounts/{account_token}/ledgerentries` to retrieve existing ledger entry tokens.\n\nSend a `GET` request to `/accounts/{account_token}/accounttransitions` to retrieve existing account transition tokens.\n\nSend a `GET` request to `/credit/accounts/{account_token}/payments/{payment_token}` to retrieve existing payment transition tokens.\n\nSend a `GET` request to `/accounts/{account_token}/statements` to retrieve existing statement summary tokens.\n\nSend a `GET` request to `/accounts/{account_token}/delinquencystate/transitions` to retrieve existing delinquency state transition tokens.\n\nSend a `GET` request to `/accounts/{account_token}/statements/{statement_summary_token}/paymentreminders/{token}` to retrieve existing payment reminder tokens.\n\nSend a `GET` request to `/credit/substatuses` to retrieve existing substatus tokens." required: true style: simple schema: type: string - x-allowableValues: 'Existing journal entry token, ledger entry token, account transition token, payment transition token, statement summary token, or delinquency transition token' + x-allowableValues: 'Existing journal entry token, ledger entry token, account transition token, payment transition token, statement summary token, delinquency transition token, or substatus token' responses: '200': description: Event response for which the webhook event was resent @@ -14137,6 +14114,17 @@ components: type: string description: "Type of APR.\n\n* `GO_TO` - Default APR rate that is applicable when any promotional periods expire.\n* `PROMOTIONAL` - A temporary rate that is applicable for a specified period of time." AccountBillingCycleResponse: + required: + - account_token + - created_time + - current_end_time + - current_payment_due_date + - current_start_time + - next_end_time + - next_payment_due_date + - next_start_time + - short_code + - updated_time type: object properties: account_token: @@ -14246,10 +14234,10 @@ components: type: object properties: billing_cycle_day: - maximum: 28 + maximum: 25 minimum: 1 type: integer - description: "Day of month the billing cycle starts. \nIf an override value is not provided, the default value is derived from the bundle." + description: "Day of month the billing cycle starts. \nIf an override value is not provided, the default value is derived from the bundle.\nThe value must be 1, 10, 15, 20, or 25." card_level: enum: - PREMIUM @@ -14271,7 +14259,7 @@ components: maximum: 31 minimum: 31 type: integer - description: "Day of month the payment for the previous billing cycle is due.\n\nThis field is deprecated.\nUse the `account.payment_due_interval` field instead.\nTo retrieve `payment_due_interval`, see <>." + description: "Day of month the payment for the previous billing cycle is due.\n\nThis field is being deprecated and replaced by `payment_due_interval` of a product policy.\nTo retrieve `payment_due_interval`, see <>." deprecated: true payment_holds: $ref: '#/components/schemas/AccountConfigPaymentHolds' @@ -14290,10 +14278,10 @@ components: type: object properties: billing_cycle_day: - maximum: 28 + maximum: 25 minimum: 1 type: integer - description: "Day of month the billing cycle starts. \nIf an override value is not provided, the default value is derived from the bundle." + description: "Day of month the billing cycle starts. \nIf an override value is not provided, the default value is derived from the bundle.\nThe value must be 1, 10, 15, 20, or 25." card_level: enum: - PREMIUM @@ -14969,19 +14957,6 @@ components: type: string description: "United States ZIP code of the address.\n\nThis field is returned if it exists in the resource." description: Address associated with the business. - AmountFilter: - type: object - properties: - greater_than: - minimum: 0 - type: number - description: Minimum amount that a balance for a billing cycle can be to earn the reward. - less_than: - minimum: 0 - exclusiveMinimum: true - type: number - description: Maximum amount that a balance for a billing cycle can be to earn the reward. - description: Contains information on the minimum and maximum amounts that the balance for a billing cycle can be to earn the reward. AndroidPushTokenRequestAddress: type: object properties: @@ -17298,8 +17273,7 @@ components: direct_deposit_account_token: type: string early_direct_deposit: - type: boolean - default: false + type: string individual_identification_number: type: string individual_name: @@ -17441,8 +17415,7 @@ components: direct_deposit_token: type: string early_direct_deposit: - type: boolean - default: false + type: string individual_identification_number: type: string individual_name: @@ -17662,11 +17635,6 @@ components: type: string description: Unique identifier of the dispute update. description: Information about a transaction dispute update request. - DynamicMccType: - enum: - - HIGHEST_SPEND - type: string - description: Type of dynamic MCC. ErrorDetailsResponse: required: - application_token @@ -18436,18 +18404,6 @@ components: minimum: 0 type: number description: 'The APR percentage value. This is the value of the fixed rate during the override period. The APR value must adhere to the constraints of the main schedule, such as maximum allowable values.' - MccDynamicFilter: - required: - - includes - type: object - properties: - includes: - minItems: 1 - type: array - items: - $ref: '#/components/schemas/DynamicMccType' - description: One or more dynamic MCCs. - description: Contains information on the dynamic merchant category code (MCC) for a reward. MerchantGroupListResponse: type: object properties: @@ -18478,6 +18434,10 @@ components: attribute: type: string description: "Attribute value corresponding to the chosen scope.\nIf 'mcc' is chosen, provide the Merchant Category Code (MCC).\nIf 'mcc_group' is chosen, provide the token identifying a group of MCCs." + decline_other_merchants: + type: boolean + description: "Indicates whether to decline transactions at merchants not included in the scope.\nIf `true`, transactions at merchants not included in the scope will be declined.\nIf `false`, transactions at merchants not included in the scope will not be declined.\n*Default value:* `false`" + default: false scope: enum: - mcc @@ -20013,6 +19973,9 @@ components: - percentage_of_balance type: object properties: + include_all_fees_charged: + type: boolean + description: Whether to include all fees charged when calculating the minimum payment. include_fees_charged: type: array items: @@ -20049,10 +20012,10 @@ components: - FEES - PRINCIPAL billing_cycle_day: - maximum: 28 + maximum: 25 minimum: 1 type: integer - description: Day of month the billing cycle starts. + description: 'Day of month the billing cycle starts. The value must be 1, 10, 15, 20, or 25.' billing_cycle_day_strategy: enum: - MANUAL @@ -20075,7 +20038,7 @@ components: $ref: '#/components/schemas/PolicyProductMinPaymentCalculation' payment_due_interval: type: integer - description: "Specifies the payment due interval that is used to determine the payment due date for a billing cycle.\nThe accepted values are either -1 or a value between 1 and 26.\nA value of -1 indicates one day prior to the next billing cycle date" + description: "Specifies the payment due interval that is used to determine the payment due date for a billing cycle.\nThe allowed value is -1.\nA value of -1 indicates one day prior to the next billing cycle date" default: -1 description: 'Contains the configurations for billing cycle day, payment due day, and fees.' PolicyProductResponse: @@ -20176,6 +20139,31 @@ components: $ref: '#/components/schemas/BalanceType' description: One or more usage types for the credit product policy. description: Request details to update a credit product policy. + PolicyRewardConversion: + required: + - conversion_increment + - type + type: object + properties: + conversion_increment: + type: integer + description: The static amount to reward if the rule conditions are met. + conversion_rate: + minimum: 0.001 + type: number + description: The rate that points are worth with converting the REDEMPTION_TYPE indicated. + format: decimal + currency: + type: string + description: Type of currency the conversion rate is for. + type: + $ref: '#/components/schemas/PolicyRewardConversionType' + description: reward conversion. + PolicyRewardConversionType: + enum: + - STATEMENT_CREDIT + type: string + description: Type of conversion. PolicyRewardPage: required: - count @@ -20203,12 +20191,49 @@ components: type: integer description: Sort order index of the first resource in the returned array. description: List response details for reward policies. + PolicyRewardPlatformRule: + required: + - description + - type + type: object + properties: + amount: + type: number + description: The static amount to reward if the rule conditions are met. + nullable: true + attributes: + $ref: '#/components/schemas/PolicyRewardRuleAttributes' + calculation_type: + enum: + - PER_TRANSACTION + type: string + description: Type of calculation to use to evaluate a rule has been satisfied. + description: + type: string + description: The description of the rule. + multiplier: + type: number + description: 'The reward multiplier to apply the transaction, where ''1'' means 1 X transaction amount.' + format: float + nullable: true + type: + enum: + - MULTIPLIER_PER_TRANSACTION + type: string + description: Type of rule. + description: Contains information on a policy reward platform rule. PolicyRewardReq: required: - name - rules type: object properties: + conversions: + minItems: 1 + type: array + items: + $ref: '#/components/schemas/PolicyRewardConversion' + description: One or more reward conversions. description: type: string description: Description of the reward policy. @@ -20220,8 +20245,10 @@ components: minItems: 1 type: array items: - $ref: '#/components/schemas/PolicyRewardRule' + $ref: '#/components/schemas/PolicyRewardPlatformRule' description: One or more reward rules. + settlement_strategy: + $ref: '#/components/schemas/PolicyRewardSettlementType' token: pattern: (?!^ +$)^.+$ type: string @@ -20230,6 +20257,12 @@ components: PolicyRewardResponse: type: object properties: + conversions: + minItems: 1 + type: array + items: + $ref: '#/components/schemas/PolicyRewardConversion' + description: One or more reward conversions. created_time: type: string description: 'Date and time when the reward policy was created on Marqeta''s credit platform, in UTC.' @@ -20244,8 +20277,10 @@ components: minItems: 1 type: array items: - $ref: '#/components/schemas/PolicyRewardRule' - description: One or more reward rules + $ref: '#/components/schemas/PolicyRewardPlatformRule' + description: An array of one or more reward rules. + settlement_strategy: + $ref: '#/components/schemas/PolicyRewardSettlementType' token: pattern: (?!^ +$)^.+$ type: string @@ -20255,49 +20290,26 @@ components: description: 'Date and time when the reward policy was last updated on Marqeta''s credit platform, in UTC.' format: date-time description: Contains information on a reward policy. - PolicyRewardRule: - required: - - filters - - outcome - - type - type: object - properties: - filters: - $ref: '#/components/schemas/PolicyRewardRuleFilters' - outcome: - $ref: '#/components/schemas/PolicyRewardRuleOutcome' - type: - $ref: '#/components/schemas/PolicyRewardRuleType' - description: Contains information on a reward rule. - PolicyRewardRuleFilters: - required: - - amount + PolicyRewardRuleAttributes: type: object properties: - amount: - $ref: '#/components/schemas/AmountFilter' - mcc_dynamic: - $ref: '#/components/schemas/MccDynamicFilter' - description: Contains information on the rules defined for a reward program. - PolicyRewardRuleOutcome: - required: - - percentage - type: object - properties: - max_amount: - minimum: 0 - type: number - description: Max amount of the reward. - percentage: - minimum: 0 + max_spend: type: number - description: "Reward percentage applied when the balance for a billing cycle is within the range specified in the `filters.amount.greater_than` and `filters.amount.less_than` fields.\nFor example, if the percentage is `1`, the account holder earns 1% of the account balance if they spend between the `greater_than` and `less_than` amounts during a billing cycle." - description: Contains information on the outcome of a reward rule. - PolicyRewardRuleType: + description: Maximum spend amount. + mcc: + type: array + items: + type: string + description: "List of merchant category codes (MCCs).\nMCCs must be a four-digit number, or a range of two four-digit numbers separated by a hyphen." + mid: + type: string + description: Merchant ID for the rule. + description: Additional properties for which the rule can be used to determine reward accrual eligibility for a transaction. + PolicyRewardSettlementType: enum: - - CASHBACK + - STATEMENT type: string - description: Type of reward rule. + description: Reward settlement strategy for program. PolicyType: enum: - APR @@ -20404,10 +20416,10 @@ components: type: object properties: billing_cycle_day: - maximum: 28 + maximum: 25 minimum: 1 type: integer - description: Day of month the billing cycle starts. + description: 'Day of month the billing cycle starts. The value must be 1, 10, 15, 20, or 25.' billing_cycle_day_strategy: enum: - MANUAL @@ -20433,7 +20445,7 @@ components: deprecated: true payment_due_interval: type: integer - description: "Specifies the payment due interval that is used to determine the payment due date for a billing cycle.\nThe accepted values are either -1 or a value between 1 and 26.\nA value of -1 indicates one day prior to the next billing cycle date." + description: "Specifies the payment due interval that is used to determine the payment due date for a billing cycle.\nThe allowed value is -1.\nA value of -1 indicates one day prior to the next billing cycle date." default: -1 periodic_fees: type: array @@ -20590,6 +20602,9 @@ components: - percentage_of_balance type: object properties: + include_all_fees_charged: + type: boolean + description: Whether to include all fees charged when calculating the minimum payments. include_fees_charged: type: array items: @@ -21412,6 +21427,9 @@ components: maxLength: 255 type: string description: Description of the reward. + forced: + type: boolean + description: "Allows you to force the creation of a reward on an account.\n\nBy default, reward creation is not permitted for accounts with a status of `SUSPENDED` or `TERMINATED` if more than 90 days have passed since the status transition." note: maxLength: 255 type: string @@ -21820,6 +21838,7 @@ components: enum: - AUTO_CASH_BACK - CASH_BACK + - STATEMENT_CREDIT type: string description: Type of reward. ShippingInformationResponse: @@ -22162,36 +22181,39 @@ components: properties: key: type: string - description: The key of the attribute. + description: "The name of the attribute.\n\nMarqeta provides several preconfigured attributes, as described in the following list.\n\n* *chapter:* If the substatus is `BANKRUPTCY`, then chapter attribute is required.\n\n* *military_start_date:* If the substatus is `SCRA`, then the military start date attribute is required.\nThe 6% APR override will be applied from the time and date of account opening until the last statement period of the military start date.\n\n* *end_date:* If the substatus is `POWER_OF_ATTORNEY`, then the end date attribute is applicable.\nThis specifies the date when the power of attorney document is no longer valid.\n\n* *poa_details:* If the substatus is `POWER_OF_ATTORNEY`, then the Power of Attorney details attribute is applicable.\nThis attribute specifies the range of actions that the agent with Power of Attorney is able to perform on the account.\nBy default the range is `UNRESTRICTED`.\n\n* *agent_name:* If the substatus is `POWER_OF_ATTORNEY`, then the agent name is required.\nThis attribute specifies the name of the agent with Power of Attorney for the user.\n\n* *agent_address:* If the substatus is `POWER_OF_ATTORNEY`, then the agent address attribute is required.\nThis attribute specifies the address of the agent with Power of Attorney for the user.\n\n* *agent_id_type:* If the substatus is `POWER_OF_ATTORNEY`, then the agent identification type attribute is required.\nThis specifies the type of the identification method used to identify the agent with Power of Attorney for the user.\n\n* *agent_id_value:* If the substatus is `POWER_OF_ATTORNEY`, then the agent identification value attribute is required.\nThis attribute specifies the value of the identification method used to identify the agent with Power of Attorney for the user.\n\n* *agent_id_expiration_date:* If the substatus is `POWER_OF_ATTORNEY`, then the attribute for the Power of Attorney identification expiration date attribute is required.\nThis attribute specifies the expiration date of the identification method used to identify the agent with Power of Attorney for the user." + x-allowableValues: "- `chapter`\n- `military_start_date`\n- `end_date`\n- `poa_details`\n- `agent_name`\n- `agent_address`\n- `agent_id_type`\n- `agent_id_value`\n- `agent_id_expiration_date`" value: type: string description: The value of the attribute. - description: Additional dynamic attributes related to the substatus. + x-allowableValues: "* *chapter:* `CHAPTER_7`, `CHAPTER_11`, `CHAPTER_12`, `CHAPTER_13`\n* *military_start_date:* yyyy-MM-ddThh:mm:ssZ format\n* *end_date:* yyyy-MM-ddThh:mm:ssZ format\n* *poa_details:* string (255 char max)\n* *agent_name:* string (255 char max)\n* *agent_address:* string (255 char max)\n* *agent_id_type:* `SSN`, `TIN`, `SIN`, `NIN`, `PASSPORT_NUMBER`, `DRIVERS_LICENSE`, `BUSINESS_LICENSE`, `BUSINESS_NUMBER`, `BUSINESS_TAX_ID`, `TAXPAYER_REFERENCE`\n* *agent_id_value:* string (255 char max)\n* *agent_id_expiration_date:* yyyy-MM-ddThh:mm:ssZ format" + description: "Additional dynamic attributes related to the substatus.\nIf the substatus is `BANKRUPTCY`, `SCRA` or `POWER_OF_ATTORNEY`, then attributes are required." events: type: array items: $ref: '#/components/schemas/SubstatusEvent' description: List of events related to the substatus. resource_token: + maxLength: 36 minLength: 1 type: string - description: The unique identifier of the user or account for which you want to create a substatus. + description: "Unique identifier of the user or account for which you want to create a substatus.\n\nSend a `GET` request to `/credit/accounts` to retrieve existing account tokens.\nSend a `GET` request to `/users` to retrieve existing user tokens." resource_type: enum: - USER - ACCOUNT type: string - description: "Possible values: USER, ACCOUNT.\n" + description: Type of resource to which the substatus applies. substatus: maxLength: 36 minLength: 1 type: string - description: "Possible values: HARDSHIP, FRAUD, MLA, SCRA, DECEASED, BANKRUPTCY.\n" + description: "Type of substatus.\n\n`HARDSHIP`, `FRAUD` can only be applied to the `ACCOUNT` resource type.\n`MLA`, `SCRA`, `DECEASED`, `BANKRUPTCY`, and `POWER_OF_ATTORNEY` can only be applied to the `USER` resource type." token: maxLength: 36 pattern: (?!^ +$)^.+$ type: string - description: Unique identifier of the substatus. + description: Unique identifier of the credit substatus. description: Contains information relevant to creating a substatus. SubstatusEvent: required: @@ -22205,21 +22227,21 @@ components: - FRAUD - SYSTEM type: string - description: The channel through which the event occurred. + description: "The mechanism by which the state of the substatus was applied.\n\n* `ADMIN` - Indicates that the state of the substatus was added through the Marqeta Dashboard.\n* `API` - Indicates that you initiated an update of the substatus through the Core API.\nUse this value when creating a substatus.\n* `FRAUD` - Indicates that either Marqeta or the card network has determined that the account is fraudulent.\n* `SYSTEM` - Indicates that Marqeta initiated the state of the substatus.\nFor example, Marqeta determined during application decisioning that the applicant is `MLA`." effective_date: type: string - description: 'Effective date of the deactivation, in UTC.' + description: "Date and time when the state of the substatus went into effect, in UTC.\nThe effective date must be in the past.\nIf no value is set, then the effective date and time will be the current time." format: date-time reason: maxLength: 255 type: string - description: Reason for the event. + description: Reason for applying a state designation to the substatus. state: enum: - ACTIVE - BANKRUPTCY_FILED type: string - description: 'The initial state of the substatus. ACTIVE - Required for the substatuses of HARDSHIP,FRAUD,MLA,SCRA,DECEASED. BANKRUPTCY_FILED - Required for the substatus of BANKRUPTCY.' + description: "Initial state of the substatus.\n\n`ACTIVE` - Required if the substatus is `HARDSHIP`, `FRAUD`, `MLA`, `SCRA`, `DECEASED`, or `POWER_OF_ATTORNEY`.\n`BANKRUPTCY_FILED` - Required if the substatus is `BANKRUPTCY`." description: Details of an event related to a substatus. SubstatusEventResponseDetails: required: @@ -22246,6 +22268,7 @@ components: description: 'Effective date of the event, in UTC.' format: date-time reason: + maxLength: 255 type: string description: Reason for the event. state: @@ -22265,7 +22288,7 @@ components: - BANKRUPTCY_DISCHARGED_INACTIVE - BANKRUPTCY_DISMISSED_INACTIVE type: string - description: The state of the event + description: The state of the event. description: Details of an event related to a substatus. SubstatusPage: required: @@ -22283,6 +22306,7 @@ components: type: array items: $ref: '#/components/schemas/SubstatusResponse' + description: Contains one or more substatuses. end_index: type: integer description: Sort order index of the last resource in the returned array. @@ -22292,12 +22316,13 @@ components: start_index: type: integer description: Sort order index of the first resource in the returned array. - description: Return paginated account and user substatuses + description: Return paginated account and user substatuses. SubstatusResponse: required: - is_active - resource_token - resource_type + - state - substatus - token type: object @@ -22309,11 +22334,13 @@ components: properties: key: type: string - description: The key of the attribute. + description: "The name of the attribute.\n\nMarqeta provides several preconfigured attributes, as described in the following list.\n\n* *chapter:* If the substatus is `BANKRUPTCY`, then this value defines the chapter.\n\n* *military_start_date:* If the substatus is `SCRA`, then this value defines the military start date.\n\n* *end_date:* If the substatus is `POWER_OF_ATTORNEY`, then the end date attribute is present.\nThis specifies the date when the power of attorney document is no longer valid.\n\n* *poa_details:* If the substatus is `POWER_OF_ATTORNEY`, then the Power of Attorney details attribute is applicable.\nThis attribute specifies the range of actions that the agent with Power of Attorney is able to perform on the account.\nBy default the range is `UNRESTRICTED`.\n\n* *agent_name:* If the substatus is `POWER_OF_ATTORNEY`, then the agent name is present.\nThis attribute specifies the name of the agent with Power of Attorney for the user.\n\n* *agent_address:* If the substatus is `POWER_OF_ATTORNEY`, then the agent address attribute is present.\nThis attribute specifies the address of the agent with Power of Attorney for the user.\n\n* *agent_id_type:* If the substatus is `POWER_OF_ATTORNEY`, then the agent identification type attribute is present.\nThis specifies the type of the identification method used to identify the agent with Power of Attorney for the user.\n\n* *agent_id_value:* If the substatus is `POWER_OF_ATTORNEY`, then the agent identification value attribute is present.\nThis attribute specifies the value of the identification method used to identify the agent with Power of Attorney for the user.\n\n* *agent_id_expiration_date:* If the substatus is `POWER_OF_ATTORNEY`, then the attribute for the Power of Attorney identification expiration date attribute is present.\nThis attribute specifies the expiration date of the identification method used to identify the agent with Power of Attorney for the user." + x-allowableValues: "- `chapter`\n- `military_start_date`\n- `end_date`\n- `poa_details`\n- `agent_name`\n- `agent_address`\n- `agent_id_type`\n- `agent_id_value`\n- `agent_id_expiration_date`" value: type: string description: The value of the attribute. - description: Additional dynamic attributes related to the substatus. + x-allowableValues: "* *chapter:* `CHAPTER_7`, `CHAPTER_11`, `CHAPTER_12`, `CHAPTER_13`\n* *military_start_date:* yyyy-MM-ddThh:mm:ssZ format\n* *end_date:* yyyy-MM-ddThh:mm:ssZ format\n* *poa_details:* string (255 char max)\n* *agent_name:* string (255 char max)\n* *agent_address:* string (255 char max)\n* *agent_id_type:* `SSN`, `TIN`, `SIN`, `NIN`, `PASSPORT_NUMBER`, `DRIVERS_LICENSE`, `BUSINESS_LICENSE`, `BUSINESS_NUMBER`, `BUSINESS_TAX_ID`, `TAXPAYER_REFERENCE`\n* *agent_id_value:* string (255 char max)\n* *agent_id_expiration_date:* yyyy-MM-ddThh:mm:ssZ format" + description: "Additional dynamic attributes related to the substatus.\n\nIf the substatus is `BANKRUPTCY`, `SCRA`, or `POWER_OF_ATTORNEY`, then attributes are present." created_time: type: string description: 'Date and time when the substatus was created on Marqeta''s credit platform, in UTC.' @@ -22325,16 +22352,17 @@ components: description: List of events related to the substatus. is_active: type: boolean - description: Flag indicating whether the substatus is active (false when deactivated). + description: Denotes whether a substatus is active. resource_token: + maxLength: 36 type: string - description: substatus resource token + description: Unique identifier of the resource. resource_type: enum: - - USER - ACCOUNT + - USER type: string - description: substatus resource type + description: Type of resource to which the substatus is applied. state: enum: - ACTIVE @@ -22352,14 +22380,15 @@ components: - BANKRUPTCY_DISCHARGED_INACTIVE - BANKRUPTCY_DISMISSED_INACTIVE type: string - description: state of the substatus + description: Current state of the substatus. substatus: maxLength: 36 type: string - description: substatus + description: Type of substatus. token: + maxLength: 36 type: string - description: substatus token + description: Unique identifier of the credit substatus. updated_time: type: string description: 'Date and time when the substatus was last updated on Marqeta''s credit platform, in UTC.' @@ -22377,16 +22406,16 @@ components: - FRAUD - SYSTEM type: string - description: "The channel through which deactivation is occurring:\n- **ADMIN**: Added through the Marqeta Dashboard.\n- **API**: Initiated through the Core API.\n- **FRAUD**: Determined by Marqeta or the card network.\n- **SYSTEM**: Initiated by Marqeta\n" + description: "The mechanism by which a state designation was applied to a substatus.\nIf no value is set, then it defaults to `API`.\n\n* `ADMIN` - Indicates that the state of the substatus was added through the Marqeta Dashboard.\n* `API` - Indicates that you initiated the update of the substatus through the Core API.\nUse this value when creating a card transition with an API `POST` request.\n* `FRAUD` - Indicates that either Marqeta or the card network has determined that the account is fraudulent.\n* `SYSTEM` - Indicates that the substatus update was initiated by Marqeta.\nFor example, Marqeta determined during application decisioning that the applicant is `MLA`." effective_date: type: string - description: 'Effective date of the deactivation, in UTC.' + description: 'Date and time when the state of the substatus is effective, in UTC.' format: date-time reason: maxLength: 255 minLength: 1 type: string - description: Reason for deactivating the substatus. + description: Reason for applying the state to the substatus. state: enum: - INACTIVE @@ -22402,7 +22431,7 @@ components: - BANKRUPTCY_DISCHARGED_INACTIVE - BANKRUPTCY_DISMISSED_INACTIVE type: string - description: The state of the substatus. + description: "New state of the substatus.\n\n`INACTIVE` is a valid state for substatuses `HARDSHIP`, `FRAUD`, `MLA`, `SCRA`, `DECEASED`, and `POWER_OF_ATTORNEY`.\n`BANKRUPTCY_WITHDRAWN`, `BANKRUPTCY_REAFFIRMED`, `BANKRUPTCY_REAFFIRM_RESCINDED`, `BANKRUPTCY_DISCHARGED`, \n`BANKRUPTCY_DISMISSED`, `BANKRUPTCY_FILED_INACTIVE`, `BANKRUPTCY_WITHDRAWN_INACTIVE`, `BANKRUPTCY_REAFFIRMED_INACTIVE`, `BANKRUPTCY_REAFFIRM_RESCINDED_INACTIVE`, `BANKRUPTCY_DISCHARGED_INACTIVE`, and `BANKRUPTCY_DISMISSED_INACTIVE` states are applicable to `BANKRUPTCY`" description: Contains information relevant to deactivating a substatus. Success: type: object @@ -23429,7 +23458,7 @@ components: format: date-time date_sent_for_verification: type: string - description: "Date and time in UTC when either the request for account validation was sent to the third-party partner, or when the funding source was verified by microdeposits.\n\nThis field is returned if it exists in the resource." + description: "Date and time in UTC when the request for account validation was sent to the third-party partner.\n\nThis field is returned if it exists in the resource." format: date-time date_verified: type: string @@ -23468,19 +23497,6 @@ components: verification_status: type: string description: "Account verification status.\nThis field is returned if it exists in the resource." - ach_verification_model: - type: object - properties: - active: - type: boolean - description: Indicates whether the ACH funding source is active. - default: false - verify_amount1: - type: number - description: Verification amount. - verify_amount2: - type: number - description: Verification amount. acquirer: type: object properties: @@ -23585,6 +23601,9 @@ components: ani_information: type: object properties: + card_name: + type: string + description: Full name of the cardholder as it appears on the card. first_name: type: string description: First or given name of the cardholder. @@ -24231,6 +24250,8 @@ components: minLength: 0 type: string description: ACH funding source token for the external account. + is_early_funded: + type: boolean last_modified_time: type: string description: 'Date and time when the ACH transfer was last modified, in UTC.' @@ -24504,7 +24525,7 @@ components: format: date-time date_sent_for_verification: type: string - description: "Date and time in UTC when either the request for account validation was sent to the third-party partner, or when the funding source was verified by microdeposits.\n`2022-02-26T20:03:05Z`, for example.\n\nThis field is returned if it exists in the resource." + description: "Date and time in UTC when the request for account validation was sent to the third-party partner.\n\nThis field is returned if it exists in the resource." format: date-time date_verified: type: string @@ -25664,6 +25685,12 @@ components: default: 101 expiration_offset: $ref: '#/components/schemas/expiration_offset_with_minimum' + reloadability: + enum: + - SINGLE_USE_VIRTUAL + - NON_RELOADABLE + - RELOADABLE + type: string update_expiration_upon_activation: type: boolean description: "Normally, the `expiration_offset` is measured from the date of issue.\nSet this field to `true` to measure `expiration_offset` from the date of activation instead." @@ -26770,7 +26797,7 @@ components: controltoken_type: enum: - SET_PIN - - SHOW_PIN + - REVEAL_PIN type: string description: "Specifies the type of action completed by this request.\n\n*WARNING:* Sending a request to this endpoint with a `REVEAL_PIN` control token requires PCI DSS compliance.\n\nThe lifespan of the control token depends on the token type:\n\n* *SET_PIN:* 60 minutes\n* *REVEAL_PIN:* 5 minutes" control_token_response: @@ -27344,7 +27371,7 @@ components: properties: card_art_id: type: string - description: "Specifies the digital wallet card art identifier for the card product.\nDigital wallets display the card art after the initial token has been provisioned and activated.\nDigital wallet card art is updated for all wallets automatically whenever a tokenized card is reissued or replaced.\n\n* If your card program is Managed by Marqeta, Marqeta populates this field on your behalf.\n* If your card program is Powered by Marqeta, you can obtain the correct card art identifier directly from Visa or Mastercard.\n\nIf this field is left blank, your card product inherits the card art assigned to the account BIN range." + description: "Specifies the digital wallet card art identifier for the card product.\nThe card art identifier also includes card metadata, such as terms and conditions, card product information, contact information, Apple Pay requirements, Android Pay requirements, wallet profiles, rule sets, terminal profiles, authorization profiles, message profiles, and activation profiles.\n\nDigital wallets display the card art after the initial token has been provisioned and activated.\nDigital wallet card art is updated for all wallets automatically whenever a tokenized card is reissued or replaced.\n\n* If your card program is Managed by Marqeta, Marqeta populates this field on your behalf.\n* If your card program is Powered by Marqeta, you can obtain the correct card art identifier directly from Visa or Mastercard.\n\nIf this field is left blank, your card product inherits the card art assigned to the account BIN range.\nFor more information about this field, contact your Marqeta representative." provisioning_controls: $ref: '#/components/schemas/provisioning_controls' description: Controls characteristics related to digital wallets. @@ -27592,7 +27619,7 @@ components: maxLength: 36 minLength: 0 type: string - description: Unique identifier of the ACH transfer. + description: Unique identifier of the ACH transfer whose funds you want to post more quickly to the cardholder's account. echo_ping_request: type: object properties: @@ -28008,6 +28035,27 @@ components: $ref: '#/components/schemas/transaction_options' webhook: $ref: '#/components/schemas/webhook' + flex: + type: object + properties: + action: + type: string + description: Indicates if the Marqeta Flex object is an actionable `inquiry` or merely informative `advice`. + eligible: + type: string + description: Indicates if the transaction is eligible for Marqeta Flex or not. + eligible_products: + type: array + items: + type: string + description: "A value of `DEBIT` indicates that the primary credential of the payment instrument is eligible for this transaction.\n\nA value of `LOAN` indicates that the secondary credential of the payment instrument is eligible for this transaction." + secondary_credential_identifier: + type: string + description: 'Identifies the secondary credential used in the transaction, if applicable.' + selected_product: + type: string + description: Indicates the eligible product that was used in the transaction. + description: Contains information about a Marqeta Flex transaction. fraud_view: type: object properties: @@ -28117,7 +28165,7 @@ components: format: date-time date_sent_for_verification: type: string - description: "Date and time in UTC when either the request for account validation was sent to the third-party partner, or when the funding source was verified by microdeposits.\n\nThis field is returned if it exists in the resource." + description: "Date and time in UTC when the request for account validation was sent to the third-party partner.\n\nThis field is returned if it exists in the resource." format: date-time date_verified: type: string @@ -28859,6 +28907,7 @@ components: - pgfs.authorization.quasi.cash - pgfs.authorization.clearing.quasi.cash - pgfs.authorization.account_verification + - pgfs.product.inquiry type: string description: "JIT Funding response type.\nSee <> for the purpose, funding event type, and description of each method." original_jit_funding_token: @@ -28949,6 +28998,8 @@ components: - jit_funding type: object properties: + flex: + $ref: '#/components/schemas/flex' jit_funding: $ref: '#/components/schemas/jit_funding_api' network_metadata: @@ -29472,6 +29523,8 @@ components: type: number user_token: type: string + xml: + name: msa_returns network: type: object properties: @@ -29557,6 +29610,9 @@ components: incoming_response_code: type: string description: 'Visa Risk Management esponse code `59`, indicating suspected fraud.' + network_funding_txn_type: + type: string + description: Transaction type indicator provided by the card network for original credit and account funding transactions. product_id: type: string description: "Product identification value assigned by the card network to each card product.\nCan be used to track card-level activity by individual account number for premium card products." @@ -30235,8 +30291,31 @@ components: type: string description: Type of card acceptor/terminal. transaction_initiated_by: + enum: + - CONSUMER + - MERCHANT + - UNKNOWN + - MARQETA + - NETWORK type: string description: Specifies whether the transaction was initiated by a cardholder or a merchant. + transaction_initiated_category: + enum: + - CARD_ON_FILE + - RECURRING_VAR_AMT_FIXED_FREQ + - RECURRING_PAYMENT + - INSTALLMENT_PAYMENT + - UNSCHEDULED_PAYMENT + - PARTIAL_SHIPMENT + - DELAYED_PAYMENT + - NO_SHOW + - RESUBMISSION + - DEFERRED_BILLING + - ACCOUNT_INQUIRY + - INCREMENTAL_AUTHORIZATION + - REAUTHORIZATION + type: string + description: Specifies the category of a point-of-sale transaction. zip: type: string description: United States ZIP code of the card acceptor or terminal. @@ -30606,6 +30685,10 @@ components: provisioning_controls: type: object properties: + dwt_tar_avs_decline_on_address_number_mismatch: + type: boolean + dwt_tar_avs_decline_on_postal_code_mismatch: + type: boolean dwt_use_card_status_during_auth: type: boolean dwt_verify_atc_during_auth: @@ -31368,8 +31451,31 @@ components: type: string description: Card acceptor or terminal identification number. transaction_initiated_by: + enum: + - CONSUMER + - MERCHANT + - UNKNOWN + - MARQETA + - NETWORK type: string description: Specifies whether the transaction was initiated by a cardholder or a merchant. + transaction_initiated_category: + enum: + - CARD_ON_FILE + - RECURRING_VAR_AMT_FIXED_FREQ + - RECURRING_PAYMENT + - INSTALLMENT_PAYMENT + - UNSCHEDULED_PAYMENT + - PARTIAL_SHIPMENT + - DELAYED_PAYMENT + - NO_SHOW + - RESUBMISSION + - DEFERRED_BILLING + - ACCOUNT_INQUIRY + - INCREMENTAL_AUTHORIZATION + - REAUTHORIZATION + type: string + description: Specifies the category of a point-of-sale transaction. description: "Contains information about the point of sale, including details on how the card was presented.\n\nReturned if provided by the card network, and the request uses Transaction Model v1 of the Marqeta Core API.\nNot returned for Transaction Model v2 requests." text: required: @@ -31516,6 +31622,9 @@ components: description: An array of `mcc_groups`. merchant_tax_id: type: string + merchant_vat_registration_id: + type: string + description: The VAT registration identifier of the merchant. mid: type: string description: The merchant identifier. @@ -31731,6 +31840,7 @@ components: description: "Indicates the amount of the acquirer fee.\nAccount holders are sometimes charged an acquirer fee for card use at ATMs, fuel dispensers, and so on." acquirer_reference_data: type: string + description: "Acquirer-assigned unique identifier of the transaction.\nUseful for settlement and reconciliation." acquirer_reference_id: type: string description: "Acquirer-assigned unique identifier of the transaction.\nUseful for settlement and reconciliation." @@ -31751,6 +31861,8 @@ components: amount_to_be_released: type: number description: "Amount of original authorization to be released.\nThis field appears in final clearing transactions where the clearing amount is lower than the authorization amount." + anticipated_amount: + type: number approval_code: type: string description: 'Unique identifier assigned to an authorization, printed on the receipt at point of sale.' @@ -31835,6 +31947,8 @@ components: items: $ref: '#/components/schemas/network_fee_model' description: "List of fees associated with the transaction.\n\nThis array is returned if it exists in the resource." + flex: + $ref: '#/components/schemas/flex' fraud: $ref: '#/components/schemas/fraud_view' from_account: @@ -32109,6 +32223,7 @@ components: - credit.adjustment - debit.adjustment - pin.change.via.api + - product.inquiry - unknown - authorization.clearing.representment - billpayment @@ -32490,10 +32605,10 @@ components: minimum: 0 exclusiveMinimum: false type: number - description: Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field. + description: "Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field.\nRefunds and reversals cannot exceed this limit." approvals_only: type: boolean - description: 'If set to `true`, only approved transactions are subject to control.' + description: "If set to `true`, only approved transactions are subject to control.\nIf set to `false`, only declined transactions are subject to control." association: $ref: '#/components/schemas/spend_control_association' available: @@ -32558,10 +32673,10 @@ components: minimum: 0 exclusiveMinimum: false type: number - description: Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field. + description: "Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field.\nRefunds and reversals cannot exceed this limit." approvals_only: type: boolean - description: 'If set to `true`, only approved transactions are subject to control.' + description: "If set to `true`, only approved transactions are subject to control.\nIf set to `false`, only declined transactions are subject to control." association: $ref: '#/components/schemas/spend_control_association' currency_code: @@ -32609,7 +32724,7 @@ components: - LIFETIME - TRANSACTION type: string - description: "Defines the time period to which the `amount_limit` and `usage_limit` fields apply:\n\n* *DAY* – one day; days begin at 00:00:00 UTC.\n* *WEEK* – one week; weeks begin Sundays at 00:00:00 UTC.\n* *MONTH* – one month; months begin on the first day of month at 00:00:00 UTC.\n* *LIFETIME* – forever; time period never expires.\n* *TRANSACTION* – a single transaction.\n\n// (2023-05-03): This statement was validated by Processing, as part of a customer inquiry.\n*NOTE:* If set to `DAY`, `WEEK`, or `MONTH`, the velocity control takes effect retroactively from the beginning of the specified period.\nThe amount and usage data already collected within the first period is counted toward the limits.\n\n// (2023-05-03): Commenting this note out, as it is untrue in testing as reported by customers and confirmed by transaction engine team\n//*NOTE:* Editing any of the following fields on a velocity control resets its usage and amount count to 0:\n\n//* `merchant_scope.mcc`\n//* `merchant_scope.mid`\n//* `merchant_scope.mcc_group`\n//* `association.user_token`\n//* `association.card_product_token`" + description: "Defines the time period to which the `amount_limit` and `usage_limit` fields apply:\n\n* *DAY* – one day; days begin at 00:00:00 UTC.\n* *WEEK* – one week; weeks begin Sundays at 00:00:00 UTC.\n* *MONTH* – one month; months begin on the first day of month at 00:00:00 UTC.\n* *LIFETIME* – forever; time period never expires.\n* *TRANSACTION* – a single transaction.\n\n// (2023-05-03): This statement was validated by Processing, as part of a customer inquiry.\n*NOTE:* If set to `DAY`, `WEEK`, or `MONTH`, the velocity control takes effect retroactively from the beginning of the specified period.\nThe amount and usage data already collected within the first period is counted toward the limits.\nIf set to `LIFETIME`, the velocity control only applies to transactions on or after the date and time that the velocity control was created.\n`LIFETIME` velocity controls are not retroactively applied to historical transactions.\n\n// (2023-05-03): Commenting this note out, as it is untrue in testing as reported by customers and confirmed by transaction engine team\n//*NOTE:* Editing any of the following fields on a velocity control resets its usage and amount count to 0:\n\n//* `merchant_scope.mcc`\n//* `merchant_scope.mid`\n//* `merchant_scope.mcc_group`\n//* `association.user_token`\n//* `association.card_product_token`" velocity_control_response: required: - amount_limit @@ -32624,10 +32739,10 @@ components: minimum: 0 exclusiveMinimum: false type: number - description: Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field. + description: "Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field.\nRefunds and reversals cannot exceed this limit." approvals_only: type: boolean - description: 'If set to `true`, only approved transactions are subject to control.' + description: "If set to `true`, only approved transactions are subject to control.\nIf set to `false`, only declined transactions are subject to control." association: $ref: '#/components/schemas/spend_control_association' currency_code: @@ -32688,10 +32803,10 @@ components: minimum: 0 exclusiveMinimum: false type: number - description: Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field. + description: "Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field.\nRefunds and reversals cannot exceed this limit." approvals_only: type: boolean - description: 'If set to `true`, only approved transactions are subject to control.' + description: "If set to `true`, only approved transactions are subject to control.\nIf set to `false`, only declined transactions are subject to control." association: $ref: '#/components/schemas/spend_control_association' currency_code: @@ -32741,7 +32856,7 @@ components: - LIFETIME - TRANSACTION type: string - description: "Defines the time period to which the `amount_limit` and `usage_limit` fields apply:\n\n* *DAY* – one day; days begin at 00:00:00 UTC.\n* *WEEK* – one week; weeks begin Sundays at 00:00:00 UTC.\n* *MONTH* – one month; months begin on the first day of month at 00:00:00 UTC.\n* *LIFETIME* – forever; time period never expires.\n* *TRANSACTION* – a single transaction.\n\n// (2023-05-03): This statement was validated by Processing, as part of a customer inquiry.\n*NOTE:* If set to `DAY`, `WEEK`, or `MONTH`, the velocity control takes effect retroactively from the beginning of the specified period.\nThe amount and usage data already collected within the first period is counted toward the limits.\n\n// (2023-05-03): Commenting this note out, as it is untrue in testing as reported by customers and confirmed by transaction engine team\n//*NOTE:* Editing any of the following fields on a velocity control resets its usage and amount count to 0:\n\n//* `merchant_scope.mcc`\n//* `merchant_scope.mid`\n//* `merchant_scope.mcc_group`\n//* `association.user_token`\n//* `association.card_product_token`" + description: "Defines the time period to which the `amount_limit` and `usage_limit` fields apply:\n\n* *DAY* – one day; days begin at 00:00:00 UTC.\n* *WEEK* – one week; weeks begin Sundays at 00:00:00 UTC.\n* *MONTH* – one month; months begin on the first day of month at 00:00:00 UTC.\n* *LIFETIME* – forever; time period never expires.\n* *TRANSACTION* – a single transaction.\n\n// (2023-05-03): This statement was validated by Processing, as part of a customer inquiry.\n*NOTE:* If set to `DAY`, `WEEK`, or `MONTH`, the velocity control takes effect retroactively from the beginning of the specified period.\nThe amount and usage data already collected within the first period is counted toward the limits.\nIf set to `LIFETIME`, the velocity control only applies to transactions on or after the date and time that the velocity control was created.\n`LIFETIME` velocity controls are not retroactively applied to historical transactions.\n\n// (2023-05-03): Commenting this note out, as it is untrue in testing as reported by customers and confirmed by transaction engine team\n//*NOTE:* Editing any of the following fields on a velocity control resets its usage and amount count to 0:\n\n//* `merchant_scope.mcc`\n//* `merchant_scope.mid`\n//* `merchant_scope.mcc_group`\n//* `association.user_token`\n//* `association.card_product_token`" wallet_provider_card_on_file: type: object properties: @@ -33168,7 +33283,7 @@ tags: - name: Balances description: "Use the `/balances` endpoint to retrieve the following general purpose account (GPA) balance details for a user or business:\n\n* *Ledger balance* - When using standard funding: The funds that are available to spend immediately, including funds from any authorized transactions that have not yet cleared.\nWhen using Just-in-Time (JIT) Funding: Authorized funds that are currently on hold, but not yet cleared.\n* *Available balance* - The ledger balance minus any authorized transactions that have not yet cleared.\nAlso known as the cardholder's purchasing power.\nIf you are using JIT Funding, this balance is usually 0.00.\n* *Cached balance* - Not currently used.\n* *Credit balance* - Not currently used.\n* *Pending credits* - ACH loads that have been accepted, but for which the funding time has not yet elapsed." - name: Funding via ACH (Beta) - description: "Use the `/banktransfers` endpoint to move funds between your program funding or cardholder account and an external account over the ACH Network.\nThis kind of bank transfer is also known as ACH origination.\n\n[NOTE]\nThis feature is currently in beta and subject to change.\nIt also requires additional activation steps.\nTo learn more about the beta program for this feature and about activating it for your program, contact your Marqeta representative.\n\nYou can create the following types of transfers:\n\n* *Push* funds from your program funding or cardholder account to an external account.\n* *Pull* funds from your external account into your program funding or cardholder account.\n\nYou must have an existing bank account at a US bank to fund or receive funds from your Marqeta account.\nTo add an external program funding source account to the Marqeta platform, send a `POST` request to the `/fundingsources/program/ach` endpoint to PUSH or PULL money from or to the Program Funding Account.\nTo add an external account holder funding source account to the Marqeta platform, send a `POST` request to the `/fundingsources/ach` endpoint to PUSH or PULL money from or to the Cardholder Account.\n\nFor more information on ACH funding, see <>." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/banktransfers` endpoint to move funds between your program funding or cardholder account and an external account over the ACH Network.\nThis kind of bank transfer is also known as ACH origination.\n\nYou can create the following types of transfers:\n\n* *Push* funds from your program funding or cardholder account to an external account.\n* *Pull* funds from your external account into your program funding or cardholder account.\n\nYou must have an existing bank account at a US bank to fund or receive funds from your Marqeta account.\nTo add an external program funding source account to the Marqeta platform, send a `POST` request to the `/fundingsources/program/ach` endpoint to PUSH or PULL money from or to the Program Funding Account.\nTo add an external account holder funding source account to the Marqeta platform, send a `POST` request to the `/fundingsources/ach` endpoint to PUSH or PULL money from or to the Cardholder Account.\n\nFor more information on ACH funding, see <>." - name: internal - name: Bulk Card Orders description: "Use the `/bulkissuances` endpoint to order physical payment cards in bulk.\n\nFor more information on cards, card products, and bulk card ordering, see <>.\n\nSome attributes of the `bulkissuance` object can also be defined in an associated `card` or `cardproduct` object.\nIf you define one of these attributes in more than one object, the Marqeta platform applies an order of precedence to determine which attribute to use at fulfillment time.\nThe order of precedence is as follows:\n\n. `card`\n. `bulkissuance`\n. `cardproduct`\n\nDefining an attribute in an object with higher precedence does not overwrite the same attribute in a lower-precedence object; the Marqeta platform ignores these lower-precedence attributes.\n\nFor more information on cards, see <>." @@ -33177,13 +33292,14 @@ tags: - name: Business Transitions description: 'Use the `/businesstransitions` endpoints to transition business resources between states, as well as to retrieve and list state changes for a business resource.' - name: Card Products - description: "The card products resource represents the behavior and functionality of one or more cards (either physical or virtual).\nFor example, attributes of the card product determine whether the associated cards can be used at an ATM and/or online and whether they are currently enabled.\nFor physical cards, the card product determines color and other printing specifications for when the cards are manufactured and personalized.\nYou can optionally associate authorization controls and/or velocity controls with card products to restrict where and how associated cards are used.\n\nIf your program is Managed by Marqeta, then Marqeta will create the card products for your production environment.\n\nSome attributes of the `cardproduct` object can also be defined in an associated `bulkissuance` or `card` object.\nIf you define one of these attributes in more than one object, the Marqeta platform applies an order of precedence to determine which attribute to use at fulfillment time.\nThe order of precedence is as follows:\n\n. `card`\n. `bulkissuance`\n. `cardproduct`\n\nDefining an attribute in an object with higher precedence does not overwrite the same attribute in a lower-precedence object; the Marqeta platform ignores these lower-precedence attributes.\n\nFor more information on cards, see <>." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nThe card products resource represents the behavior and functionality of one or more cards (either physical or virtual).\nFor example, attributes of the card product determine whether the associated cards can be used at an ATM and/or online and whether they are currently enabled.\nFor physical cards, the card product determines color and other printing specifications for when the cards are manufactured and personalized.\nYou can optionally associate authorization controls and/or velocity controls with card products to restrict where and how associated cards are used.\n\nIf your program is Managed by Marqeta, then Marqeta will create the card products for your production environment.\n\nSome attributes of the `cardproduct` object can also be defined in an associated `bulkissuance` or `card` object.\nIf you define one of these attributes in more than one object, the Marqeta platform applies an order of precedence to determine which attribute to use at fulfillment time.\nThe order of precedence is as follows:\n\n. `card`\n. `bulkissuance`\n. `cardproduct`\n\nDefining an attribute in an object with higher precedence does not overwrite the same attribute in a lower-precedence object; the Marqeta platform ignores these lower-precedence attributes.\n\nFor more information on cards, see <>." - name: Cards description: "The `card` resource represents a payment card.\nCards are derived from and controlled by the `cardproduct` resource.\nFor more information on cards, see <>.\n\nSome attributes of the `card` resource can be defined in an associated `bulkissuance` or `cardproduct` resource.\nIf you define one of these attributes in more than one object, the order of precedence at fulfillment time is as follows:\n\n. `card`\n. `bulkissuance`\n. `cardproduct`\n\nDefining an attribute in an object with higher precedence overrides, but does not overwrite, the attribute in a lower-precedence object." - name: Card Transitions description: Use the `/cardtransitions` API to set the state of an existing card. - name: Commando Mode description: "Commando Mode is a fallback measure that ensures Gateway JIT-funded cards continue to function in the event that your system fails.\nIf your system cannot respond to the JIT Funding request, the Marqeta platform makes a decision in your place based on defined business rules.\nThe Marqeta platform stores any unsent webhooks for later transmission, ensuring that the card state and account balances on your system correspond with activity that occurred while Commando Mode was in effect.\n\nYou can identify transactions that were funded while Commando Mode was in effect by examining the `subnetwork` field of the transaction record.\n\n* A `subnetwork` value of `GATEWAY_JIT` indicates that the transaction was funded through normal Gateway JIT Funding and that Commando Mode was not in effect at the time.\n* A value of `MANAGED_JIT` indicates that the transaction was funded while Commando Mode was in effect.\nIn addition, the `standin_approved_by` field has a value of `COMMANDO_AUTO` or `COMMANDO_MANUAL` when Commando Mode is enabled for a transaction.\n\nWhen `COMMANDO_MANUAL` is configured, all transactions are processed via Commando Mode.\nWhen `COMMANDO_AUTO` is configured, Commando Mode is enabled only when a transaction times out or encounters an error.\n\nWhile Commando Mode is a form of Stand-in Processing (STIP), it is different than network STIP.\nNetwork STIP occurs when the card network cannot communicate with the Marqeta platform.\nTransactions handled by network STIP include the `standin_approved_by` field with a value of `NETWORK`.\n\nCommando Mode and Managed JIT Funding are functionally equivalent.\nSee <> for more information.\n\n[NOTE]\nCommando Mode requires additional configuration.\nTo configure Commando Mode control sets, contact your Marqeta representative." + - name: ' Write digital wallet tokens' - name: accepted countries - name: account holder groups - name: accounting @@ -33250,6 +33366,7 @@ tags: - name: peer transfers - name: ping - name: pins + - name: post transactions - name: program - name: program configs - name: program reserve @@ -33258,7 +33375,6 @@ tags: - name: real time fee groups - name: simulate - name: token service gateway - - name: transaction caches - name: transactions - name: 'transactions : Dispute transactions' - name: user transitions @@ -33269,9 +33385,11 @@ tags: - name: Account Cards description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the account cards endpoints to create and retrieve credit cards that can access the credit line on a <>.\n\nOnce a credit card is created, you can use the `/cards` endpoint to <> or <>.\n\nTo receive webhook notifications when card transition or card action events occur, see <> and <> in Event Types." - name: Account Rewards - description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/credit/accounts/{account_token}/rewards` endpoint to create a one-time reward on a <>.\n\nCreating a reward triggers the creation of a <> belonging to the `REWARD` group.\nFor more on reward journal entries, see <> in the About Credit Account Journal Entries guide.\n\nFor the reward programs that are associated with a reward policy on a bundle, see <>." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/credit/accounts/{account_token}/rewards` endpoint to create a one-time reward on a <>.\n\nCreating a reward triggers the creation of a <> belonging to the `REWARD` group.\nFor more on reward journal entries, see <> in the About Credit Account Journal Entries guide.\n\nFor the reward programs that are associated with a reward policy on a bundle, see <>." - name: Account Transitions description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\nUse the account transitions endpoints to create and retrieve account transitions on Marqeta's credit platform.\nAn account transition occurs when a <> transitions to a new status.\n\nTo receive webhook notifications when account transition events occur, see <> in Event Types." + - name: Credit Substatuses + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nCredit substatuses can be applied to credit accounts or credit account holders.\nSubstatuses should be applied only after verification with Customer Support and after the cardholder request for the substatus designation has been accepted.\nSubstatuses define specific circumstances, such as bankruptcy, hardship or fraud.\nThey also affect account behavior or activity, including interest accrual, authorization requests, and account termination.\nSubstatus downstream account actions are not always reversible for the cardholder, which means that substatuses should be applied with caution.\n\nUse the substatus endpoints to apply or remove a substatus for a credit account or user.\nApplying a substatus causes immediate downstream changes to the account.\nFor additional information about substatuses, see <> or <> in the <> guide.\n\n[NOTE]\n====\nThe substatus `SCRA` stands for \"Servicemembers Civilian Relief Act.\"\nThe substatus `MLA` stands for \"Military Lending Act.\"\n====\n\nFor more information about receiving webhook notifications when account transition events occur, see <> on the <> page.\n\n[IMPORTANT]\n====\nIf you are a Managed by Marqeta customer, a Marqeta customer service representative will apply the appropriate substatuses.\n====" - name: Adjustments description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the adjustments endpoints to create and retrieve account adjustments on Marqeta's credit platform.\nAn account adjustment adjusts the amount of a <> or account balance.\n\nCreating an adjustment triggers the creation of a <> belonging to the `ADJUSTMENT` group.\nFor more on adjustment journal entries, see <> in the About Credit Account Journal Entries guide." - name: Balance Refunds @@ -33309,15 +33427,15 @@ tags: - name: Fees description: "A `fees` resource represents a monetary assessment against an account holder's general purpose account (GPA).\nAssessing a fee transfers funds from the account holder's GPA account to your program's fee account.\nBy default, every account has a GPA account used for the funding of transfers.\n\nYou can assess fees either post-transaction or in real time.\nReal-time fee assessment ensures the account has sufficient funds available to cover both the transaction amount and the fee before authorization of the transaction.\nTo assess fees in real time, you must create a real-time fee group using the `/realtimefeegroups` endpoint.\n\nWhen assessing a post-transaction fee, you can either debit existing GPA funds, or pull in new funds from a funding source.\nTo use existing GPA funds, use the `/feetransfers` endpoint.\nTo pull in new funds, use the fees array in `/gpaorders`.\n\n[NOTE]\nIf your program uses Gateway JIT Funding, you cannot assess fees." - name: Addresses - description: "The address resource is your billing address.\nAn active address is required in order to use a payment card funding source.\nTo associate an address with a funding source, use the same `user_token` or `business_token` for both resources.\n\n[NOTE]\nThe `/users` and `/businesses` resources also have address fields.\nThose are used for other purposes, such as KYC identity verification or as shipping addresses for physical cards." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nThe address resource is your billing address.\nAn active address is required in order to use a payment card funding source.\nTo associate an address with a funding source, use the same `user_token` or `business_token` for both resources.\n\n[NOTE]\nThe `/users` and `/businesses` resources also have address fields.\nThose are used for other purposes, such as KYC identity verification or as shipping addresses for physical cards." - name: Account Holder Funding Sources - description: "Use the `/fundingsources/ach`, `/fundingsources/ach/partner`, and `/fundingsources/paymentcard` endpoints to create account holder funding sources.\nA funding source enables access to funds outside of the Marqeta platform.\n\nFor more information on users and businesses, see <>." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/fundingsources/ach`, `/fundingsources/ach/partner`, and `/fundingsources/paymentcard` endpoints to create account holder funding sources.\nA funding source enables access to funds outside of the Marqeta platform.\n\nFor more information on users and businesses, see <>." - name: Program Funding Sources - description: "Use the `/fundingsources/program` endpoint to create a program funding source.\n\nA program funding source represents a bank account from which funds are drawn for Managed Just-in-Time (JIT) Funding transactions.\nFor more information about JIT Funding, see <>.\n\nIn the sandbox environment, each program funding source you create simulates funds for use in test transactions.\nIn production environments, program funding sources are created by Marqeta and draw funds from a bank account you set up in conjunction with Marqeta.\n\n[NOTE]\nYour program funding source must be approved by Marqeta and the issuing bank.\nIf you are using a third-party service to collect user funds, Marqeta and the issuing bank require specific reporting to ensure compliance with applicable rules and regulations.\nContact Marqeta for more information." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/fundingsources/program` endpoint to create a program funding source.\n\nA program funding source represents a bank account from which funds are drawn for Managed Just-in-Time (JIT) Funding transactions.\nFor more information about JIT Funding, see <>.\n\nIn the sandbox environment, each program funding source you create simulates funds for use in test transactions.\nIn production environments, program funding sources are created by Marqeta and draw funds from a bank account you set up in conjunction with Marqeta.\n\n[NOTE]\nYour program funding source must be approved by Marqeta and the issuing bank.\nIf you are using a third-party service to collect user funds, Marqeta and the issuing bank require specific reporting to ensure compliance with applicable rules and regulations.\nContact Marqeta for more information." - name: Program Gateway Funding Sources - description: "Use the `/fundingsources/programgateway` endpoint to create a program gateway funding source.\n\nA program gateway funding source represents a bank account from which funds are drawn for Gateway Just-in-Time (JIT) Funding transactions.\nFor more information about JIT Funding, see <>.\n\nIn a sandbox environment, you can create a program gateway funding source that simulates funds for use in test transactions.\nIn a production environment, you must work with a Marqeta representative to define the bank account from which the program gateway funding source draws funds.\n\n[NOTE]\nIf you are using a third-party service to collect user funds, Marqeta and the issuing bank require specific reporting to ensure compliance with applicable rules and regulations.\nContact Marqeta for more information." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/fundingsources/programgateway` endpoint to create a program gateway funding source.\n\nA program gateway funding source represents a bank account from which funds are drawn for Gateway Just-in-Time (JIT) Funding transactions.\nFor more information about JIT Funding, see <>.\n\nIn a sandbox environment, you can create a program gateway funding source that simulates funds for use in test transactions.\nIn a production environment, you must work with a Marqeta representative to define the bank account from which the program gateway funding source draws funds.\n\n[NOTE]\nIf you are using a third-party service to collect user funds, Marqeta and the issuing bank require specific reporting to ensure compliance with applicable rules and regulations.\nContact Marqeta for more information." - name: GPA Orders - description: "The `/gpaorders` endpoint moves funds from a funding source into an\naccount holder's general-purpose account (GPA).\n\nGPA orders can also be used to move funds from an account holder's funding source into your program's fee account.\n\nGPA orders can be funded by the account holder or your program." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nThe `/gpaorders` endpoint moves funds from a funding source into an\naccount holder's general-purpose account (GPA).\n\nGPA orders can also be used to move funds from an account holder's funding source into your program's fee account.\n\nGPA orders can be funded by the account holder or your program." - name: KYC Verification description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/kyc` endpoint to perform Know Your Customer (KYC) verification tasks for your account holders.\n\nThis endpoint can only be used to perform KYC verification for individuals or businesses in the United States.\n\nFor more information about KYC verification, see <>.\n\nFor more information about account holders, see <>." - name: MCC Groups @@ -33327,7 +33445,7 @@ tags: - name: Peer Transfers description: "A peer transfer moves funds from the general purpose account (GPA) of an account holder (a user or business) to another account within your program.\nBoth the sender and recipient accounts must be active.\n\n[NOTE]\nThe `/peertransfers` endpoint is only available for specific, pre-approved use cases.\nFor more information about this endpoint, contact your Marqeta representative." - name: PINs - description: 'Use the `/pins` endpoint to create, update, or reveal a personal identification number (PIN) for a card.' + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/pins` endpoint to create, update, or reveal a personal identification number (PIN) for a card." - name: Program Reserve description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the Program Reserve API to retrieve program reserve account balances and transactions." - name: Program Transfers @@ -33347,7 +33465,7 @@ tags: - name: User Transitions description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/usertransitions` endpoints to transition user resources between statuses, as well as to retrieve and list status changes for a user resource." - name: Velocity Controls - description: "A velocity control limits how much users can spend.\nYou can configure velocity controls to limit how much users can spend and the number of transactions they can make in a given span of time.\nYou can apply velocity controls to a single user, to all users associated with a particular card product, or to all users in your program.\n\nOnly Program Managers can create or modify program-wide velocity controls.\nA `POST` or `PUT` call from a role that does not have Program Manager permissions will receive a 403 error if its `association` field is null, or if it includes all of the fields in the request body.\nAvoid this by passing a valid `user_token` or `card_product_token` in the velocity control's `association` object, indicating that the request is specific to a user or card product, and not program-wide.\nYou should also only include the specific fields you want to update, because a `PUT` or `POST` with values for all fields is interpreted as a change that requires Program Manager permissions.\n\nSee <> for a tutorial that walks you through the creation of a spend control.\n\n[NOTE]\nEach program supports a maximum of 90 spend controls (velocity controls and <> combined).\nThe limit of 90 spend controls applies at the program level only; it does not affect the number of user-level spend controls you can use." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nA velocity control limits how much users can spend.\nYou can configure velocity controls to limit how much users can spend and the number of transactions they can make in a given span of time.\nYou can apply velocity controls to a single user, to all users associated with a particular card product, or to all users in your program.\n\nOnly Program Managers can create or modify program-wide velocity controls.\nA `POST` or `PUT` call from a role that does not have Program Manager permissions will receive a 403 error if its `association` field is null, or if it includes all of the fields in the request body.\nAvoid this by passing a valid `user_token` or `card_product_token` in the velocity control's `association` object, indicating that the request is specific to a user or card product, and not program-wide.\nYou should also only include the specific fields you want to update, because a `PUT` or `POST` with values for all fields is interpreted as a change that requires Program Manager permissions.\n\nSee <> for a tutorial that walks you through the creation of a spend control.\n\n[NOTE]\nEach program supports a maximum of 90 spend controls (velocity controls and <> combined).\nThe limit of 90 spend controls applies at the program level only; it does not affect the number of user-level spend controls you can use." - name: Webhooks description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nWebhooks are notifications about API events, sent as they occur.\nThe Marqeta platform sends these notifications to an endpoint that is hosted in your environment and configured to receive and process them.\n\nCreate a webhook object to represent your webhook endpoint.\nConfigure it with the URL of your webhook endpoint and a set of credentials for accessing that endpoint.\nYou can configure it to send notifications for a single event, a group of events by type, or all event types.\nTo set up multiple webhook endpoints and route different types of event notifications to each, create multiple webhook objects and configure each to send a specific type of event notification to a specific endpoint.\n\nSee <> for information on notifications and a tutorial that walks you through the configuration of your webhook endpoint.\n\nSee <> for reference documentation on the types of events that the Marqeta platform supports.\n\n[NOTE]\nWebhooks URLs are cached.\nChanges made on your webhook endpoint can take up to one hour to be applied." - name: Applications diff --git a/Marqeta.Core.Sdk/Generated/Accounts/Item/Disputes/DisputesRequestBuilder.cs b/Marqeta.Core.Sdk/Generated/Accounts/Item/Disputes/DisputesRequestBuilder.cs index c73f7017..dfc42e0a 100644 --- a/Marqeta.Core.Sdk/Generated/Accounts/Item/Disputes/DisputesRequestBuilder.cs +++ b/Marqeta.Core.Sdk/Generated/Accounts/Item/Disputes/DisputesRequestBuilder.cs @@ -33,7 +33,7 @@ public Marqeta.Core.Sdk.Accounts.Item.Disputes.Item.WithDispute_tokenItemRequest /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public DisputesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/accounts/{account_token}/disputes{?count*,sort_by*,start_index*}", pathParameters) + public DisputesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/accounts/{account_token}/disputes{?count*,ledger_entry_tokens*,sort_by*,start_index*,statuses*}", pathParameters) { } /// @@ -41,7 +41,7 @@ public DisputesRequestBuilder(Dictionary pathParameters, IReques /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public DisputesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/accounts/{account_token}/disputes{?count*,sort_by*,start_index*}", rawUrl) + public DisputesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/accounts/{account_token}/disputes{?count*,ledger_entry_tokens*,sort_by*,start_index*,statuses*}", rawUrl) { } /// @@ -150,12 +150,32 @@ public class DisputesRequestBuilderGetQueryParameters /// Number of disputes resources to retrieve. [QueryParameter("count")] public int? Count { get; set; } + /// Unique identifier of the journal entry in dispute.This type of identifier can only be used for `authorization.clearing`-type journal entries. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("ledger_entry_tokens")] + public string[]? LedgerEntryTokens { get; set; } +#nullable restore +#else + [QueryParameter("ledger_entry_tokens")] + public string[] LedgerEntryTokens { get; set; } +#endif /// Field on which to sort.Prefix the field name with a hyphen (`-`) to sort in descending order.Omit the hyphen to sort in ascending order.*NOTE:*You must sort using system field names such as `lastModifiedTime`, and not by the field names appearing in response bodies such as `last_modified_time`. [QueryParameter("sort_by")] public Marqeta.Core.Sdk.Accounts.Item.Disputes.GetSort_byQueryParameterType? SortBy { get; set; } /// Sort order index of the first resource in the returned array. [QueryParameter("start_index")] public int? StartIndex { get; set; } + /// Status of the dispute. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("statuses")] + public Marqeta.Core.Sdk.Models.DisputeStatus[]? Statuses { get; set; } +#nullable restore +#else + [QueryParameter("statuses")] + public Marqeta.Core.Sdk.Models.DisputeStatus[] Statuses { get; set; } +#endif } } } diff --git a/Marqeta.Core.Sdk/Generated/Banktransfers/Ach/Earlyfunds/EarlyfundsRequestBuilder.cs b/Marqeta.Core.Sdk/Generated/Banktransfers/Ach/Earlyfunds/EarlyfundsRequestBuilder.cs index 808b38dc..ea657d73 100644 --- a/Marqeta.Core.Sdk/Generated/Banktransfers/Ach/Earlyfunds/EarlyfundsRequestBuilder.cs +++ b/Marqeta.Core.Sdk/Generated/Banktransfers/Ach/Earlyfunds/EarlyfundsRequestBuilder.cs @@ -32,7 +32,7 @@ public EarlyfundsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : { } /// - /// Applies a provisional credit to an ACH transfer. + /// Use this endpoint to post funds from an existing bank transfer more quickly to the cardholder's account. /// /// A /// The request body @@ -57,7 +57,7 @@ public EarlyfundsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : return await RequestAdapter.SendAsync(requestInfo, Marqeta.Core.Sdk.Models.Bank_transfer_response_model.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Applies a provisional credit to an ACH transfer. + /// Use this endpoint to post funds from an existing bank transfer more quickly to the cardholder's account. /// /// A /// The request body diff --git a/Marqeta.Core.Sdk/Generated/Banktransfers/Ach/Transitions/TransitionsRequestBuilder.cs b/Marqeta.Core.Sdk/Generated/Banktransfers/Ach/Transitions/TransitionsRequestBuilder.cs index 0e10dadc..a2eaa060 100644 --- a/Marqeta.Core.Sdk/Generated/Banktransfers/Ach/Transitions/TransitionsRequestBuilder.cs +++ b/Marqeta.Core.Sdk/Generated/Banktransfers/Ach/Transitions/TransitionsRequestBuilder.cs @@ -147,7 +147,7 @@ public class TransitionsRequestBuilderGetQueryParameters /// Number of bank transfer transitions to retrieve. [QueryParameter("count")] public int? Count { get; set; } - /// Field on which to sort.Use any field in the resource model, or one of the system fields lastModifiedTime or createdTime.Prefix the field name with a hyphen (-) to sort in descending order.Omit the hyphen to sort in ascending order. + /// Field on which to sort.Use any field in the resource model, or one of the system fields `lastModifiedTime` or `createdTime`.Prefix the field name with a hyphen (-) to sort in descending order.Omit the hyphen to sort in ascending order. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("sort_by")] diff --git a/Marqeta.Core.Sdk/Generated/Bundles/BundlesRequestBuilder.cs b/Marqeta.Core.Sdk/Generated/Bundles/BundlesRequestBuilder.cs index da69448c..452e83b4 100644 --- a/Marqeta.Core.Sdk/Generated/Bundles/BundlesRequestBuilder.cs +++ b/Marqeta.Core.Sdk/Generated/Bundles/BundlesRequestBuilder.cs @@ -150,7 +150,7 @@ public class BundlesRequestBuilderGetQueryParameters /// Number of bundles resources to retrieve. [QueryParameter("count")] public int? Count { get; set; } - /// Field on which to sort.Prefix the field name with a hyphen (`-`) to sort in descending order.Omit the hyphen to sort in ascending order.*NOTE:*You must sort using system field names such as `lastModifiedTime`, and not by the field names appearing in response bodies such as `last_modified_time`. + /// Field on which to sort.Prefix the field name with a hyphen (`-`) to sort in descending order.Omit the hyphen to sort in ascending order.*NOTE:*You must sort using system field names such as `lastModifiedTime`, not by the field names appearing in response bodies: for example, `last_modified_time`. [QueryParameter("sort_by")] public Marqeta.Core.Sdk.Bundles.GetSort_byQueryParameterType? SortBy { get; set; } /// Sort order index of the first resource in the returned array. diff --git a/Marqeta.Core.Sdk/Generated/Bundles/Item/Promote/PromoteRequestBuilder.cs b/Marqeta.Core.Sdk/Generated/Bundles/Item/Promote/PromoteRequestBuilder.cs index ee245a89..fc5040e1 100644 --- a/Marqeta.Core.Sdk/Generated/Bundles/Item/Promote/PromoteRequestBuilder.cs +++ b/Marqeta.Core.Sdk/Generated/Bundles/Item/Promote/PromoteRequestBuilder.cs @@ -32,7 +32,7 @@ public PromoteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba { } /// - /// Promote a specific bundle, which replaces the current active bundle and activates the promoted bundle. + /// Promote a specific bundle that replaces the current active bundle and activates the promoted bundle. /// /// A /// Cancellation token to use when cancelling requests @@ -55,7 +55,7 @@ public PromoteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, Marqeta.Core.Sdk.Models.BundleResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Promote a specific bundle, which replaces the current active bundle and activates the promoted bundle. + /// Promote a specific bundle that replaces the current active bundle and activates the promoted bundle. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/Marqeta.Core.Sdk/Generated/Bundles/Item/WithTokenItemRequestBuilder.cs b/Marqeta.Core.Sdk/Generated/Bundles/Item/WithTokenItemRequestBuilder.cs index 69349cef..3fff6021 100644 --- a/Marqeta.Core.Sdk/Generated/Bundles/Item/WithTokenItemRequestBuilder.cs +++ b/Marqeta.Core.Sdk/Generated/Bundles/Item/WithTokenItemRequestBuilder.cs @@ -79,7 +79,7 @@ public WithTokenItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, Marqeta.Core.Sdk.Models.BundleResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update a specific bundle that is not `ACTIVE` or `ARCHIVED`. Bundles are created in a `DRAFT` state, and are still modifiable at this point. Using the transitions endpoint a bundle can be transitioned from `DRAFT`, to `ACTIVE`. Once a bundle is active, it is immutable, and cannot be modified. + /// Update a specific bundle that is not `ACTIVE` or `ARCHIVED`.Bundles are created in a `DRAFT` state, and are still modifiable at this point.Using the transitions endpoint a bundle can be transitioned from `DRAFT`, to `ACTIVE`.Once a bundle is active, it cannot be modified. /// /// A /// Specifies bundles for a credit program. @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update a specific bundle that is not `ACTIVE` or `ARCHIVED`. Bundles are created in a `DRAFT` state, and are still modifiable at this point. Using the transitions endpoint a bundle can be transitioned from `DRAFT`, to `ACTIVE`. Once a bundle is active, it is immutable, and cannot be modified. + /// Update a specific bundle that is not `ACTIVE` or `ARCHIVED`.Bundles are created in a `DRAFT` state, and are still modifiable at this point.Using the transitions endpoint a bundle can be transitioned from `DRAFT`, to `ACTIVE`.Once a bundle is active, it cannot be modified. /// /// A /// Specifies bundles for a credit program. diff --git a/Marqeta.Core.Sdk/Generated/Fundingsources/Ach/AchRequestBuilder.cs b/Marqeta.Core.Sdk/Generated/Fundingsources/Ach/AchRequestBuilder.cs index 2be146b6..3cb4362a 100644 --- a/Marqeta.Core.Sdk/Generated/Fundingsources/Ach/AchRequestBuilder.cs +++ b/Marqeta.Core.Sdk/Generated/Fundingsources/Ach/AchRequestBuilder.cs @@ -51,7 +51,7 @@ public AchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r { } /// - /// Create an ACH funding source for an existing account holder.Specify the account holder of the funding source by passing a user or business token.When adding an ACH funding source, a small amount is deposited in the bank account as a test.The test deposit should be reflected in the account after two to three business days.You must then make an API call to verify the deposit amount in order to activate the ACH account.See <</core-api/account-holder-funding-sources#putFundingsourcesAchFundingsourcetoken, Verify or Update ACH Funding Source>> on this page for more information.The response body returns details about the account, including the verification status.Possible ACH verification status values include `ACH_VERIFIED`, `ACH_FAILED`, and `VERIFICATION_PENDING`. + /// Create an ACH funding source for an existing account holder.Specify the account holder of the funding source by passing a user or business token.The response body returns details about the account, including the verification status.Possible ACH verification status values include `ACH_VERIFIED`, `ACH_FAILED`, and `VERIFICATION_PENDING`. /// /// A /// The request body @@ -76,7 +76,7 @@ public AchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r return await RequestAdapter.SendAsync(requestInfo, Marqeta.Core.Sdk.Models.Ach_response_model.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an ACH funding source for an existing account holder.Specify the account holder of the funding source by passing a user or business token.When adding an ACH funding source, a small amount is deposited in the bank account as a test.The test deposit should be reflected in the account after two to three business days.You must then make an API call to verify the deposit amount in order to activate the ACH account.See <</core-api/account-holder-funding-sources#putFundingsourcesAchFundingsourcetoken, Verify or Update ACH Funding Source>> on this page for more information.The response body returns details about the account, including the verification status.Possible ACH verification status values include `ACH_VERIFIED`, `ACH_FAILED`, and `VERIFICATION_PENDING`. + /// Create an ACH funding source for an existing account holder.Specify the account holder of the funding source by passing a user or business token.The response body returns details about the account, including the verification status.Possible ACH verification status values include `ACH_VERIFIED`, `ACH_FAILED`, and `VERIFICATION_PENDING`. /// /// A /// The request body diff --git a/Marqeta.Core.Sdk/Generated/Fundingsources/Ach/Item/Verificationamounts/VerificationamountsRequestBuilder.cs b/Marqeta.Core.Sdk/Generated/Fundingsources/Ach/Item/Verificationamounts/VerificationamountsRequestBuilder.cs deleted file mode 100644 index d49649e5..00000000 --- a/Marqeta.Core.Sdk/Generated/Fundingsources/Ach/Item/Verificationamounts/VerificationamountsRequestBuilder.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -using Marqeta.Core.Sdk.Models; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace Marqeta.Core.Sdk.Fundingsources.Ach.Item.Verificationamounts -{ - /// - /// Builds and executes requests for operations under \fundingsources\ach\{funding_source_token}\verificationamounts - /// - public class VerificationamountsRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public VerificationamountsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/fundingsources/ach/{funding_source_token}/verificationamounts", pathParameters) - { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public VerificationamountsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/fundingsources/ach/{funding_source_token}/verificationamounts", rawUrl) - { - } - /// - /// In your sandbox environment, retrieve the amounts used to verify the association with your ACH account.Use this endpoint for testing purposes only.In production, verification amounts are retrieved from the bank statement of the account holder. - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", Marqeta.Core.Sdk.Models.ApiError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendAsync(requestInfo, Marqeta.Core.Sdk.Models.Ach_verification_model.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// In your sandbox environment, retrieve the amounts used to verify the association with your ACH account.Use this endpoint for testing purposes only.In production, verification amounts are retrieved from the bank statement of the account holder. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public Marqeta.Core.Sdk.Fundingsources.Ach.Item.Verificationamounts.VerificationamountsRequestBuilder WithUrl(string rawUrl) - { - return new Marqeta.Core.Sdk.Fundingsources.Ach.Item.Verificationamounts.VerificationamountsRequestBuilder(rawUrl, RequestAdapter); - } - } -} diff --git a/Marqeta.Core.Sdk/Generated/Fundingsources/Ach/Item/WithFunding_source_tokenItemRequestBuilder.cs b/Marqeta.Core.Sdk/Generated/Fundingsources/Ach/Item/WithFunding_source_tokenItemRequestBuilder.cs index 0782ef75..a3a71849 100644 --- a/Marqeta.Core.Sdk/Generated/Fundingsources/Ach/Item/WithFunding_source_tokenItemRequestBuilder.cs +++ b/Marqeta.Core.Sdk/Generated/Fundingsources/Ach/Item/WithFunding_source_tokenItemRequestBuilder.cs @@ -1,5 +1,4 @@ // -using Marqeta.Core.Sdk.Fundingsources.Ach.Item.Verificationamounts; using Marqeta.Core.Sdk.Models; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; @@ -16,11 +15,6 @@ namespace Marqeta.Core.Sdk.Fundingsources.Ach.Item /// public class WithFunding_source_tokenItemRequestBuilder : BaseRequestBuilder { - /// The verificationamounts property - public Marqeta.Core.Sdk.Fundingsources.Ach.Item.Verificationamounts.VerificationamountsRequestBuilder Verificationamounts - { - get => new Marqeta.Core.Sdk.Fundingsources.Ach.Item.Verificationamounts.VerificationamountsRequestBuilder(PathParameters, RequestAdapter); - } /// /// Instantiates a new and sets the default values. /// @@ -61,31 +55,6 @@ public WithFunding_source_tokenItemRequestBuilder(string rawUrl, IRequestAdapter return await RequestAdapter.SendAsync(requestInfo, Marqeta.Core.Sdk.Models.Ach_response_model.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Verify or update an ACH funding source.If you are verifying the ACH source, include the verification amounts in the body of the request.ACH verification will fail if the verification amounts are not entered in the correct order.`verify_amount1` must match the first deposit amount, and `verify_amount2` must match the second.If you are updating the ACH source, include the `active` field instead.The `active` field is the only field you can update. - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PutAsync(Marqeta.Core.Sdk.Models.Ach_verification_model body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PutAsync(Marqeta.Core.Sdk.Models.Ach_verification_model body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", Marqeta.Core.Sdk.Models.ApiError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendAsync(requestInfo, Marqeta.Core.Sdk.Models.Ach_response_model.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// /// Retrieve a specific ACH funding source.The response body returns details about the account, including the verification status.Possible ACH verification status values are: `ACH_FAILED`, `ACH_VERIFIED`, and `VERIFICATION_PENDING`. /// /// A @@ -105,28 +74,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Verify or update an ACH funding source.If you are verifying the ACH source, include the verification amounts in the body of the request.ACH verification will fail if the verification amounts are not entered in the correct order.`verify_amount1` must match the first deposit amount, and `verify_amount2` must match the second.If you are updating the ACH source, include the `active` field instead.The `active` field is the only field you can update. - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(Marqeta.Core.Sdk.Models.Ach_verification_model body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(Marqeta.Core.Sdk.Models.Ach_verification_model body, Action> requestConfiguration = default) - { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// A diff --git a/Marqeta.Core.Sdk/Generated/Models/AccountConfigReq.cs b/Marqeta.Core.Sdk/Generated/Models/AccountConfigReq.cs index 86fe80d2..e46964ea 100644 --- a/Marqeta.Core.Sdk/Generated/Models/AccountConfigReq.cs +++ b/Marqeta.Core.Sdk/Generated/Models/AccountConfigReq.cs @@ -13,7 +13,7 @@ public class AccountConfigReq : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Day of month the billing cycle starts. If an override value is not provided, the default value is derived from the bundle. + /// Day of month the billing cycle starts. If an override value is not provided, the default value is derived from the bundle.The value must be 1, 10, 15, 20, or 25. public int? BillingCycleDay { get; set; } /// Level of the credit card. public Marqeta.Core.Sdk.Models.AccountConfigReq_card_level? CardLevel { get; set; } @@ -27,7 +27,7 @@ public class AccountConfigReq : IAdditionalDataHolder, IParsable #else public List Fees { get; set; } #endif - /// Day of month the payment for the previous billing cycle is due.This field is deprecated.Use the `account.payment_due_interval` field instead.To retrieve `payment_due_interval`, see <</core-api/policies#retrieveProductPolicy, Retrieve credit product policy, payments.payment_due_interval>>. + /// Day of month the payment for the previous billing cycle is due.This field is being deprecated and replaced by `payment_due_interval` of a product policy.To retrieve `payment_due_interval`, see <</core-api/policies#retrieveProductPolicy, Retrieve credit product policy, payments.payment_due_interval>>. [Obsolete("")] public int? PaymentDueDay { get; set; } /// Contains configurations for a payment hold. diff --git a/Marqeta.Core.Sdk/Generated/Models/AccountConfigResponse.cs b/Marqeta.Core.Sdk/Generated/Models/AccountConfigResponse.cs index 7c1b9c1b..426be4c5 100644 --- a/Marqeta.Core.Sdk/Generated/Models/AccountConfigResponse.cs +++ b/Marqeta.Core.Sdk/Generated/Models/AccountConfigResponse.cs @@ -13,7 +13,7 @@ public class AccountConfigResponse : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Day of month the billing cycle starts. If an override value is not provided, the default value is derived from the bundle. + /// Day of month the billing cycle starts. If an override value is not provided, the default value is derived from the bundle.The value must be 1, 10, 15, 20, or 25. public int? BillingCycleDay { get; set; } /// Level of the credit card. public Marqeta.Core.Sdk.Models.AccountConfigResponse_card_level? CardLevel { get; set; } diff --git a/Marqeta.Core.Sdk/Generated/Models/Ach_response_model.cs b/Marqeta.Core.Sdk/Generated/Models/Ach_response_model.cs index fd9a15a2..4bff5f7a 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Ach_response_model.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Ach_response_model.cs @@ -48,7 +48,7 @@ public class Ach_response_model : IAdditionalDataHolder, IParsable #endif /// Date and time when the resource was created, in UTC. public DateTimeOffset? CreatedTime { get; set; } - /// Date and time in UTC when either the request for account validation was sent to the third-party partner, or when the funding source was verified by microdeposits.This field is returned if it exists in the resource. + /// Date and time in UTC when the request for account validation was sent to the third-party partner.This field is returned if it exists in the resource. public DateTimeOffset? DateSentForVerification { get; set; } /// Date and time when the account was verified, in UTC.This field is returned if it exists in the resource. public DateTimeOffset? DateVerified { get; set; } diff --git a/Marqeta.Core.Sdk/Generated/Models/Ach_verification_model.cs b/Marqeta.Core.Sdk/Generated/Models/Ach_verification_model.cs deleted file mode 100644 index 23b37dce..00000000 --- a/Marqeta.Core.Sdk/Generated/Models/Ach_verification_model.cs +++ /dev/null @@ -1,64 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace Marqeta.Core.Sdk.Models -{ - #pragma warning disable CS1591 - public class Ach_verification_model : IAdditionalDataHolder, IParsable - #pragma warning restore CS1591 - { - /// Indicates whether the ACH funding source is active. - public bool? Active { get; set; } - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Verification amount. - public double? VerifyAmount1 { get; set; } - /// Verification amount. - public double? VerifyAmount2 { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Ach_verification_model() - { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Marqeta.Core.Sdk.Models.Ach_verification_model CreateFromDiscriminatorValue(IParseNode parseNode) - { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Marqeta.Core.Sdk.Models.Ach_verification_model(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "active", n => { Active = n.GetBoolValue(); } }, - { "verify_amount1", n => { VerifyAmount1 = n.GetDoubleValue(); } }, - { "verify_amount2", n => { VerifyAmount2 = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("active", Active); - writer.WriteDoubleValue("verify_amount1", VerifyAmount1); - writer.WriteDoubleValue("verify_amount2", VerifyAmount2); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Marqeta.Core.Sdk/Generated/Models/AmountFilter.cs b/Marqeta.Core.Sdk/Generated/Models/AmountFilter.cs deleted file mode 100644 index 3650cd68..00000000 --- a/Marqeta.Core.Sdk/Generated/Models/AmountFilter.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace Marqeta.Core.Sdk.Models -{ - /// - /// Contains information on the minimum and maximum amounts that the balance for a billing cycle can be to earn the reward. - /// - public class AmountFilter : IAdditionalDataHolder, IParsable - { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Minimum amount that a balance for a billing cycle can be to earn the reward. - public double? GreaterThan { get; set; } - /// Maximum amount that a balance for a billing cycle can be to earn the reward. - public double? LessThan { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public AmountFilter() - { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Marqeta.Core.Sdk.Models.AmountFilter CreateFromDiscriminatorValue(IParseNode parseNode) - { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Marqeta.Core.Sdk.Models.AmountFilter(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "greater_than", n => { GreaterThan = n.GetDoubleValue(); } }, - { "less_than", n => { LessThan = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("greater_than", GreaterThan); - writer.WriteDoubleValue("less_than", LessThan); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Marqeta.Core.Sdk/Generated/Models/Ani_information.cs b/Marqeta.Core.Sdk/Generated/Models/Ani_information.cs index 0c3dc13a..4239993c 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Ani_information.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Ani_information.cs @@ -13,6 +13,14 @@ public class Ani_information : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// Full name of the cardholder as it appears on the card. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CardName { get; set; } +#nullable restore +#else + public string CardName { get; set; } +#endif /// First or given name of the cardholder. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -62,6 +70,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + { "card_name", n => { CardName = n.GetStringValue(); } }, { "first_name", n => { FirstName = n.GetStringValue(); } }, { "last_name", n => { LastName = n.GetStringValue(); } }, { "middle_name", n => { MiddleName = n.GetStringValue(); } }, @@ -74,6 +83,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("card_name", CardName); writer.WriteStringValue("first_name", FirstName); writer.WriteStringValue("last_name", LastName); writer.WriteStringValue("middle_name", MiddleName); diff --git a/Marqeta.Core.Sdk/Generated/Models/Bank_transfer_response_model.cs b/Marqeta.Core.Sdk/Generated/Models/Bank_transfer_response_model.cs index 50f30ad7..b5270639 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Bank_transfer_response_model.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Bank_transfer_response_model.cs @@ -50,6 +50,8 @@ public class Bank_transfer_response_model : IAdditionalDataHolder, IParsable #else public string FundingSourceToken { get; set; } #endif + /// The is_early_funded property + public bool? IsEarlyFunded { get; set; } /// Date and time when the ACH transfer was last modified, in UTC. public DateTimeOffset? LastModifiedTime { get; set; } /// Additional text describing the ACH transfer. @@ -140,6 +142,7 @@ public virtual IDictionary> GetFieldDeserializers() { "created_time", n => { CreatedTime = n.GetDateTimeOffsetValue(); } }, { "currency_code", n => { CurrencyCode = n.GetStringValue(); } }, { "funding_source_token", n => { FundingSourceToken = n.GetStringValue(); } }, + { "is_early_funded", n => { IsEarlyFunded = n.GetBoolValue(); } }, { "last_modified_time", n => { LastModifiedTime = n.GetDateTimeOffsetValue(); } }, { "memo", n => { Memo = n.GetStringValue(); } }, { "return_code", n => { ReturnCode = n.GetStringValue(); } }, @@ -167,6 +170,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("created_time", CreatedTime); writer.WriteStringValue("currency_code", CurrencyCode); writer.WriteStringValue("funding_source_token", FundingSourceToken); + writer.WriteBoolValue("is_early_funded", IsEarlyFunded); writer.WriteDateTimeOffsetValue("last_modified_time", LastModifiedTime); writer.WriteStringValue("memo", Memo); writer.WriteStringValue("return_code", ReturnCode); diff --git a/Marqeta.Core.Sdk/Generated/Models/Base_ach_response_model.cs b/Marqeta.Core.Sdk/Generated/Models/Base_ach_response_model.cs index 619ba067..d098e109 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Base_ach_response_model.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Base_ach_response_model.cs @@ -40,7 +40,7 @@ public class Base_ach_response_model : IAdditionalDataHolder, IParsable #endif /// Date and time when the resource was created, in UTC. public DateTimeOffset? CreatedTime { get; set; } - /// Date and time in UTC when either the request for account validation was sent to the third-party partner, or when the funding source was verified by microdeposits.`2022-02-26T20:03:05Z`, for example.This field is returned if it exists in the resource. + /// Date and time in UTC when the request for account validation was sent to the third-party partner.This field is returned if it exists in the resource. public DateTimeOffset? DateSentForVerification { get; set; } /// Date and time when the account was verified, in UTC.This field is returned if it exists in the resource. public DateTimeOffset? DateVerified { get; set; } diff --git a/Marqeta.Core.Sdk/Generated/Models/Card_life_cycle.cs b/Marqeta.Core.Sdk/Generated/Models/Card_life_cycle.cs index 4864262f..b795dc55 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Card_life_cycle.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Card_life_cycle.cs @@ -25,6 +25,8 @@ public class Card_life_cycle : IAdditionalDataHolder, IParsable #else public Marqeta.Core.Sdk.Models.Expiration_offset_with_minimum ExpirationOffset { get; set; } #endif + /// The reloadability property + public Marqeta.Core.Sdk.Models.Card_life_cycle_reloadability? Reloadability { get; set; } /// Normally, the `expiration_offset` is measured from the date of issue.Set this field to `true` to measure `expiration_offset` from the date of activation instead. public bool? UpdateExpirationUponActivation { get; set; } /// @@ -55,6 +57,7 @@ public virtual IDictionary> GetFieldDeserializers() { "activate_upon_issue", n => { ActivateUponIssue = n.GetBoolValue(); } }, { "card_service_code", n => { CardServiceCode = n.GetIntValue(); } }, { "expiration_offset", n => { ExpirationOffset = n.GetObjectValue(Marqeta.Core.Sdk.Models.Expiration_offset_with_minimum.CreateFromDiscriminatorValue); } }, + { "reloadability", n => { Reloadability = n.GetEnumValue(); } }, { "update_expiration_upon_activation", n => { UpdateExpirationUponActivation = n.GetBoolValue(); } }, }; } @@ -68,6 +71,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("activate_upon_issue", ActivateUponIssue); writer.WriteIntValue("card_service_code", CardServiceCode); writer.WriteObjectValue("expiration_offset", ExpirationOffset); + writer.WriteEnumValue("reloadability", Reloadability); writer.WriteBoolValue("update_expiration_upon_activation", UpdateExpirationUponActivation); writer.WriteAdditionalData(AdditionalData); } diff --git a/Marqeta.Core.Sdk/Generated/Models/Card_life_cycle_reloadability.cs b/Marqeta.Core.Sdk/Generated/Models/Card_life_cycle_reloadability.cs new file mode 100644 index 00000000..a142a735 --- /dev/null +++ b/Marqeta.Core.Sdk/Generated/Models/Card_life_cycle_reloadability.cs @@ -0,0 +1,23 @@ +// +using System.Runtime.Serialization; +using System; +namespace Marqeta.Core.Sdk.Models +{ + #pragma warning disable CS1591 + public enum Card_life_cycle_reloadability + #pragma warning restore CS1591 + { + [EnumMember(Value = "SINGLE_USE_VIRTUAL")] + #pragma warning disable CS1591 + SINGLE_USE_VIRTUAL, + #pragma warning restore CS1591 + [EnumMember(Value = "NON_RELOADABLE")] + #pragma warning disable CS1591 + NON_RELOADABLE, + #pragma warning restore CS1591 + [EnumMember(Value = "RELOADABLE")] + #pragma warning disable CS1591 + RELOADABLE, + #pragma warning restore CS1591 + } +} diff --git a/Marqeta.Core.Sdk/Generated/Models/Control_token_request_controltoken_type.cs b/Marqeta.Core.Sdk/Generated/Models/Control_token_request_controltoken_type.cs index 802189fa..fc83471a 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Control_token_request_controltoken_type.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Control_token_request_controltoken_type.cs @@ -10,9 +10,9 @@ public enum Control_token_request_controltoken_type #pragma warning disable CS1591 SET_PIN, #pragma warning restore CS1591 - [EnumMember(Value = "SHOW_PIN")] + [EnumMember(Value = "REVEAL_PIN")] #pragma warning disable CS1591 - SHOW_PIN, + REVEAL_PIN, #pragma warning restore CS1591 } } diff --git a/Marqeta.Core.Sdk/Generated/Models/Digital_wallet_tokenization.cs b/Marqeta.Core.Sdk/Generated/Models/Digital_wallet_tokenization.cs index aba90720..869a3765 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Digital_wallet_tokenization.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Digital_wallet_tokenization.cs @@ -13,7 +13,7 @@ public class Digital_wallet_tokenization : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Specifies the digital wallet card art identifier for the card product.Digital wallets display the card art after the initial token has been provisioned and activated.Digital wallet card art is updated for all wallets automatically whenever a tokenized card is reissued or replaced.* If your card program is Managed by Marqeta, Marqeta populates this field on your behalf.* If your card program is Powered by Marqeta, you can obtain the correct card art identifier directly from Visa or Mastercard.If this field is left blank, your card product inherits the card art assigned to the account BIN range. + /// Specifies the digital wallet card art identifier for the card product.The card art identifier also includes card metadata, such as terms and conditions, card product information, contact information, Apple Pay requirements, Android Pay requirements, wallet profiles, rule sets, terminal profiles, authorization profiles, message profiles, and activation profiles.Digital wallets display the card art after the initial token has been provisioned and activated.Digital wallet card art is updated for all wallets automatically whenever a tokenized card is reissued or replaced.* If your card program is Managed by Marqeta, Marqeta populates this field on your behalf.* If your card program is Powered by Marqeta, you can obtain the correct card art identifier directly from Visa or Mastercard.If this field is left blank, your card product inherits the card art assigned to the account BIN range.For more information about this field, contact your Marqeta representative. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? CardArtId { get; set; } diff --git a/Marqeta.Core.Sdk/Generated/Models/DirectDepositResponse.cs b/Marqeta.Core.Sdk/Generated/Models/DirectDepositResponse.cs index 00587dda..63b29fc0 100644 --- a/Marqeta.Core.Sdk/Generated/Models/DirectDepositResponse.cs +++ b/Marqeta.Core.Sdk/Generated/Models/DirectDepositResponse.cs @@ -65,7 +65,13 @@ public class DirectDepositResponse : IAdditionalDataHolder, IParsable public string DirectDepositAccountToken { get; set; } #endif /// The early_direct_deposit property - public bool? EarlyDirectDeposit { get; set; } +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? EarlyDirectDeposit { get; set; } +#nullable restore +#else + public string EarlyDirectDeposit { get; set; } +#endif /// The individual_identification_number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -179,7 +185,7 @@ public virtual IDictionary> GetFieldDeserializers() { "company_name", n => { CompanyName = n.GetStringValue(); } }, { "created_time", n => { CreatedTime = n.GetDateTimeOffsetValue(); } }, { "direct_deposit_account_token", n => { DirectDepositAccountToken = n.GetStringValue(); } }, - { "early_direct_deposit", n => { EarlyDirectDeposit = n.GetBoolValue(); } }, + { "early_direct_deposit", n => { EarlyDirectDeposit = n.GetStringValue(); } }, { "individual_identification_number", n => { IndividualIdentificationNumber = n.GetStringValue(); } }, { "individual_name", n => { IndividualName = n.GetStringValue(); } }, { "last_modified_time", n => { LastModifiedTime = n.GetDateTimeOffsetValue(); } }, @@ -210,7 +216,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("company_name", CompanyName); writer.WriteDateTimeOffsetValue("created_time", CreatedTime); writer.WriteStringValue("direct_deposit_account_token", DirectDepositAccountToken); - writer.WriteBoolValue("early_direct_deposit", EarlyDirectDeposit); + writer.WriteStringValue("early_direct_deposit", EarlyDirectDeposit); writer.WriteStringValue("individual_identification_number", IndividualIdentificationNumber); writer.WriteStringValue("individual_name", IndividualName); writer.WriteDateTimeOffsetValue("last_modified_time", LastModifiedTime); diff --git a/Marqeta.Core.Sdk/Generated/Models/DirectDepositTransitionResponse.cs b/Marqeta.Core.Sdk/Generated/Models/DirectDepositTransitionResponse.cs index a758a690..5f0874f7 100644 --- a/Marqeta.Core.Sdk/Generated/Models/DirectDepositTransitionResponse.cs +++ b/Marqeta.Core.Sdk/Generated/Models/DirectDepositTransitionResponse.cs @@ -75,7 +75,13 @@ public class DirectDepositTransitionResponse : IAdditionalDataHolder, IParsable public string DirectDepositToken { get; set; } #endif /// The early_direct_deposit property - public bool? EarlyDirectDeposit { get; set; } +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? EarlyDirectDeposit { get; set; } +#nullable restore +#else + public string EarlyDirectDeposit { get; set; } +#endif /// The individual_identification_number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -205,7 +211,7 @@ public virtual IDictionary> GetFieldDeserializers() { "created_time", n => { CreatedTime = n.GetDateTimeOffsetValue(); } }, { "direct_deposit_account_token", n => { DirectDepositAccountToken = n.GetStringValue(); } }, { "direct_deposit_token", n => { DirectDepositToken = n.GetStringValue(); } }, - { "early_direct_deposit", n => { EarlyDirectDeposit = n.GetBoolValue(); } }, + { "early_direct_deposit", n => { EarlyDirectDeposit = n.GetStringValue(); } }, { "individual_identification_number", n => { IndividualIdentificationNumber = n.GetStringValue(); } }, { "individual_name", n => { IndividualName = n.GetStringValue(); } }, { "last_modified_time", n => { LastModifiedTime = n.GetDateTimeOffsetValue(); } }, @@ -239,7 +245,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("created_time", CreatedTime); writer.WriteStringValue("direct_deposit_account_token", DirectDepositAccountToken); writer.WriteStringValue("direct_deposit_token", DirectDepositToken); - writer.WriteBoolValue("early_direct_deposit", EarlyDirectDeposit); + writer.WriteStringValue("early_direct_deposit", EarlyDirectDeposit); writer.WriteStringValue("individual_identification_number", IndividualIdentificationNumber); writer.WriteStringValue("individual_name", IndividualName); writer.WriteDateTimeOffsetValue("last_modified_time", LastModifiedTime); diff --git a/Marqeta.Core.Sdk/Generated/Models/Early_funds_request_model.cs b/Marqeta.Core.Sdk/Generated/Models/Early_funds_request_model.cs index 8318ad7b..a5cc7235 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Early_funds_request_model.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Early_funds_request_model.cs @@ -12,7 +12,7 @@ public class Early_funds_request_model : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Unique identifier of the ACH transfer. + /// Unique identifier of the ACH transfer whose funds you want to post more quickly to the cardholder's account. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? BankTransferToken { get; set; } diff --git a/Marqeta.Core.Sdk/Generated/Models/Flex.cs b/Marqeta.Core.Sdk/Generated/Models/Flex.cs new file mode 100644 index 00000000..d109477b --- /dev/null +++ b/Marqeta.Core.Sdk/Generated/Models/Flex.cs @@ -0,0 +1,103 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Marqeta.Core.Sdk.Models +{ + /// + /// Contains information about a Marqeta Flex transaction. + /// + public class Flex : IAdditionalDataHolder, IParsable + { + /// Indicates if the Marqeta Flex object is an actionable `inquiry` or merely informative `advice`. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Action { get; set; } +#nullable restore +#else + public string Action { get; set; } +#endif + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Indicates if the transaction is eligible for Marqeta Flex or not. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Eligible { get; set; } +#nullable restore +#else + public string Eligible { get; set; } +#endif + /// A value of `DEBIT` indicates that the primary credential of the payment instrument is eligible for this transaction.A value of `LOAN` indicates that the secondary credential of the payment instrument is eligible for this transaction. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? EligibleProducts { get; set; } +#nullable restore +#else + public List EligibleProducts { get; set; } +#endif + /// Identifies the secondary credential used in the transaction, if applicable. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SecondaryCredentialIdentifier { get; set; } +#nullable restore +#else + public string SecondaryCredentialIdentifier { get; set; } +#endif + /// Indicates the eligible product that was used in the transaction. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SelectedProduct { get; set; } +#nullable restore +#else + public string SelectedProduct { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public Flex() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static Marqeta.Core.Sdk.Models.Flex CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Marqeta.Core.Sdk.Models.Flex(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "action", n => { Action = n.GetStringValue(); } }, + { "eligible", n => { Eligible = n.GetStringValue(); } }, + { "eligible_products", n => { EligibleProducts = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "secondary_credential_identifier", n => { SecondaryCredentialIdentifier = n.GetStringValue(); } }, + { "selected_product", n => { SelectedProduct = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("action", Action); + writer.WriteStringValue("eligible", Eligible); + writer.WriteCollectionOfPrimitiveValues("eligible_products", EligibleProducts); + writer.WriteStringValue("secondary_credential_identifier", SecondaryCredentialIdentifier); + writer.WriteStringValue("selected_product", SelectedProduct); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/Marqeta.Core.Sdk/Generated/Models/Funding_account_response_model.cs b/Marqeta.Core.Sdk/Generated/Models/Funding_account_response_model.cs index ddf766ed..54ee2fb3 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Funding_account_response_model.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Funding_account_response_model.cs @@ -40,7 +40,7 @@ public class Funding_account_response_model : IAdditionalDataHolder, IParsable #endif /// Date and time when the resource was created, in UTC. public DateTimeOffset? CreatedTime { get; set; } - /// Date and time in UTC when either the request for account validation was sent to the third-party partner, or when the funding source was verified by microdeposits.This field is returned if it exists in the resource. + /// Date and time in UTC when the request for account validation was sent to the third-party partner.This field is returned if it exists in the resource. public DateTimeOffset? DateSentForVerification { get; set; } /// Date and time when the account was verified, in UTC.This field is returned if it exists in the resource. public DateTimeOffset? DateVerified { get; set; } diff --git a/Marqeta.Core.Sdk/Generated/Models/Jit_funding_api_method.cs b/Marqeta.Core.Sdk/Generated/Models/Jit_funding_api_method.cs index 36abf9fa..a086f948 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Jit_funding_api_method.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Jit_funding_api_method.cs @@ -206,5 +206,9 @@ public enum Jit_funding_api_method #pragma warning disable CS1591 PgfsAuthorizationAccount_verification, #pragma warning restore CS1591 + [EnumMember(Value = "pgfs.product.inquiry")] + #pragma warning disable CS1591 + PgfsProductInquiry, + #pragma warning restore CS1591 } } diff --git a/Marqeta.Core.Sdk/Generated/Models/Jit_program_response.cs b/Marqeta.Core.Sdk/Generated/Models/Jit_program_response.cs index 58169ec8..3a7f0986 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Jit_program_response.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Jit_program_response.cs @@ -13,6 +13,14 @@ public class Jit_program_response : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// Contains information about a Marqeta Flex transaction. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Marqeta.Core.Sdk.Models.Flex? Flex { get; set; } +#nullable restore +#else + public Marqeta.Core.Sdk.Models.Flex Flex { get; set; } +#endif /// Contains information about the JIT Funding load event, in which funds are loaded into an account.This object is returned if your program uses JIT Funding. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -54,6 +62,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + { "flex", n => { Flex = n.GetObjectValue(Marqeta.Core.Sdk.Models.Flex.CreateFromDiscriminatorValue); } }, { "jit_funding", n => { JitFunding = n.GetObjectValue(Marqeta.Core.Sdk.Models.Jit_funding_api.CreateFromDiscriminatorValue); } }, { "network_metadata", n => { NetworkMetadata = n.GetObjectValue(Marqeta.Core.Sdk.Models.Network_metadata.CreateFromDiscriminatorValue); } }, }; @@ -65,6 +74,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("flex", Flex); writer.WriteObjectValue("jit_funding", JitFunding); writer.WriteObjectValue("network_metadata", NetworkMetadata); writer.WriteAdditionalData(AdditionalData); diff --git a/Marqeta.Core.Sdk/Generated/Models/MccDynamicFilter.cs b/Marqeta.Core.Sdk/Generated/Models/MccDynamicFilter.cs deleted file mode 100644 index 56802f2e..00000000 --- a/Marqeta.Core.Sdk/Generated/Models/MccDynamicFilter.cs +++ /dev/null @@ -1,63 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace Marqeta.Core.Sdk.Models -{ - /// - /// Contains information on the dynamic merchant category code (MCC) for a reward. - /// - public class MccDynamicFilter : IAdditionalDataHolder, IParsable - { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// One or more dynamic MCCs. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Includes { get; set; } -#nullable restore -#else - public List Includes { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public MccDynamicFilter() - { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Marqeta.Core.Sdk.Models.MccDynamicFilter CreateFromDiscriminatorValue(IParseNode parseNode) - { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Marqeta.Core.Sdk.Models.MccDynamicFilter(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "includes", n => { Includes = n.GetCollectionOfEnumValues()?.ToList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfEnumValues("includes", Includes); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Marqeta.Core.Sdk/Generated/Models/MerchantScope.cs b/Marqeta.Core.Sdk/Generated/Models/MerchantScope.cs index a6e5c72e..466c3ae7 100644 --- a/Marqeta.Core.Sdk/Generated/Models/MerchantScope.cs +++ b/Marqeta.Core.Sdk/Generated/Models/MerchantScope.cs @@ -21,6 +21,8 @@ public class MerchantScope : IAdditionalDataHolder, IParsable #else public string Attribute { get; set; } #endif + /// Indicates whether to decline transactions at merchants not included in the scope.If `true`, transactions at merchants not included in the scope will be declined.If `false`, transactions at merchants not included in the scope will not be declined.*Default value:* `false` + public bool? DeclineOtherMerchants { get; set; } /// Scope of the merchant category.Can be either 'mcc' or 'mcc_group'. public Marqeta.Core.Sdk.Models.MerchantScope_scope? Scope { get; set; } /// @@ -49,6 +51,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "attribute", n => { Attribute = n.GetStringValue(); } }, + { "decline_other_merchants", n => { DeclineOtherMerchants = n.GetBoolValue(); } }, { "scope", n => { Scope = n.GetEnumValue(); } }, }; } @@ -60,6 +63,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("attribute", Attribute); + writer.WriteBoolValue("decline_other_merchants", DeclineOtherMerchants); writer.WriteEnumValue("scope", Scope); writer.WriteAdditionalData(AdditionalData); } diff --git a/Marqeta.Core.Sdk/Generated/Models/Network_metadata.cs b/Marqeta.Core.Sdk/Generated/Models/Network_metadata.cs index 01e64cd3..f91e5426 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Network_metadata.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Network_metadata.cs @@ -28,6 +28,14 @@ public class Network_metadata : IAdditionalDataHolder, IParsable #nullable restore #else public string IncomingResponseCode { get; set; } +#endif + /// Transaction type indicator provided by the card network for original credit and account funding transactions. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? NetworkFundingTxnType { get; set; } +#nullable restore +#else + public string NetworkFundingTxnType { get; set; } #endif /// Product identification value assigned by the card network to each card product.Can be used to track card-level activity by individual account number for premium card products. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -88,6 +96,7 @@ public virtual IDictionary> GetFieldDeserializers() { { "account_identification_1", n => { AccountIdentification1 = n.GetStringValue(); } }, { "incoming_response_code", n => { IncomingResponseCode = n.GetStringValue(); } }, + { "network_funding_txn_type", n => { NetworkFundingTxnType = n.GetStringValue(); } }, { "product_id", n => { ProductId = n.GetStringValue(); } }, { "program_id", n => { ProgramId = n.GetStringValue(); } }, { "spend_qualifier", n => { SpendQualifier = n.GetStringValue(); } }, @@ -103,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("account_identification_1", AccountIdentification1); writer.WriteStringValue("incoming_response_code", IncomingResponseCode); + writer.WriteStringValue("network_funding_txn_type", NetworkFundingTxnType); writer.WriteStringValue("product_id", ProductId); writer.WriteStringValue("program_id", ProgramId); writer.WriteStringValue("spend_qualifier", SpendQualifier); diff --git a/Marqeta.Core.Sdk/Generated/Models/PolicyProductMinPaymentPercentage.cs b/Marqeta.Core.Sdk/Generated/Models/PolicyProductMinPaymentPercentage.cs index a4a25975..02a8bf45 100644 --- a/Marqeta.Core.Sdk/Generated/Models/PolicyProductMinPaymentPercentage.cs +++ b/Marqeta.Core.Sdk/Generated/Models/PolicyProductMinPaymentPercentage.cs @@ -13,6 +13,8 @@ public class PolicyProductMinPaymentPercentage : IAdditionalDataHolder, IParsabl { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// Whether to include all fees charged when calculating the minimum payment. + public bool? IncludeAllFeesCharged { get; set; } /// One or more fee types to include when calculating the minimum payment. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -50,6 +52,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + { "include_all_fees_charged", n => { IncludeAllFeesCharged = n.GetBoolValue(); } }, { "include_fees_charged", n => { IncludeFeesCharged = n.GetCollectionOfEnumValues()?.ToList(); } }, { "include_interest_charged", n => { IncludeInterestCharged = n.GetBoolValue(); } }, { "percentage_of_balance", n => { PercentageOfBalance = n.GetDoubleValue(); } }, @@ -62,6 +65,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("include_all_fees_charged", IncludeAllFeesCharged); writer.WriteCollectionOfEnumValues("include_fees_charged", IncludeFeesCharged); writer.WriteBoolValue("include_interest_charged", IncludeInterestCharged); writer.WriteDoubleValue("percentage_of_balance", PercentageOfBalance); diff --git a/Marqeta.Core.Sdk/Generated/Models/PolicyProductPaymentConfiguration.cs b/Marqeta.Core.Sdk/Generated/Models/PolicyProductPaymentConfiguration.cs index 6f3adc85..29ef2695 100644 --- a/Marqeta.Core.Sdk/Generated/Models/PolicyProductPaymentConfiguration.cs +++ b/Marqeta.Core.Sdk/Generated/Models/PolicyProductPaymentConfiguration.cs @@ -21,7 +21,7 @@ public class PolicyProductPaymentConfiguration : IAdditionalDataHolder, IParsabl #else public List AllocationOrder { get; set; } #endif - /// Day of month the billing cycle starts. + /// Day of month the billing cycle starts. The value must be 1, 10, 15, 20, or 25. public int? BillingCycleDay { get; set; } /// Determines if the billing cycle day is manually set or determined dynamically during account creation based on cycling logic. public Marqeta.Core.Sdk.Models.PolicyProductPaymentConfiguration_billing_cycle_day_strategy? BillingCycleDayStrategy { get; set; } @@ -38,7 +38,7 @@ public class PolicyProductPaymentConfiguration : IAdditionalDataHolder, IParsabl #else public Marqeta.Core.Sdk.Models.PolicyProductMinPaymentCalculation MinPaymentCalculation { get; set; } #endif - /// Specifies the payment due interval that is used to determine the payment due date for a billing cycle.The accepted values are either -1 or a value between 1 and 26.A value of -1 indicates one day prior to the next billing cycle date + /// Specifies the payment due interval that is used to determine the payment due date for a billing cycle.The allowed value is -1.A value of -1 indicates one day prior to the next billing cycle date public int? PaymentDueInterval { get; set; } /// /// Instantiates a new and sets the default values. diff --git a/Marqeta.Core.Sdk/Generated/Models/PolicyRewardRule.cs b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardConversion.cs similarity index 53% rename from Marqeta.Core.Sdk/Generated/Models/PolicyRewardRule.cs rename to Marqeta.Core.Sdk/Generated/Models/PolicyRewardConversion.cs index de15f44f..55e3987c 100644 --- a/Marqeta.Core.Sdk/Generated/Models/PolicyRewardRule.cs +++ b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardConversion.cs @@ -7,46 +7,42 @@ namespace Marqeta.Core.Sdk.Models { /// - /// Contains information on a reward rule. + /// reward conversion. /// - public class PolicyRewardRule : IAdditionalDataHolder, IParsable + public class PolicyRewardConversion : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Contains information on the rules defined for a reward program. + /// The static amount to reward if the rule conditions are met. + public int? ConversionIncrement { get; set; } + /// The rate that points are worth with converting the REDEMPTION_TYPE indicated. + public decimal? ConversionRate { get; set; } + /// Type of currency the conversion rate is for. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Marqeta.Core.Sdk.Models.PolicyRewardRuleFilters? Filters { get; set; } + public string? Currency { get; set; } #nullable restore #else - public Marqeta.Core.Sdk.Models.PolicyRewardRuleFilters Filters { get; set; } + public string Currency { get; set; } #endif - /// Contains information on the outcome of a reward rule. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public Marqeta.Core.Sdk.Models.PolicyRewardRuleOutcome? Outcome { get; set; } -#nullable restore -#else - public Marqeta.Core.Sdk.Models.PolicyRewardRuleOutcome Outcome { get; set; } -#endif - /// Type of reward rule. - public Marqeta.Core.Sdk.Models.PolicyRewardRuleType? Type { get; set; } + /// Type of conversion. + public Marqeta.Core.Sdk.Models.PolicyRewardConversionType? Type { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public PolicyRewardRule() + public PolicyRewardConversion() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Marqeta.Core.Sdk.Models.PolicyRewardRule CreateFromDiscriminatorValue(IParseNode parseNode) + public static Marqeta.Core.Sdk.Models.PolicyRewardConversion CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Marqeta.Core.Sdk.Models.PolicyRewardRule(); + return new Marqeta.Core.Sdk.Models.PolicyRewardConversion(); } /// /// The deserialization information for the current model @@ -56,9 +52,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "filters", n => { Filters = n.GetObjectValue(Marqeta.Core.Sdk.Models.PolicyRewardRuleFilters.CreateFromDiscriminatorValue); } }, - { "outcome", n => { Outcome = n.GetObjectValue(Marqeta.Core.Sdk.Models.PolicyRewardRuleOutcome.CreateFromDiscriminatorValue); } }, - { "type", n => { Type = n.GetEnumValue(); } }, + { "conversion_increment", n => { ConversionIncrement = n.GetIntValue(); } }, + { "conversion_rate", n => { ConversionRate = n.GetDecimalValue(); } }, + { "currency", n => { Currency = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, }; } /// @@ -68,9 +65,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("filters", Filters); - writer.WriteObjectValue("outcome", Outcome); - writer.WriteEnumValue("type", Type); + writer.WriteIntValue("conversion_increment", ConversionIncrement); + writer.WriteDecimalValue("conversion_rate", ConversionRate); + writer.WriteStringValue("currency", Currency); + writer.WriteEnumValue("type", Type); writer.WriteAdditionalData(AdditionalData); } } diff --git a/Marqeta.Core.Sdk/Generated/Models/PolicyRewardRuleType.cs b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardConversionType.cs similarity index 54% rename from Marqeta.Core.Sdk/Generated/Models/PolicyRewardRuleType.cs rename to Marqeta.Core.Sdk/Generated/Models/PolicyRewardConversionType.cs index 7ccc15ec..f4397747 100644 --- a/Marqeta.Core.Sdk/Generated/Models/PolicyRewardRuleType.cs +++ b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardConversionType.cs @@ -3,12 +3,12 @@ using System; namespace Marqeta.Core.Sdk.Models { - /// Type of reward rule. - public enum PolicyRewardRuleType + /// Type of conversion. + public enum PolicyRewardConversionType { - [EnumMember(Value = "CASHBACK")] + [EnumMember(Value = "STATEMENT_CREDIT")] #pragma warning disable CS1591 - CASHBACK, + STATEMENT_CREDIT, #pragma warning restore CS1591 } } diff --git a/Marqeta.Core.Sdk/Generated/Models/PolicyRewardPlatformRule.cs b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardPlatformRule.cs new file mode 100644 index 00000000..e883d389 --- /dev/null +++ b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardPlatformRule.cs @@ -0,0 +1,89 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Marqeta.Core.Sdk.Models +{ + /// + /// Contains information on a policy reward platform rule. + /// + public class PolicyRewardPlatformRule : IAdditionalDataHolder, IParsable + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The static amount to reward if the rule conditions are met. + public double? Amount { get; set; } + /// Additional properties for which the rule can be used to determine reward accrual eligibility for a transaction. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Marqeta.Core.Sdk.Models.PolicyRewardRuleAttributes? Attributes { get; set; } +#nullable restore +#else + public Marqeta.Core.Sdk.Models.PolicyRewardRuleAttributes Attributes { get; set; } +#endif + /// Type of calculation to use to evaluate a rule has been satisfied. + public Marqeta.Core.Sdk.Models.PolicyRewardPlatformRule_calculation_type? CalculationType { get; set; } + /// The description of the rule. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Description { get; set; } +#nullable restore +#else + public string Description { get; set; } +#endif + /// The reward multiplier to apply the transaction, where '1' means 1 X transaction amount. + public float? Multiplier { get; set; } + /// Type of rule. + public Marqeta.Core.Sdk.Models.PolicyRewardPlatformRule_type? Type { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public PolicyRewardPlatformRule() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static Marqeta.Core.Sdk.Models.PolicyRewardPlatformRule CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Marqeta.Core.Sdk.Models.PolicyRewardPlatformRule(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "amount", n => { Amount = n.GetDoubleValue(); } }, + { "attributes", n => { Attributes = n.GetObjectValue(Marqeta.Core.Sdk.Models.PolicyRewardRuleAttributes.CreateFromDiscriminatorValue); } }, + { "calculation_type", n => { CalculationType = n.GetEnumValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "multiplier", n => { Multiplier = n.GetFloatValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteDoubleValue("amount", Amount); + writer.WriteObjectValue("attributes", Attributes); + writer.WriteEnumValue("calculation_type", CalculationType); + writer.WriteStringValue("description", Description); + writer.WriteFloatValue("multiplier", Multiplier); + writer.WriteEnumValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/Marqeta.Core.Sdk/Generated/Models/PolicyRewardPlatformRule_calculation_type.cs b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardPlatformRule_calculation_type.cs new file mode 100644 index 00000000..1da06259 --- /dev/null +++ b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardPlatformRule_calculation_type.cs @@ -0,0 +1,14 @@ +// +using System.Runtime.Serialization; +using System; +namespace Marqeta.Core.Sdk.Models +{ + /// Type of calculation to use to evaluate a rule has been satisfied. + public enum PolicyRewardPlatformRule_calculation_type + { + [EnumMember(Value = "PER_TRANSACTION")] + #pragma warning disable CS1591 + PER_TRANSACTION, + #pragma warning restore CS1591 + } +} diff --git a/Marqeta.Core.Sdk/Generated/Models/PolicyRewardPlatformRule_type.cs b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardPlatformRule_type.cs new file mode 100644 index 00000000..ec1b9b9d --- /dev/null +++ b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardPlatformRule_type.cs @@ -0,0 +1,14 @@ +// +using System.Runtime.Serialization; +using System; +namespace Marqeta.Core.Sdk.Models +{ + /// Type of rule. + public enum PolicyRewardPlatformRule_type + { + [EnumMember(Value = "MULTIPLIER_PER_TRANSACTION")] + #pragma warning disable CS1591 + MULTIPLIER_PER_TRANSACTION, + #pragma warning restore CS1591 + } +} diff --git a/Marqeta.Core.Sdk/Generated/Models/PolicyRewardReq.cs b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardReq.cs index 002c072f..e9696498 100644 --- a/Marqeta.Core.Sdk/Generated/Models/PolicyRewardReq.cs +++ b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardReq.cs @@ -13,6 +13,14 @@ public class PolicyRewardReq : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// One or more reward conversions. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Conversions { get; set; } +#nullable restore +#else + public List Conversions { get; set; } +#endif /// Description of the reward policy. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -32,11 +40,13 @@ public class PolicyRewardReq : IAdditionalDataHolder, IParsable /// One or more reward rules. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Rules { get; set; } + public List? Rules { get; set; } #nullable restore #else - public List Rules { get; set; } + public List Rules { get; set; } #endif + /// Reward settlement strategy for program. + public Marqeta.Core.Sdk.Models.PolicyRewardSettlementType? SettlementStrategy { get; set; } /// Unique identifier of the reward policy. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -70,9 +80,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + { "conversions", n => { Conversions = n.GetCollectionOfObjectValues(Marqeta.Core.Sdk.Models.PolicyRewardConversion.CreateFromDiscriminatorValue)?.ToList(); } }, { "description", n => { Description = n.GetStringValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "rules", n => { Rules = n.GetCollectionOfObjectValues(Marqeta.Core.Sdk.Models.PolicyRewardRule.CreateFromDiscriminatorValue)?.ToList(); } }, + { "rules", n => { Rules = n.GetCollectionOfObjectValues(Marqeta.Core.Sdk.Models.PolicyRewardPlatformRule.CreateFromDiscriminatorValue)?.ToList(); } }, + { "settlement_strategy", n => { SettlementStrategy = n.GetEnumValue(); } }, { "token", n => { Token = n.GetStringValue(); } }, }; } @@ -83,9 +95,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("conversions", Conversions); writer.WriteStringValue("description", Description); writer.WriteStringValue("name", Name); - writer.WriteCollectionOfObjectValues("rules", Rules); + writer.WriteCollectionOfObjectValues("rules", Rules); + writer.WriteEnumValue("settlement_strategy", SettlementStrategy); writer.WriteStringValue("token", Token); writer.WriteAdditionalData(AdditionalData); } diff --git a/Marqeta.Core.Sdk/Generated/Models/PolicyRewardResponse.cs b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardResponse.cs index 5672198d..7d25726a 100644 --- a/Marqeta.Core.Sdk/Generated/Models/PolicyRewardResponse.cs +++ b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardResponse.cs @@ -13,6 +13,14 @@ public class PolicyRewardResponse : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// One or more reward conversions. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Conversions { get; set; } +#nullable restore +#else + public List Conversions { get; set; } +#endif /// Date and time when the reward policy was created on Marqeta's credit platform, in UTC. public DateTimeOffset? CreatedTime { get; set; } /// Description of the reward policy. @@ -31,14 +39,16 @@ public class PolicyRewardResponse : IAdditionalDataHolder, IParsable #else public string Name { get; set; } #endif - /// One or more reward rules + /// An array of one or more reward rules. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Rules { get; set; } + public List? Rules { get; set; } #nullable restore #else - public List Rules { get; set; } + public List Rules { get; set; } #endif + /// Reward settlement strategy for program. + public Marqeta.Core.Sdk.Models.PolicyRewardSettlementType? SettlementStrategy { get; set; } /// Unique identifier of the reward policy. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -74,10 +84,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + { "conversions", n => { Conversions = n.GetCollectionOfObjectValues(Marqeta.Core.Sdk.Models.PolicyRewardConversion.CreateFromDiscriminatorValue)?.ToList(); } }, { "created_time", n => { CreatedTime = n.GetDateTimeOffsetValue(); } }, { "description", n => { Description = n.GetStringValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "rules", n => { Rules = n.GetCollectionOfObjectValues(Marqeta.Core.Sdk.Models.PolicyRewardRule.CreateFromDiscriminatorValue)?.ToList(); } }, + { "rules", n => { Rules = n.GetCollectionOfObjectValues(Marqeta.Core.Sdk.Models.PolicyRewardPlatformRule.CreateFromDiscriminatorValue)?.ToList(); } }, + { "settlement_strategy", n => { SettlementStrategy = n.GetEnumValue(); } }, { "token", n => { Token = n.GetStringValue(); } }, { "updated_time", n => { UpdatedTime = n.GetDateTimeOffsetValue(); } }, }; @@ -89,10 +101,12 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("conversions", Conversions); writer.WriteDateTimeOffsetValue("created_time", CreatedTime); writer.WriteStringValue("description", Description); writer.WriteStringValue("name", Name); - writer.WriteCollectionOfObjectValues("rules", Rules); + writer.WriteCollectionOfObjectValues("rules", Rules); + writer.WriteEnumValue("settlement_strategy", SettlementStrategy); writer.WriteStringValue("token", Token); writer.WriteDateTimeOffsetValue("updated_time", UpdatedTime); writer.WriteAdditionalData(AdditionalData); diff --git a/Marqeta.Core.Sdk/Generated/Models/PolicyRewardRuleFilters.cs b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardRuleAttributes.cs similarity index 56% rename from Marqeta.Core.Sdk/Generated/Models/PolicyRewardRuleFilters.cs rename to Marqeta.Core.Sdk/Generated/Models/PolicyRewardRuleAttributes.cs index bdb2327b..95f989f5 100644 --- a/Marqeta.Core.Sdk/Generated/Models/PolicyRewardRuleFilters.cs +++ b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardRuleAttributes.cs @@ -7,44 +7,46 @@ namespace Marqeta.Core.Sdk.Models { /// - /// Contains information on the rules defined for a reward program. + /// Additional properties for which the rule can be used to determine reward accrual eligibility for a transaction. /// - public class PolicyRewardRuleFilters : IAdditionalDataHolder, IParsable + public class PolicyRewardRuleAttributes : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Contains information on the minimum and maximum amounts that the balance for a billing cycle can be to earn the reward. + /// Maximum spend amount. + public double? MaxSpend { get; set; } + /// List of merchant category codes (MCCs).MCCs must be a four-digit number, or a range of two four-digit numbers separated by a hyphen. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Marqeta.Core.Sdk.Models.AmountFilter? Amount { get; set; } + public List? Mcc { get; set; } #nullable restore #else - public Marqeta.Core.Sdk.Models.AmountFilter Amount { get; set; } + public List Mcc { get; set; } #endif - /// Contains information on the dynamic merchant category code (MCC) for a reward. + /// Merchant ID for the rule. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Marqeta.Core.Sdk.Models.MccDynamicFilter? MccDynamic { get; set; } + public string? Mid { get; set; } #nullable restore #else - public Marqeta.Core.Sdk.Models.MccDynamicFilter MccDynamic { get; set; } + public string Mid { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public PolicyRewardRuleFilters() + public PolicyRewardRuleAttributes() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Marqeta.Core.Sdk.Models.PolicyRewardRuleFilters CreateFromDiscriminatorValue(IParseNode parseNode) + public static Marqeta.Core.Sdk.Models.PolicyRewardRuleAttributes CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Marqeta.Core.Sdk.Models.PolicyRewardRuleFilters(); + return new Marqeta.Core.Sdk.Models.PolicyRewardRuleAttributes(); } /// /// The deserialization information for the current model @@ -54,8 +56,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "amount", n => { Amount = n.GetObjectValue(Marqeta.Core.Sdk.Models.AmountFilter.CreateFromDiscriminatorValue); } }, - { "mcc_dynamic", n => { MccDynamic = n.GetObjectValue(Marqeta.Core.Sdk.Models.MccDynamicFilter.CreateFromDiscriminatorValue); } }, + { "max_spend", n => { MaxSpend = n.GetDoubleValue(); } }, + { "mcc", n => { Mcc = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "mid", n => { Mid = n.GetStringValue(); } }, }; } /// @@ -65,8 +68,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("amount", Amount); - writer.WriteObjectValue("mcc_dynamic", MccDynamic); + writer.WriteDoubleValue("max_spend", MaxSpend); + writer.WriteCollectionOfPrimitiveValues("mcc", Mcc); + writer.WriteStringValue("mid", Mid); writer.WriteAdditionalData(AdditionalData); } } diff --git a/Marqeta.Core.Sdk/Generated/Models/PolicyRewardRuleOutcome.cs b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardRuleOutcome.cs deleted file mode 100644 index 91c5215d..00000000 --- a/Marqeta.Core.Sdk/Generated/Models/PolicyRewardRuleOutcome.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace Marqeta.Core.Sdk.Models -{ - /// - /// Contains information on the outcome of a reward rule. - /// - public class PolicyRewardRuleOutcome : IAdditionalDataHolder, IParsable - { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// Max amount of the reward. - public double? MaxAmount { get; set; } - /// Reward percentage applied when the balance for a billing cycle is within the range specified in the `filters.amount.greater_than` and `filters.amount.less_than` fields.For example, if the percentage is `1`, the account holder earns 1% of the account balance if they spend between the `greater_than` and `less_than` amounts during a billing cycle. - public double? Percentage { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public PolicyRewardRuleOutcome() - { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Marqeta.Core.Sdk.Models.PolicyRewardRuleOutcome CreateFromDiscriminatorValue(IParseNode parseNode) - { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Marqeta.Core.Sdk.Models.PolicyRewardRuleOutcome(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { - { "max_amount", n => { MaxAmount = n.GetDoubleValue(); } }, - { "percentage", n => { Percentage = n.GetDoubleValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) - { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteDoubleValue("max_amount", MaxAmount); - writer.WriteDoubleValue("percentage", Percentage); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Marqeta.Core.Sdk/Generated/Models/DynamicMccType.cs b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardSettlementType.cs similarity index 53% rename from Marqeta.Core.Sdk/Generated/Models/DynamicMccType.cs rename to Marqeta.Core.Sdk/Generated/Models/PolicyRewardSettlementType.cs index 93bac297..a9d35413 100644 --- a/Marqeta.Core.Sdk/Generated/Models/DynamicMccType.cs +++ b/Marqeta.Core.Sdk/Generated/Models/PolicyRewardSettlementType.cs @@ -3,12 +3,12 @@ using System; namespace Marqeta.Core.Sdk.Models { - /// Type of dynamic MCC. - public enum DynamicMccType + /// Reward settlement strategy for program. + public enum PolicyRewardSettlementType { - [EnumMember(Value = "HIGHEST_SPEND")] + [EnumMember(Value = "STATEMENT")] #pragma warning disable CS1591 - HIGHEST_SPEND, + STATEMENT, #pragma warning restore CS1591 } } diff --git a/Marqeta.Core.Sdk/Generated/Models/Pos.cs b/Marqeta.Core.Sdk/Generated/Models/Pos.cs index f4861cc2..9e162b4e 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Pos.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Pos.cs @@ -60,13 +60,9 @@ public class Pos : IAdditionalDataHolder, IParsable /// Type of card acceptor/terminal. public Marqeta.Core.Sdk.Models.Pos_terminal_type? TerminalType { get; set; } /// Specifies whether the transaction was initiated by a cardholder or a merchant. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TransactionInitiatedBy { get; set; } -#nullable restore -#else - public string TransactionInitiatedBy { get; set; } -#endif + public Marqeta.Core.Sdk.Models.Pos_transaction_initiated_by? TransactionInitiatedBy { get; set; } + /// Specifies the category of a point-of-sale transaction. + public Marqeta.Core.Sdk.Models.Pos_transaction_initiated_category? TransactionInitiatedCategory { get; set; } /// United States ZIP code of the card acceptor or terminal. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -117,7 +113,8 @@ public virtual IDictionary> GetFieldDeserializers() { "terminal_id", n => { TerminalId = n.GetStringValue(); } }, { "terminal_location", n => { TerminalLocation = n.GetEnumValue(); } }, { "terminal_type", n => { TerminalType = n.GetEnumValue(); } }, - { "transaction_initiated_by", n => { TransactionInitiatedBy = n.GetStringValue(); } }, + { "transaction_initiated_by", n => { TransactionInitiatedBy = n.GetEnumValue(); } }, + { "transaction_initiated_category", n => { TransactionInitiatedCategory = n.GetEnumValue(); } }, { "zip", n => { Zip = n.GetStringValue(); } }, }; } @@ -145,7 +142,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("terminal_id", TerminalId); writer.WriteEnumValue("terminal_location", TerminalLocation); writer.WriteEnumValue("terminal_type", TerminalType); - writer.WriteStringValue("transaction_initiated_by", TransactionInitiatedBy); + writer.WriteEnumValue("transaction_initiated_by", TransactionInitiatedBy); + writer.WriteEnumValue("transaction_initiated_category", TransactionInitiatedCategory); writer.WriteStringValue("zip", Zip); writer.WriteAdditionalData(AdditionalData); } diff --git a/Marqeta.Core.Sdk/Generated/Models/Pos_transaction_initiated_by.cs b/Marqeta.Core.Sdk/Generated/Models/Pos_transaction_initiated_by.cs new file mode 100644 index 00000000..ec13df26 --- /dev/null +++ b/Marqeta.Core.Sdk/Generated/Models/Pos_transaction_initiated_by.cs @@ -0,0 +1,30 @@ +// +using System.Runtime.Serialization; +using System; +namespace Marqeta.Core.Sdk.Models +{ + /// Specifies whether the transaction was initiated by a cardholder or a merchant. + public enum Pos_transaction_initiated_by + { + [EnumMember(Value = "CONSUMER")] + #pragma warning disable CS1591 + CONSUMER, + #pragma warning restore CS1591 + [EnumMember(Value = "MERCHANT")] + #pragma warning disable CS1591 + MERCHANT, + #pragma warning restore CS1591 + [EnumMember(Value = "UNKNOWN")] + #pragma warning disable CS1591 + UNKNOWN, + #pragma warning restore CS1591 + [EnumMember(Value = "MARQETA")] + #pragma warning disable CS1591 + MARQETA, + #pragma warning restore CS1591 + [EnumMember(Value = "NETWORK")] + #pragma warning disable CS1591 + NETWORK, + #pragma warning restore CS1591 + } +} diff --git a/Marqeta.Core.Sdk/Generated/Models/Pos_transaction_initiated_category.cs b/Marqeta.Core.Sdk/Generated/Models/Pos_transaction_initiated_category.cs new file mode 100644 index 00000000..d45a8d11 --- /dev/null +++ b/Marqeta.Core.Sdk/Generated/Models/Pos_transaction_initiated_category.cs @@ -0,0 +1,62 @@ +// +using System.Runtime.Serialization; +using System; +namespace Marqeta.Core.Sdk.Models +{ + /// Specifies the category of a point-of-sale transaction. + public enum Pos_transaction_initiated_category + { + [EnumMember(Value = "CARD_ON_FILE")] + #pragma warning disable CS1591 + CARD_ON_FILE, + #pragma warning restore CS1591 + [EnumMember(Value = "RECURRING_VAR_AMT_FIXED_FREQ")] + #pragma warning disable CS1591 + RECURRING_VAR_AMT_FIXED_FREQ, + #pragma warning restore CS1591 + [EnumMember(Value = "RECURRING_PAYMENT")] + #pragma warning disable CS1591 + RECURRING_PAYMENT, + #pragma warning restore CS1591 + [EnumMember(Value = "INSTALLMENT_PAYMENT")] + #pragma warning disable CS1591 + INSTALLMENT_PAYMENT, + #pragma warning restore CS1591 + [EnumMember(Value = "UNSCHEDULED_PAYMENT")] + #pragma warning disable CS1591 + UNSCHEDULED_PAYMENT, + #pragma warning restore CS1591 + [EnumMember(Value = "PARTIAL_SHIPMENT")] + #pragma warning disable CS1591 + PARTIAL_SHIPMENT, + #pragma warning restore CS1591 + [EnumMember(Value = "DELAYED_PAYMENT")] + #pragma warning disable CS1591 + DELAYED_PAYMENT, + #pragma warning restore CS1591 + [EnumMember(Value = "NO_SHOW")] + #pragma warning disable CS1591 + NO_SHOW, + #pragma warning restore CS1591 + [EnumMember(Value = "RESUBMISSION")] + #pragma warning disable CS1591 + RESUBMISSION, + #pragma warning restore CS1591 + [EnumMember(Value = "DEFERRED_BILLING")] + #pragma warning disable CS1591 + DEFERRED_BILLING, + #pragma warning restore CS1591 + [EnumMember(Value = "ACCOUNT_INQUIRY")] + #pragma warning disable CS1591 + ACCOUNT_INQUIRY, + #pragma warning restore CS1591 + [EnumMember(Value = "INCREMENTAL_AUTHORIZATION")] + #pragma warning disable CS1591 + INCREMENTAL_AUTHORIZATION, + #pragma warning restore CS1591 + [EnumMember(Value = "REAUTHORIZATION")] + #pragma warning disable CS1591 + REAUTHORIZATION, + #pragma warning restore CS1591 + } +} diff --git a/Marqeta.Core.Sdk/Generated/Models/ProductConfig.cs b/Marqeta.Core.Sdk/Generated/Models/ProductConfig.cs index e32b6fd5..8cd37def 100644 --- a/Marqeta.Core.Sdk/Generated/Models/ProductConfig.cs +++ b/Marqeta.Core.Sdk/Generated/Models/ProductConfig.cs @@ -13,7 +13,7 @@ public class ProductConfig : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Day of month the billing cycle starts. + /// Day of month the billing cycle starts. The value must be 1, 10, 15, 20, or 25. public int? BillingCycleDay { get; set; } /// Determines if the billing cycle day is manually set or determined dynamically during account creation based on cycling logic. public Marqeta.Core.Sdk.Models.ProductConfig_billing_cycle_day_strategy? BillingCycleDayStrategy { get; set; } @@ -30,7 +30,7 @@ public class ProductConfig : IAdditionalDataHolder, IParsable /// Day of month the payment for the previous billing cycle is due.This field is deprecated.Use the `product.payment_due_interval` field instead.To retrieve `payment_due_interval`, see <</core-api/credit-products#retrieveProduct, Retrieve credit product, config.payment_due_interval>>. [Obsolete("")] public int? PaymentDueDay { get; set; } - /// Specifies the payment due interval that is used to determine the payment due date for a billing cycle.The accepted values are either -1 or a value between 1 and 26.A value of -1 indicates one day prior to the next billing cycle date. + /// Specifies the payment due interval that is used to determine the payment due date for a billing cycle.The allowed value is -1.A value of -1 indicates one day prior to the next billing cycle date. public int? PaymentDueInterval { get; set; } /// Contains one or more periodic fees. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/Marqeta.Core.Sdk/Generated/Models/ProductMinPaymentPercentage.cs b/Marqeta.Core.Sdk/Generated/Models/ProductMinPaymentPercentage.cs index 4d8a16f0..5079b78c 100644 --- a/Marqeta.Core.Sdk/Generated/Models/ProductMinPaymentPercentage.cs +++ b/Marqeta.Core.Sdk/Generated/Models/ProductMinPaymentPercentage.cs @@ -13,6 +13,8 @@ public class ProductMinPaymentPercentage : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// Whether to include all fees charged when calculating the minimum payments. + public bool? IncludeAllFeesCharged { get; set; } /// One or more fee types to include when calculating the minimum payment. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -48,6 +50,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + { "include_all_fees_charged", n => { IncludeAllFeesCharged = n.GetBoolValue(); } }, { "include_fees_charged", n => { IncludeFeesCharged = n.GetCollectionOfEnumValues()?.ToList(); } }, { "percentage_of_balance", n => { PercentageOfBalance = n.GetDoubleValue(); } }, }; @@ -59,6 +62,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("include_all_fees_charged", IncludeAllFeesCharged); writer.WriteCollectionOfEnumValues("include_fees_charged", IncludeFeesCharged); writer.WriteDoubleValue("percentage_of_balance", PercentageOfBalance); writer.WriteAdditionalData(AdditionalData); diff --git a/Marqeta.Core.Sdk/Generated/Models/Provisioning_controls.cs b/Marqeta.Core.Sdk/Generated/Models/Provisioning_controls.cs index 7989a805..911dc302 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Provisioning_controls.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Provisioning_controls.cs @@ -12,6 +12,10 @@ public class Provisioning_controls : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// The dwt_tar_avs_decline_on_address_number_mismatch property + public bool? DwtTarAvsDeclineOnAddressNumberMismatch { get; set; } + /// The dwt_tar_avs_decline_on_postal_code_mismatch property + public bool? DwtTarAvsDeclineOnPostalCodeMismatch { get; set; } /// The dwt_use_card_status_during_auth property public bool? DwtUseCardStatusDuringAuth { get; set; } /// The dwt_verify_atc_during_auth property @@ -77,6 +81,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + { "dwt_tar_avs_decline_on_address_number_mismatch", n => { DwtTarAvsDeclineOnAddressNumberMismatch = n.GetBoolValue(); } }, + { "dwt_tar_avs_decline_on_postal_code_mismatch", n => { DwtTarAvsDeclineOnPostalCodeMismatch = n.GetBoolValue(); } }, { "dwt_use_card_status_during_auth", n => { DwtUseCardStatusDuringAuth = n.GetBoolValue(); } }, { "dwt_verify_atc_during_auth", n => { DwtVerifyAtcDuringAuth = n.GetBoolValue(); } }, { "enable_discretionary_data_during_tar", n => { EnableDiscretionaryDataDuringTar = n.GetBoolValue(); } }, @@ -94,6 +100,8 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("dwt_tar_avs_decline_on_address_number_mismatch", DwtTarAvsDeclineOnAddressNumberMismatch); + writer.WriteBoolValue("dwt_tar_avs_decline_on_postal_code_mismatch", DwtTarAvsDeclineOnPostalCodeMismatch); writer.WriteBoolValue("dwt_use_card_status_during_auth", DwtUseCardStatusDuringAuth); writer.WriteBoolValue("dwt_verify_atc_during_auth", DwtVerifyAtcDuringAuth); writer.WriteBoolValue("enable_discretionary_data_during_tar", EnableDiscretionaryDataDuringTar); diff --git a/Marqeta.Core.Sdk/Generated/Models/RewardCreateReq.cs b/Marqeta.Core.Sdk/Generated/Models/RewardCreateReq.cs index a81ad4f3..64634f0c 100644 --- a/Marqeta.Core.Sdk/Generated/Models/RewardCreateReq.cs +++ b/Marqeta.Core.Sdk/Generated/Models/RewardCreateReq.cs @@ -24,6 +24,8 @@ public class RewardCreateReq : IAdditionalDataHolder, IParsable #else public string Description { get; set; } #endif + /// Allows you to force the creation of a reward on an account.By default, reward creation is not permitted for accounts with a status of `SUSPENDED` or `TERMINATED` if more than 90 days have passed since the status transition. + public bool? Forced { get; set; } /// Additional information about the reward. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -69,6 +71,7 @@ public virtual IDictionary> GetFieldDeserializers() { "amount", n => { Amount = n.GetDoubleValue(); } }, { "currency_code", n => { CurrencyCode = n.GetEnumValue(); } }, { "description", n => { Description = n.GetStringValue(); } }, + { "forced", n => { Forced = n.GetBoolValue(); } }, { "note", n => { Note = n.GetStringValue(); } }, { "token", n => { Token = n.GetStringValue(); } }, }; @@ -83,6 +86,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteDoubleValue("amount", Amount); writer.WriteEnumValue("currency_code", CurrencyCode); writer.WriteStringValue("description", Description); + writer.WriteBoolValue("forced", Forced); writer.WriteStringValue("note", Note); writer.WriteStringValue("token", Token); writer.WriteAdditionalData(AdditionalData); diff --git a/Marqeta.Core.Sdk/Generated/Models/RewardType.cs b/Marqeta.Core.Sdk/Generated/Models/RewardType.cs index 44411be3..417a3f44 100644 --- a/Marqeta.Core.Sdk/Generated/Models/RewardType.cs +++ b/Marqeta.Core.Sdk/Generated/Models/RewardType.cs @@ -14,5 +14,9 @@ public enum RewardType #pragma warning disable CS1591 CASH_BACK, #pragma warning restore CS1591 + [EnumMember(Value = "STATEMENT_CREDIT")] + #pragma warning disable CS1591 + STATEMENT_CREDIT, + #pragma warning restore CS1591 } } diff --git a/Marqeta.Core.Sdk/Generated/Models/SubstatusCreateReq.cs b/Marqeta.Core.Sdk/Generated/Models/SubstatusCreateReq.cs index 45bb7550..9982af64 100644 --- a/Marqeta.Core.Sdk/Generated/Models/SubstatusCreateReq.cs +++ b/Marqeta.Core.Sdk/Generated/Models/SubstatusCreateReq.cs @@ -13,7 +13,7 @@ public class SubstatusCreateReq : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Additional dynamic attributes related to the substatus. + /// Additional dynamic attributes related to the substatus.If the substatus is `BANKRUPTCY`, `SCRA` or `POWER_OF_ATTORNEY`, then attributes are required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Attributes { get; set; } @@ -29,7 +29,7 @@ public class SubstatusCreateReq : IAdditionalDataHolder, IParsable #else public List Events { get; set; } #endif - /// The unique identifier of the user or account for which you want to create a substatus. + /// Unique identifier of the user or account for which you want to create a substatus.Send a `GET` request to `/credit/accounts` to retrieve existing account tokens.Send a `GET` request to `/users` to retrieve existing user tokens. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ResourceToken { get; set; } @@ -37,9 +37,9 @@ public class SubstatusCreateReq : IAdditionalDataHolder, IParsable #else public string ResourceToken { get; set; } #endif - /// Possible values: USER, ACCOUNT. + /// Type of resource to which the substatus applies. public Marqeta.Core.Sdk.Models.SubstatusCreateReq_resource_type? ResourceType { get; set; } - /// Possible values: HARDSHIP, FRAUD, MLA, SCRA, DECEASED, BANKRUPTCY. + /// Type of substatus.`HARDSHIP`, `FRAUD` can only be applied to the `ACCOUNT` resource type.`MLA`, `SCRA`, `DECEASED`, `BANKRUPTCY`, and `POWER_OF_ATTORNEY` can only be applied to the `USER` resource type. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Substatus { get; set; } @@ -47,7 +47,7 @@ public class SubstatusCreateReq : IAdditionalDataHolder, IParsable #else public string Substatus { get; set; } #endif - /// Unique identifier of the substatus. + /// Unique identifier of the credit substatus. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Token { get; set; } diff --git a/Marqeta.Core.Sdk/Generated/Models/SubstatusCreateReq_attributes.cs b/Marqeta.Core.Sdk/Generated/Models/SubstatusCreateReq_attributes.cs index 6b39cb92..0097faed 100644 --- a/Marqeta.Core.Sdk/Generated/Models/SubstatusCreateReq_attributes.cs +++ b/Marqeta.Core.Sdk/Generated/Models/SubstatusCreateReq_attributes.cs @@ -12,7 +12,7 @@ public class SubstatusCreateReq_attributes : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// The key of the attribute. + /// The name of the attribute.Marqeta provides several preconfigured attributes, as described in the following list.* *chapter:* If the substatus is `BANKRUPTCY`, then chapter attribute is required.* *military_start_date:* If the substatus is `SCRA`, then the military start date attribute is required.The 6% APR override will be applied from the time and date of account opening until the last statement period of the military start date.* *end_date:* If the substatus is `POWER_OF_ATTORNEY`, then the end date attribute is applicable.This specifies the date when the power of attorney document is no longer valid.* *poa_details:* If the substatus is `POWER_OF_ATTORNEY`, then the Power of Attorney details attribute is applicable.This attribute specifies the range of actions that the agent with Power of Attorney is able to perform on the account.By default the range is `UNRESTRICTED`.* *agent_name:* If the substatus is `POWER_OF_ATTORNEY`, then the agent name is required.This attribute specifies the name of the agent with Power of Attorney for the user.* *agent_address:* If the substatus is `POWER_OF_ATTORNEY`, then the agent address attribute is required.This attribute specifies the address of the agent with Power of Attorney for the user.* *agent_id_type:* If the substatus is `POWER_OF_ATTORNEY`, then the agent identification type attribute is required.This specifies the type of the identification method used to identify the agent with Power of Attorney for the user.* *agent_id_value:* If the substatus is `POWER_OF_ATTORNEY`, then the agent identification value attribute is required.This attribute specifies the value of the identification method used to identify the agent with Power of Attorney for the user.* *agent_id_expiration_date:* If the substatus is `POWER_OF_ATTORNEY`, then the attribute for the Power of Attorney identification expiration date attribute is required.This attribute specifies the expiration date of the identification method used to identify the agent with Power of Attorney for the user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Key { get; set; } diff --git a/Marqeta.Core.Sdk/Generated/Models/SubstatusCreateReq_resource_type.cs b/Marqeta.Core.Sdk/Generated/Models/SubstatusCreateReq_resource_type.cs index 34d230c7..6108ab9c 100644 --- a/Marqeta.Core.Sdk/Generated/Models/SubstatusCreateReq_resource_type.cs +++ b/Marqeta.Core.Sdk/Generated/Models/SubstatusCreateReq_resource_type.cs @@ -3,7 +3,7 @@ using System; namespace Marqeta.Core.Sdk.Models { - /// Possible values: USER, ACCOUNT. + /// Type of resource to which the substatus applies. public enum SubstatusCreateReq_resource_type { [EnumMember(Value = "USER")] diff --git a/Marqeta.Core.Sdk/Generated/Models/SubstatusEvent.cs b/Marqeta.Core.Sdk/Generated/Models/SubstatusEvent.cs index aa60c937..98abb7af 100644 --- a/Marqeta.Core.Sdk/Generated/Models/SubstatusEvent.cs +++ b/Marqeta.Core.Sdk/Generated/Models/SubstatusEvent.cs @@ -13,11 +13,11 @@ public class SubstatusEvent : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// The channel through which the event occurred. + /// The mechanism by which the state of the substatus was applied.* `ADMIN` - Indicates that the state of the substatus was added through the Marqeta Dashboard.* `API` - Indicates that you initiated an update of the substatus through the Core API.Use this value when creating a substatus.* `FRAUD` - Indicates that either Marqeta or the card network has determined that the account is fraudulent.* `SYSTEM` - Indicates that Marqeta initiated the state of the substatus.For example, Marqeta determined during application decisioning that the applicant is `MLA`. public Marqeta.Core.Sdk.Models.SubstatusEvent_channel? Channel { get; set; } - /// Effective date of the deactivation, in UTC. + /// Date and time when the state of the substatus went into effect, in UTC.The effective date must be in the past.If no value is set, then the effective date and time will be the current time. public DateTimeOffset? EffectiveDate { get; set; } - /// Reason for the event. + /// Reason for applying a state designation to the substatus. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Reason { get; set; } @@ -25,7 +25,7 @@ public class SubstatusEvent : IAdditionalDataHolder, IParsable #else public string Reason { get; set; } #endif - /// The initial state of the substatus. ACTIVE - Required for the substatuses of HARDSHIP,FRAUD,MLA,SCRA,DECEASED. BANKRUPTCY_FILED - Required for the substatus of BANKRUPTCY. + /// Initial state of the substatus.`ACTIVE` - Required if the substatus is `HARDSHIP`, `FRAUD`, `MLA`, `SCRA`, `DECEASED`, or `POWER_OF_ATTORNEY`.`BANKRUPTCY_FILED` - Required if the substatus is `BANKRUPTCY`. public Marqeta.Core.Sdk.Models.SubstatusEvent_state? State { get; set; } /// /// Instantiates a new and sets the default values. diff --git a/Marqeta.Core.Sdk/Generated/Models/SubstatusEventResponseDetails.cs b/Marqeta.Core.Sdk/Generated/Models/SubstatusEventResponseDetails.cs index 3024a5b7..e6e0da89 100644 --- a/Marqeta.Core.Sdk/Generated/Models/SubstatusEventResponseDetails.cs +++ b/Marqeta.Core.Sdk/Generated/Models/SubstatusEventResponseDetails.cs @@ -27,7 +27,7 @@ public class SubstatusEventResponseDetails : IAdditionalDataHolder, IParsable #else public string Reason { get; set; } #endif - /// The state of the event + /// The state of the event. public Marqeta.Core.Sdk.Models.SubstatusEventResponseDetails_state? State { get; set; } /// /// Instantiates a new and sets the default values. diff --git a/Marqeta.Core.Sdk/Generated/Models/SubstatusEventResponseDetails_state.cs b/Marqeta.Core.Sdk/Generated/Models/SubstatusEventResponseDetails_state.cs index ef5b18c6..67a932b5 100644 --- a/Marqeta.Core.Sdk/Generated/Models/SubstatusEventResponseDetails_state.cs +++ b/Marqeta.Core.Sdk/Generated/Models/SubstatusEventResponseDetails_state.cs @@ -3,7 +3,7 @@ using System; namespace Marqeta.Core.Sdk.Models { - /// The state of the event + /// The state of the event. public enum SubstatusEventResponseDetails_state { [EnumMember(Value = "ACTIVE")] diff --git a/Marqeta.Core.Sdk/Generated/Models/SubstatusEvent_channel.cs b/Marqeta.Core.Sdk/Generated/Models/SubstatusEvent_channel.cs index 1f39acbd..46678b59 100644 --- a/Marqeta.Core.Sdk/Generated/Models/SubstatusEvent_channel.cs +++ b/Marqeta.Core.Sdk/Generated/Models/SubstatusEvent_channel.cs @@ -3,7 +3,7 @@ using System; namespace Marqeta.Core.Sdk.Models { - /// The channel through which the event occurred. + /// The mechanism by which the state of the substatus was applied.* `ADMIN` - Indicates that the state of the substatus was added through the Marqeta Dashboard.* `API` - Indicates that you initiated an update of the substatus through the Core API.Use this value when creating a substatus.* `FRAUD` - Indicates that either Marqeta or the card network has determined that the account is fraudulent.* `SYSTEM` - Indicates that Marqeta initiated the state of the substatus.For example, Marqeta determined during application decisioning that the applicant is `MLA`. public enum SubstatusEvent_channel { [EnumMember(Value = "ADMIN")] diff --git a/Marqeta.Core.Sdk/Generated/Models/SubstatusEvent_state.cs b/Marqeta.Core.Sdk/Generated/Models/SubstatusEvent_state.cs index 7efcbe69..3253c251 100644 --- a/Marqeta.Core.Sdk/Generated/Models/SubstatusEvent_state.cs +++ b/Marqeta.Core.Sdk/Generated/Models/SubstatusEvent_state.cs @@ -3,7 +3,7 @@ using System; namespace Marqeta.Core.Sdk.Models { - /// The initial state of the substatus. ACTIVE - Required for the substatuses of HARDSHIP,FRAUD,MLA,SCRA,DECEASED. BANKRUPTCY_FILED - Required for the substatus of BANKRUPTCY. + /// Initial state of the substatus.`ACTIVE` - Required if the substatus is `HARDSHIP`, `FRAUD`, `MLA`, `SCRA`, `DECEASED`, or `POWER_OF_ATTORNEY`.`BANKRUPTCY_FILED` - Required if the substatus is `BANKRUPTCY`. public enum SubstatusEvent_state { [EnumMember(Value = "ACTIVE")] diff --git a/Marqeta.Core.Sdk/Generated/Models/SubstatusPage.cs b/Marqeta.Core.Sdk/Generated/Models/SubstatusPage.cs index 3949628a..2f0df9a6 100644 --- a/Marqeta.Core.Sdk/Generated/Models/SubstatusPage.cs +++ b/Marqeta.Core.Sdk/Generated/Models/SubstatusPage.cs @@ -7,7 +7,7 @@ namespace Marqeta.Core.Sdk.Models { /// - /// Return paginated account and user substatuses + /// Return paginated account and user substatuses. /// public class SubstatusPage : IAdditionalDataHolder, IParsable { @@ -15,7 +15,7 @@ public class SubstatusPage : IAdditionalDataHolder, IParsable public IDictionary AdditionalData { get; set; } /// Number of resources returned. public int? Count { get; set; } - /// The data property + /// Contains one or more substatuses. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Data { get; set; } diff --git a/Marqeta.Core.Sdk/Generated/Models/SubstatusResponse.cs b/Marqeta.Core.Sdk/Generated/Models/SubstatusResponse.cs index c43cd6c2..42b8cb4b 100644 --- a/Marqeta.Core.Sdk/Generated/Models/SubstatusResponse.cs +++ b/Marqeta.Core.Sdk/Generated/Models/SubstatusResponse.cs @@ -13,7 +13,7 @@ public class SubstatusResponse : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Additional dynamic attributes related to the substatus. + /// Additional dynamic attributes related to the substatus.If the substatus is `BANKRUPTCY`, `SCRA`, or `POWER_OF_ATTORNEY`, then attributes are present. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Attributes { get; set; } @@ -31,9 +31,9 @@ public class SubstatusResponse : IAdditionalDataHolder, IParsable #else public List Events { get; set; } #endif - /// Flag indicating whether the substatus is active (false when deactivated). + /// Denotes whether a substatus is active. public bool? IsActive { get; set; } - /// substatus resource token + /// Unique identifier of the resource. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ResourceToken { get; set; } @@ -41,11 +41,11 @@ public class SubstatusResponse : IAdditionalDataHolder, IParsable #else public string ResourceToken { get; set; } #endif - /// substatus resource type + /// Type of resource to which the substatus is applied. public Marqeta.Core.Sdk.Models.SubstatusResponse_resource_type? ResourceType { get; set; } - /// state of the substatus + /// Current state of the substatus. public Marqeta.Core.Sdk.Models.SubstatusResponse_state? State { get; set; } - /// substatus + /// Type of substatus. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Substatus { get; set; } @@ -53,7 +53,7 @@ public class SubstatusResponse : IAdditionalDataHolder, IParsable #else public string Substatus { get; set; } #endif - /// substatus token + /// Unique identifier of the credit substatus. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Token { get; set; } diff --git a/Marqeta.Core.Sdk/Generated/Models/SubstatusResponse_attributes.cs b/Marqeta.Core.Sdk/Generated/Models/SubstatusResponse_attributes.cs index 71d1ed65..bb0dacce 100644 --- a/Marqeta.Core.Sdk/Generated/Models/SubstatusResponse_attributes.cs +++ b/Marqeta.Core.Sdk/Generated/Models/SubstatusResponse_attributes.cs @@ -12,7 +12,7 @@ public class SubstatusResponse_attributes : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// The key of the attribute. + /// The name of the attribute.Marqeta provides several preconfigured attributes, as described in the following list.* *chapter:* If the substatus is `BANKRUPTCY`, then this value defines the chapter.* *military_start_date:* If the substatus is `SCRA`, then this value defines the military start date.* *end_date:* If the substatus is `POWER_OF_ATTORNEY`, then the end date attribute is present.This specifies the date when the power of attorney document is no longer valid.* *poa_details:* If the substatus is `POWER_OF_ATTORNEY`, then the Power of Attorney details attribute is applicable.This attribute specifies the range of actions that the agent with Power of Attorney is able to perform on the account.By default the range is `UNRESTRICTED`.* *agent_name:* If the substatus is `POWER_OF_ATTORNEY`, then the agent name is present.This attribute specifies the name of the agent with Power of Attorney for the user.* *agent_address:* If the substatus is `POWER_OF_ATTORNEY`, then the agent address attribute is present.This attribute specifies the address of the agent with Power of Attorney for the user.* *agent_id_type:* If the substatus is `POWER_OF_ATTORNEY`, then the agent identification type attribute is present.This specifies the type of the identification method used to identify the agent with Power of Attorney for the user.* *agent_id_value:* If the substatus is `POWER_OF_ATTORNEY`, then the agent identification value attribute is present.This attribute specifies the value of the identification method used to identify the agent with Power of Attorney for the user.* *agent_id_expiration_date:* If the substatus is `POWER_OF_ATTORNEY`, then the attribute for the Power of Attorney identification expiration date attribute is present.This attribute specifies the expiration date of the identification method used to identify the agent with Power of Attorney for the user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Key { get; set; } diff --git a/Marqeta.Core.Sdk/Generated/Models/SubstatusResponse_resource_type.cs b/Marqeta.Core.Sdk/Generated/Models/SubstatusResponse_resource_type.cs index 4d0a3498..99900c74 100644 --- a/Marqeta.Core.Sdk/Generated/Models/SubstatusResponse_resource_type.cs +++ b/Marqeta.Core.Sdk/Generated/Models/SubstatusResponse_resource_type.cs @@ -3,16 +3,16 @@ using System; namespace Marqeta.Core.Sdk.Models { - /// substatus resource type + /// Type of resource to which the substatus is applied. public enum SubstatusResponse_resource_type { - [EnumMember(Value = "USER")] - #pragma warning disable CS1591 - USER, - #pragma warning restore CS1591 [EnumMember(Value = "ACCOUNT")] #pragma warning disable CS1591 ACCOUNT, #pragma warning restore CS1591 + [EnumMember(Value = "USER")] + #pragma warning disable CS1591 + USER, + #pragma warning restore CS1591 } } diff --git a/Marqeta.Core.Sdk/Generated/Models/SubstatusResponse_state.cs b/Marqeta.Core.Sdk/Generated/Models/SubstatusResponse_state.cs index b0aec61b..6e6e5d17 100644 --- a/Marqeta.Core.Sdk/Generated/Models/SubstatusResponse_state.cs +++ b/Marqeta.Core.Sdk/Generated/Models/SubstatusResponse_state.cs @@ -3,7 +3,7 @@ using System; namespace Marqeta.Core.Sdk.Models { - /// state of the substatus + /// Current state of the substatus. public enum SubstatusResponse_state { [EnumMember(Value = "ACTIVE")] diff --git a/Marqeta.Core.Sdk/Generated/Models/SubstatusUpdateReq.cs b/Marqeta.Core.Sdk/Generated/Models/SubstatusUpdateReq.cs index 89e16266..954600c0 100644 --- a/Marqeta.Core.Sdk/Generated/Models/SubstatusUpdateReq.cs +++ b/Marqeta.Core.Sdk/Generated/Models/SubstatusUpdateReq.cs @@ -13,11 +13,11 @@ public class SubstatusUpdateReq : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// The channel through which deactivation is occurring:- **ADMIN**: Added through the Marqeta Dashboard.- **API**: Initiated through the Core API.- **FRAUD**: Determined by Marqeta or the card network.- **SYSTEM**: Initiated by Marqeta + /// The mechanism by which a state designation was applied to a substatus.If no value is set, then it defaults to `API`.* `ADMIN` - Indicates that the state of the substatus was added through the Marqeta Dashboard.* `API` - Indicates that you initiated the update of the substatus through the Core API.Use this value when creating a card transition with an API `POST` request.* `FRAUD` - Indicates that either Marqeta or the card network has determined that the account is fraudulent.* `SYSTEM` - Indicates that the substatus update was initiated by Marqeta.For example, Marqeta determined during application decisioning that the applicant is `MLA`. public Marqeta.Core.Sdk.Models.SubstatusUpdateReq_channel? Channel { get; set; } - /// Effective date of the deactivation, in UTC. + /// Date and time when the state of the substatus is effective, in UTC. public DateTimeOffset? EffectiveDate { get; set; } - /// Reason for deactivating the substatus. + /// Reason for applying the state to the substatus. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Reason { get; set; } @@ -25,7 +25,7 @@ public class SubstatusUpdateReq : IAdditionalDataHolder, IParsable #else public string Reason { get; set; } #endif - /// The state of the substatus. + /// New state of the substatus.`INACTIVE` is a valid state for substatuses `HARDSHIP`, `FRAUD`, `MLA`, `SCRA`, `DECEASED`, and `POWER_OF_ATTORNEY`.`BANKRUPTCY_WITHDRAWN`, `BANKRUPTCY_REAFFIRMED`, `BANKRUPTCY_REAFFIRM_RESCINDED`, `BANKRUPTCY_DISCHARGED`, `BANKRUPTCY_DISMISSED`, `BANKRUPTCY_FILED_INACTIVE`, `BANKRUPTCY_WITHDRAWN_INACTIVE`, `BANKRUPTCY_REAFFIRMED_INACTIVE`, `BANKRUPTCY_REAFFIRM_RESCINDED_INACTIVE`, `BANKRUPTCY_DISCHARGED_INACTIVE`, and `BANKRUPTCY_DISMISSED_INACTIVE` states are applicable to `BANKRUPTCY` public Marqeta.Core.Sdk.Models.SubstatusUpdateReq_state? State { get; set; } /// /// Instantiates a new and sets the default values. diff --git a/Marqeta.Core.Sdk/Generated/Models/SubstatusUpdateReq_channel.cs b/Marqeta.Core.Sdk/Generated/Models/SubstatusUpdateReq_channel.cs index bb0bedec..ffcf124b 100644 --- a/Marqeta.Core.Sdk/Generated/Models/SubstatusUpdateReq_channel.cs +++ b/Marqeta.Core.Sdk/Generated/Models/SubstatusUpdateReq_channel.cs @@ -3,7 +3,7 @@ using System; namespace Marqeta.Core.Sdk.Models { - /// The channel through which deactivation is occurring:- **ADMIN**: Added through the Marqeta Dashboard.- **API**: Initiated through the Core API.- **FRAUD**: Determined by Marqeta or the card network.- **SYSTEM**: Initiated by Marqeta + /// The mechanism by which a state designation was applied to a substatus.If no value is set, then it defaults to `API`.* `ADMIN` - Indicates that the state of the substatus was added through the Marqeta Dashboard.* `API` - Indicates that you initiated the update of the substatus through the Core API.Use this value when creating a card transition with an API `POST` request.* `FRAUD` - Indicates that either Marqeta or the card network has determined that the account is fraudulent.* `SYSTEM` - Indicates that the substatus update was initiated by Marqeta.For example, Marqeta determined during application decisioning that the applicant is `MLA`. public enum SubstatusUpdateReq_channel { [EnumMember(Value = "ADMIN")] diff --git a/Marqeta.Core.Sdk/Generated/Models/SubstatusUpdateReq_state.cs b/Marqeta.Core.Sdk/Generated/Models/SubstatusUpdateReq_state.cs index 052ab2ec..18897708 100644 --- a/Marqeta.Core.Sdk/Generated/Models/SubstatusUpdateReq_state.cs +++ b/Marqeta.Core.Sdk/Generated/Models/SubstatusUpdateReq_state.cs @@ -3,7 +3,7 @@ using System; namespace Marqeta.Core.Sdk.Models { - /// The state of the substatus. + /// New state of the substatus.`INACTIVE` is a valid state for substatuses `HARDSHIP`, `FRAUD`, `MLA`, `SCRA`, `DECEASED`, and `POWER_OF_ATTORNEY`.`BANKRUPTCY_WITHDRAWN`, `BANKRUPTCY_REAFFIRMED`, `BANKRUPTCY_REAFFIRM_RESCINDED`, `BANKRUPTCY_DISCHARGED`, `BANKRUPTCY_DISMISSED`, `BANKRUPTCY_FILED_INACTIVE`, `BANKRUPTCY_WITHDRAWN_INACTIVE`, `BANKRUPTCY_REAFFIRMED_INACTIVE`, `BANKRUPTCY_REAFFIRM_RESCINDED_INACTIVE`, `BANKRUPTCY_DISCHARGED_INACTIVE`, and `BANKRUPTCY_DISMISSED_INACTIVE` states are applicable to `BANKRUPTCY` public enum SubstatusUpdateReq_state { [EnumMember(Value = "INACTIVE")] diff --git a/Marqeta.Core.Sdk/Generated/Models/Terminal_model.cs b/Marqeta.Core.Sdk/Generated/Models/Terminal_model.cs index 34ba889b..30ba357d 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Terminal_model.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Terminal_model.cs @@ -56,13 +56,9 @@ public class Terminal_model : IAdditionalDataHolder, IParsable public string Tid { get; set; } #endif /// Specifies whether the transaction was initiated by a cardholder or a merchant. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TransactionInitiatedBy { get; set; } -#nullable restore -#else - public string TransactionInitiatedBy { get; set; } -#endif + public Marqeta.Core.Sdk.Models.Terminal_model_transaction_initiated_by? TransactionInitiatedBy { get; set; } + /// Specifies the category of a point-of-sale transaction. + public Marqeta.Core.Sdk.Models.Terminal_model_transaction_initiated_category? TransactionInitiatedCategory { get; set; } /// /// Instantiates a new and sets the default values. /// @@ -94,7 +90,8 @@ public virtual IDictionary> GetFieldDeserializers() { "pin_present", n => { PinPresent = n.GetStringValue(); } }, { "special_condition_indicator", n => { SpecialConditionIndicator = n.GetEnumValue(); } }, { "tid", n => { Tid = n.GetStringValue(); } }, - { "transaction_initiated_by", n => { TransactionInitiatedBy = n.GetStringValue(); } }, + { "transaction_initiated_by", n => { TransactionInitiatedBy = n.GetEnumValue(); } }, + { "transaction_initiated_category", n => { TransactionInitiatedCategory = n.GetEnumValue(); } }, }; } /// @@ -110,7 +107,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("pin_present", PinPresent); writer.WriteEnumValue("special_condition_indicator", SpecialConditionIndicator); writer.WriteStringValue("tid", Tid); - writer.WriteStringValue("transaction_initiated_by", TransactionInitiatedBy); + writer.WriteEnumValue("transaction_initiated_by", TransactionInitiatedBy); + writer.WriteEnumValue("transaction_initiated_category", TransactionInitiatedCategory); writer.WriteAdditionalData(AdditionalData); } } diff --git a/Marqeta.Core.Sdk/Generated/Models/Terminal_model_transaction_initiated_by.cs b/Marqeta.Core.Sdk/Generated/Models/Terminal_model_transaction_initiated_by.cs new file mode 100644 index 00000000..1ac1c8a9 --- /dev/null +++ b/Marqeta.Core.Sdk/Generated/Models/Terminal_model_transaction_initiated_by.cs @@ -0,0 +1,30 @@ +// +using System.Runtime.Serialization; +using System; +namespace Marqeta.Core.Sdk.Models +{ + /// Specifies whether the transaction was initiated by a cardholder or a merchant. + public enum Terminal_model_transaction_initiated_by + { + [EnumMember(Value = "CONSUMER")] + #pragma warning disable CS1591 + CONSUMER, + #pragma warning restore CS1591 + [EnumMember(Value = "MERCHANT")] + #pragma warning disable CS1591 + MERCHANT, + #pragma warning restore CS1591 + [EnumMember(Value = "UNKNOWN")] + #pragma warning disable CS1591 + UNKNOWN, + #pragma warning restore CS1591 + [EnumMember(Value = "MARQETA")] + #pragma warning disable CS1591 + MARQETA, + #pragma warning restore CS1591 + [EnumMember(Value = "NETWORK")] + #pragma warning disable CS1591 + NETWORK, + #pragma warning restore CS1591 + } +} diff --git a/Marqeta.Core.Sdk/Generated/Models/Terminal_model_transaction_initiated_category.cs b/Marqeta.Core.Sdk/Generated/Models/Terminal_model_transaction_initiated_category.cs new file mode 100644 index 00000000..69ecfe93 --- /dev/null +++ b/Marqeta.Core.Sdk/Generated/Models/Terminal_model_transaction_initiated_category.cs @@ -0,0 +1,62 @@ +// +using System.Runtime.Serialization; +using System; +namespace Marqeta.Core.Sdk.Models +{ + /// Specifies the category of a point-of-sale transaction. + public enum Terminal_model_transaction_initiated_category + { + [EnumMember(Value = "CARD_ON_FILE")] + #pragma warning disable CS1591 + CARD_ON_FILE, + #pragma warning restore CS1591 + [EnumMember(Value = "RECURRING_VAR_AMT_FIXED_FREQ")] + #pragma warning disable CS1591 + RECURRING_VAR_AMT_FIXED_FREQ, + #pragma warning restore CS1591 + [EnumMember(Value = "RECURRING_PAYMENT")] + #pragma warning disable CS1591 + RECURRING_PAYMENT, + #pragma warning restore CS1591 + [EnumMember(Value = "INSTALLMENT_PAYMENT")] + #pragma warning disable CS1591 + INSTALLMENT_PAYMENT, + #pragma warning restore CS1591 + [EnumMember(Value = "UNSCHEDULED_PAYMENT")] + #pragma warning disable CS1591 + UNSCHEDULED_PAYMENT, + #pragma warning restore CS1591 + [EnumMember(Value = "PARTIAL_SHIPMENT")] + #pragma warning disable CS1591 + PARTIAL_SHIPMENT, + #pragma warning restore CS1591 + [EnumMember(Value = "DELAYED_PAYMENT")] + #pragma warning disable CS1591 + DELAYED_PAYMENT, + #pragma warning restore CS1591 + [EnumMember(Value = "NO_SHOW")] + #pragma warning disable CS1591 + NO_SHOW, + #pragma warning restore CS1591 + [EnumMember(Value = "RESUBMISSION")] + #pragma warning disable CS1591 + RESUBMISSION, + #pragma warning restore CS1591 + [EnumMember(Value = "DEFERRED_BILLING")] + #pragma warning disable CS1591 + DEFERRED_BILLING, + #pragma warning restore CS1591 + [EnumMember(Value = "ACCOUNT_INQUIRY")] + #pragma warning disable CS1591 + ACCOUNT_INQUIRY, + #pragma warning restore CS1591 + [EnumMember(Value = "INCREMENTAL_AUTHORIZATION")] + #pragma warning disable CS1591 + INCREMENTAL_AUTHORIZATION, + #pragma warning restore CS1591 + [EnumMember(Value = "REAUTHORIZATION")] + #pragma warning disable CS1591 + REAUTHORIZATION, + #pragma warning restore CS1591 + } +} diff --git a/Marqeta.Core.Sdk/Generated/Models/Transaction_card_acceptor.cs b/Marqeta.Core.Sdk/Generated/Models/Transaction_card_acceptor.cs index c97683db..6b2e596e 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Transaction_card_acceptor.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Transaction_card_acceptor.cs @@ -84,6 +84,14 @@ public class Transaction_card_acceptor : IAdditionalDataHolder, IParsable #nullable restore #else public string MerchantTaxId { get; set; } +#endif + /// The VAT registration identifier of the merchant. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MerchantVatRegistrationId { get; set; } +#nullable restore +#else + public string MerchantVatRegistrationId { get; set; } #endif /// The merchant identifier. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -231,6 +239,7 @@ public virtual IDictionary> GetFieldDeserializers() { "mcc", n => { Mcc = n.GetStringValue(); } }, { "mcc_groups", n => { MccGroups = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, { "merchant_tax_id", n => { MerchantTaxId = n.GetStringValue(); } }, + { "merchant_vat_registration_id", n => { MerchantVatRegistrationId = n.GetStringValue(); } }, { "mid", n => { Mid = n.GetStringValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, { "network_assigned_id", n => { NetworkAssignedId = n.GetStringValue(); } }, @@ -263,6 +272,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("mcc", Mcc); writer.WriteCollectionOfPrimitiveValues("mcc_groups", MccGroups); writer.WriteStringValue("merchant_tax_id", MerchantTaxId); + writer.WriteStringValue("merchant_vat_registration_id", MerchantVatRegistrationId); writer.WriteStringValue("mid", Mid); writer.WriteStringValue("name", Name); writer.WriteStringValue("network_assigned_id", NetworkAssignedId); diff --git a/Marqeta.Core.Sdk/Generated/Models/Transaction_model.cs b/Marqeta.Core.Sdk/Generated/Models/Transaction_model.cs index 647f240c..ce5361ed 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Transaction_model.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Transaction_model.cs @@ -37,7 +37,7 @@ public class Transaction_model : IAdditionalDataHolder, IParsable #endif /// Indicates the amount of the acquirer fee.Account holders are sometimes charged an acquirer fee for card use at ATMs, fuel dispensers, and so on. public double? AcquirerFeeAmount { get; set; } - /// The acquirer_reference_data property + /// Acquirer-assigned unique identifier of the transaction.Useful for settlement and reconciliation. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AcquirerReferenceData { get; set; } @@ -91,6 +91,8 @@ public class Transaction_model : IAdditionalDataHolder, IParsable public double? Amount { get; set; } /// Amount of original authorization to be released.This field appears in final clearing transactions where the clearing amount is lower than the authorization amount. public double? AmountToBeReleased { get; set; } + /// The anticipated_amount property + public double? AnticipatedAmount { get; set; } /// Unique identifier assigned to an authorization, printed on the receipt at point of sale. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -320,6 +322,14 @@ public class Transaction_model : IAdditionalDataHolder, IParsable #nullable restore #else public Marqeta.Core.Sdk.Models.Fee_transfer_response FeeTransfer { get; set; } +#endif + /// Contains information about a Marqeta Flex transaction. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Marqeta.Core.Sdk.Models.Flex? Flex { get; set; } +#nullable restore +#else + public Marqeta.Core.Sdk.Models.Flex Flex { get; set; } #endif /// Contains one or more fraud determinations by the card network that apply to either the transaction or the cardholder's account. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -692,6 +702,7 @@ public virtual IDictionary> GetFieldDeserializers() { "advice_reason_details", n => { AdviceReasonDetails = n.GetStringValue(); } }, { "amount", n => { Amount = n.GetDoubleValue(); } }, { "amount_to_be_released", n => { AmountToBeReleased = n.GetDoubleValue(); } }, + { "anticipated_amount", n => { AnticipatedAmount = n.GetDoubleValue(); } }, { "approval_code", n => { ApprovalCode = n.GetStringValue(); } }, { "atc_information", n => { AtcInformation = n.GetObjectValue(Marqeta.Core.Sdk.Models.Atc_information.CreateFromDiscriminatorValue); } }, { "auto_reload", n => { AutoReload = n.GetObjectValue(Marqeta.Core.Sdk.Models.Auto_reload_model.CreateFromDiscriminatorValue); } }, @@ -723,6 +734,7 @@ public virtual IDictionary> GetFieldDeserializers() { "fee", n => { Fee = n.GetObjectValue(Marqeta.Core.Sdk.Models.Fee.CreateFromDiscriminatorValue); } }, { "fee_transfer", n => { FeeTransfer = n.GetObjectValue(Marqeta.Core.Sdk.Models.Fee_transfer_response.CreateFromDiscriminatorValue); } }, { "fees", n => { Fees = n.GetCollectionOfObjectValues(Marqeta.Core.Sdk.Models.Network_fee_model.CreateFromDiscriminatorValue)?.ToList(); } }, + { "flex", n => { Flex = n.GetObjectValue(Marqeta.Core.Sdk.Models.Flex.CreateFromDiscriminatorValue); } }, { "fraud", n => { Fraud = n.GetObjectValue(Marqeta.Core.Sdk.Models.Fraud_view.CreateFromDiscriminatorValue); } }, { "from_account", n => { FromAccount = n.GetStringValue(); } }, { "gpa", n => { Gpa = n.GetObjectValue(Marqeta.Core.Sdk.Models.Cardholder_balance.CreateFromDiscriminatorValue); } }, @@ -794,6 +806,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("advice_reason_details", AdviceReasonDetails); writer.WriteDoubleValue("amount", Amount); writer.WriteDoubleValue("amount_to_be_released", AmountToBeReleased); + writer.WriteDoubleValue("anticipated_amount", AnticipatedAmount); writer.WriteStringValue("approval_code", ApprovalCode); writer.WriteObjectValue("atc_information", AtcInformation); writer.WriteObjectValue("auto_reload", AutoReload); @@ -825,6 +838,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteObjectValue("fee", Fee); writer.WriteCollectionOfObjectValues("fees", Fees); writer.WriteObjectValue("fee_transfer", FeeTransfer); + writer.WriteObjectValue("flex", Flex); writer.WriteObjectValue("fraud", Fraud); writer.WriteStringValue("from_account", FromAccount); writer.WriteObjectValue("gpa", Gpa); diff --git a/Marqeta.Core.Sdk/Generated/Models/Transaction_model_type.cs b/Marqeta.Core.Sdk/Generated/Models/Transaction_model_type.cs index 509871af..50f97a0c 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Transaction_model_type.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Transaction_model_type.cs @@ -506,6 +506,10 @@ public enum Transaction_model_type #pragma warning disable CS1591 PinChangeViaApi, #pragma warning restore CS1591 + [EnumMember(Value = "product.inquiry")] + #pragma warning disable CS1591 + ProductInquiry, + #pragma warning restore CS1591 [EnumMember(Value = "unknown")] #pragma warning disable CS1591 Unknown, diff --git a/Marqeta.Core.Sdk/Generated/Models/Velocity_control_balance_response.cs b/Marqeta.Core.Sdk/Generated/Models/Velocity_control_balance_response.cs index a7d718aa..8e6c7b30 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Velocity_control_balance_response.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Velocity_control_balance_response.cs @@ -14,9 +14,9 @@ public class Velocity_control_balance_response : IAdditionalDataHolder, IParsabl public bool? Active { get; set; } /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field. + /// Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field.Refunds and reversals cannot exceed this limit. public double? AmountLimit { get; set; } - /// If set to `true`, only approved transactions are subject to control. + /// If set to `true`, only approved transactions are subject to control.If set to `false`, only declined transactions are subject to control. public bool? ApprovalsOnly { get; set; } /// Defines the group of users to which the velocity control applies. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/Marqeta.Core.Sdk/Generated/Models/Velocity_control_request.cs b/Marqeta.Core.Sdk/Generated/Models/Velocity_control_request.cs index 8c8ab92b..bbd17b22 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Velocity_control_request.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Velocity_control_request.cs @@ -14,9 +14,9 @@ public class Velocity_control_request : IAdditionalDataHolder, IParsable public bool? Active { get; set; } /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field. + /// Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field.Refunds and reversals cannot exceed this limit. public double? AmountLimit { get; set; } - /// If set to `true`, only approved transactions are subject to control. + /// If set to `true`, only approved transactions are subject to control.If set to `false`, only declined transactions are subject to control. public bool? ApprovalsOnly { get; set; } /// Defines the group of users to which the velocity control applies. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -78,7 +78,7 @@ public class Velocity_control_request : IAdditionalDataHolder, IParsable #endif /// Maximum number of times a card can be used within the time period defined by the `velocity_window` field.If `velocity_window` is set to `TRANSACTION`, do not include a `usage_limit` in your request.Set to `-1` to indicate that the card can be used an unlimited number of times. public int? UsageLimit { get; set; } - /// Defines the time period to which the `amount_limit` and `usage_limit` fields apply:* *DAY* – one day; days begin at 00:00:00 UTC.* *WEEK* – one week; weeks begin Sundays at 00:00:00 UTC.* *MONTH* – one month; months begin on the first day of month at 00:00:00 UTC.* *LIFETIME* – forever; time period never expires.* *TRANSACTION* – a single transaction.// (2023-05-03): This statement was validated by Processing, as part of a customer inquiry.*NOTE:* If set to `DAY`, `WEEK`, or `MONTH`, the velocity control takes effect retroactively from the beginning of the specified period.The amount and usage data already collected within the first period is counted toward the limits.// (2023-05-03): Commenting this note out, as it is untrue in testing as reported by customers and confirmed by transaction engine team//*NOTE:* Editing any of the following fields on a velocity control resets its usage and amount count to 0://* `merchant_scope.mcc`//* `merchant_scope.mid`//* `merchant_scope.mcc_group`//* `association.user_token`//* `association.card_product_token` + /// Defines the time period to which the `amount_limit` and `usage_limit` fields apply:* *DAY* – one day; days begin at 00:00:00 UTC.* *WEEK* – one week; weeks begin Sundays at 00:00:00 UTC.* *MONTH* – one month; months begin on the first day of month at 00:00:00 UTC.* *LIFETIME* – forever; time period never expires.* *TRANSACTION* – a single transaction.// (2023-05-03): This statement was validated by Processing, as part of a customer inquiry.*NOTE:* If set to `DAY`, `WEEK`, or `MONTH`, the velocity control takes effect retroactively from the beginning of the specified period.The amount and usage data already collected within the first period is counted toward the limits.If set to `LIFETIME`, the velocity control only applies to transactions on or after the date and time that the velocity control was created.`LIFETIME` velocity controls are not retroactively applied to historical transactions.// (2023-05-03): Commenting this note out, as it is untrue in testing as reported by customers and confirmed by transaction engine team//*NOTE:* Editing any of the following fields on a velocity control resets its usage and amount count to 0://* `merchant_scope.mcc`//* `merchant_scope.mid`//* `merchant_scope.mcc_group`//* `association.user_token`//* `association.card_product_token` public Marqeta.Core.Sdk.Models.Velocity_control_request_velocity_window? VelocityWindow { get; set; } /// /// Instantiates a new and sets the default values. diff --git a/Marqeta.Core.Sdk/Generated/Models/Velocity_control_request_velocity_window.cs b/Marqeta.Core.Sdk/Generated/Models/Velocity_control_request_velocity_window.cs index 83be600e..6a95444d 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Velocity_control_request_velocity_window.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Velocity_control_request_velocity_window.cs @@ -3,7 +3,7 @@ using System; namespace Marqeta.Core.Sdk.Models { - /// Defines the time period to which the `amount_limit` and `usage_limit` fields apply:* *DAY* – one day; days begin at 00:00:00 UTC.* *WEEK* – one week; weeks begin Sundays at 00:00:00 UTC.* *MONTH* – one month; months begin on the first day of month at 00:00:00 UTC.* *LIFETIME* – forever; time period never expires.* *TRANSACTION* – a single transaction.// (2023-05-03): This statement was validated by Processing, as part of a customer inquiry.*NOTE:* If set to `DAY`, `WEEK`, or `MONTH`, the velocity control takes effect retroactively from the beginning of the specified period.The amount and usage data already collected within the first period is counted toward the limits.// (2023-05-03): Commenting this note out, as it is untrue in testing as reported by customers and confirmed by transaction engine team//*NOTE:* Editing any of the following fields on a velocity control resets its usage and amount count to 0://* `merchant_scope.mcc`//* `merchant_scope.mid`//* `merchant_scope.mcc_group`//* `association.user_token`//* `association.card_product_token` + /// Defines the time period to which the `amount_limit` and `usage_limit` fields apply:* *DAY* – one day; days begin at 00:00:00 UTC.* *WEEK* – one week; weeks begin Sundays at 00:00:00 UTC.* *MONTH* – one month; months begin on the first day of month at 00:00:00 UTC.* *LIFETIME* – forever; time period never expires.* *TRANSACTION* – a single transaction.// (2023-05-03): This statement was validated by Processing, as part of a customer inquiry.*NOTE:* If set to `DAY`, `WEEK`, or `MONTH`, the velocity control takes effect retroactively from the beginning of the specified period.The amount and usage data already collected within the first period is counted toward the limits.If set to `LIFETIME`, the velocity control only applies to transactions on or after the date and time that the velocity control was created.`LIFETIME` velocity controls are not retroactively applied to historical transactions.// (2023-05-03): Commenting this note out, as it is untrue in testing as reported by customers and confirmed by transaction engine team//*NOTE:* Editing any of the following fields on a velocity control resets its usage and amount count to 0://* `merchant_scope.mcc`//* `merchant_scope.mid`//* `merchant_scope.mcc_group`//* `association.user_token`//* `association.card_product_token` public enum Velocity_control_request_velocity_window { [EnumMember(Value = "DAY")] diff --git a/Marqeta.Core.Sdk/Generated/Models/Velocity_control_response.cs b/Marqeta.Core.Sdk/Generated/Models/Velocity_control_response.cs index e77d534c..7ba0b65d 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Velocity_control_response.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Velocity_control_response.cs @@ -14,9 +14,9 @@ public class Velocity_control_response : IAdditionalDataHolder, IParsable public bool? Active { get; set; } /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field. + /// Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field.Refunds and reversals cannot exceed this limit. public double? AmountLimit { get; set; } - /// If set to `true`, only approved transactions are subject to control. + /// If set to `true`, only approved transactions are subject to control.If set to `false`, only declined transactions are subject to control. public bool? ApprovalsOnly { get; set; } /// Defines the group of users to which the velocity control applies. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/Marqeta.Core.Sdk/Generated/Models/Velocity_control_update_request.cs b/Marqeta.Core.Sdk/Generated/Models/Velocity_control_update_request.cs index 019d908f..dfafac25 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Velocity_control_update_request.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Velocity_control_update_request.cs @@ -14,9 +14,9 @@ public class Velocity_control_update_request : IAdditionalDataHolder, IParsable public bool? Active { get; set; } /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field. + /// Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field.Refunds and reversals cannot exceed this limit. public double? AmountLimit { get; set; } - /// If set to `true`, only approved transactions are subject to control. + /// If set to `true`, only approved transactions are subject to control.If set to `false`, only declined transactions are subject to control. public bool? ApprovalsOnly { get; set; } /// Defines the group of users to which the velocity control applies. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -78,7 +78,7 @@ public class Velocity_control_update_request : IAdditionalDataHolder, IParsable #endif /// Maximum number of times a card can be used within the time period defined by the `velocity_window` field.If `velocity_window` is set to `TRANSACTION`, do not include a `usage_limit` in your request. public int? UsageLimit { get; set; } - /// Defines the time period to which the `amount_limit` and `usage_limit` fields apply:* *DAY* – one day; days begin at 00:00:00 UTC.* *WEEK* – one week; weeks begin Sundays at 00:00:00 UTC.* *MONTH* – one month; months begin on the first day of month at 00:00:00 UTC.* *LIFETIME* – forever; time period never expires.* *TRANSACTION* – a single transaction.// (2023-05-03): This statement was validated by Processing, as part of a customer inquiry.*NOTE:* If set to `DAY`, `WEEK`, or `MONTH`, the velocity control takes effect retroactively from the beginning of the specified period.The amount and usage data already collected within the first period is counted toward the limits.// (2023-05-03): Commenting this note out, as it is untrue in testing as reported by customers and confirmed by transaction engine team//*NOTE:* Editing any of the following fields on a velocity control resets its usage and amount count to 0://* `merchant_scope.mcc`//* `merchant_scope.mid`//* `merchant_scope.mcc_group`//* `association.user_token`//* `association.card_product_token` + /// Defines the time period to which the `amount_limit` and `usage_limit` fields apply:* *DAY* – one day; days begin at 00:00:00 UTC.* *WEEK* – one week; weeks begin Sundays at 00:00:00 UTC.* *MONTH* – one month; months begin on the first day of month at 00:00:00 UTC.* *LIFETIME* – forever; time period never expires.* *TRANSACTION* – a single transaction.// (2023-05-03): This statement was validated by Processing, as part of a customer inquiry.*NOTE:* If set to `DAY`, `WEEK`, or `MONTH`, the velocity control takes effect retroactively from the beginning of the specified period.The amount and usage data already collected within the first period is counted toward the limits.If set to `LIFETIME`, the velocity control only applies to transactions on or after the date and time that the velocity control was created.`LIFETIME` velocity controls are not retroactively applied to historical transactions.// (2023-05-03): Commenting this note out, as it is untrue in testing as reported by customers and confirmed by transaction engine team//*NOTE:* Editing any of the following fields on a velocity control resets its usage and amount count to 0://* `merchant_scope.mcc`//* `merchant_scope.mid`//* `merchant_scope.mcc_group`//* `association.user_token`//* `association.card_product_token` public Marqeta.Core.Sdk.Models.Velocity_control_update_request_velocity_window? VelocityWindow { get; set; } /// /// Instantiates a new and sets the default values. diff --git a/Marqeta.Core.Sdk/Generated/Models/Velocity_control_update_request_velocity_window.cs b/Marqeta.Core.Sdk/Generated/Models/Velocity_control_update_request_velocity_window.cs index da99f2bf..b8aacb19 100644 --- a/Marqeta.Core.Sdk/Generated/Models/Velocity_control_update_request_velocity_window.cs +++ b/Marqeta.Core.Sdk/Generated/Models/Velocity_control_update_request_velocity_window.cs @@ -3,7 +3,7 @@ using System; namespace Marqeta.Core.Sdk.Models { - /// Defines the time period to which the `amount_limit` and `usage_limit` fields apply:* *DAY* – one day; days begin at 00:00:00 UTC.* *WEEK* – one week; weeks begin Sundays at 00:00:00 UTC.* *MONTH* – one month; months begin on the first day of month at 00:00:00 UTC.* *LIFETIME* – forever; time period never expires.* *TRANSACTION* – a single transaction.// (2023-05-03): This statement was validated by Processing, as part of a customer inquiry.*NOTE:* If set to `DAY`, `WEEK`, or `MONTH`, the velocity control takes effect retroactively from the beginning of the specified period.The amount and usage data already collected within the first period is counted toward the limits.// (2023-05-03): Commenting this note out, as it is untrue in testing as reported by customers and confirmed by transaction engine team//*NOTE:* Editing any of the following fields on a velocity control resets its usage and amount count to 0://* `merchant_scope.mcc`//* `merchant_scope.mid`//* `merchant_scope.mcc_group`//* `association.user_token`//* `association.card_product_token` + /// Defines the time period to which the `amount_limit` and `usage_limit` fields apply:* *DAY* – one day; days begin at 00:00:00 UTC.* *WEEK* – one week; weeks begin Sundays at 00:00:00 UTC.* *MONTH* – one month; months begin on the first day of month at 00:00:00 UTC.* *LIFETIME* – forever; time period never expires.* *TRANSACTION* – a single transaction.// (2023-05-03): This statement was validated by Processing, as part of a customer inquiry.*NOTE:* If set to `DAY`, `WEEK`, or `MONTH`, the velocity control takes effect retroactively from the beginning of the specified period.The amount and usage data already collected within the first period is counted toward the limits.If set to `LIFETIME`, the velocity control only applies to transactions on or after the date and time that the velocity control was created.`LIFETIME` velocity controls are not retroactively applied to historical transactions.// (2023-05-03): Commenting this note out, as it is untrue in testing as reported by customers and confirmed by transaction engine team//*NOTE:* Editing any of the following fields on a velocity control resets its usage and amount count to 0://* `merchant_scope.mcc`//* `merchant_scope.mid`//* `merchant_scope.mcc_group`//* `association.user_token`//* `association.card_product_token` public enum Velocity_control_update_request_velocity_window { [EnumMember(Value = "DAY")] diff --git a/Marqeta.Core.Sdk/Generated/Paymentsources/PaymentsourcesRequestBuilder.cs b/Marqeta.Core.Sdk/Generated/Paymentsources/PaymentsourcesRequestBuilder.cs index 46ae74c1..1bdda280 100644 --- a/Marqeta.Core.Sdk/Generated/Paymentsources/PaymentsourcesRequestBuilder.cs +++ b/Marqeta.Core.Sdk/Generated/Paymentsources/PaymentsourcesRequestBuilder.cs @@ -33,7 +33,7 @@ public Marqeta.Core.Sdk.Paymentsources.Item.WithTokenItemRequestBuilder this[str /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PaymentsourcesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/paymentsources{?account_token*,business_token*,count*,sort_by*,start_index*,user_token*}", pathParameters) + public PaymentsourcesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/paymentsources{?account_token*,business_token*,count*,sort_by*,start_index*,statuses*,user_token*}", pathParameters) { } /// @@ -41,7 +41,7 @@ public PaymentsourcesRequestBuilder(Dictionary pathParameters, I /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public PaymentsourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/paymentsources{?account_token*,business_token*,count*,sort_by*,start_index*,user_token*}", rawUrl) + public PaymentsourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/paymentsources{?account_token*,business_token*,count*,sort_by*,start_index*,statuses*,user_token*}", rawUrl) { } /// @@ -176,6 +176,16 @@ public class PaymentsourcesRequestBuilderGetQueryParameters /// Sort order index of the first resource in the returned array. [QueryParameter("start_index")] public int? StartIndex { get; set; } + /// Array of statuses to use for filtering payment sources. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("statuses")] + public Marqeta.Core.Sdk.Models.PaymentSourceStatusEnum[]? Statuses { get; set; } +#nullable restore +#else + [QueryParameter("statuses")] + public Marqeta.Core.Sdk.Models.PaymentSourceStatusEnum[] Statuses { get; set; } +#endif /// Unique identifier of the user associated with the payment source. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/Marqeta.Core.Sdk/Generated/Pins/PinsRequestBuilder.cs b/Marqeta.Core.Sdk/Generated/Pins/PinsRequestBuilder.cs index 3c7a7aff..88864da1 100644 --- a/Marqeta.Core.Sdk/Generated/Pins/PinsRequestBuilder.cs +++ b/Marqeta.Core.Sdk/Generated/Pins/PinsRequestBuilder.cs @@ -44,7 +44,7 @@ public PinsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( { } /// - /// Creates or updates a personal identification number (PIN) for an existing card.If you want to manage a card's PIN, first create a new control token for the card by sending a `POST` request to `/pins/controltoken`, and then use that token to update the PIN.You must create a card before you can manage a PIN.Unless PIN reveal functionality has been enabled for your program, you cannot retrieve a PIN that has previously been created.If the PIN has been forgotten, you must either update the card's PIN or create a new card and PIN.If you have enabled PIN reveal functionality for your program, you can send a `POST` request to the `/pins/reveal` endpoint to retrieve an existing PIN.See <</core-api/pins#revealPins, Reveal PIN>> on this page for details.[WARNING]Sending a request to this endpoint requires PCI DSS compliance.You must comply with PCI DSS data security requirements if you want to store, transmit, or process sensitive card data such as the cardholder's primary account number (PAN), personal identification number (PIN), and card expiration date. + /// Creates or updates a personal identification number (PIN) for an existing card.Although cardholders might choose a four-, five-, or six-digit PIN if they set their PIN at an automated teller machine, they can only set a four-digit PIN using Marqeta's Set PIN widget or the create or update PIN endpoint (`PUT /pins`).Cardholders can update their PIN through the API regardless of its length, but the new PIN value they choose must contain four digits.If you want to manage a card's PIN, first create a new control token for the card by sending a `POST` request to `/pins/controltoken`, and then use that token to update the PIN.You must create a card before you can manage a PIN.Unless PIN reveal functionality has been enabled for your program, you cannot retrieve a PIN that has previously been created.If the PIN has been forgotten, you must either update the card's PIN or create a new card and PIN.If you have enabled PIN reveal functionality for your program, you can send a `POST` request to the `/pins/reveal` endpoint to retrieve an existing PIN.See <</core-api/pins#revealPins, Reveal PIN>> on this page for details.[WARNING]Sending a request to this endpoint requires PCI DSS compliance.You must comply with PCI DSS data security requirements if you want to store, transmit, or process sensitive card data such as the cardholder's primary account number (PAN), personal identification number (PIN), and card expiration date. /// /// The request body /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task PutAsync(Marqeta.Core.Sdk.Models.Pin_request body, Action - /// Creates or updates a personal identification number (PIN) for an existing card.If you want to manage a card's PIN, first create a new control token for the card by sending a `POST` request to `/pins/controltoken`, and then use that token to update the PIN.You must create a card before you can manage a PIN.Unless PIN reveal functionality has been enabled for your program, you cannot retrieve a PIN that has previously been created.If the PIN has been forgotten, you must either update the card's PIN or create a new card and PIN.If you have enabled PIN reveal functionality for your program, you can send a `POST` request to the `/pins/reveal` endpoint to retrieve an existing PIN.See <</core-api/pins#revealPins, Reveal PIN>> on this page for details.[WARNING]Sending a request to this endpoint requires PCI DSS compliance.You must comply with PCI DSS data security requirements if you want to store, transmit, or process sensitive card data such as the cardholder's primary account number (PAN), personal identification number (PIN), and card expiration date. + /// Creates or updates a personal identification number (PIN) for an existing card.Although cardholders might choose a four-, five-, or six-digit PIN if they set their PIN at an automated teller machine, they can only set a four-digit PIN using Marqeta's Set PIN widget or the create or update PIN endpoint (`PUT /pins`).Cardholders can update their PIN through the API regardless of its length, but the new PIN value they choose must contain four digits.If you want to manage a card's PIN, first create a new control token for the card by sending a `POST` request to `/pins/controltoken`, and then use that token to update the PIN.You must create a card before you can manage a PIN.Unless PIN reveal functionality has been enabled for your program, you cannot retrieve a PIN that has previously been created.If the PIN has been forgotten, you must either update the card's PIN or create a new card and PIN.If you have enabled PIN reveal functionality for your program, you can send a `POST` request to the `/pins/reveal` endpoint to retrieve an existing PIN.See <</core-api/pins#revealPins, Reveal PIN>> on this page for details.[WARNING]Sending a request to this endpoint requires PCI DSS compliance.You must comply with PCI DSS data security requirements if you want to store, transmit, or process sensitive card data such as the cardholder's primary account number (PAN), personal identification number (PIN), and card expiration date. /// /// A /// The request body diff --git a/Marqeta.Core.Sdk/Generated/Pins/Reveal/RevealRequestBuilder.cs b/Marqeta.Core.Sdk/Generated/Pins/Reveal/RevealRequestBuilder.cs index 6dc63c14..d86727e2 100644 --- a/Marqeta.Core.Sdk/Generated/Pins/Reveal/RevealRequestBuilder.cs +++ b/Marqeta.Core.Sdk/Generated/Pins/Reveal/RevealRequestBuilder.cs @@ -32,7 +32,7 @@ public RevealRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas { } /// - /// Reveals the personal identification number (PIN) of an existing, active card.*WARNING:* Only use this endpoint to access a PIN in order to reveal it to its cardholder.Do not use this endpoint for the purpose of storing a PIN at any location.Sending a request to this endpoint requires PCI DSS compliance.You must comply with PCI DSS data security requirements if you want to store, transmit, or process sensitive card data such as the cardholder's primary account number (PAN), personal identification number (PIN), and card expiration date.If you want instead to update a card's PIN, send a `PUT` request to the `/pins` endpoint.See <</core-api/pins#putPins, Create or Update PIN>> on this page for details.Revealing a card's PIN is a two-step process.You must first create a new control token for the card by sending a `POST` request to `/pins/controltoken`, and then use that token to reveal the PIN. + /// Reveals the personal identification number (PIN) of an existing, active card.Be aware that while a cardholder can only set a four-digit PIN using the Marqeta Set PIN widget or `PUT /pins` API, you may see a four-, five-, or six-digit PIN in cases where your cardholders have set a new PIN at an automated teller machine.[WARNING]Only use this endpoint to access a PIN in order to reveal it to its cardholder.Do not use this endpoint for the purpose of storing a PIN at any location.Sending a request to this endpoint requires PCI DSS compliance.You must comply with PCI DSS data security requirements if you want to store, transmit, or process sensitive card data such as the cardholder's primary account number (PAN), personal identification number (PIN), and card expiration date.If you want to update a card's PIN instead, send a `PUT` request to the `/pins` endpoint.See <</core-api/pins#putPins, Create or Update PIN>> on this page for details.Revealing a card's PIN is a two-step process.You must first create a new control token for the card by sending a `POST` request to `/pins/controltoken`, and then use that token to reveal the PIN. /// /// The request body /// Cancellation token to use when cancelling requests @@ -56,7 +56,7 @@ public async Task PostAsync(Marqeta.Core.Sdk.Models.Pin_reveal_request body, Act await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Reveals the personal identification number (PIN) of an existing, active card.*WARNING:* Only use this endpoint to access a PIN in order to reveal it to its cardholder.Do not use this endpoint for the purpose of storing a PIN at any location.Sending a request to this endpoint requires PCI DSS compliance.You must comply with PCI DSS data security requirements if you want to store, transmit, or process sensitive card data such as the cardholder's primary account number (PAN), personal identification number (PIN), and card expiration date.If you want instead to update a card's PIN, send a `PUT` request to the `/pins` endpoint.See <</core-api/pins#putPins, Create or Update PIN>> on this page for details.Revealing a card's PIN is a two-step process.You must first create a new control token for the card by sending a `POST` request to `/pins/controltoken`, and then use that token to reveal the PIN. + /// Reveals the personal identification number (PIN) of an existing, active card.Be aware that while a cardholder can only set a four-digit PIN using the Marqeta Set PIN widget or `PUT /pins` API, you may see a four-, five-, or six-digit PIN in cases where your cardholders have set a new PIN at an automated teller machine.[WARNING]Only use this endpoint to access a PIN in order to reveal it to its cardholder.Do not use this endpoint for the purpose of storing a PIN at any location.Sending a request to this endpoint requires PCI DSS compliance.You must comply with PCI DSS data security requirements if you want to store, transmit, or process sensitive card data such as the cardholder's primary account number (PAN), personal identification number (PIN), and card expiration date.If you want to update a card's PIN instead, send a `PUT` request to the `/pins` endpoint.See <</core-api/pins#putPins, Create or Update PIN>> on this page for details.Revealing a card's PIN is a two-step process.You must first create a new control token for the card by sending a `POST` request to `/pins/controltoken`, and then use that token to reveal the PIN. /// /// A /// The request body diff --git a/Marqeta.Core.Sdk/Generated/Substatuses/GetSubstatusesQueryParameterType.cs b/Marqeta.Core.Sdk/Generated/Substatuses/GetSubstatusesQueryParameterType.cs index 6a5d2dab..6de66880 100644 --- a/Marqeta.Core.Sdk/Generated/Substatuses/GetSubstatusesQueryParameterType.cs +++ b/Marqeta.Core.Sdk/Generated/Substatuses/GetSubstatusesQueryParameterType.cs @@ -31,5 +31,9 @@ public enum GetSubstatusesQueryParameterType #pragma warning disable CS1591 BANKRUPTCY, #pragma warning restore CS1591 + [EnumMember(Value = "POWER_OF_ATTORNEY")] + #pragma warning disable CS1591 + POWER_OF_ATTORNEY, + #pragma warning restore CS1591 } } diff --git a/Marqeta.Core.Sdk/Generated/Substatuses/Item/WithSubstatus_tokenItemRequestBuilder.cs b/Marqeta.Core.Sdk/Generated/Substatuses/Item/WithSubstatus_tokenItemRequestBuilder.cs index 8f1912d2..6921764f 100644 --- a/Marqeta.Core.Sdk/Generated/Substatuses/Item/WithSubstatus_tokenItemRequestBuilder.cs +++ b/Marqeta.Core.Sdk/Generated/Substatuses/Item/WithSubstatus_tokenItemRequestBuilder.cs @@ -55,7 +55,7 @@ public WithSubstatus_tokenItemRequestBuilder(string rawUrl, IRequestAdapter requ return await RequestAdapter.SendAsync(requestInfo, Marqeta.Core.Sdk.Models.SubstatusResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update substatus for an user or account. + /// Updating a substatus registers a new event that changes the substatus' state. /// /// A /// Contains information relevant to deactivating a substatus. @@ -99,7 +99,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update substatus for an user or account. + /// Updating a substatus registers a new event that changes the substatus' state. /// /// A /// Contains information relevant to deactivating a substatus. diff --git a/Marqeta.Core.Sdk/Generated/Substatuses/SubstatusesRequestBuilder.cs b/Marqeta.Core.Sdk/Generated/Substatuses/SubstatusesRequestBuilder.cs index 868b5856..1bfdc5ce 100644 --- a/Marqeta.Core.Sdk/Generated/Substatuses/SubstatusesRequestBuilder.cs +++ b/Marqeta.Core.Sdk/Generated/Substatuses/SubstatusesRequestBuilder.cs @@ -17,7 +17,7 @@ namespace Marqeta.Core.Sdk.Substatuses public class SubstatusesRequestBuilder : BaseRequestBuilder { /// Gets an item from the Marqeta.Core.Sdk.substatuses.item collection - /// The unique identifier of the substatus to retrieve.Send a `GET` request to `/credit/substatuses` to retrieve existing substatus tokens. + /// Unique identifier of the substatus to retrieve.Send a `GET` request to `/credit/substatuses` to retrieve existing substatus tokens. /// A public Marqeta.Core.Sdk.Substatuses.Item.WithSubstatus_tokenItemRequestBuilder this[string position] { @@ -45,7 +45,7 @@ public SubstatusesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Get list of substatuses + /// Retrieve an array of substatuses.This endpoint supports <</core-api/sorting-and-pagination,sorting and pagination>>. /// /// A /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public SubstatusesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, Marqeta.Core.Sdk.Models.SubstatusPage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a sub status for an existing user or account. + /// Create a new substatus for a credit account or user. /// /// A /// Contains information relevant to creating a substatus. @@ -93,7 +93,7 @@ public SubstatusesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, Marqeta.Core.Sdk.Models.SubstatusResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get list of substatuses + /// Retrieve an array of substatuses.This endpoint supports <</core-api/sorting-and-pagination,sorting and pagination>>. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -112,7 +112,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a sub status for an existing user or account. + /// Create a new substatus for a credit account or user. /// /// A /// Contains information relevant to creating a substatus. @@ -143,11 +143,11 @@ public Marqeta.Core.Sdk.Substatuses.SubstatusesRequestBuilder WithUrl(string raw return new Marqeta.Core.Sdk.Substatuses.SubstatusesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get list of substatuses + /// Retrieve an array of substatuses.This endpoint supports <</core-api/sorting-and-pagination,sorting and pagination>>. /// public class SubstatusesRequestBuilderGetQueryParameters { - /// The account token to filter by. + /// Unique identifier of the account for which to retrieve substatuses.Send a `GET` request to `/credit/accounts` to retrieve existing account tokens. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("account_token")] @@ -160,15 +160,16 @@ public class SubstatusesRequestBuilderGetQueryParameters /// The number of resources to retrieve. [QueryParameter("count")] public int? Count { get; set; } + /// Denotes whether a substatus is active. [QueryParameter("is_active")] public bool? IsActive { get; set; } /// Field on which to sort.Prefix the field name with a hyphen (`-`) to sort in descending order.Omit the hyphen to sort in ascending order. [QueryParameter("sort_by")] public Marqeta.Core.Sdk.Substatuses.GetSort_byQueryParameterType? SortBy { get; set; } - /// Show n-th paginated page + /// Sort order index of the first resource in the returned array. [QueryParameter("start_index")] public int? StartIndex { get; set; } - /// comma-deliminited list of substatuses types to includeAllowable values:HARDSHIP,FRAUD,MLA,SCRA,DECEASED,BANKRUPTCY + /// Comma-delimited list of substatus types to include.Allowable values:`HARDSHIP`, `FRAUD`, `MLA`, `SCRA`, `DECEASED`, `BANKRUPTCY`, `POWER_OF_ATTORNEY` #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("substatuses")] @@ -178,7 +179,7 @@ public class SubstatusesRequestBuilderGetQueryParameters [QueryParameter("substatuses")] public Marqeta.Core.Sdk.Substatuses.GetSubstatusesQueryParameterType[] Substatuses { get; set; } #endif - /// The user token to filter by. + /// Unique identifier of the user for which to retrieve substatuses.Send a `GET` request to `/users` to retrieve existing user tokens. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("user_token")] diff --git a/Marqeta.Core.Sdk/Generated/kiota-lock.json b/Marqeta.Core.Sdk/Generated/kiota-lock.json index 7a670aa0..ff185bf1 100644 --- a/Marqeta.Core.Sdk/Generated/kiota-lock.json +++ b/Marqeta.Core.Sdk/Generated/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "2BBFD10C1B8DCF5AC2928F5839DD4245053F45CB486F117A196D8A3521D0B631762BBA7672B4352E6239CEE5EB8A0677A421569CF231284ED6488C91947BEF17", + "descriptionHash": "C5095925EBE27269616A30937890194CB5B774F9ED870683772B62FCBC44E217C892EDEA0D95083CA0F08109BB99CE89744A9A61CD29DFB580F6F3B03796C6B6", "descriptionLocation": "..\\CoreAPI.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.15.0", diff --git a/Marqeta.Core.Sdk/SourceCoreAPI.yaml b/Marqeta.Core.Sdk/SourceCoreAPI.yaml index 4d383eaa..3a941229 100644 --- a/Marqeta.Core.Sdk/SourceCoreAPI.yaml +++ b/Marqeta.Core.Sdk/SourceCoreAPI.yaml @@ -6,7 +6,7 @@ info: contact: name: Marqeta email: support@marqeta.com - version: 3.0.19 + version: 3.0.24 servers: - url: /v3 paths: @@ -382,10 +382,12 @@ paths: description: Consumer credit account for John Jacob external_offer_id: external-offer-11 latest_statement_cycle_type: TRANSACTING + max_apr_schedules: [ ] name: John Jacob remaining_min_payment_due: 25 remaining_statement_balance: 2768 status: ACTIVE + substatuses: [ ] token: credit_account_token1234 type: CONSUMER updated_time: '2023-08-26T22:55:52.3040000+00:00' @@ -400,6 +402,7 @@ paths: updated_date: '2023-08-26T22:55:52.1060000+00:00' fees: [ ] type: PURCHASE + user_substatuses: [ ] user_token: user_token1234 end_index: 4 is_more: true @@ -503,10 +506,12 @@ paths: description: Consumer credit account for Jack Smith external_offer_id: my_ext_offer_12 latest_statement_cycle_type: TRANSACTING + max_apr_schedules: [ ] name: Jack Smith's account remaining_min_payment_due: 0 remaining_statement_balance: 0 status: UNACTIVATED + substatuses: [ ] token: my_account_token_12 type: CONSUMER updated_time: '2021-09-03T19:06:27.9150000+00:00' @@ -521,6 +526,7 @@ paths: updated_date: '2021-09-03T19:06:27.9270000+00:00' fees: [ ] type: PURCHASE + user_substatuses: [ ] user_token: user1234 default: description: Unexpected error @@ -710,10 +716,12 @@ paths: description: Consumer credit account for John Jacob external_offer_id: external-offer-11 latest_statement_cycle_type: TRANSACTING + max_apr_schedules: [ ] name: John Jacob remaining_min_payment_due: 25 remaining_statement_balance: 2768 status: ACTIVE + substatuses: [ ] token: credit_account_token1234 type: CONSUMER updated_time: '2021-08-26T22:55:52.3040000+00:00' @@ -728,6 +736,7 @@ paths: updated_date: '2021-08-26T22:55:52.1060000+00:00' fees: [ ] type: PURCHASE + user_substatuses: [ ] user_token: user_token1234 default: description: Unexpected error @@ -1628,6 +1637,24 @@ paths: - '-lastModifiedTime' type: string default: '-lastModifiedTime' + - name: ledger_entry_tokens + in: query + description: "Unique identifier of the journal entry in dispute.\nThis type of identifier can only be used for `authorization.clearing`-type journal entries." + style: form + schema: + type: array + items: + type: string + x-allowableValues: Existing `authorization.clearing`-type journal entry token + - name: statuses + in: query + description: Status of the dispute. + style: form + schema: + type: array + items: + $ref: '#/components/schemas/DisputeStatus' + x-allowableValues: Valid dispute status responses: '200': description: Expected response to a valid request @@ -5231,7 +5258,7 @@ paths: schema: $ref: '#/components/schemas/Error' security: - - zionToken: [ ] + - nileToken: [ ] /admin/replayfailedstatements: post: tags: @@ -5253,7 +5280,7 @@ paths: schema: $ref: '#/components/schemas/Error' security: - - zionToken: [ ] + - nileToken: [ ] '/admin/replayfailedstatements/{short_code}': post: tags: @@ -5283,7 +5310,7 @@ paths: schema: $ref: '#/components/schemas/Error' security: - - zionToken: [ ] + - nileToken: [ ] /admin/scheduleStatements: post: tags: @@ -5305,7 +5332,7 @@ paths: schema: $ref: '#/components/schemas/Error' security: - - zionToken: [ ] + - nileToken: [ ] '/admin/{short_code}/replayfailedstatement/{account_token}': post: tags: @@ -5342,7 +5369,7 @@ paths: schema: $ref: '#/components/schemas/Error' security: - - zionToken: [ ] + - nileToken: [ ] '/admin/{short_code}/retryachpayments': post: tags: @@ -5378,6 +5405,8 @@ paths: application/json: schema: $ref: '#/components/schemas/Error' + security: + - nileToken: [ ] /authcontrols: get: tags: @@ -6113,13 +6142,13 @@ paths: $ref: '#/components/schemas/BankTransferListResponse' example: count: 2 - created_time: '2023-03-22T18:01:00.0000000+00:00' + created_time: '2024-03-22T18:01:00.0000000+00:00' data: - amount: 10.49 - created_time: '2023-03-20T18:32:32.0000000+00:00' + created_time: '2024-03-20T18:32:32.0000000+00:00' currency_code: USD funding_source_token: d331b4b2-cef5-49a3-9c41-75d8f4e15cfz - last_modified_time: '2023-03-20T18:33:32.0000000+00:00' + last_modified_time: '2024-03-20T18:33:32.0000000+00:00' memo: Bank transfer standard_entry_class_code: WEB statement_descriptor: ACHTRNSFR @@ -6129,13 +6158,13 @@ paths: transitions: - bank_transfer_token: cf3b49d8-bd68-4fb1-8da5-c170cff3d788 channel: API - created_time: '2023-03-20T18:32:32.0000000+00:00' - last_modified_time: '2023-03-20T18:33:32.0000000+00:00' + created_time: '2024-03-20T18:32:32.0000000+00:00' + last_modified_time: '2024-03-20T18:33:32.0000000+00:00' reason: Created by `POST` call on API status: PENDING token: 0565329e-405d-45ca-9ab4-ca0cd07eca4c type: PUSH - - amount: 100 + - amount: 100.11 currency_code: USD funding_source_token: bbaefe8f-f5d0-43f6-8576-16f562d23f3f standard_entry_class_code: WEB @@ -6146,22 +6175,22 @@ paths: transitions: - bank_transfer_token: f8b8245f-fc36-49f3-9f9f-f63b159501b7 channel: API - created_time: '2023-03-22T18:01:00.0000000+00:00' - last_modified_time: '2023-03-22T18:02:00.0000000+00:00' + created_time: '2024-03-22T18:01:00.0000000+00:00' + last_modified_time: '2024-03-22T18:02:00.0000000+00:00' reason: Created by `POST` call on API status: PENDING token: 1d208bf9-8439-4b35-9c43-6d5bc74995c7 - bank_transfer_token: f8b8245f-fc36-49f3-9f9f-f63b159501b7 channel: API - created_time: '2023-03-22T18:01:17.0000000+00:00' - last_modified_time: '2023-03-22T18:01:27.0000000+00:00' + created_time: '2024-03-22T18:01:17.0000000+00:00' + last_modified_time: '2024-03-22T18:01:27.0000000+00:00' reason: Created by `POST` call on API status: PROCESSING token: 55f5b1ac-39f6-484d-8284-116046a2efaa type: PUSH end_index: 1 is_more: false - last_modified_time: '2023-03-22T18:02:17.0000000+00:00' + last_modified_time: '2024-03-22T18:02:17.0000000+00:00' start_index: 0 '400': description: Bad request @@ -6198,10 +6227,10 @@ paths: $ref: '#/components/schemas/bank_transfer_response_model' example: amount: 10.49 - created_time: '2023-03-20T18:32:32.0000000+00:00' + created_time: '2024-03-20T18:32:32.0000000+00:00' currency_code: USD funding_source_token: d331b4b2-cef5-49a3-9c41-75d8f4e15cfz - last_modified_time: '2023-03-20T18:32:32.0000000+00:00' + last_modified_time: '2024-03-20T18:32:32.0000000+00:00' memo: Bank transfer standard_entry_class_code: WEB statement_descriptor: ACHTRNSFR @@ -6211,8 +6240,8 @@ paths: transitions: - bank_transfer_token: cf3b49d8-bd68-4fb1-8da5-c170cff3d788 channel: API - created_time: '2023-03-20T18:32:32.0000000+00:00' - last_modified_time: '2023-03-20T18:32:32.0000000+00:00' + created_time: '2024-03-20T18:32:32.0000000+00:00' + last_modified_time: '2024-03-20T18:32:32.0000000+00:00' reason: Created by `POST` call on API status: PENDING token: 0565329e-405d-45ca-9ab4-ca0cd07eca4c @@ -6225,11 +6254,11 @@ paths: post: tags: - Funding via ACH (Beta) - summary: Apply a provisional credit to ACH transfer - description: Applies a provisional credit to an ACH transfer. + summary: Perform faster funds ACH transfer + description: Use this endpoint to post funds from an existing bank transfer more quickly to the cardholder's account. operationId: postApplyProvisionalCreditToBankTransfer requestBody: - description: ACH early funds request model + description: Early funds request model content: application/json: schema: @@ -6270,7 +6299,7 @@ paths: reason: Created by POST call on API status: PENDING token: 0565329e-405d-45ca-9ab4-ca0cd07eca4c - type: PUSH + type: PULL '400': description: Bad request '500': @@ -6314,7 +6343,7 @@ paths: default: 0 - name: sort_by in: query - description: "Field on which to sort.\nUse any field in the resource model, or one of the system fields lastModifiedTime or createdTime.\nPrefix the field name with a hyphen (-) to sort in descending order.\nOmit the hyphen to sort in ascending order." + description: "Field on which to sort.\nUse any field in the resource model, or one of the system fields `lastModifiedTime` or `createdTime`.\nPrefix the field name with a hyphen (-) to sort in descending order.\nOmit the hyphen to sort in ascending order." style: form schema: type: string @@ -6337,15 +6366,15 @@ paths: data: - bank_transfer_token: f8b8245f-fc36-49f3-9f9f-f63b159501b7 channel: API - created_time: '2023-03-22T18:01:00.0000000+00:00' - last_modified_time: '2023-03-22T18:01:00.0000000+00:00' + created_time: '2024-03-22T18:01:00.0000000+00:00' + last_modified_time: '2024-03-22T18:01:00.0000000+00:00' reason: Created by `POST` call on API status: PENDING token: 1d208bf9-8439-4b35-9c43-6d5bc74995c7 - bank_transfer_token: f8b8245f-fc36-49f3-9f9f-f63b159501b7 channel: API - created_time: '2023-03-22T18:01:17.0000000+00:00' - last_modified_time: '2023-03-22T18:01:17.0000000+00:00' + created_time: '2024-03-22T18:01:17.0000000+00:00' + last_modified_time: '2024-03-22T18:01:17.0000000+00:00' reason: Created by `POST` call on API status: PROCESSING token: 55f5b1ac-39f6-484d-8284-116046a2efaa @@ -6383,8 +6412,8 @@ paths: example: bank_transfer_token: f8b8245f-fc36-49f3-9f9f-f63b159501b7 channel: API - created_time: '2023-03-22T18:01:17.0000000+00:00' - last_modified_time: '2023-03-22T18:01:17.0000000+00:00' + created_time: '2024-03-22T18:01:17.0000000+00:00' + last_modified_time: '2024-03-22T18:01:17.0000000+00:00' status: CANCELLED token: 55f5b1ac-39f6-484d-8284-116046a2efaa '400': @@ -6414,11 +6443,11 @@ paths: schema: $ref: '#/components/schemas/bank_transfer_response_model' example: - amount: 100 - created_time: '2023-03-22T18:01:00.0000000+00:00' + amount: 100.11 + created_time: '2024-03-22T18:01:00.0000000+00:00' currency_code: USD funding_source_token: bbaefe8f-f5d0-43f6-8576-16f562d23f3f - last_modified_time: '2023-03-22T18:01:17.0000000+00:00' + last_modified_time: '2024-03-22T18:01:17.0000000+00:00' standard_entry_class_code: WEB statement_descriptor: ACHTRNSFR status: PROCESSING @@ -6427,15 +6456,15 @@ paths: transitions: - bank_transfer_token: f8b8245f-fc36-49f3-9f9f-f63b159501b7 channel: API - created_time: '2023-03-22T18:01:00.0000000+00:00' - last_modified_time: '2023-03-22T18:01:00.0000000+00:00' + created_time: '2024-03-22T18:01:00.0000000+00:00' + last_modified_time: '2024-03-22T18:01:00.0000000+00:00' reason: Created by `POST` call on API status: PENDING token: 1d208bf9-8439-4b35-9c43-6d5bc74995c7 - bank_transfer_token: f8b8245f-fc36-49f3-9f9f-f63b159501b7 channel: API - created_time: '2023-03-22T18:01:17.0000000+00:00' - last_modified_time: '2023-03-22T18:01:17.0000000+00:00' + created_time: '2024-03-22T18:01:17.0000000+00:00' + last_modified_time: '2024-03-22T18:01:17.0000000+00:00' reason: Created by `POST` call on API status: PROCESSING token: 55f5b1ac-39f6-484d-8284-116046a2efaa @@ -6792,7 +6821,7 @@ paths: default: 0 - name: sort_by in: query - description: "Field on which to sort.\nPrefix the field name with a hyphen (`-`) to sort in descending order.\nOmit the hyphen to sort in ascending order.\n\n*NOTE:*\nYou must sort using system field names such as `lastModifiedTime`, and not by the field names appearing in response bodies such as `last_modified_time`." + description: "Field on which to sort.\nPrefix the field name with a hyphen (`-`) to sort in descending order.\nOmit the hyphen to sort in ascending order.\n\n*NOTE:*\nYou must sort using system field names such as `lastModifiedTime`, not by the field names appearing in response bodies: for example, `last_modified_time`." style: form schema: enum: @@ -6820,7 +6849,7 @@ paths: data: - apr_policy_detail: created_time: '2024-04-01T23:41:58.8020000+00:00' - description: A golden APR policy + description: A gold APR policy effective_date: '2024-05-01T00:00:00.0000000+01:00' name: Gold APR Policy purchases: @@ -6846,7 +6875,7 @@ paths: max: 3500 min: 50 currency_code: USD - description: A golden credit product policy + description: A gold credit product policy interest_calculation: application_of_credits: cycle_type: END_REVOLVING @@ -6887,7 +6916,7 @@ paths: usage: - PURCHASE credit_product_policy_token: my_credit_product_policy_token_1234 - description: A golden + description: A gold credit bundle document_policy_detail: account_statement: template_token: an_account_statement_template_token1234 @@ -6960,7 +6989,7 @@ paths: default_method: FLAT default_value: 10 created_time: '2024-04-01T23:41:58.8020000+00:00' - description: A golden fee policy + description: A gold fee policy name: Gold Fee Policy token: my_fee_policy_token_1234 updated_time: '2024-04-05T16:04:48.6430000+00:00' @@ -6968,30 +6997,29 @@ paths: name: Gold Credit Bundle offer_policy_detail: created_time: '2024-04-01T23:41:58.8020000+00:00' - description: A golden offer policy + description: A gold offer policy name: Gold Offer Policy token: my_offer_policy_token_1234 updated_time: '2024-04-05T16:04:48.6430000+00:00' offer_policy_token: my_offer_policy_token_1234 parent_token: my_parent_token_1234 reward_policy_detail: - created_time: '2024-04-01T23:41:58.8020000+00:00' - description: A golden reward policy + created_time: '2022-04-01T23:41:58.8020000+00:00' + description: A gold reward policy name: Gold Reward Policy rules: - - filters: - amount: - greater_than: 1 - less_than: 10 - mcc_dynamic: - includes: - - HIGHEST_SPEND - outcome: - max_amount: 100 - percentage: 20 - type: CASHBACK + - amount: + attributes: + mcc: + - 0001-1499 + - '1500' + calculation_type: PER_TRANSACTION + description: Earn 3x on selected categories. + multiplier: 3 + type: MULTIPLIER_PER_TRANSACTION + settlement_strategy: STATEMENT token: my_reward_policy_token_1234 - updated_time: '2024-04-05T16:04:48.6430000+00:00' + updated_time: '2022-04-05T16:04:48.6430000+00:00' reward_policy_token: my_reward_policy_token_1234 status: DRAFT token: my_bundle_token_1234 @@ -7065,7 +7093,7 @@ paths: usage: - PURCHASE credit_product_policy_token: my_credit_product_policy_token_4321 - description: A silver + description: A silver credit bundle document_policy_detail: account_statement: template_token: an_account_statement_template_token4321 @@ -7153,23 +7181,22 @@ paths: offer_policy_token: my_offer_policy_token_4321 parent_token: my_parent_token_4321 reward_policy_detail: - created_time: '2024-04-01T23:41:58.8020000+00:00' - description: A silver reward policy - name: Silver Reward Policy + created_time: '2022-04-01T23:41:58.8020000+00:00' + description: A gold reward policy + name: Gold Reward Policy rules: - - filters: - amount: - greater_than: 1 - less_than: 10 - mcc_dynamic: - includes: - - HIGHEST_SPEND - outcome: - max_amount: 100 - percentage: 20 - type: CASHBACK + - amount: + attributes: + mcc: + - 0001-1499 + - '1500' + calculation_type: PER_TRANSACTION + description: Earn 3x on selected categories. + multiplier: 3 + type: MULTIPLIER_PER_TRANSACTION + settlement_strategy: STATEMENT token: my_reward_policy_token_4321 - updated_time: '2024-04-05T16:04:48.6430000+00:00' + updated_time: '2022-04-05T16:04:48.6430000+00:00' reward_policy_token: my_reward_policy_token_4321 status: DRAFT token: my_bundle_token_4321 @@ -7199,7 +7226,7 @@ paths: example: apr_policy_token: my_apr_policy_token_1234 credit_product_policy_token: my_credit_product_policy_token_1234 - description: A golden + description: A gold credit bundle policy document_policy_token: my_document_policy_token_1234 fee_policy_token: my_fee_policy_token_1234 name: Gold Credit Bundle @@ -7218,7 +7245,7 @@ paths: example: apr_policy_detail: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden APR policy + description: A gold APR policy effective_date: '2022-05-01T00:00:00.0000000+01:00' name: Gold APR Policy purchases: @@ -7244,7 +7271,7 @@ paths: max: 3500 min: 50 currency_code: USD - description: A golden credit product policy + description: A gold credit product policy interest_calculation: application_of_credits: cycle_type: END_REVOLVING @@ -7285,7 +7312,7 @@ paths: usage: - PURCHASE credit_product_policy_token: my_credit_product_policy_token_1234 - description: A golden + description: A gold credit bundle policy document_policy_detail: account_statement: template_token: an_account_statement_template_token1234 @@ -7358,7 +7385,7 @@ paths: default_method: FLAT default_value: 10 created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden fee policy + description: A gold fee policy name: Gold Fee Policy token: my_fee_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' @@ -7366,7 +7393,7 @@ paths: name: Gold Credit Bundle offer_policy_detail: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden offer policy + description: A gold offer policy name: Gold Offer Policy token: my_offer_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' @@ -7374,20 +7401,19 @@ paths: parent_token: my_parent_token_1234 reward_policy_detail: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden reward policy + description: A gold reward policy name: Gold Reward Policy rules: - - filters: - amount: - greater_than: 1 - less_than: 10 - mcc_dynamic: - includes: - - HIGHEST_SPEND - outcome: - max_amount: 100 - percentage: 20 - type: CASHBACK + - amount: + attributes: + mcc: + - 0001-1499 + - '1500' + calculation_type: PER_TRANSACTION + description: Earn 3x on selected categories. + multiplier: 3 + type: MULTIPLIER_PER_TRANSACTION + settlement_strategy: STATEMENT token: my_reward_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' reward_policy_token: my_reward_policy_token_1234 @@ -7437,7 +7463,7 @@ paths: example: apr_policy_detail: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden APR policy + description: A gold APR policy effective_date: '2022-05-01T00:00:00.0000000+01:00' name: Gold APR Policy purchases: @@ -7463,7 +7489,7 @@ paths: max: 3500 min: 50 currency_code: USD - description: A golden credit product policy + description: A gold credit product policy interest_calculation: application_of_credits: cycle_type: END_REVOLVING @@ -7504,7 +7530,7 @@ paths: usage: - PURCHASE credit_product_policy_token: my_credit_product_policy_token_1234 - description: A golden + description: A gold credit bundle document_policy_detail: account_statement: template_token: an_account_statement_template_token1234 @@ -7577,7 +7603,7 @@ paths: default_method: FLAT default_value: 10 created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden fee policy + description: A gold fee policy name: Gold Fee Policy token: my_fee_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' @@ -7585,7 +7611,7 @@ paths: name: Gold Credit Bundle offer_policy_detail: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden offer policy + description: A gold offer policy name: Gold Offer Policy token: my_offer_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' @@ -7593,20 +7619,19 @@ paths: parent_token: my_parent_token_1234 reward_policy_detail: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden reward policy + description: A gold reward policy name: Gold Reward Policy rules: - - filters: - amount: - greater_than: 1 - less_than: 10 - mcc_dynamic: - includes: - - HIGHEST_SPEND - outcome: - max_amount: 100 - percentage: 20 - type: CASHBACK + - amount: + attributes: + mcc: + - 0001-1499 + - '1500' + calculation_type: PER_TRANSACTION + description: Earn 3x on selected categories. + multiplier: 3 + type: MULTIPLIER_PER_TRANSACTION + settlement_strategy: STATEMENT token: my_reward_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' reward_policy_token: my_reward_policy_token_1234 @@ -7625,7 +7650,7 @@ paths: tags: - Bundles (Beta) summary: Update bundle - description: 'Update a specific bundle that is not `ACTIVE` or `ARCHIVED`. Bundles are created in a `DRAFT` state, and are still modifiable at this point. Using the transitions endpoint a bundle can be transitioned from `DRAFT`, to `ACTIVE`. Once a bundle is active, it is immutable, and cannot be modified.' + description: "Update a specific bundle that is not `ACTIVE` or `ARCHIVED`.\nBundles are created in a `DRAFT` state, and are still modifiable at this point.\nUsing the transitions endpoint a bundle can be transitioned from `DRAFT`, to `ACTIVE`.\nOnce a bundle is active, it cannot be modified." operationId: updateBundle parameters: - name: token @@ -7662,7 +7687,7 @@ paths: example: apr_policy_detail: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden APR policy + description: A gold APR policy effective_date: '2022-05-01T00:00:00.0000000+01:00' name: Gold APR Policy purchases: @@ -7688,7 +7713,7 @@ paths: max: 3500 min: 50 currency_code: USD - description: A golden credit product policy + description: A gold credit product policy interest_calculation: application_of_credits: cycle_type: END_REVOLVING @@ -7802,7 +7827,7 @@ paths: default_method: FLAT default_value: 10 created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden fee policy + description: A gold fee policy name: Gold Fee Policy token: my_fee_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' @@ -7810,7 +7835,7 @@ paths: name: Renamed Bundle offer_policy_detail: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden offer policy + description: A gold offer policy name: Gold Offer Policy token: my_offer_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' @@ -7818,20 +7843,19 @@ paths: parent_token: my_parent_token_1234 reward_policy_detail: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden reward policy + description: A gold reward policy name: Gold Reward Policy rules: - - filters: - amount: - greater_than: 1 - less_than: 10 - mcc_dynamic: - includes: - - HIGHEST_SPEND - outcome: - max_amount: 100 - percentage: 20 - type: CASHBACK + - amount: + attributes: + mcc: + - 0001-1499 + - '1500' + calculation_type: PER_TRANSACTION + description: Earn 3x on selected categories. + multiplier: 3 + type: MULTIPLIER_PER_TRANSACTION + settlement_strategy: STATEMENT token: my_reward_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' reward_policy_token: my_reward_policy_token_1234 @@ -7872,7 +7896,7 @@ paths: example: apr_policy_detail: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden APR policy + description: A gold APR policy effective_date: '2022-05-01T00:00:00.0000000+01:00' name: Gold APR Policy purchases: @@ -7898,7 +7922,7 @@ paths: max: 3500 min: 50 currency_code: USD - description: A golden credit product policy + description: A gold credit product policy interest_calculation: application_of_credits: cycle_type: END_REVOLVING @@ -7939,7 +7963,7 @@ paths: usage: - PURCHASE credit_product_policy_token: my_credit_product_policy_token_1234 - description: A golden + description: A gold credit bundle document_policy_detail: account_statement: template_token: an_account_statement_template_token1234 @@ -8012,7 +8036,7 @@ paths: default_method: FLAT default_value: 10 created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden fee policy + description: A gold fee policy name: Gold Fee Policy token: my_fee_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' @@ -8020,7 +8044,7 @@ paths: name: Gold Credit Bundle offer_policy_detail: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden offer policy + description: A gold offer policy name: Gold Offer Policy token: my_offer_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' @@ -8028,20 +8052,19 @@ paths: parent_token: my_parent_token_1234 reward_policy_detail: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden reward policy + description: A gold reward policy name: Gold Reward Policy rules: - - filters: - amount: - greater_than: 1 - less_than: 10 - mcc_dynamic: - includes: - - HIGHEST_SPEND - outcome: - max_amount: 100 - percentage: 20 - type: CASHBACK + - amount: + attributes: + mcc: + - 0001-1499 + - '1500' + calculation_type: PER_TRANSACTION + description: Earn 3x on selected categories. + multiplier: 3 + type: MULTIPLIER_PER_TRANSACTION + settlement_strategy: STATEMENT token: my_reward_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' reward_policy_token: my_reward_policy_token_1234 @@ -8127,7 +8150,7 @@ paths: tags: - Bundles (Beta) summary: Promote bundle - description: 'Promote a specific bundle, which replaces the current active bundle and activates the promoted bundle.' + description: Promote a specific bundle that replaces the current active bundle and activates the promoted bundle. operationId: promoteBundle parameters: - name: token @@ -8304,20 +8327,19 @@ paths: parent_token: my_parent_token_4321 reward_policy_detail: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A silver reward policy - name: Silver Reward Policy + description: A gold reward policy + name: Gold Reward Policy rules: - - filters: - amount: - greater_than: 1 - less_than: 10 - mcc_dynamic: - includes: - - HIGHEST_SPEND - outcome: - max_amount: 100 - percentage: 20 - type: CASHBACK + - amount: + attributes: + mcc: + - 0001-1499 + - '1500' + calculation_type: PER_TRANSACTION + description: Earn 3x on selected categories. + multiplier: 3 + type: MULTIPLIER_PER_TRANSACTION + settlement_strategy: STATEMENT token: my_reward_policy_token_4321 updated_time: '2022-04-05T16:04:48.6430000+00:00' reward_policy_token: my_reward_policy_token_4321 @@ -10755,6 +10777,7 @@ paths: description: Number of card transitions to retrieve. style: form schema: + minimum: 0 type: integer format: int32 default: 5 @@ -13246,7 +13269,7 @@ paths: tags: - Account Holder Funding Sources summary: Create ACH source - description: "Create an ACH funding source for an existing account holder.\nSpecify the account holder of the funding source by passing a user or business token.\n\nWhen adding an ACH funding source, a small amount is deposited in the bank account as a test.\nThe test deposit should be reflected in the account after two to three business days.\nYou must then make an API call to verify the deposit amount in order to activate the ACH account.\nSee <> on this page for more information.\n\nThe response body returns details about the account, including the verification status.\nPossible ACH verification status values include `ACH_VERIFIED`, `ACH_FAILED`, and `VERIFICATION_PENDING`." + description: "Create an ACH funding source for an existing account holder.\nSpecify the account holder of the funding source by passing a user or business token.\n\nThe response body returns details about the account, including the verification status.\nPossible ACH verification status values include `ACH_VERIFIED`, `ACH_FAILED`, and `VERIFICATION_PENDING`." operationId: postFundingsourcesAch requestBody: content: @@ -13382,83 +13405,6 @@ paths: description: Not found '500': description: Server error - put: - tags: - - Account Holder Funding Sources - summary: Verify or update ACH source - description: "Verify or update an ACH funding source.\n\nIf you are verifying the ACH source, include the verification amounts in the body of the request.\nACH verification will fail if the verification amounts are not entered in the correct order.\n`verify_amount1` must match the first deposit amount, and `verify_amount2` must match the second.\n\nIf you are updating the ACH source, include the `active` field instead.\nThe `active` field is the only field you can update." - operationId: putFundingsourcesAchFundingsourcetoken - parameters: - - name: funding_source_token - in: path - description: "Unique identifier of the funding source.\n\nSend a `GET` request to `/fundingsources/user/{user_token}` to retrieve existing funding source tokens for a user or to `/fundingsources/business/{business_token}` to retrieve existing funding source tokens for a business." - required: true - style: simple - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ach_verification_model' - example: - active: false - verify_amount1: 0.43 - verify_amount2: 0.11 - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/ach_response_model' - example: - account_suffix: '4321' - account_type: savings - active: false - created_time: '2023-01-26T20:03:05.0000000+00:00' - date_sent_for_verification: '2023-01-27T18:00:00.0000000+00:00' - date_verified: '2023-01-27T18:15:00.0000000+00:00' - is_default_account: false - last_modified_time: '2023-02-26T20:03:05.0000000+00:00' - name_on_account: Jane Doe - token: my_user_01_fundingsource_token_01 - user_token: my_user_01 - verification_status: ACH_VERIFIED - '400': - description: Bad request - '500': - description: Server error - '/fundingsources/ach/{funding_source_token}/verificationamounts': - get: - tags: - - Account Holder Funding Sources - summary: Retrieve ACH verification amounts - description: "In your sandbox environment, retrieve the amounts used to verify the association with your ACH account.\n\nUse this endpoint for testing purposes only.\nIn production, verification amounts are retrieved from the bank statement of the account holder." - operationId: getFundingsourcesAchFundingsourcetokenVerificationamounts - parameters: - - name: funding_source_token - in: path - description: "Unique identifier of the funding source.\n\nSend a `GET` request to `/fundingsources/user/{user_token}` to retrieve existing funding source tokens for a user or to `/fundingsources/business/{business_token}` to retrieve existing funding source tokens for a business." - required: true - style: simple - schema: - type: string - responses: - '200': - description: Success - content: - application/json: - schema: - $ref: '#/components/schemas/ach_verification_model' - example: - token: jane_doe_ach_token - verify_amount1: 0.43 - verify_amount2: 0.11 - '400': - description: Bad request - '500': - description: Server error /fundingsources/addresses: post: tags: @@ -15392,6 +15338,14 @@ paths: - '-lastModifiedTime' type: string default: '-lastModifiedTime' + - name: statuses + in: query + description: Array of statuses to use for filtering payment sources. + style: form + schema: + type: array + items: + $ref: '#/components/schemas/PaymentSourceStatusEnum' responses: '200': description: Response containing a list of all payment sources for a provided account @@ -15863,7 +15817,7 @@ paths: tags: - PINs summary: Create or update PIN - description: "Creates or updates a personal identification number (PIN) for an existing card.\n\nIf you want to manage a card's PIN, first create a new control token for the card by sending a `POST` request to `/pins/controltoken`, and then use that token to update the PIN.\nYou must create a card before you can manage a PIN.\n\nUnless PIN reveal functionality has been enabled for your program, you cannot retrieve a PIN that has previously been created.\nIf the PIN has been forgotten, you must either update the card's PIN or create a new card and PIN.\n\nIf you have enabled PIN reveal functionality for your program, you can send a `POST` request to the `/pins/reveal` endpoint to retrieve an existing PIN.\nSee <> on this page for details.\n\n[WARNING]\nSending a request to this endpoint requires PCI DSS compliance.\nYou must comply with PCI DSS data security requirements if you want to store, transmit, or process sensitive card data such as the cardholder's primary account number (PAN), personal identification number (PIN), and card expiration date." + description: "Creates or updates a personal identification number (PIN) for an existing card.\nAlthough cardholders might choose a four-, five-, or six-digit PIN if they set their PIN at an automated teller machine, they can only set a four-digit PIN using Marqeta's Set PIN widget or the create or update PIN endpoint (`PUT /pins`).\nCardholders can update their PIN through the API regardless of its length, but the new PIN value they choose must contain four digits.\n\nIf you want to manage a card's PIN, first create a new control token for the card by sending a `POST` request to `/pins/controltoken`, and then use that token to update the PIN.\nYou must create a card before you can manage a PIN.\n\nUnless PIN reveal functionality has been enabled for your program, you cannot retrieve a PIN that has previously been created.\nIf the PIN has been forgotten, you must either update the card's PIN or create a new card and PIN.\n\nIf you have enabled PIN reveal functionality for your program, you can send a `POST` request to the `/pins/reveal` endpoint to retrieve an existing PIN.\nSee <> on this page for details.\n\n[WARNING]\nSending a request to this endpoint requires PCI DSS compliance.\nYou must comply with PCI DSS data security requirements if you want to store, transmit, or process sensitive card data such as the cardholder's primary account number (PAN), personal identification number (PIN), and card expiration date." operationId: putPins requestBody: content: @@ -15917,7 +15871,7 @@ paths: tags: - PINs summary: Reveal PIN - description: "Reveals the personal identification number (PIN) of an existing, active card.\n\n*WARNING:* Only use this endpoint to access a PIN in order to reveal it to its cardholder.\nDo not use this endpoint for the purpose of storing a PIN at any location.\n\nSending a request to this endpoint requires PCI DSS compliance.\nYou must comply with PCI DSS data security requirements if you want to store, transmit, or process sensitive card data such as the cardholder's primary account number (PAN), personal identification number (PIN), and card expiration date.\n\nIf you want instead to update a card's PIN, send a `PUT` request to the `/pins` endpoint.\nSee <> on this page for details.\n\nRevealing a card's PIN is a two-step process.\nYou must first create a new control token for the card by sending a `POST` request to `/pins/controltoken`, and then use that token to reveal the PIN." + description: "Reveals the personal identification number (PIN) of an existing, active card.\nBe aware that while a cardholder can only set a four-digit PIN using the Marqeta Set PIN widget or `PUT /pins` API, you may see a four-, five-, or six-digit PIN in cases where your cardholders have set a new PIN at an automated teller machine.\n\n[WARNING]\nOnly use this endpoint to access a PIN in order to reveal it to its cardholder.\nDo not use this endpoint for the purpose of storing a PIN at any location.\n\nSending a request to this endpoint requires PCI DSS compliance.\nYou must comply with PCI DSS data security requirements if you want to store, transmit, or process sensitive card data such as the cardholder's primary account number (PAN), personal identification number (PIN), and card expiration date.\n\nIf you want to update a card's PIN instead, send a `PUT` request to the `/pins` endpoint.\nSee <> on this page for details.\n\nRevealing a card's PIN is a two-step process.\nYou must first create a new control token for the card by sending a `POST` request to `/pins/controltoken`, and then use that token to reveal the PIN." operationId: revealPins requestBody: content: @@ -15980,7 +15934,7 @@ paths: count: 2 data: - created_time: '2024-04-01T23:41:58.8020000+00:00' - description: A golden APR policy + description: A gold APR policy effective_date: '2024-05-01T00:00:00.0000000+01:00' name: Gold APR Policy purchases: @@ -16030,7 +15984,7 @@ paths: schema: $ref: '#/components/schemas/PolicyAprCreateReq' example: - description: A golden APR policy + description: A gold APR policy name: Gold APR Policy purchases: external_token: my_external_purchase_token1234 @@ -16051,7 +16005,7 @@ paths: $ref: '#/components/schemas/PolicyAprResponse' example: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden APR policy + description: A gold APR policy effective_date: '2022-05-01T00:00:00.0000000+01:00' name: Gold APR Policy purchases: @@ -16097,7 +16051,7 @@ paths: $ref: '#/components/schemas/PolicyAprResponse' example: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden APR policy + description: A gold APR policy effective_date: '2022-05-01T00:00:00.0000000+01:00' name: Gold APR Policy purchases: @@ -16206,7 +16160,7 @@ paths: $ref: '#/components/schemas/PolicyAprResponse' example: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden APR policy + description: A gold APR policy effective_date: '2022-05-01T00:00:00.0000000+01:00' name: Gold APR Policy purchases: @@ -16281,7 +16235,7 @@ paths: count: 2 data: - created_time: '2024-04-01T23:41:58.8020000+00:00' - description: A golden APR policy + description: A gold APR policy effective_date: '2024-05-01T00:00:00.0000000+01:00' name: Gold APR Policy purchases: @@ -17096,7 +17050,7 @@ paths: default_method: FLAT default_value: 10 created_time: '2024-04-01T23:41:58.8020000+00:00' - description: A golden fee policy + description: A gold fee policy name: Gold Fee Policy token: my_fee_policy_token_1234 updated_time: '2024-04-05T16:04:48.6430000+00:00' @@ -17148,7 +17102,7 @@ paths: returned_payment: default_method: FLAT default_value: 10 - description: A golden fee policy + description: A gold fee policy name: Gold Fee Policy token: my_fee_policy_token_1234 required: true @@ -17171,7 +17125,7 @@ paths: default_method: FLAT default_value: 10 created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden fee policy + description: A gold fee policy name: Gold Fee Policy token: my_fee_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' @@ -17218,7 +17172,7 @@ paths: default_method: FLAT default_value: 10 created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden fee policy + description: A gold fee policy name: Gold Fee Policy token: my_fee_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' @@ -17331,7 +17285,7 @@ paths: default_method: FLAT default_value: 10 created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden fee policy + description: A gold fee policy name: Gold Fee Policy token: my_fee_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' @@ -17398,7 +17352,7 @@ paths: max: 3500 min: 50 currency_code: USD - description: A golden credit product policy + description: A gold credit product policy interest_calculation: application_of_credits: cycle_type: END_REVOLVING @@ -17522,7 +17476,7 @@ paths: max: 3500 min: 50 currency_code: USD - description: A golden credit product policy + description: A gold credit product policy interest_calculation: application_of_credits: cycle_type: END_REVOLVING @@ -17581,7 +17535,7 @@ paths: max: 3500 min: 50 currency_code: USD - description: A golden credit product policy + description: A gold credit product policy interest_calculation: application_of_credits: cycle_type: END_REVOLVING @@ -17664,7 +17618,7 @@ paths: max: 3500 min: 50 currency_code: USD - description: A golden credit product policy + description: A gold credit product policy interest_calculation: application_of_credits: cycle_type: END_REVOLVING @@ -17888,7 +17842,7 @@ paths: max: 3500 min: 50 currency_code: USD - description: A golden credit product policy + description: A gold credit product policy interest_calculation: application_of_credits: cycle_type: END_REVOLVING @@ -17983,40 +17937,22 @@ paths: example: count: 2 data: - - created_time: '2024-04-01T23:41:58.8020000+00:00' - description: A golden reward policy + - created_time: '2022-04-01T23:41:58.8020000+00:00' + description: A gold reward policy name: Gold Reward Policy rules: - - filters: - amount: - greater_than: 1 - less_than: 10 - mcc_dynamic: - includes: - - HIGHEST_SPEND - outcome: - max_amount: 100 - percentage: 20 - type: CASHBACK + - amount: + attributes: + mcc: + - 0001-1499 + - '1500' + calculation_type: PER_TRANSACTION + description: Earn 3x on selected categories. + multiplier: 3 + type: MULTIPLIER_PER_TRANSACTION + settlement_strategy: STATEMENT token: my_reward_policy_token_1234 - updated_time: '2024-04-05T16:04:48.6430000+00:00' - - created_time: '2024-04-01T23:41:58.8020000+00:00' - description: A silver reward policy - name: Silver Reward Policy - rules: - - filters: - amount: - greater_than: 1 - less_than: 10 - mcc_dynamic: - includes: - - HIGHEST_SPEND - outcome: - max_amount: 100 - percentage: 20 - type: CASHBACK - token: my_reward_policy_token_4321 - updated_time: '2024-04-05T16:04:48.6430000+00:00' + updated_time: '2022-04-05T16:04:48.6430000+00:00' end_index: 2 is_more: true start_index: 0 @@ -18040,20 +17976,19 @@ paths: schema: $ref: '#/components/schemas/PolicyRewardReq' example: - description: A golden reward policy + description: A gold reward policy name: Gold Reward Policy rules: - - filters: - amount: - greater_than: 1 - less_than: 10 - mcc_dynamic: - includes: - - HIGHEST_SPEND - outcome: - max_amount: 100 - percentage: 20 - type: CASHBACK + - amount: + attributes: + mcc: + - 0001-1499 + - '1500' + calculation_type: PER_TRANSACTION + description: Earn 3x on selected categories. + multiplier: 3 + type: MULTIPLIER_PER_TRANSACTION + settlement_strategy: STATEMENT token: my_reward_policy_token_1234 required: true responses: @@ -18065,20 +18000,19 @@ paths: $ref: '#/components/schemas/PolicyRewardResponse' example: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden reward policy + description: A gold reward policy name: Gold Reward Policy rules: - - filters: - amount: - greater_than: 1 - less_than: 10 - mcc_dynamic: - includes: - - HIGHEST_SPEND - outcome: - max_amount: 100 - percentage: 20 - type: CASHBACK + - amount: + attributes: + mcc: + - 0001-1499 + - '1500' + calculation_type: PER_TRANSACTION + description: Earn 3x on selected categories. + multiplier: 3 + type: MULTIPLIER_PER_TRANSACTION + settlement_strategy: STATEMENT token: my_reward_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' default: @@ -18107,27 +18041,26 @@ paths: x-allowableValues: Existing reward policy token responses: '200': - description: A JSON object containing reward policy information + description: A JSON object containing reward policy information. content: application/json: schema: $ref: '#/components/schemas/PolicyRewardResponse' example: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden reward policy + description: A gold reward policy name: Gold Reward Policy rules: - - filters: - amount: - greater_than: 1 - less_than: 10 - mcc_dynamic: - includes: - - HIGHEST_SPEND - outcome: - max_amount: 100 - percentage: 20 - type: CASHBACK + - amount: + attributes: + mcc: + - 0001-1499 + - '1500' + calculation_type: PER_TRANSACTION + description: Earn 3x on selected categories. + multiplier: 3 + type: MULTIPLIER_PER_TRANSACTION + settlement_strategy: STATEMENT token: my_reward_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' default: @@ -18168,20 +18101,19 @@ paths: $ref: '#/components/schemas/PolicyRewardResponse' example: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: Description of renamed reward policy - name: Renamed Reward Policy + description: A gold reward policy + name: Gold Reward Policy rules: - - filters: - amount: - greater_than: 1 - less_than: 10 - mcc_dynamic: - includes: - - HIGHEST_SPEND - outcome: - max_amount: 100 - percentage: 20 - type: CASHBACK + - amount: + attributes: + mcc: + - 0001-1499 + - '1500' + calculation_type: PER_TRANSACTION + description: Earn 3x on selected categories. + multiplier: 3 + type: MULTIPLIER_PER_TRANSACTION + settlement_strategy: STATEMENT token: my_reward_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' default: @@ -18217,20 +18149,19 @@ paths: $ref: '#/components/schemas/PolicyRewardResponse' example: created_time: '2022-04-01T23:41:58.8020000+00:00' - description: A golden reward policy + description: A gold reward policy name: Gold Reward Policy rules: - - filters: - amount: - greater_than: 1 - less_than: 10 - mcc_dynamic: - includes: - - HIGHEST_SPEND - outcome: - max_amount: 100 - percentage: 20 - type: CASHBACK + - amount: + attributes: + mcc: + - 0001-1499 + - '1500' + calculation_type: PER_TRANSACTION + description: Earn 3x on selected categories. + multiplier: 3 + type: MULTIPLIER_PER_TRANSACTION + settlement_strategy: STATEMENT token: my_reward_policy_token_1234 updated_time: '2022-04-05T16:04:48.6430000+00:00' default: @@ -19202,6 +19133,7 @@ paths: description: Number of program transfers to retrieve. style: form schema: + maximum: 100 type: integer format: int32 default: 5 @@ -21222,31 +21154,35 @@ paths: /substatuses: get: tags: - - Substatus + - Credit Substatuses summary: List substatuses - description: Get list of substatuses + description: "Retrieve an array of substatuses.\nThis endpoint supports <>." operationId: listSubStatuses parameters: - name: account_token in: query - description: The account token to filter by. + description: "Unique identifier of the account for which to retrieve substatuses.\n\nSend a `GET` request to `/credit/accounts` to retrieve existing account tokens." style: form schema: type: string + x-allowableValues: Existing account token - name: user_token in: query - description: The user token to filter by. + description: "Unique identifier of the user for which to retrieve substatuses.\n\nSend a `GET` request to `/users` to retrieve existing user tokens." style: form schema: type: string + x-allowableValues: Existing user token - name: is_active in: query + description: Denotes whether a substatus is active. style: form schema: type: boolean + x-allowableValues: '`true`, `false`' - name: substatuses in: query - description: "comma-deliminited list of substatuses types to include\nAllowable values:\nHARDSHIP,FRAUD,MLA,SCRA,DECEASED,BANKRUPTCY" + description: "Comma-delimited list of substatus types to include.\nAllowable values:\n`HARDSHIP`, `FRAUD`, `MLA`, `SCRA`, `DECEASED`, `BANKRUPTCY`, `POWER_OF_ATTORNEY`" style: form schema: type: array @@ -21258,6 +21194,7 @@ paths: - SCRA - DECEASED - BANKRUPTCY + - POWER_OF_ATTORNEY type: string - name: count in: query @@ -21270,7 +21207,7 @@ paths: default: 5 - name: start_index in: query - description: Show n-th paginated page + description: Sort order index of the first resource in the returned array. style: form schema: minimum: 0 @@ -21288,7 +21225,7 @@ paths: default: '-createdTime' responses: '200': - description: Expected response to a valid request + description: Expected response to a valid request. content: application/json: schema: @@ -21303,9 +21240,9 @@ paths: - zionToken: [ ] post: tags: - - Substatus + - Credit Substatuses summary: Create substatus - description: Create a sub status for an existing user or account. + description: Create a new substatus for a credit account or user. operationId: createSubStatus requestBody: content: @@ -21313,42 +21250,41 @@ paths: schema: $ref: '#/components/schemas/SubstatusCreateReq' example: - attributes: [ ] + attributes: + - key: military_start_date + value: '2024-04-02T11:23:23.0000000+00:00' events: - - effective_date: '2024-05-06T15:26:58.8170000+00:00' - reason: DECEASED reported + - channel: ADMIN + reason: Documents submitted and verified state: ACTIVE - resource_token: BZB8tn4ZeW + resource_token: my_user_token resource_type: USER - substatus: DECEASED + substatus: SCRA required: true responses: '201': - description: Expected response to a valid request + description: Expected response to a valid request. content: application/json: schema: $ref: '#/components/schemas/SubstatusResponse' example: - attributes: [ ] + attributes: + - key: military_start_date + value: '2024-04-02T11:23:23.0000000+00:00' created_time: '2024-05-17T21:50:13.7290000+00:00' events: - - channel: API + - channel: ADMIN created_time: '2024-05-17T21:50:13.7400000+00:00' effective_date: '2024-05-17T21:50:13.7380000+00:00' - reason: Deceased reported + reason: Documents submitted and verified state: ACTIVE - - channel: API - created_time: '2024-05-17T21:51:39.7970000+00:00' - effective_date: '2024-04-09T11:23:23.0000000+00:00' - reason: Deceased substatus updated - state: INACTIVE - is_active: false - resource_token: user_token1234 + is_active: true + resource_token: my_user_token resource_type: USER - state: INACTIVE - substatus: DECEASED - token: token_1234 + state: ACTIVE + substatus: SCRA + token: substatus_token updated_time: '2024-05-17T21:51:39.7740000+00:00' default: description: Unexpected error @@ -21361,14 +21297,14 @@ paths: '/substatuses/{substatus_token}': get: tags: - - Substatus - summary: Retrieve Substatus + - Credit Substatuses + summary: Retrieve substatus description: Retrieve a user or account substatus. operationId: retrieveSubStatus parameters: - name: substatus_token in: path - description: "The unique identifier of the substatus to retrieve.\n\nSend a `GET` request to `/credit/substatuses` to retrieve existing substatus tokens." + description: "Unique identifier of the substatus to retrieve.\n\nSend a `GET` request to `/credit/substatuses` to retrieve existing substatus tokens." required: true style: simple schema: @@ -21382,21 +21318,23 @@ paths: schema: $ref: '#/components/schemas/SubstatusResponse' example: - attributes: [ ] - created_time: '2024-05-17T21:50:13.7290000+00:00' + attributes: + - key: military_start_date + value: '2024-04-02T11:23:23.0000000+00:00' + created_time: '2024-04-02T11:23:23.0000000+00:00' events: - - channel: API - created_time: '2024-05-17T21:50:13.7400000+00:00' - effective_date: '2024-05-17T21:50:13.7380000+00:00' - reason: Deceased reported + - channel: ADMIN + created_time: '2024-04-02T11:23:23.0000000+00:00' + effective_date: '2024-04-02T11:23:23.0000000+00:00' + reason: Documents submitted and verified state: ACTIVE is_active: true - resource_token: user_token1234 + resource_token: my_user_token resource_type: USER state: ACTIVE - substatus: DECEASED - token: token_1234 - updated_time: '2024-05-17T21:50:13.7290000+00:00' + substatus: SCRA + token: substatus_token + updated_time: '2024-04-02T11:23:23.0000000+00:00' default: description: Unexpected error content: @@ -21407,14 +21345,14 @@ paths: - zionToken: [ ] put: tags: - - Substatus + - Credit Substatuses summary: Update substatus - description: Update substatus for an user or account. + description: Updating a substatus registers a new event that changes the substatus' state. operationId: updateSubStatus parameters: - name: substatus_token in: path - description: The unique identifier of the substatus to update. + description: "Unique identifier of the account substatus resource to retrieve.\n\nSend a `GET` request to `/credit/substatuses` to retrieve existing substatus tokens." required: true style: simple schema: @@ -21426,18 +21364,39 @@ paths: schema: $ref: '#/components/schemas/SubstatusUpdateReq' example: - channel: API + channel: ADMIN effective_date: '2024-04-09T11:23:23.0000000+00:00' - reason: Deceased substatus updated + reason: Remove substatus from account state: INACTIVE required: true responses: '200': - description: Updated substatus response + description: Updated substatus response. content: application/json: schema: $ref: '#/components/schemas/SubstatusResponse' + example: + attributes: [ ] + created_time: '2024-04-02T11:23:23.0000000+00:00' + events: + - channel: SYSTEM + created_time: '2024-04-02T11:23:23.0000000+00:00' + effective_date: '2024-04-02T11:23:23.0000000+00:00' + reason: Fraud system detected suspicious activity + state: ACTIVE + - channel: ADMIN + created_time: '2024-04-02T11:23:23.0000000+00:00' + effective_date: '2024-04-02T11:23:23.0000000+00:00' + reason: Verified non-fraud with cardholder + state: INACTIVE + is_active: false + resource_token: my_account_token + resource_type: ACCOUNT + state: INACTIVE + substatus: FRAUD + token: substatus_token + updated_time: '2024-04-02T11:23:23.0000000+00:00' default: description: Unexpected error content: @@ -23341,7 +23300,7 @@ paths: count: 1 data: - active: true - amount_limit: 500 + amount_limit: 500.25 approvals_only: true association: user_token: my_user_04 @@ -23375,7 +23334,7 @@ paths: schema: $ref: '#/components/schemas/velocity_control_request' example: - amount_limit: 500 + amount_limit: 500.25 association: user_token: my_user_04 currency_code: USD @@ -23392,7 +23351,7 @@ paths: $ref: '#/components/schemas/velocity_control_response' example: active: true - amount_limit: 500 + amount_limit: 500.25 approvals_only: true association: user_token: my_user_04 @@ -23495,7 +23454,7 @@ paths: count: 2 data: - active: true - amount_limit: 296 + amount_limit: 296.25 approvals_only: true association: { } available: @@ -23515,7 +23474,7 @@ paths: usage_limit: 1 velocity_window: DAY - active: true - amount_limit: 500.5 + amount_limit: 500.25 approvals_only: true association: { } available: @@ -23570,7 +23529,7 @@ paths: $ref: '#/components/schemas/velocity_control_response' example: active: true - amount_limit: 500 + amount_limit: 500.25 approvals_only: true association: user_token: my_user_04 @@ -23611,7 +23570,7 @@ paths: schema: $ref: '#/components/schemas/velocity_control_update_request' example: - amount_limit: 1000 + amount_limit: 1000.25 token: my_velocitycontrol_01 usage_limit: 20 required: true @@ -23624,7 +23583,7 @@ paths: $ref: '#/components/schemas/velocity_control_response' example: active: true - amount_limit: 1000 + amount_limit: 1000.25 approvals_only: true association: user_token: my_user_04 @@ -23837,6 +23796,7 @@ paths: - Payments - Statements - Delinquency + - Credit Substatuses summary: Resend credit event notification description: "Resends a credit event notification to your webhook endpoint.\n\nAlthough you send this request as a `POST`, all parameters are passed in the URL and the body is empty.\nThe event notification is resent to your webhook endpoint and also returned in the response to this request.\n\nFor details on how to configure your webhook endpoint, see the About Webhooks <>.\nFor the complete `/webhooks` endpoint reference, see <>." operationId: resendWebhookEvent @@ -23855,15 +23815,16 @@ paths: - paymenttransition - delinquencytransition - paymentreminders + - substatus type: string - name: resource_token in: path - description: "Unique identifier of the resource for which you want to resend a notification.\n\nSend a `GET` request to `/credit/accounts/{account_token}/journalentries` to retrieve existing journal entry tokens.\n\nSend a `GET` request to `/credit/accounts/{account_token}/ledgerentries` to retrieve existing ledger entry tokens.\n\nSend a `GET` request to `/accounts/{account_token}/accounttransitions` to retrieve existing account transition tokens.\n\nSend a `GET` request to `/credit/accounts/{account_token}/payments/{payment_token}` to retrieve existing payment transition tokens.\n\nSend a `GET` request to `/accounts/{account_token}/statements` to retrieve existing statement summary tokens.\n\nSend a `GET` request to `/accounts/{account_token}/delinquencystate/transitions` to retrieve existing delinquency state transition tokens.\n\nSend a `GET` request to `/accounts/{account_token}/statements/{statement_summary_token}/paymentreminders/{token}` to retrieve existing payment reminder tokens." + description: "Unique identifier of the resource for which you want to resend a notification.\n\nSend a `GET` request to `/credit/accounts/{account_token}/journalentries` to retrieve existing journal entry tokens.\n\nSend a `GET` request to `/credit/accounts/{account_token}/ledgerentries` to retrieve existing ledger entry tokens.\n\nSend a `GET` request to `/accounts/{account_token}/accounttransitions` to retrieve existing account transition tokens.\n\nSend a `GET` request to `/credit/accounts/{account_token}/payments/{payment_token}` to retrieve existing payment transition tokens.\n\nSend a `GET` request to `/accounts/{account_token}/statements` to retrieve existing statement summary tokens.\n\nSend a `GET` request to `/accounts/{account_token}/delinquencystate/transitions` to retrieve existing delinquency state transition tokens.\n\nSend a `GET` request to `/accounts/{account_token}/statements/{statement_summary_token}/paymentreminders/{token}` to retrieve existing payment reminder tokens.\n\nSend a `GET` request to `/credit/substatuses` to retrieve existing substatus tokens." required: true style: simple schema: type: string - x-allowableValues: 'Existing journal entry token, ledger entry token, account transition token, payment transition token, statement summary token, or delinquency transition token' + x-allowableValues: 'Existing journal entry token, ledger entry token, account transition token, payment transition token, statement summary token, delinquency transition token, or substatus token' responses: '200': description: Event response for which the webhook event was resent @@ -24185,6 +24146,29 @@ paths: refund_details: status: COMPLETED token: my_payment_transition_token1234 + substatus_example: + summary: The following code block shows a sample of a resent `substatus` event. + value: + attributes: [ ] + created_time: '2024-04-02T11:23:23.0000000+00:00' + events: + - channel: SYSTEM + created_time: '2024-04-02T11:23:23.0000000+00:00' + effective_date: '2024-04-02T11:23:23.0000000+00:00' + reason: Fraud system detected suspicious activity + state: ACTIVE + - channel: ADMIN + created_time: '2024-04-02T11:23:23.0000000+00:00' + effective_date: '2024-04-02T11:23:23.0000000+00:00' + reason: Verified non-fraud with cardholder + state: INACTIVE + is_active: false + resource_token: my_account_token + resource_type: ACCOUNT + state: INACTIVE + substatus: FRAUD + token: substatus_token + updated_time: '2024-04-02T11:23:23.0000000+00:00' default: description: Unexpected error content: @@ -24571,6 +24555,17 @@ components: type: string description: "Type of APR.\n\n* `GO_TO` - Default APR rate that is applicable when any promotional periods expire.\n* `PROMOTIONAL` - A temporary rate that is applicable for a specified period of time." AccountBillingCycleResponse: + required: + - account_token + - created_time + - current_end_time + - current_payment_due_date + - current_start_time + - next_end_time + - next_payment_due_date + - next_start_time + - short_code + - updated_time type: object properties: account_token: @@ -24680,10 +24675,10 @@ components: type: object properties: billing_cycle_day: - maximum: 28 + maximum: 25 minimum: 1 type: integer - description: "Day of month the billing cycle starts. \nIf an override value is not provided, the default value is derived from the bundle." + description: "Day of month the billing cycle starts. \nIf an override value is not provided, the default value is derived from the bundle.\nThe value must be 1, 10, 15, 20, or 25." card_level: enum: - PREMIUM @@ -24705,7 +24700,7 @@ components: maximum: 31 minimum: 31 type: integer - description: "Day of month the payment for the previous billing cycle is due.\n\nThis field is deprecated.\nUse the `account.payment_due_interval` field instead.\nTo retrieve `payment_due_interval`, see <>." + description: "Day of month the payment for the previous billing cycle is due.\n\nThis field is being deprecated and replaced by `payment_due_interval` of a product policy.\nTo retrieve `payment_due_interval`, see <>." deprecated: true payment_holds: $ref: '#/components/schemas/AccountConfigPaymentHolds' @@ -24724,10 +24719,10 @@ components: type: object properties: billing_cycle_day: - maximum: 28 + maximum: 25 minimum: 1 type: integer - description: "Day of month the billing cycle starts. \nIf an override value is not provided, the default value is derived from the bundle." + description: "Day of month the billing cycle starts. \nIf an override value is not provided, the default value is derived from the bundle.\nThe value must be 1, 10, 15, 20, or 25." card_level: enum: - PREMIUM @@ -25403,19 +25398,6 @@ components: type: string description: "United States ZIP code of the address.\n\nThis field is returned if it exists in the resource." description: Address associated with the business. - AmountFilter: - type: object - properties: - greater_than: - minimum: 0 - type: number - description: Minimum amount that a balance for a billing cycle can be to earn the reward. - less_than: - minimum: 0 - exclusiveMinimum: true - type: number - description: Maximum amount that a balance for a billing cycle can be to earn the reward. - description: Contains information on the minimum and maximum amounts that the balance for a billing cycle can be to earn the reward. AndroidPushTokenRequestAddress: type: object properties: @@ -27744,8 +27726,7 @@ components: direct_deposit_account_token: type: string early_direct_deposit: - type: boolean - default: false + type: string individual_identification_number: type: string individual_name: @@ -27887,8 +27868,7 @@ components: direct_deposit_token: type: string early_direct_deposit: - type: boolean - default: false + type: string individual_identification_number: type: string individual_name: @@ -28108,11 +28088,6 @@ components: type: string description: Unique identifier of the dispute update. description: Information about a transaction dispute update request. - DynamicMccType: - enum: - - HIGHEST_SPEND - type: string - description: Type of dynamic MCC. Error: type: object properties: @@ -28918,18 +28893,6 @@ components: minimum: 0 type: number description: 'The APR percentage value. This is the value of the fixed rate during the override period. The APR value must adhere to the constraints of the main schedule, such as maximum allowable values.' - MccDynamicFilter: - required: - - includes - type: object - properties: - includes: - minItems: 1 - type: array - items: - $ref: '#/components/schemas/DynamicMccType' - description: One or more dynamic MCCs. - description: Contains information on the dynamic merchant category code (MCC) for a reward. MerchantGroupListResponse: type: object properties: @@ -28960,6 +28923,10 @@ components: attribute: type: string description: "Attribute value corresponding to the chosen scope.\nIf 'mcc' is chosen, provide the Merchant Category Code (MCC).\nIf 'mcc_group' is chosen, provide the token identifying a group of MCCs." + decline_other_merchants: + type: boolean + description: "Indicates whether to decline transactions at merchants not included in the scope.\nIf `true`, transactions at merchants not included in the scope will be declined.\nIf `false`, transactions at merchants not included in the scope will not be declined.\n*Default value:* `false`" + default: false scope: enum: - mcc @@ -30495,6 +30462,9 @@ components: - percentage_of_balance type: object properties: + include_all_fees_charged: + type: boolean + description: Whether to include all fees charged when calculating the minimum payment. include_fees_charged: type: array items: @@ -30531,10 +30501,10 @@ components: - FEES - PRINCIPAL billing_cycle_day: - maximum: 28 + maximum: 25 minimum: 1 type: integer - description: Day of month the billing cycle starts. + description: 'Day of month the billing cycle starts. The value must be 1, 10, 15, 20, or 25.' billing_cycle_day_strategy: enum: - MANUAL @@ -30557,7 +30527,7 @@ components: $ref: '#/components/schemas/PolicyProductMinPaymentCalculation' payment_due_interval: type: integer - description: "Specifies the payment due interval that is used to determine the payment due date for a billing cycle.\nThe accepted values are either -1 or a value between 1 and 26.\nA value of -1 indicates one day prior to the next billing cycle date" + description: "Specifies the payment due interval that is used to determine the payment due date for a billing cycle.\nThe allowed value is -1.\nA value of -1 indicates one day prior to the next billing cycle date" default: -1 description: 'Contains the configurations for billing cycle day, payment due day, and fees.' PolicyProductResponse: @@ -30658,6 +30628,31 @@ components: $ref: '#/components/schemas/BalanceType' description: One or more usage types for the credit product policy. description: Request details to update a credit product policy. + PolicyRewardConversion: + required: + - conversion_increment + - type + type: object + properties: + conversion_increment: + type: integer + description: The static amount to reward if the rule conditions are met. + conversion_rate: + minimum: 0.001 + type: number + description: The rate that points are worth with converting the REDEMPTION_TYPE indicated. + format: decimal + currency: + type: string + description: Type of currency the conversion rate is for. + type: + $ref: '#/components/schemas/PolicyRewardConversionType' + description: reward conversion. + PolicyRewardConversionType: + enum: + - STATEMENT_CREDIT + type: string + description: Type of conversion. PolicyRewardPage: required: - count @@ -30685,12 +30680,49 @@ components: type: integer description: Sort order index of the first resource in the returned array. description: List response details for reward policies. + PolicyRewardPlatformRule: + required: + - description + - type + type: object + properties: + amount: + type: number + description: The static amount to reward if the rule conditions are met. + nullable: true + attributes: + $ref: '#/components/schemas/PolicyRewardRuleAttributes' + calculation_type: + enum: + - PER_TRANSACTION + type: string + description: Type of calculation to use to evaluate a rule has been satisfied. + description: + type: string + description: The description of the rule. + multiplier: + type: number + description: 'The reward multiplier to apply the transaction, where ''1'' means 1 X transaction amount.' + format: float + nullable: true + type: + enum: + - MULTIPLIER_PER_TRANSACTION + type: string + description: Type of rule. + description: Contains information on a policy reward platform rule. PolicyRewardReq: required: - name - rules type: object properties: + conversions: + minItems: 1 + type: array + items: + $ref: '#/components/schemas/PolicyRewardConversion' + description: One or more reward conversions. description: type: string description: Description of the reward policy. @@ -30702,8 +30734,10 @@ components: minItems: 1 type: array items: - $ref: '#/components/schemas/PolicyRewardRule' + $ref: '#/components/schemas/PolicyRewardPlatformRule' description: One or more reward rules. + settlement_strategy: + $ref: '#/components/schemas/PolicyRewardSettlementType' token: pattern: (?!^ +$)^.+$ type: string @@ -30712,6 +30746,12 @@ components: PolicyRewardResponse: type: object properties: + conversions: + minItems: 1 + type: array + items: + $ref: '#/components/schemas/PolicyRewardConversion' + description: One or more reward conversions. created_time: type: string description: 'Date and time when the reward policy was created on Marqeta''s credit platform, in UTC.' @@ -30726,8 +30766,10 @@ components: minItems: 1 type: array items: - $ref: '#/components/schemas/PolicyRewardRule' - description: One or more reward rules + $ref: '#/components/schemas/PolicyRewardPlatformRule' + description: An array of one or more reward rules. + settlement_strategy: + $ref: '#/components/schemas/PolicyRewardSettlementType' token: pattern: (?!^ +$)^.+$ type: string @@ -30737,49 +30779,26 @@ components: description: 'Date and time when the reward policy was last updated on Marqeta''s credit platform, in UTC.' format: date-time description: Contains information on a reward policy. - PolicyRewardRule: - required: - - filters - - outcome - - type - type: object - properties: - filters: - $ref: '#/components/schemas/PolicyRewardRuleFilters' - outcome: - $ref: '#/components/schemas/PolicyRewardRuleOutcome' - type: - $ref: '#/components/schemas/PolicyRewardRuleType' - description: Contains information on a reward rule. - PolicyRewardRuleFilters: - required: - - amount + PolicyRewardRuleAttributes: type: object properties: - amount: - $ref: '#/components/schemas/AmountFilter' - mcc_dynamic: - $ref: '#/components/schemas/MccDynamicFilter' - description: Contains information on the rules defined for a reward program. - PolicyRewardRuleOutcome: - required: - - percentage - type: object - properties: - max_amount: - minimum: 0 - type: number - description: Max amount of the reward. - percentage: - minimum: 0 + max_spend: type: number - description: "Reward percentage applied when the balance for a billing cycle is within the range specified in the `filters.amount.greater_than` and `filters.amount.less_than` fields.\nFor example, if the percentage is `1`, the account holder earns 1% of the account balance if they spend between the `greater_than` and `less_than` amounts during a billing cycle." - description: Contains information on the outcome of a reward rule. - PolicyRewardRuleType: + description: Maximum spend amount. + mcc: + type: array + items: + type: string + description: "List of merchant category codes (MCCs).\nMCCs must be a four-digit number, or a range of two four-digit numbers separated by a hyphen." + mid: + type: string + description: Merchant ID for the rule. + description: Additional properties for which the rule can be used to determine reward accrual eligibility for a transaction. + PolicyRewardSettlementType: enum: - - CASHBACK + - STATEMENT type: string - description: Type of reward rule. + description: Reward settlement strategy for program. PolicyType: enum: - APR @@ -30886,10 +30905,10 @@ components: type: object properties: billing_cycle_day: - maximum: 28 + maximum: 25 minimum: 1 type: integer - description: Day of month the billing cycle starts. + description: 'Day of month the billing cycle starts. The value must be 1, 10, 15, 20, or 25.' billing_cycle_day_strategy: enum: - MANUAL @@ -30915,7 +30934,7 @@ components: deprecated: true payment_due_interval: type: integer - description: "Specifies the payment due interval that is used to determine the payment due date for a billing cycle.\nThe accepted values are either -1 or a value between 1 and 26.\nA value of -1 indicates one day prior to the next billing cycle date." + description: "Specifies the payment due interval that is used to determine the payment due date for a billing cycle.\nThe allowed value is -1.\nA value of -1 indicates one day prior to the next billing cycle date." default: -1 periodic_fees: type: array @@ -31072,6 +31091,9 @@ components: - percentage_of_balance type: object properties: + include_all_fees_charged: + type: boolean + description: Whether to include all fees charged when calculating the minimum payments. include_fees_charged: type: array items: @@ -31894,6 +31916,9 @@ components: maxLength: 255 type: string description: Description of the reward. + forced: + type: boolean + description: "Allows you to force the creation of a reward on an account.\n\nBy default, reward creation is not permitted for accounts with a status of `SUSPENDED` or `TERMINATED` if more than 90 days have passed since the status transition." note: maxLength: 255 type: string @@ -32302,6 +32327,7 @@ components: enum: - AUTO_CASH_BACK - CASH_BACK + - STATEMENT_CREDIT type: string description: Type of reward. ShippingInformationResponse: @@ -32644,36 +32670,39 @@ components: properties: key: type: string - description: The key of the attribute. + description: "The name of the attribute.\n\nMarqeta provides several preconfigured attributes, as described in the following list.\n\n* *chapter:* If the substatus is `BANKRUPTCY`, then chapter attribute is required.\n\n* *military_start_date:* If the substatus is `SCRA`, then the military start date attribute is required.\nThe 6% APR override will be applied from the time and date of account opening until the last statement period of the military start date.\n\n* *end_date:* If the substatus is `POWER_OF_ATTORNEY`, then the end date attribute is applicable.\nThis specifies the date when the power of attorney document is no longer valid.\n\n* *poa_details:* If the substatus is `POWER_OF_ATTORNEY`, then the Power of Attorney details attribute is applicable.\nThis attribute specifies the range of actions that the agent with Power of Attorney is able to perform on the account.\nBy default the range is `UNRESTRICTED`.\n\n* *agent_name:* If the substatus is `POWER_OF_ATTORNEY`, then the agent name is required.\nThis attribute specifies the name of the agent with Power of Attorney for the user.\n\n* *agent_address:* If the substatus is `POWER_OF_ATTORNEY`, then the agent address attribute is required.\nThis attribute specifies the address of the agent with Power of Attorney for the user.\n\n* *agent_id_type:* If the substatus is `POWER_OF_ATTORNEY`, then the agent identification type attribute is required.\nThis specifies the type of the identification method used to identify the agent with Power of Attorney for the user.\n\n* *agent_id_value:* If the substatus is `POWER_OF_ATTORNEY`, then the agent identification value attribute is required.\nThis attribute specifies the value of the identification method used to identify the agent with Power of Attorney for the user.\n\n* *agent_id_expiration_date:* If the substatus is `POWER_OF_ATTORNEY`, then the attribute for the Power of Attorney identification expiration date attribute is required.\nThis attribute specifies the expiration date of the identification method used to identify the agent with Power of Attorney for the user." + x-allowableValues: "- `chapter`\n- `military_start_date`\n- `end_date`\n- `poa_details`\n- `agent_name`\n- `agent_address`\n- `agent_id_type`\n- `agent_id_value`\n- `agent_id_expiration_date`" value: type: string description: The value of the attribute. - description: Additional dynamic attributes related to the substatus. + x-allowableValues: "* *chapter:* `CHAPTER_7`, `CHAPTER_11`, `CHAPTER_12`, `CHAPTER_13`\n* *military_start_date:* yyyy-MM-ddThh:mm:ssZ format\n* *end_date:* yyyy-MM-ddThh:mm:ssZ format\n* *poa_details:* string (255 char max)\n* *agent_name:* string (255 char max)\n* *agent_address:* string (255 char max)\n* *agent_id_type:* `SSN`, `TIN`, `SIN`, `NIN`, `PASSPORT_NUMBER`, `DRIVERS_LICENSE`, `BUSINESS_LICENSE`, `BUSINESS_NUMBER`, `BUSINESS_TAX_ID`, `TAXPAYER_REFERENCE`\n* *agent_id_value:* string (255 char max)\n* *agent_id_expiration_date:* yyyy-MM-ddThh:mm:ssZ format" + description: "Additional dynamic attributes related to the substatus.\nIf the substatus is `BANKRUPTCY`, `SCRA` or `POWER_OF_ATTORNEY`, then attributes are required." events: type: array items: $ref: '#/components/schemas/SubstatusEvent' description: List of events related to the substatus. resource_token: + maxLength: 36 minLength: 1 type: string - description: The unique identifier of the user or account for which you want to create a substatus. + description: "Unique identifier of the user or account for which you want to create a substatus.\n\nSend a `GET` request to `/credit/accounts` to retrieve existing account tokens.\nSend a `GET` request to `/users` to retrieve existing user tokens." resource_type: enum: - USER - ACCOUNT type: string - description: "Possible values: USER, ACCOUNT.\n" + description: Type of resource to which the substatus applies. substatus: maxLength: 36 minLength: 1 type: string - description: "Possible values: HARDSHIP, FRAUD, MLA, SCRA, DECEASED, BANKRUPTCY.\n" + description: "Type of substatus.\n\n`HARDSHIP`, `FRAUD` can only be applied to the `ACCOUNT` resource type.\n`MLA`, `SCRA`, `DECEASED`, `BANKRUPTCY`, and `POWER_OF_ATTORNEY` can only be applied to the `USER` resource type." token: maxLength: 36 pattern: (?!^ +$)^.+$ type: string - description: Unique identifier of the substatus. + description: Unique identifier of the credit substatus. description: Contains information relevant to creating a substatus. SubstatusEvent: required: @@ -32687,21 +32716,21 @@ components: - FRAUD - SYSTEM type: string - description: The channel through which the event occurred. + description: "The mechanism by which the state of the substatus was applied.\n\n* `ADMIN` - Indicates that the state of the substatus was added through the Marqeta Dashboard.\n* `API` - Indicates that you initiated an update of the substatus through the Core API.\nUse this value when creating a substatus.\n* `FRAUD` - Indicates that either Marqeta or the card network has determined that the account is fraudulent.\n* `SYSTEM` - Indicates that Marqeta initiated the state of the substatus.\nFor example, Marqeta determined during application decisioning that the applicant is `MLA`." effective_date: type: string - description: 'Effective date of the deactivation, in UTC.' + description: "Date and time when the state of the substatus went into effect, in UTC.\nThe effective date must be in the past.\nIf no value is set, then the effective date and time will be the current time." format: date-time reason: maxLength: 255 type: string - description: Reason for the event. + description: Reason for applying a state designation to the substatus. state: enum: - ACTIVE - BANKRUPTCY_FILED type: string - description: 'The initial state of the substatus. ACTIVE - Required for the substatuses of HARDSHIP,FRAUD,MLA,SCRA,DECEASED. BANKRUPTCY_FILED - Required for the substatus of BANKRUPTCY.' + description: "Initial state of the substatus.\n\n`ACTIVE` - Required if the substatus is `HARDSHIP`, `FRAUD`, `MLA`, `SCRA`, `DECEASED`, or `POWER_OF_ATTORNEY`.\n`BANKRUPTCY_FILED` - Required if the substatus is `BANKRUPTCY`." description: Details of an event related to a substatus. SubstatusEventResponseDetails: required: @@ -32728,6 +32757,7 @@ components: description: 'Effective date of the event, in UTC.' format: date-time reason: + maxLength: 255 type: string description: Reason for the event. state: @@ -32747,7 +32777,7 @@ components: - BANKRUPTCY_DISCHARGED_INACTIVE - BANKRUPTCY_DISMISSED_INACTIVE type: string - description: The state of the event + description: The state of the event. description: Details of an event related to a substatus. SubstatusPage: required: @@ -32765,6 +32795,7 @@ components: type: array items: $ref: '#/components/schemas/SubstatusResponse' + description: Contains one or more substatuses. end_index: type: integer description: Sort order index of the last resource in the returned array. @@ -32774,12 +32805,13 @@ components: start_index: type: integer description: Sort order index of the first resource in the returned array. - description: Return paginated account and user substatuses + description: Return paginated account and user substatuses. SubstatusResponse: required: - is_active - resource_token - resource_type + - state - substatus - token type: object @@ -32791,11 +32823,13 @@ components: properties: key: type: string - description: The key of the attribute. + description: "The name of the attribute.\n\nMarqeta provides several preconfigured attributes, as described in the following list.\n\n* *chapter:* If the substatus is `BANKRUPTCY`, then this value defines the chapter.\n\n* *military_start_date:* If the substatus is `SCRA`, then this value defines the military start date.\n\n* *end_date:* If the substatus is `POWER_OF_ATTORNEY`, then the end date attribute is present.\nThis specifies the date when the power of attorney document is no longer valid.\n\n* *poa_details:* If the substatus is `POWER_OF_ATTORNEY`, then the Power of Attorney details attribute is applicable.\nThis attribute specifies the range of actions that the agent with Power of Attorney is able to perform on the account.\nBy default the range is `UNRESTRICTED`.\n\n* *agent_name:* If the substatus is `POWER_OF_ATTORNEY`, then the agent name is present.\nThis attribute specifies the name of the agent with Power of Attorney for the user.\n\n* *agent_address:* If the substatus is `POWER_OF_ATTORNEY`, then the agent address attribute is present.\nThis attribute specifies the address of the agent with Power of Attorney for the user.\n\n* *agent_id_type:* If the substatus is `POWER_OF_ATTORNEY`, then the agent identification type attribute is present.\nThis specifies the type of the identification method used to identify the agent with Power of Attorney for the user.\n\n* *agent_id_value:* If the substatus is `POWER_OF_ATTORNEY`, then the agent identification value attribute is present.\nThis attribute specifies the value of the identification method used to identify the agent with Power of Attorney for the user.\n\n* *agent_id_expiration_date:* If the substatus is `POWER_OF_ATTORNEY`, then the attribute for the Power of Attorney identification expiration date attribute is present.\nThis attribute specifies the expiration date of the identification method used to identify the agent with Power of Attorney for the user." + x-allowableValues: "- `chapter`\n- `military_start_date`\n- `end_date`\n- `poa_details`\n- `agent_name`\n- `agent_address`\n- `agent_id_type`\n- `agent_id_value`\n- `agent_id_expiration_date`" value: type: string description: The value of the attribute. - description: Additional dynamic attributes related to the substatus. + x-allowableValues: "* *chapter:* `CHAPTER_7`, `CHAPTER_11`, `CHAPTER_12`, `CHAPTER_13`\n* *military_start_date:* yyyy-MM-ddThh:mm:ssZ format\n* *end_date:* yyyy-MM-ddThh:mm:ssZ format\n* *poa_details:* string (255 char max)\n* *agent_name:* string (255 char max)\n* *agent_address:* string (255 char max)\n* *agent_id_type:* `SSN`, `TIN`, `SIN`, `NIN`, `PASSPORT_NUMBER`, `DRIVERS_LICENSE`, `BUSINESS_LICENSE`, `BUSINESS_NUMBER`, `BUSINESS_TAX_ID`, `TAXPAYER_REFERENCE`\n* *agent_id_value:* string (255 char max)\n* *agent_id_expiration_date:* yyyy-MM-ddThh:mm:ssZ format" + description: "Additional dynamic attributes related to the substatus.\n\nIf the substatus is `BANKRUPTCY`, `SCRA`, or `POWER_OF_ATTORNEY`, then attributes are present." created_time: type: string description: 'Date and time when the substatus was created on Marqeta''s credit platform, in UTC.' @@ -32807,16 +32841,17 @@ components: description: List of events related to the substatus. is_active: type: boolean - description: Flag indicating whether the substatus is active (false when deactivated). + description: Denotes whether a substatus is active. resource_token: + maxLength: 36 type: string - description: substatus resource token + description: Unique identifier of the resource. resource_type: enum: - - USER - ACCOUNT + - USER type: string - description: substatus resource type + description: Type of resource to which the substatus is applied. state: enum: - ACTIVE @@ -32834,14 +32869,15 @@ components: - BANKRUPTCY_DISCHARGED_INACTIVE - BANKRUPTCY_DISMISSED_INACTIVE type: string - description: state of the substatus + description: Current state of the substatus. substatus: maxLength: 36 type: string - description: substatus + description: Type of substatus. token: + maxLength: 36 type: string - description: substatus token + description: Unique identifier of the credit substatus. updated_time: type: string description: 'Date and time when the substatus was last updated on Marqeta''s credit platform, in UTC.' @@ -32859,16 +32895,16 @@ components: - FRAUD - SYSTEM type: string - description: "The channel through which deactivation is occurring:\n- **ADMIN**: Added through the Marqeta Dashboard.\n- **API**: Initiated through the Core API.\n- **FRAUD**: Determined by Marqeta or the card network.\n- **SYSTEM**: Initiated by Marqeta\n" + description: "The mechanism by which a state designation was applied to a substatus.\nIf no value is set, then it defaults to `API`.\n\n* `ADMIN` - Indicates that the state of the substatus was added through the Marqeta Dashboard.\n* `API` - Indicates that you initiated the update of the substatus through the Core API.\nUse this value when creating a card transition with an API `POST` request.\n* `FRAUD` - Indicates that either Marqeta or the card network has determined that the account is fraudulent.\n* `SYSTEM` - Indicates that the substatus update was initiated by Marqeta.\nFor example, Marqeta determined during application decisioning that the applicant is `MLA`." effective_date: type: string - description: 'Effective date of the deactivation, in UTC.' + description: 'Date and time when the state of the substatus is effective, in UTC.' format: date-time reason: maxLength: 255 minLength: 1 type: string - description: Reason for deactivating the substatus. + description: Reason for applying the state to the substatus. state: enum: - INACTIVE @@ -32884,7 +32920,7 @@ components: - BANKRUPTCY_DISCHARGED_INACTIVE - BANKRUPTCY_DISMISSED_INACTIVE type: string - description: The state of the substatus. + description: "New state of the substatus.\n\n`INACTIVE` is a valid state for substatuses `HARDSHIP`, `FRAUD`, `MLA`, `SCRA`, `DECEASED`, and `POWER_OF_ATTORNEY`.\n`BANKRUPTCY_WITHDRAWN`, `BANKRUPTCY_REAFFIRMED`, `BANKRUPTCY_REAFFIRM_RESCINDED`, `BANKRUPTCY_DISCHARGED`, \n`BANKRUPTCY_DISMISSED`, `BANKRUPTCY_FILED_INACTIVE`, `BANKRUPTCY_WITHDRAWN_INACTIVE`, `BANKRUPTCY_REAFFIRMED_INACTIVE`, `BANKRUPTCY_REAFFIRM_RESCINDED_INACTIVE`, `BANKRUPTCY_DISCHARGED_INACTIVE`, and `BANKRUPTCY_DISMISSED_INACTIVE` states are applicable to `BANKRUPTCY`" description: Contains information relevant to deactivating a substatus. Success: type: object @@ -33915,7 +33951,7 @@ components: format: date-time date_sent_for_verification: type: string - description: "Date and time in UTC when either the request for account validation was sent to the third-party partner, or when the funding source was verified by microdeposits.\n\nThis field is returned if it exists in the resource." + description: "Date and time in UTC when the request for account validation was sent to the third-party partner.\n\nThis field is returned if it exists in the resource." format: date-time date_verified: type: string @@ -33954,19 +33990,6 @@ components: verification_status: type: string description: "Account verification status.\nThis field is returned if it exists in the resource." - ach_verification_model: - type: object - properties: - active: - type: boolean - description: Indicates whether the ACH funding source is active. - default: false - verify_amount1: - type: number - description: Verification amount. - verify_amount2: - type: number - description: Verification amount. acquirer: type: object properties: @@ -34071,6 +34094,9 @@ components: ani_information: type: object properties: + card_name: + type: string + description: Full name of the cardholder as it appears on the card. first_name: type: string description: First or given name of the cardholder. @@ -34717,6 +34743,8 @@ components: minLength: 0 type: string description: ACH funding source token for the external account. + is_early_funded: + type: boolean last_modified_time: type: string description: 'Date and time when the ACH transfer was last modified, in UTC.' @@ -34991,7 +35019,7 @@ components: format: date-time date_sent_for_verification: type: string - description: "Date and time in UTC when either the request for account validation was sent to the third-party partner, or when the funding source was verified by microdeposits.\n`2022-02-26T20:03:05Z`, for example.\n\nThis field is returned if it exists in the resource." + description: "Date and time in UTC when the request for account validation was sent to the third-party partner.\n\nThis field is returned if it exists in the resource." format: date-time date_verified: type: string @@ -36142,6 +36170,12 @@ components: default: 101 expiration_offset: $ref: '#/components/schemas/expiration_offset_with_minimum' + reloadability: + enum: + - SINGLE_USE_VIRTUAL + - NON_RELOADABLE + - RELOADABLE + type: string update_expiration_upon_activation: type: boolean description: "Normally, the `expiration_offset` is measured from the date of issue.\nSet this field to `true` to measure `expiration_offset` from the date of activation instead." @@ -37251,7 +37285,7 @@ components: controltoken_type: enum: - SET_PIN - - SHOW_PIN + - REVEAL_PIN type: string description: "Specifies the type of action completed by this request.\n\n*WARNING:* Sending a request to this endpoint with a `REVEAL_PIN` control token requires PCI DSS compliance.\n\nThe lifespan of the control token depends on the token type:\n\n* *SET_PIN:* 60 minutes\n* *REVEAL_PIN:* 5 minutes" control_token_response: @@ -37826,7 +37860,7 @@ components: properties: card_art_id: type: string - description: "Specifies the digital wallet card art identifier for the card product.\nDigital wallets display the card art after the initial token has been provisioned and activated.\nDigital wallet card art is updated for all wallets automatically whenever a tokenized card is reissued or replaced.\n\n* If your card program is Managed by Marqeta, Marqeta populates this field on your behalf.\n* If your card program is Powered by Marqeta, you can obtain the correct card art identifier directly from Visa or Mastercard.\n\nIf this field is left blank, your card product inherits the card art assigned to the account BIN range." + description: "Specifies the digital wallet card art identifier for the card product.\nThe card art identifier also includes card metadata, such as terms and conditions, card product information, contact information, Apple Pay requirements, Android Pay requirements, wallet profiles, rule sets, terminal profiles, authorization profiles, message profiles, and activation profiles.\n\nDigital wallets display the card art after the initial token has been provisioned and activated.\nDigital wallet card art is updated for all wallets automatically whenever a tokenized card is reissued or replaced.\n\n* If your card program is Managed by Marqeta, Marqeta populates this field on your behalf.\n* If your card program is Powered by Marqeta, you can obtain the correct card art identifier directly from Visa or Mastercard.\n\nIf this field is left blank, your card product inherits the card art assigned to the account BIN range.\nFor more information about this field, contact your Marqeta representative." provisioning_controls: $ref: '#/components/schemas/provisioning_controls' description: Controls characteristics related to digital wallets. @@ -38074,7 +38108,7 @@ components: maxLength: 36 minLength: 0 type: string - description: Unique identifier of the ACH transfer. + description: Unique identifier of the ACH transfer whose funds you want to post more quickly to the cardholder's account. echo_ping_request: type: object properties: @@ -38496,6 +38530,27 @@ components: $ref: '#/components/schemas/transaction_options' webhook: $ref: '#/components/schemas/webhook' + flex: + type: object + properties: + action: + type: string + description: Indicates if the Marqeta Flex object is an actionable `inquiry` or merely informative `advice`. + eligible: + type: string + description: Indicates if the transaction is eligible for Marqeta Flex or not. + eligible_products: + type: array + items: + type: string + description: "A value of `DEBIT` indicates that the primary credential of the payment instrument is eligible for this transaction.\n\nA value of `LOAN` indicates that the secondary credential of the payment instrument is eligible for this transaction." + secondary_credential_identifier: + type: string + description: 'Identifies the secondary credential used in the transaction, if applicable.' + selected_product: + type: string + description: Indicates the eligible product that was used in the transaction. + description: Contains information about a Marqeta Flex transaction. fraud_view: type: object properties: @@ -38605,7 +38660,7 @@ components: format: date-time date_sent_for_verification: type: string - description: "Date and time in UTC when either the request for account validation was sent to the third-party partner, or when the funding source was verified by microdeposits.\n\nThis field is returned if it exists in the resource." + description: "Date and time in UTC when the request for account validation was sent to the third-party partner.\n\nThis field is returned if it exists in the resource." format: date-time date_verified: type: string @@ -39347,6 +39402,7 @@ components: - pgfs.authorization.quasi.cash - pgfs.authorization.clearing.quasi.cash - pgfs.authorization.account_verification + - pgfs.product.inquiry type: string description: "JIT Funding response type.\nSee <> for the purpose, funding event type, and description of each method." original_jit_funding_token: @@ -39437,6 +39493,8 @@ components: - jit_funding type: object properties: + flex: + $ref: '#/components/schemas/flex' jit_funding: $ref: '#/components/schemas/jit_funding_api' network_metadata: @@ -39963,6 +40021,8 @@ components: type: number user_token: type: string + xml: + name: msa_returns network: type: object properties: @@ -40048,6 +40108,9 @@ components: incoming_response_code: type: string description: 'Visa Risk Management esponse code `59`, indicating suspected fraud.' + network_funding_txn_type: + type: string + description: Transaction type indicator provided by the card network for original credit and account funding transactions. product_id: type: string description: "Product identification value assigned by the card network to each card product.\nCan be used to track card-level activity by individual account number for premium card products." @@ -40726,8 +40789,31 @@ components: type: string description: Type of card acceptor/terminal. transaction_initiated_by: + enum: + - CONSUMER + - MERCHANT + - UNKNOWN + - MARQETA + - NETWORK type: string description: Specifies whether the transaction was initiated by a cardholder or a merchant. + transaction_initiated_category: + enum: + - CARD_ON_FILE + - RECURRING_VAR_AMT_FIXED_FREQ + - RECURRING_PAYMENT + - INSTALLMENT_PAYMENT + - UNSCHEDULED_PAYMENT + - PARTIAL_SHIPMENT + - DELAYED_PAYMENT + - NO_SHOW + - RESUBMISSION + - DEFERRED_BILLING + - ACCOUNT_INQUIRY + - INCREMENTAL_AUTHORIZATION + - REAUTHORIZATION + type: string + description: Specifies the category of a point-of-sale transaction. zip: type: string description: United States ZIP code of the card acceptor or terminal. @@ -41101,6 +41187,10 @@ components: provisioning_controls: type: object properties: + dwt_tar_avs_decline_on_address_number_mismatch: + type: boolean + dwt_tar_avs_decline_on_postal_code_mismatch: + type: boolean dwt_use_card_status_during_auth: type: boolean dwt_verify_atc_during_auth: @@ -41876,8 +41966,31 @@ components: type: string description: Card acceptor or terminal identification number. transaction_initiated_by: + enum: + - CONSUMER + - MERCHANT + - UNKNOWN + - MARQETA + - NETWORK type: string description: Specifies whether the transaction was initiated by a cardholder or a merchant. + transaction_initiated_category: + enum: + - CARD_ON_FILE + - RECURRING_VAR_AMT_FIXED_FREQ + - RECURRING_PAYMENT + - INSTALLMENT_PAYMENT + - UNSCHEDULED_PAYMENT + - PARTIAL_SHIPMENT + - DELAYED_PAYMENT + - NO_SHOW + - RESUBMISSION + - DEFERRED_BILLING + - ACCOUNT_INQUIRY + - INCREMENTAL_AUTHORIZATION + - REAUTHORIZATION + type: string + description: Specifies the category of a point-of-sale transaction. description: "Contains information about the point of sale, including details on how the card was presented.\n\nReturned if provided by the card network, and the request uses Transaction Model v1 of the Marqeta Core API.\nNot returned for Transaction Model v2 requests." text: required: @@ -42024,6 +42137,9 @@ components: description: An array of `mcc_groups`. merchant_tax_id: type: string + merchant_vat_registration_id: + type: string + description: The VAT registration identifier of the merchant. mid: type: string description: The merchant identifier. @@ -42238,6 +42354,7 @@ components: description: "Indicates the amount of the acquirer fee.\nAccount holders are sometimes charged an acquirer fee for card use at ATMs, fuel dispensers, and so on." acquirer_reference_data: type: string + description: "Acquirer-assigned unique identifier of the transaction.\nUseful for settlement and reconciliation." acquirer_reference_id: type: string description: "Acquirer-assigned unique identifier of the transaction.\nUseful for settlement and reconciliation." @@ -42258,6 +42375,8 @@ components: amount_to_be_released: type: number description: "Amount of original authorization to be released.\nThis field appears in final clearing transactions where the clearing amount is lower than the authorization amount." + anticipated_amount: + type: number approval_code: type: string description: 'Unique identifier assigned to an authorization, printed on the receipt at point of sale.' @@ -42342,6 +42461,8 @@ components: items: $ref: '#/components/schemas/network_fee_model' description: "List of fees associated with the transaction.\n\nThis array is returned if it exists in the resource." + flex: + $ref: '#/components/schemas/flex' fraud: $ref: '#/components/schemas/fraud_view' from_account: @@ -42617,10 +42738,10 @@ components: - credit.adjustment - debit.adjustment - pin.change.via.api + - product.inquiry - unknown type: string description: "Transaction event type.\nFor more information about the `type` field, see <>." - readOnly: true user: $ref: '#/components/schemas/cardholder_metadata' user_token: @@ -42994,10 +43115,10 @@ components: minimum: 0 exclusiveMinimum: false type: number - description: Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field. + description: "Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field.\nRefunds and reversals cannot exceed this limit." approvals_only: type: boolean - description: 'If set to `true`, only approved transactions are subject to control.' + description: "If set to `true`, only approved transactions are subject to control.\nIf set to `false`, only declined transactions are subject to control." association: $ref: '#/components/schemas/spend_control_association' available: @@ -43062,10 +43183,10 @@ components: minimum: 0 exclusiveMinimum: false type: number - description: Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field. + description: "Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field.\nRefunds and reversals cannot exceed this limit." approvals_only: type: boolean - description: 'If set to `true`, only approved transactions are subject to control.' + description: "If set to `true`, only approved transactions are subject to control.\nIf set to `false`, only declined transactions are subject to control." association: $ref: '#/components/schemas/spend_control_association' currency_code: @@ -43113,7 +43234,7 @@ components: - LIFETIME - TRANSACTION type: string - description: "Defines the time period to which the `amount_limit` and `usage_limit` fields apply:\n\n* *DAY* – one day; days begin at 00:00:00 UTC.\n* *WEEK* – one week; weeks begin Sundays at 00:00:00 UTC.\n* *MONTH* – one month; months begin on the first day of month at 00:00:00 UTC.\n* *LIFETIME* – forever; time period never expires.\n* *TRANSACTION* – a single transaction.\n\n// (2023-05-03): This statement was validated by Processing, as part of a customer inquiry.\n*NOTE:* If set to `DAY`, `WEEK`, or `MONTH`, the velocity control takes effect retroactively from the beginning of the specified period.\nThe amount and usage data already collected within the first period is counted toward the limits.\n\n// (2023-05-03): Commenting this note out, as it is untrue in testing as reported by customers and confirmed by transaction engine team\n//*NOTE:* Editing any of the following fields on a velocity control resets its usage and amount count to 0:\n\n//* `merchant_scope.mcc`\n//* `merchant_scope.mid`\n//* `merchant_scope.mcc_group`\n//* `association.user_token`\n//* `association.card_product_token`" + description: "Defines the time period to which the `amount_limit` and `usage_limit` fields apply:\n\n* *DAY* – one day; days begin at 00:00:00 UTC.\n* *WEEK* – one week; weeks begin Sundays at 00:00:00 UTC.\n* *MONTH* – one month; months begin on the first day of month at 00:00:00 UTC.\n* *LIFETIME* – forever; time period never expires.\n* *TRANSACTION* – a single transaction.\n\n// (2023-05-03): This statement was validated by Processing, as part of a customer inquiry.\n*NOTE:* If set to `DAY`, `WEEK`, or `MONTH`, the velocity control takes effect retroactively from the beginning of the specified period.\nThe amount and usage data already collected within the first period is counted toward the limits.\nIf set to `LIFETIME`, the velocity control only applies to transactions on or after the date and time that the velocity control was created.\n`LIFETIME` velocity controls are not retroactively applied to historical transactions.\n\n// (2023-05-03): Commenting this note out, as it is untrue in testing as reported by customers and confirmed by transaction engine team\n//*NOTE:* Editing any of the following fields on a velocity control resets its usage and amount count to 0:\n\n//* `merchant_scope.mcc`\n//* `merchant_scope.mid`\n//* `merchant_scope.mcc_group`\n//* `association.user_token`\n//* `association.card_product_token`" velocity_control_response: required: - amount_limit @@ -43128,10 +43249,10 @@ components: minimum: 0 exclusiveMinimum: false type: number - description: Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field. + description: "Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field.\nRefunds and reversals cannot exceed this limit." approvals_only: type: boolean - description: 'If set to `true`, only approved transactions are subject to control.' + description: "If set to `true`, only approved transactions are subject to control.\nIf set to `false`, only declined transactions are subject to control." association: $ref: '#/components/schemas/spend_control_association' currency_code: @@ -43192,10 +43313,10 @@ components: minimum: 0 exclusiveMinimum: false type: number - description: Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field. + description: "Maximum monetary sum that can be cleared within the time period defined by the `velocity_window` field.\nRefunds and reversals cannot exceed this limit." approvals_only: type: boolean - description: 'If set to `true`, only approved transactions are subject to control.' + description: "If set to `true`, only approved transactions are subject to control.\nIf set to `false`, only declined transactions are subject to control." association: $ref: '#/components/schemas/spend_control_association' currency_code: @@ -43245,7 +43366,7 @@ components: - LIFETIME - TRANSACTION type: string - description: "Defines the time period to which the `amount_limit` and `usage_limit` fields apply:\n\n* *DAY* – one day; days begin at 00:00:00 UTC.\n* *WEEK* – one week; weeks begin Sundays at 00:00:00 UTC.\n* *MONTH* – one month; months begin on the first day of month at 00:00:00 UTC.\n* *LIFETIME* – forever; time period never expires.\n* *TRANSACTION* – a single transaction.\n\n// (2023-05-03): This statement was validated by Processing, as part of a customer inquiry.\n*NOTE:* If set to `DAY`, `WEEK`, or `MONTH`, the velocity control takes effect retroactively from the beginning of the specified period.\nThe amount and usage data already collected within the first period is counted toward the limits.\n\n// (2023-05-03): Commenting this note out, as it is untrue in testing as reported by customers and confirmed by transaction engine team\n//*NOTE:* Editing any of the following fields on a velocity control resets its usage and amount count to 0:\n\n//* `merchant_scope.mcc`\n//* `merchant_scope.mid`\n//* `merchant_scope.mcc_group`\n//* `association.user_token`\n//* `association.card_product_token`" + description: "Defines the time period to which the `amount_limit` and `usage_limit` fields apply:\n\n* *DAY* – one day; days begin at 00:00:00 UTC.\n* *WEEK* – one week; weeks begin Sundays at 00:00:00 UTC.\n* *MONTH* – one month; months begin on the first day of month at 00:00:00 UTC.\n* *LIFETIME* – forever; time period never expires.\n* *TRANSACTION* – a single transaction.\n\n// (2023-05-03): This statement was validated by Processing, as part of a customer inquiry.\n*NOTE:* If set to `DAY`, `WEEK`, or `MONTH`, the velocity control takes effect retroactively from the beginning of the specified period.\nThe amount and usage data already collected within the first period is counted toward the limits.\nIf set to `LIFETIME`, the velocity control only applies to transactions on or after the date and time that the velocity control was created.\n`LIFETIME` velocity controls are not retroactively applied to historical transactions.\n\n// (2023-05-03): Commenting this note out, as it is untrue in testing as reported by customers and confirmed by transaction engine team\n//*NOTE:* Editing any of the following fields on a velocity control resets its usage and amount count to 0:\n\n//* `merchant_scope.mcc`\n//* `merchant_scope.mid`\n//* `merchant_scope.mcc_group`\n//* `association.user_token`\n//* `association.card_product_token`" wallet_provider_card_on_file: type: object properties: @@ -43672,7 +43793,7 @@ tags: - name: Balances description: "Use the `/balances` endpoint to retrieve the following general purpose account (GPA) balance details for a user or business:\n\n* *Ledger balance* - When using standard funding: The funds that are available to spend immediately, including funds from any authorized transactions that have not yet cleared.\nWhen using Just-in-Time (JIT) Funding: Authorized funds that are currently on hold, but not yet cleared.\n* *Available balance* - The ledger balance minus any authorized transactions that have not yet cleared.\nAlso known as the cardholder's purchasing power.\nIf you are using JIT Funding, this balance is usually 0.00.\n* *Cached balance* - Not currently used.\n* *Credit balance* - Not currently used.\n* *Pending credits* - ACH loads that have been accepted, but for which the funding time has not yet elapsed." - name: Funding via ACH (Beta) - description: "Use the `/banktransfers` endpoint to move funds between your program funding or cardholder account and an external account over the ACH Network.\nThis kind of bank transfer is also known as ACH origination.\n\n[NOTE]\nThis feature is currently in beta and subject to change.\nIt also requires additional activation steps.\nTo learn more about the beta program for this feature and about activating it for your program, contact your Marqeta representative.\n\nYou can create the following types of transfers:\n\n* *Push* funds from your program funding or cardholder account to an external account.\n* *Pull* funds from your external account into your program funding or cardholder account.\n\nYou must have an existing bank account at a US bank to fund or receive funds from your Marqeta account.\nTo add an external program funding source account to the Marqeta platform, send a `POST` request to the `/fundingsources/program/ach` endpoint to PUSH or PULL money from or to the Program Funding Account.\nTo add an external account holder funding source account to the Marqeta platform, send a `POST` request to the `/fundingsources/ach` endpoint to PUSH or PULL money from or to the Cardholder Account.\n\nFor more information on ACH funding, see <>." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/banktransfers` endpoint to move funds between your program funding or cardholder account and an external account over the ACH Network.\nThis kind of bank transfer is also known as ACH origination.\n\nYou can create the following types of transfers:\n\n* *Push* funds from your program funding or cardholder account to an external account.\n* *Pull* funds from your external account into your program funding or cardholder account.\n\nYou must have an existing bank account at a US bank to fund or receive funds from your Marqeta account.\nTo add an external program funding source account to the Marqeta platform, send a `POST` request to the `/fundingsources/program/ach` endpoint to PUSH or PULL money from or to the Program Funding Account.\nTo add an external account holder funding source account to the Marqeta platform, send a `POST` request to the `/fundingsources/ach` endpoint to PUSH or PULL money from or to the Cardholder Account.\n\nFor more information on ACH funding, see <>." - name: internal - name: Bulk Card Orders description: "Use the `/bulkissuances` endpoint to order physical payment cards in bulk.\n\nFor more information on cards, card products, and bulk card ordering, see <>.\n\nSome attributes of the `bulkissuance` object can also be defined in an associated `card` or `cardproduct` object.\nIf you define one of these attributes in more than one object, the Marqeta platform applies an order of precedence to determine which attribute to use at fulfillment time.\nThe order of precedence is as follows:\n\n. `card`\n. `bulkissuance`\n. `cardproduct`\n\nDefining an attribute in an object with higher precedence does not overwrite the same attribute in a lower-precedence object; the Marqeta platform ignores these lower-precedence attributes.\n\nFor more information on cards, see <>." @@ -43681,13 +43802,14 @@ tags: - name: Business Transitions description: 'Use the `/businesstransitions` endpoints to transition business resources between states, as well as to retrieve and list state changes for a business resource.' - name: Card Products - description: "The card products resource represents the behavior and functionality of one or more cards (either physical or virtual).\nFor example, attributes of the card product determine whether the associated cards can be used at an ATM and/or online and whether they are currently enabled.\nFor physical cards, the card product determines color and other printing specifications for when the cards are manufactured and personalized.\nYou can optionally associate authorization controls and/or velocity controls with card products to restrict where and how associated cards are used.\n\nIf your program is Managed by Marqeta, then Marqeta will create the card products for your production environment.\n\nSome attributes of the `cardproduct` object can also be defined in an associated `bulkissuance` or `card` object.\nIf you define one of these attributes in more than one object, the Marqeta platform applies an order of precedence to determine which attribute to use at fulfillment time.\nThe order of precedence is as follows:\n\n. `card`\n. `bulkissuance`\n. `cardproduct`\n\nDefining an attribute in an object with higher precedence does not overwrite the same attribute in a lower-precedence object; the Marqeta platform ignores these lower-precedence attributes.\n\nFor more information on cards, see <>." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nThe card products resource represents the behavior and functionality of one or more cards (either physical or virtual).\nFor example, attributes of the card product determine whether the associated cards can be used at an ATM and/or online and whether they are currently enabled.\nFor physical cards, the card product determines color and other printing specifications for when the cards are manufactured and personalized.\nYou can optionally associate authorization controls and/or velocity controls with card products to restrict where and how associated cards are used.\n\nIf your program is Managed by Marqeta, then Marqeta will create the card products for your production environment.\n\nSome attributes of the `cardproduct` object can also be defined in an associated `bulkissuance` or `card` object.\nIf you define one of these attributes in more than one object, the Marqeta platform applies an order of precedence to determine which attribute to use at fulfillment time.\nThe order of precedence is as follows:\n\n. `card`\n. `bulkissuance`\n. `cardproduct`\n\nDefining an attribute in an object with higher precedence does not overwrite the same attribute in a lower-precedence object; the Marqeta platform ignores these lower-precedence attributes.\n\nFor more information on cards, see <>." - name: Cards description: "The `card` resource represents a payment card.\nCards are derived from and controlled by the `cardproduct` resource.\nFor more information on cards, see <>.\n\nSome attributes of the `card` resource can be defined in an associated `bulkissuance` or `cardproduct` resource.\nIf you define one of these attributes in more than one object, the order of precedence at fulfillment time is as follows:\n\n. `card`\n. `bulkissuance`\n. `cardproduct`\n\nDefining an attribute in an object with higher precedence overrides, but does not overwrite, the attribute in a lower-precedence object." - name: Card Transitions description: Use the `/cardtransitions` API to set the state of an existing card. - name: Commando Mode description: "Commando Mode is a fallback measure that ensures Gateway JIT-funded cards continue to function in the event that your system fails.\nIf your system cannot respond to the JIT Funding request, the Marqeta platform makes a decision in your place based on defined business rules.\nThe Marqeta platform stores any unsent webhooks for later transmission, ensuring that the card state and account balances on your system correspond with activity that occurred while Commando Mode was in effect.\n\nYou can identify transactions that were funded while Commando Mode was in effect by examining the `subnetwork` field of the transaction record.\n\n* A `subnetwork` value of `GATEWAY_JIT` indicates that the transaction was funded through normal Gateway JIT Funding and that Commando Mode was not in effect at the time.\n* A value of `MANAGED_JIT` indicates that the transaction was funded while Commando Mode was in effect.\nIn addition, the `standin_approved_by` field has a value of `COMMANDO_AUTO` or `COMMANDO_MANUAL` when Commando Mode is enabled for a transaction.\n\nWhen `COMMANDO_MANUAL` is configured, all transactions are processed via Commando Mode.\nWhen `COMMANDO_AUTO` is configured, Commando Mode is enabled only when a transaction times out or encounters an error.\n\nWhile Commando Mode is a form of Stand-in Processing (STIP), it is different than network STIP.\nNetwork STIP occurs when the card network cannot communicate with the Marqeta platform.\nTransactions handled by network STIP include the `standin_approved_by` field with a value of `NETWORK`.\n\nCommando Mode and Managed JIT Funding are functionally equivalent.\nSee <> for more information.\n\n[NOTE]\nCommando Mode requires additional configuration.\nTo configure Commando Mode control sets, contact your Marqeta representative." + - name: ' Write digital wallet tokens' - name: accepted countries - name: account holder groups - name: accounting @@ -43754,6 +43876,7 @@ tags: - name: peer transfers - name: ping - name: pins + - name: post transactions - name: program - name: program configs - name: program reserve @@ -43762,7 +43885,6 @@ tags: - name: real time fee groups - name: simulate - name: token service gateway - - name: transaction caches - name: transactions - name: 'transactions : Dispute transactions' - name: user transitions @@ -43773,9 +43895,11 @@ tags: - name: Account Cards description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the account cards endpoints to create and retrieve credit cards that can access the credit line on a <>.\n\nOnce a credit card is created, you can use the `/cards` endpoint to <> or <>.\n\nTo receive webhook notifications when card transition or card action events occur, see <> and <> in Event Types." - name: Account Rewards - description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/credit/accounts/{account_token}/rewards` endpoint to create a one-time reward on a <>.\n\nCreating a reward triggers the creation of a <> belonging to the `REWARD` group.\nFor more on reward journal entries, see <> in the About Credit Account Journal Entries guide.\n\nFor the reward programs that are associated with a reward policy on a bundle, see <>." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/credit/accounts/{account_token}/rewards` endpoint to create a one-time reward on a <>.\n\nCreating a reward triggers the creation of a <> belonging to the `REWARD` group.\nFor more on reward journal entries, see <> in the About Credit Account Journal Entries guide.\n\nFor the reward programs that are associated with a reward policy on a bundle, see <>." - name: Account Transitions description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\nUse the account transitions endpoints to create and retrieve account transitions on Marqeta's credit platform.\nAn account transition occurs when a <> transitions to a new status.\n\nTo receive webhook notifications when account transition events occur, see <> in Event Types." + - name: Credit Substatuses + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nCredit substatuses can be applied to credit accounts or credit account holders.\nSubstatuses should be applied only after verification with Customer Support and after the cardholder request for the substatus designation has been accepted.\nSubstatuses define specific circumstances, such as bankruptcy, hardship or fraud.\nThey also affect account behavior or activity, including interest accrual, authorization requests, and account termination.\nSubstatus downstream account actions are not always reversible for the cardholder, which means that substatuses should be applied with caution.\n\nUse the substatus endpoints to apply or remove a substatus for a credit account or user.\nApplying a substatus causes immediate downstream changes to the account.\nFor additional information about substatuses, see <> or <> in the <> guide.\n\n[NOTE]\n====\nThe substatus `SCRA` stands for \"Servicemembers Civilian Relief Act.\"\nThe substatus `MLA` stands for \"Military Lending Act.\"\n====\n\nFor more information about receiving webhook notifications when account transition events occur, see <> on the <> page.\n\n[IMPORTANT]\n====\nIf you are a Managed by Marqeta customer, a Marqeta customer service representative will apply the appropriate substatuses.\n====" - name: Adjustments description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the adjustments endpoints to create and retrieve account adjustments on Marqeta's credit platform.\nAn account adjustment adjusts the amount of a <> or account balance.\n\nCreating an adjustment triggers the creation of a <> belonging to the `ADJUSTMENT` group.\nFor more on adjustment journal entries, see <> in the About Credit Account Journal Entries guide." - name: Balance Refunds @@ -43813,15 +43937,15 @@ tags: - name: Fees description: "A `fees` resource represents a monetary assessment against an account holder's general purpose account (GPA).\nAssessing a fee transfers funds from the account holder's GPA account to your program's fee account.\nBy default, every account has a GPA account used for the funding of transfers.\n\nYou can assess fees either post-transaction or in real time.\nReal-time fee assessment ensures the account has sufficient funds available to cover both the transaction amount and the fee before authorization of the transaction.\nTo assess fees in real time, you must create a real-time fee group using the `/realtimefeegroups` endpoint.\n\nWhen assessing a post-transaction fee, you can either debit existing GPA funds, or pull in new funds from a funding source.\nTo use existing GPA funds, use the `/feetransfers` endpoint.\nTo pull in new funds, use the fees array in `/gpaorders`.\n\n[NOTE]\nIf your program uses Gateway JIT Funding, you cannot assess fees." - name: Addresses - description: "The address resource is your billing address.\nAn active address is required in order to use a payment card funding source.\nTo associate an address with a funding source, use the same `user_token` or `business_token` for both resources.\n\n[NOTE]\nThe `/users` and `/businesses` resources also have address fields.\nThose are used for other purposes, such as KYC identity verification or as shipping addresses for physical cards." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nThe address resource is your billing address.\nAn active address is required in order to use a payment card funding source.\nTo associate an address with a funding source, use the same `user_token` or `business_token` for both resources.\n\n[NOTE]\nThe `/users` and `/businesses` resources also have address fields.\nThose are used for other purposes, such as KYC identity verification or as shipping addresses for physical cards." - name: Account Holder Funding Sources - description: "Use the `/fundingsources/ach`, `/fundingsources/ach/partner`, and `/fundingsources/paymentcard` endpoints to create account holder funding sources.\nA funding source enables access to funds outside of the Marqeta platform.\n\nFor more information on users and businesses, see <>." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/fundingsources/ach`, `/fundingsources/ach/partner`, and `/fundingsources/paymentcard` endpoints to create account holder funding sources.\nA funding source enables access to funds outside of the Marqeta platform.\n\nFor more information on users and businesses, see <>." - name: Program Funding Sources - description: "Use the `/fundingsources/program` endpoint to create a program funding source.\n\nA program funding source represents a bank account from which funds are drawn for Managed Just-in-Time (JIT) Funding transactions.\nFor more information about JIT Funding, see <>.\n\nIn the sandbox environment, each program funding source you create simulates funds for use in test transactions.\nIn production environments, program funding sources are created by Marqeta and draw funds from a bank account you set up in conjunction with Marqeta.\n\n[NOTE]\nYour program funding source must be approved by Marqeta and the issuing bank.\nIf you are using a third-party service to collect user funds, Marqeta and the issuing bank require specific reporting to ensure compliance with applicable rules and regulations.\nContact Marqeta for more information." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/fundingsources/program` endpoint to create a program funding source.\n\nA program funding source represents a bank account from which funds are drawn for Managed Just-in-Time (JIT) Funding transactions.\nFor more information about JIT Funding, see <>.\n\nIn the sandbox environment, each program funding source you create simulates funds for use in test transactions.\nIn production environments, program funding sources are created by Marqeta and draw funds from a bank account you set up in conjunction with Marqeta.\n\n[NOTE]\nYour program funding source must be approved by Marqeta and the issuing bank.\nIf you are using a third-party service to collect user funds, Marqeta and the issuing bank require specific reporting to ensure compliance with applicable rules and regulations.\nContact Marqeta for more information." - name: Program Gateway Funding Sources - description: "Use the `/fundingsources/programgateway` endpoint to create a program gateway funding source.\n\nA program gateway funding source represents a bank account from which funds are drawn for Gateway Just-in-Time (JIT) Funding transactions.\nFor more information about JIT Funding, see <>.\n\nIn a sandbox environment, you can create a program gateway funding source that simulates funds for use in test transactions.\nIn a production environment, you must work with a Marqeta representative to define the bank account from which the program gateway funding source draws funds.\n\n[NOTE]\nIf you are using a third-party service to collect user funds, Marqeta and the issuing bank require specific reporting to ensure compliance with applicable rules and regulations.\nContact Marqeta for more information." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/fundingsources/programgateway` endpoint to create a program gateway funding source.\n\nA program gateway funding source represents a bank account from which funds are drawn for Gateway Just-in-Time (JIT) Funding transactions.\nFor more information about JIT Funding, see <>.\n\nIn a sandbox environment, you can create a program gateway funding source that simulates funds for use in test transactions.\nIn a production environment, you must work with a Marqeta representative to define the bank account from which the program gateway funding source draws funds.\n\n[NOTE]\nIf you are using a third-party service to collect user funds, Marqeta and the issuing bank require specific reporting to ensure compliance with applicable rules and regulations.\nContact Marqeta for more information." - name: GPA Orders - description: "The `/gpaorders` endpoint moves funds from a funding source into an\naccount holder's general-purpose account (GPA).\n\nGPA orders can also be used to move funds from an account holder's funding source into your program's fee account.\n\nGPA orders can be funded by the account holder or your program." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nThe `/gpaorders` endpoint moves funds from a funding source into an\naccount holder's general-purpose account (GPA).\n\nGPA orders can also be used to move funds from an account holder's funding source into your program's fee account.\n\nGPA orders can be funded by the account holder or your program." - name: KYC Verification description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/kyc` endpoint to perform Know Your Customer (KYC) verification tasks for your account holders.\n\nThis endpoint can only be used to perform KYC verification for individuals or businesses in the United States.\n\nFor more information about KYC verification, see <>.\n\nFor more information about account holders, see <>." - name: MCC Groups @@ -43831,7 +43955,7 @@ tags: - name: Peer Transfers description: "A peer transfer moves funds from the general purpose account (GPA) of an account holder (a user or business) to another account within your program.\nBoth the sender and recipient accounts must be active.\n\n[NOTE]\nThe `/peertransfers` endpoint is only available for specific, pre-approved use cases.\nFor more information about this endpoint, contact your Marqeta representative." - name: PINs - description: 'Use the `/pins` endpoint to create, update, or reveal a personal identification number (PIN) for a card.' + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/pins` endpoint to create, update, or reveal a personal identification number (PIN) for a card." - name: Program Reserve description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the Program Reserve API to retrieve program reserve account balances and transactions." - name: Program Transfers @@ -43851,7 +43975,7 @@ tags: - name: User Transitions description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nUse the `/usertransitions` endpoints to transition user resources between statuses, as well as to retrieve and list status changes for a user resource." - name: Velocity Controls - description: "A velocity control limits how much users can spend.\nYou can configure velocity controls to limit how much users can spend and the number of transactions they can make in a given span of time.\nYou can apply velocity controls to a single user, to all users associated with a particular card product, or to all users in your program.\n\nOnly Program Managers can create or modify program-wide velocity controls.\nA `POST` or `PUT` call from a role that does not have Program Manager permissions will receive a 403 error if its `association` field is null, or if it includes all of the fields in the request body.\nAvoid this by passing a valid `user_token` or `card_product_token` in the velocity control's `association` object, indicating that the request is specific to a user or card product, and not program-wide.\nYou should also only include the specific fields you want to update, because a `PUT` or `POST` with values for all fields is interpreted as a change that requires Program Manager permissions.\n\nSee <> for a tutorial that walks you through the creation of a spend control.\n\n[NOTE]\nEach program supports a maximum of 90 spend controls (velocity controls and <> combined).\nThe limit of 90 spend controls applies at the program level only; it does not affect the number of user-level spend controls you can use." + description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nA velocity control limits how much users can spend.\nYou can configure velocity controls to limit how much users can spend and the number of transactions they can make in a given span of time.\nYou can apply velocity controls to a single user, to all users associated with a particular card product, or to all users in your program.\n\nOnly Program Managers can create or modify program-wide velocity controls.\nA `POST` or `PUT` call from a role that does not have Program Manager permissions will receive a 403 error if its `association` field is null, or if it includes all of the fields in the request body.\nAvoid this by passing a valid `user_token` or `card_product_token` in the velocity control's `association` object, indicating that the request is specific to a user or card product, and not program-wide.\nYou should also only include the specific fields you want to update, because a `PUT` or `POST` with values for all fields is interpreted as a change that requires Program Manager permissions.\n\nSee <> for a tutorial that walks you through the creation of a spend control.\n\n[NOTE]\nEach program supports a maximum of 90 spend controls (velocity controls and <> combined).\nThe limit of 90 spend controls applies at the program level only; it does not affect the number of user-level spend controls you can use." - name: Webhooks description: "// Conditional snippet for beta or internal content\ninclude::../../maturity-admonition-banner.adoc[]\n\nWebhooks are notifications about API events, sent as they occur.\nThe Marqeta platform sends these notifications to an endpoint that is hosted in your environment and configured to receive and process them.\n\nCreate a webhook object to represent your webhook endpoint.\nConfigure it with the URL of your webhook endpoint and a set of credentials for accessing that endpoint.\nYou can configure it to send notifications for a single event, a group of events by type, or all event types.\nTo set up multiple webhook endpoints and route different types of event notifications to each, create multiple webhook objects and configure each to send a specific type of event notification to a specific endpoint.\n\nSee <> for information on notifications and a tutorial that walks you through the configuration of your webhook endpoint.\n\nSee <> for reference documentation on the types of events that the Marqeta platform supports.\n\n[NOTE]\nWebhooks URLs are cached.\nChanges made on your webhook endpoint can take up to one hour to be applied." - name: Applications