-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add authRequestStatus for subscriptions
- Loading branch information
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
Sources/PhonePeKit/Recurring Payments/AuthStatusResponse.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// AuthStatusResponse.swift | ||
// | ||
// | ||
// Created by Vamsi Madduluri on 01/01/24. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct AuthRequestStatusResponse: Codable { | ||
var merchantId: String | ||
var authRequestId: String | ||
var transactionDetails: TransactionDetails? | ||
var subscriptionDetails: SubscriptionDetails | ||
|
||
struct TransactionDetails: Codable { | ||
var providerReferenceId: String? | ||
var amount: Int? | ||
var state: String? | ||
var payResponseCode: String? | ||
var payResponseCodeDescription: String? | ||
var paymentModes: [PaymentMode]? | ||
} | ||
|
||
struct SubscriptionDetails: Codable { | ||
var subscriptionId: String | ||
var state: String | ||
} | ||
|
||
struct PaymentMode: Codable { | ||
var mode: String | ||
var amount: Int | ||
var utr: String? | ||
var ifsc: String? | ||
var maskedAccountNumber: String? | ||
var umn: String? | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters