Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
rust/target/
__pycache__

# Node/TS build artifacts (legacy TS CLI; not part of the Rust port)
node_modules/
dist/
.pnpm-store/
.npmrc

# Environment files
.env
.env.dev
Expand Down
12 changes: 6 additions & 6 deletions rust/schemas/api/channels.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@
"description": "Resource representing the Channel",
"discriminator": {
"mapping": {
"DEFAULT": "./BasicChannel.yaml",
"MARKETPLACE": "./MarketplaceChannel.yaml",
"MOBILE": "./MobileChannel.yaml",
"ONLINE": "./OnlineChannel.yaml",
"RETAIL": "./RetailChannel.yaml",
"SOCIAL": "./SocialChannel.yaml"
"DEFAULT": "#/$defs/BasicChannel",
"MARKETPLACE": "#/$defs/MarketplaceChannel",
"MOBILE": "#/$defs/MobileChannel",
"ONLINE": "#/$defs/OnlineChannel",
"RETAIL": "#/$defs/RetailChannel",
"SOCIAL": "#/$defs/SocialChannel"
},
"propertyName": "type"
},
Expand Down
16 changes: 8 additions & 8 deletions rust/schemas/api/payment-requests.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"description": "Transaction amount details",
"discriminator": {
"mapping": {
"DETAILED": "./DetailedAmount.yaml",
"SIMPLE": "./SimpleAmount.yaml"
"DETAILED": "#/$defs/DetailedAmount",
"SIMPLE": "#/$defs/SimpleAmount"
},
"propertyName": "amountType"
},
Expand Down Expand Up @@ -88,10 +88,10 @@
"description": "Authentication configuration for callback endpoints. Supports multiple authentication methods for secure callback delivery.\n\nRecommended method: HMAC for production environments as it provides cryptographic proof of authenticity and prevents tampering.\n",
"discriminator": {
"mapping": {
"apikey": "./APIKeyAuthentication.yaml",
"bearer": "./BearerTokenAuthentication.yaml",
"hmac": "./HMACAuthentication.yaml",
"none": "./NoAuthentication.yaml"
"apikey": "#/$defs/APIKeyAuthentication",
"bearer": "#/$defs/BearerTokenAuthentication",
"hmac": "#/$defs/HMACAuthentication",
"none": "#/$defs/NoAuthentication"
},
"propertyName": "type"
},
Expand Down Expand Up @@ -396,8 +396,8 @@
"description": "Fee associated with transaction",
"discriminator": {
"mapping": {
"ADDITIONAL": "./SimpleFee.yaml",
"GOVERNED": "./GovernedFee.yaml"
"ADDITIONAL": "#/$defs/SimpleFee",
"GOVERNED": "#/$defs/GovernedFee"
},
"propertyName": "feeType"
},
Expand Down
28 changes: 14 additions & 14 deletions rust/schemas/api/payments.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"discriminator": {
"mapping": {
"DETAILED": "./DetailedAmount.yaml",
"SIMPLE": "./SimpleAmount.yaml"
"DETAILED": "#/$defs/DetailedAmount",
"SIMPLE": "#/$defs/SimpleAmount"
},
"propertyName": "amountType"
},
Expand Down Expand Up @@ -610,8 +610,8 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"discriminator": {
"mapping": {
"ADDITIONAL": "./SimpleFee.yaml",
"GOVERNED": "./GovernedFee.yaml"
"ADDITIONAL": "#/$defs/SimpleFee",
"GOVERNED": "#/$defs/GovernedFee"
},
"propertyName": "feeType"
},
Expand Down Expand Up @@ -640,12 +640,12 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"discriminator": {
"mapping": {
"APPLE_PAY": "../payment-token/ApplePayPaymentToken.yaml",
"EBT_CARD": "./EBTCard.yaml",
"GODADDY": "../payment-token/GDPaymentTokenReference.yaml",
"GOOGLE_PAY": "../payment-token/GooglePayPaymentToken.yaml",
"PAYMENT_CARD": "./PaymentCard.yaml",
"PAYPAL": "../payment-token/PaypalPaymentToken.yaml"
"APPLE_PAY": "#/$defs/ApplePayPaymentToken",
"EBT_CARD": "#/$defs/EBTCard",
"GODADDY": "#/$defs/GDPaymentTokenReference",
"GOOGLE_PAY": "#/$defs/GooglePayPaymentToken",
"PAYMENT_CARD": "#/$defs/PaymentCard",
"PAYPAL": "#/$defs/PaypalPaymentToken"
},
"propertyName": "sourceType"
},
Expand Down Expand Up @@ -1056,8 +1056,8 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"discriminator": {
"mapping": {
"CREDIT_CARD": "./CreditCardProcessorResponse.yaml",
"DEBIT_CARD": "./DebitCardProcessorResponse.yaml"
"CREDIT_CARD": "#/$defs/CreditCardProcessorResponse",
"DEBIT_CARD": "#/$defs/DebitCardProcessorResponse"
},
"propertyName": "processorType"
},
Expand Down Expand Up @@ -1290,8 +1290,8 @@
"description": "Verification data for funding source",
"discriminator": {
"mapping": {
"CARD": "../verification-data/CardVerificationData.yaml",
"TOKEN": "../verification-data/TokenVerificationData.yaml"
"CARD": "#/$defs/CardVerificationData",
"TOKEN": "#/$defs/TokenVerificationData"
},
"propertyName": "type"
},
Expand Down
4 changes: 2 additions & 2 deletions rust/schemas/api/subscriptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@
"description": "Polymorphic pricing configuration for a subscription plan. The pricingModel field acts as the discriminator to determine which pricing schema applies.\n",
"discriminator": {
"mapping": {
"FIXED_RECURRING": "./FixedRecurringPricing.yaml",
"FREE": "./FreePricing.yaml"
"FIXED_RECURRING": "#/$defs/FixedRecurringPricing",
"FREE": "#/$defs/FreePricing"
},
"propertyName": "pricingModel"
},
Expand Down
44 changes: 22 additions & 22 deletions rust/schemas/api/transactions.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
"description": "Transaction amount details",
"discriminator": {
"mapping": {
"DETAILED": "./DetailedAmount.yaml",
"SIMPLE": "./SimpleAmount.yaml"
"DETAILED": "#/$defs/DetailedAmount",
"SIMPLE": "#/$defs/SimpleAmount"
},
"propertyName": "amountType"
},
Expand Down Expand Up @@ -667,8 +667,8 @@
"description": "Fee associated with transaction",
"discriminator": {
"mapping": {
"ADDITIONAL": "./SimpleFee.yaml",
"GOVERNED": "./GovernedFee.yaml"
"ADDITIONAL": "#/$defs/SimpleFee",
"GOVERNED": "#/$defs/GovernedFee"
},
"propertyName": "feeType"
},
Expand Down Expand Up @@ -698,15 +698,15 @@
"description": "Funding source of Transaction",
"discriminator": {
"mapping": {
"APPLE_PAY": "../payment-token/ApplePayPaymentToken.yaml",
"BANK_ACCOUNT": "./BankAccount.yaml",
"CASH": "./Cash.yaml",
"CUSTOM": "./CustomFundingSource.yaml",
"EBT_CARD": "./EBTCard.yaml",
"GODADDY": "../payment-token/GoDaddyPaymentToken.yaml",
"GOOGLE_PAY": "../payment-token/GooglePayPaymentToken.yaml",
"PAYMENT_CARD": "./PaymentCard.yaml",
"PAZE": "../payment-token/PazePaymentToken.yaml"
"APPLE_PAY": "#/$defs/ApplePayPaymentToken",
"BANK_ACCOUNT": "#/$defs/BankAccount",
"CASH": "#/$defs/Cash",
"CUSTOM": "#/$defs/CustomFundingSource",
"EBT_CARD": "#/$defs/EBTCard",
"GODADDY": "#/$defs/GoDaddyPaymentToken",
"GOOGLE_PAY": "#/$defs/GooglePayPaymentToken",
"PAYMENT_CARD": "#/$defs/PaymentCard",
"PAZE": "#/$defs/PazePaymentToken"
},
"propertyName": "sourceType"
},
Expand Down Expand Up @@ -2937,8 +2937,8 @@
"description": "Response from processor received as part of processing transaction",
"discriminator": {
"mapping": {
"CREDIT_CARD": "./CreditCardProcessorResponse.yaml",
"DEBIT_CARD": "./DebitCardProcessorResponse.yaml"
"CREDIT_CARD": "#/$defs/CreditCardProcessorResponse",
"DEBIT_CARD": "#/$defs/DebitCardProcessorResponse"
},
"propertyName": "processorType"
},
Expand Down Expand Up @@ -3116,11 +3116,11 @@
"description": "Transaction details",
"discriminator": {
"mapping": {
"ADJUSTMENT": "./Adjustment.yaml",
"AUTHORIZE": "./Authorization.yaml",
"CAPTURE": "./Capture.yaml",
"REFUND": "./Refund.yaml",
"SALE": "./Sale.yaml"
"ADJUSTMENT": "#/$defs/Adjustment",
"AUTHORIZE": "#/$defs/Authorization",
"CAPTURE": "#/$defs/Capture",
"REFUND": "#/$defs/Refund",
"SALE": "#/$defs/Sale"
},
"propertyName": "type"
},
Expand Down Expand Up @@ -3325,8 +3325,8 @@
"description": "Verification data for funding source",
"discriminator": {
"mapping": {
"CARD": "../verification-data/CardVerificationData.yaml",
"TOKEN": "../verification-data/TokenVerificationData.yaml"
"CARD": "#/$defs/CardVerificationData",
"TOKEN": "#/$defs/TokenVerificationData"
},
"propertyName": "type"
},
Expand Down
Loading