-
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.
refactor(qris): add terminal label parameter and improve additional i…
…nformation
- Loading branch information
Showing
34 changed files
with
2,454 additions
and
861 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package config | ||
|
||
var ( | ||
AdditionalInformationDetailBillNumberTag = "01" | ||
AdditionalInformationDetailMobileNumberTag = "02" | ||
AdditionalInformationDetailStoreLabelTag = "03" | ||
AdditionalInformationDetailLoyaltyNumberTag = "04" | ||
AdditionalInformationDetailReferenceLabelTag = "05" | ||
AdditionalInformationDetailCustomerLabelTag = "06" | ||
AdditionalInformationDetailTerminalLabelTag = "07" | ||
AdditionalInformationDetailPurposeOfTransactionTag = "08" | ||
AdditionalInformationDetailAdditionalConsumerDataRequestTag = "09" | ||
AdditionalInformationDetailMerchantTaxIDTag = "10" | ||
AdditionalInformationDetailMerchantChannelTag = "11" | ||
AdditionalInformationDetailRFUTagStart = "12" | ||
AdditionalInformationDetailRFUTagEnd = "49" | ||
AdditionalInformationDetailPaymentSystemSpecificTagStart = "50" | ||
AdditionalInformationDetailPaymentSystemSpecificTagEnd = "99" | ||
) |
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,24 @@ | ||
package entities | ||
|
||
type AdditionalInformation struct { | ||
Tag string `json:"tag"` | ||
Content string `json:"content"` | ||
Data string `json:"data"` | ||
Detail AdditionalInformationDetail `json:"detail"` | ||
} | ||
|
||
type AdditionalInformationDetail struct { | ||
BillNumber Data `json:"bill_number"` | ||
MobileNumber Data `json:"mobile_number"` | ||
StoreLabel Data `json:"store_label"` | ||
LoyaltyNumber Data `json:"loyalty_number"` | ||
ReferenceLabel Data `json:"reference_label"` | ||
CustomerLabel Data `json:"customer_label"` | ||
TerminalLabel Data `json:"terminal_label"` | ||
PurposeOfTransaction Data `json:"purpose_of_transaction"` | ||
AdditionalConsumerDataRequest Data `json:"additional_consumer_data_request"` | ||
MerchantTaxID Data `json:"merchant_tax_id"` | ||
MerchantChannel Data `json:"merchant_channel"` | ||
RFU Data `json:"rfu"` | ||
PaymentSystemSpecific Data `json:"payment_system_specific"` | ||
} |
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
package entities | ||
|
||
type QRIS struct { | ||
Version Data `json:"version"` | ||
Category Data `json:"category"` | ||
Acquirer Acquirer `json:"acquirer"` | ||
Switching Switching `json:"switching"` | ||
MerchantCategoryCode Data `json:"merchant_category_code"` | ||
CurrencyCode Data `json:"currency_code"` | ||
PaymentAmount Data `json:"payment_amount"` | ||
PaymentFeeCategory Data `json:"payment_fee_category"` | ||
PaymentFee Data `json:"payment_fee"` | ||
CountryCode Data `json:"country_code"` | ||
MerchantName Data `json:"merchant_name"` | ||
MerchantCity Data `json:"merchant_city"` | ||
MerchantPostalCode Data `json:"merchant_postal_code"` | ||
AdditionalInformation Data `json:"additional_information"` | ||
CRCCode Data `json:"crc_code"` | ||
Version Data `json:"version"` | ||
Category Data `json:"category"` | ||
Acquirer Acquirer `json:"acquirer"` | ||
Switching Switching `json:"switching"` | ||
MerchantCategoryCode Data `json:"merchant_category_code"` | ||
CurrencyCode Data `json:"currency_code"` | ||
PaymentAmount Data `json:"payment_amount"` | ||
PaymentFeeCategory Data `json:"payment_fee_category"` | ||
PaymentFee Data `json:"payment_fee"` | ||
CountryCode Data `json:"country_code"` | ||
MerchantName Data `json:"merchant_name"` | ||
MerchantCity Data `json:"merchant_city"` | ||
MerchantPostalCode Data `json:"merchant_postal_code"` | ||
AdditionalInformation AdditionalInformation `json:"additional_information"` | ||
CRCCode Data `json:"crc_code"` | ||
} |
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
Oops, something went wrong.