Documentation ¶
Index ¶
- Constants
- func CanTransferBank(inquiryStatus string) (bool, error)
- func GetAcceptPaymentErrorLabel(acceptPaymentError string) (string, error)
- func GetAgentKycStatusCallbackLabel(statusCode string) (string, error)
- func GetAgentStatusLabel(agentStatus string) (string, error)
- func GetAgentVerificationErrorLabel(agentVerStatus string) (string, error)
- func GetAllAcceptPaymentErrorLabel() map[string]string
- func GetAllAgentKycStatusCallbackLabel() map[string]string
- func GetAllAgentStatusLabel() map[string]string
- func GetAllAgentVerificationErrorLabel() map[string]string
- func GetAllBankInquiryStatus() map[string]bool
- func GetAllBankInquiryStatusLabel() map[string]string
- func GetAllBankLabel() map[string]string
- func GetAllBeneficiaryRelationshipLabel() map[string]string
- func GetAllBillPaymentStatusLabel() map[string]string
- func GetAllDestinationCountry(countryCode string) map[string]DestinationCountry
- func GetAllDisbursementStatusLabel() map[string]string
- func GetAllEWallet() map[string]string
- func GetAllGeneralError() map[string]string
- func GetAllIdentityTypeLabel() map[string]string
- func GetAllInternationalCancelledReason() map[string]string
- func GetAllInternationalTransferErrorLabel() map[string]string
- func GetAllJobTypeLabel() map[string]string
- func GetAllKycRejectionReasonLabel() map[string]string
- func GetAllKycStatusLabel() map[string]string
- func GetAllPaymentSortByLabel() map[string]string
- func GetAllRemittanceLabel() map[string]string
- func GetAllSenderIdentity() map[string]string
- func GetAllSourceFundLabel() map[string]string
- func GetAllTransferError() map[string]string
- func GetBankInquiryStatusLabel(inquiryStatus string) (string, error)
- func GetBeneficiaryRelationshipLabel(relationshipCode string) (string, error)
- func GetBillPaymentStatusLabel(billPaymentStatus string) (string, error)
- func GetDisbursementStatusLabel(disbursementStatus string) (string, error)
- func GetGeneralErrorLabel(generalError string) (string, error)
- func GetIdentityTypeLabel(identityType string) (string, error)
- func GetInternationalCancelledReason(cancelReason string) (string, error)
- func GetInternationalTransferErrorLabel(intTransferError string) (string, error)
- func GetJobTypeLabel(jobType string) (string, error)
- func GetKycRejectionReasonLabel(kycRejectionReason string) (string, error)
- func GetKycStatusLabel(kycStatus string) (string, error)
- func GetLabelBank(bankCode string) (string, error)
- func GetPaymentSortByLabels(sortBy string) (string, error)
- func GetRemittanceLabel(remittancePurposes string) (string, error)
- func GetSenderBank() map[string]string
- func GetSenderIdentity(senderIdentity string) (string, error)
- func GetSourceFundLabel(sourceFundCode string) (string, error)
- func GetTransferErrorCodeLabel(errorCode string) (message string, err error)
- func GetWalletLabel(walletCode string) (string, error)
- type DestinationCountry
- type ErrorClientResponse
- type ErrorDetailModel
- type ErrorResponse
- type ErrorResponses
Constants ¶
const AcehSyariah = "aceh"
const AcpPaymentErrorAmountExceeded = "1067"
const AcpPaymentErrorBillAlreadyExp = "1048"
const AcpPaymentErrorBillAlreadyUsed = "1049"
const AcpPaymentErrorBillExpInvalid = "1047"
const AcpPaymentErrorBillIDNotFound = "1050"
const AcpPaymentErrorBillMaxExceeded = "1046"
const AcpPaymentErrorBillTypeInvalid = "1045"
const AcpPaymentErrorBillTypeRequired = "1044"
const AcpPaymentErrorEndDateInvalid = "1057"
const AcpPaymentErrorInvalidDateRange = "1058"
const AcpPaymentErrorPageRequired = "1052"
const AcpPaymentErrorPaginationNumber = "1054"
const AcpPaymentErrorPaginationRequired = "1053"
const AcpPaymentErrorProductBillIDNotFound = "1055"
const AcpPaymentErrorProductCodeRequired = "1051"
const AcpPaymentErrorRedirectUrlInvalid = "1060"
const AcpPaymentErrorSortByInvalid = "1063"
const AcpPaymentErrorSortTypeInvalid = "1064"
const AcpPaymentErrorStartDateInvalid = "1056"
const AcpPaymentErrorStatusInvalid = "1061"
const AcpPaymentErrorTitleInvalid = "1062"
const AcpPaymentErrorTransferMin = "1059"
const AcpPaymentErrorUndefined = "999"
const AgentIdentityKTP = "ktp"
const AgentIdentityKTPEnum = "1"
const AgentIdentityPassport = "passport"
const AgentIdentityPassportEnum = "2"
const AgentStatusActive = "10"
const AgentStatusBlacklisted = "20"
const AgentStatusBlocked = "30"
const AgentStatusDeleted = "0"
const AgentVerErrorAgentIDNotFound = "1011"
const AgentVerErrorAgentStatusNotValid = "4010"
const AgentVerErrorAttributeCharInvalid = "2001"
const AgentVerErrorAttributeDuplicate = "2002"
const AgentVerErrorAttributeEmpty = "1001"
const AgentVerErrorAttributeInvalid = "1002"
const AgentVerErrorAttributeNonAlphaNum = "2004"
const AgentVerErrorAttributeNonSterile = "2003"
const AgentVerErrorCantCreate = "4015"
const AgentVerErrorEndpointNotFound = "404"
const AgentVerErrorFailReadImage = "4009"
const AgentVerErrorForbidden = "403"
const AgentVerErrorIdentityNumExists = "4012"
const AgentVerErrorImageNotSimilar = "4014"
const AgentVerErrorImageNotValid = "4008"
const AgentVerErrorImageSizeMax = "4007"
const AgentVerErrorInternalServerError = "500"
const AgentVerErrorInternalServerError503 = "503"
const AgentVerErrorInvalidDocType = "4013"
const AgentVerErrorInvalidIdentityType = "4004"
const AgentVerErrorInvalidInput = "4001"
const AgentVerErrorInvalidToken = "401"
const AgentVerErrorInvalidUserID = "400"
const AgentVerErrorInvalidUserID4003 = "4003"
const AgentVerErrorInvalidUserType = "4002"
const AgentVerErrorRejectedReasonNotMatch = "4006"
const AgentVerErrorRetryMaxAchieved = "4011"
const AladinSyariah = "aladin"
const AntarDaerah = "antardaerah"
const Anz = "anz"
const ApiDev = "dev"
const ApiKYC = "kyc"
const ApiProdV2 = "v2"
const ApiProdV3 = "v3"
const ApiUrlDev = "https://bigflip.id/big_sandbox_api"
const ApiUrlKyc = "https://api.flip.id/kyc/api/v1"
const ApiUrlKycDev = "https://api.flip.id/kyc-sandbox/api/v1"
const ApiUrlProdV2 = "https://bigflip.id/api/v2"
const ApiUrlProdV3 = "https://bigflip.id/api/v3"
const Artha = "artha"
const Artos = "artos"
const BCA = "bca"
const BCADigital = "royal"
const BCASyariah = "bca_syr"
const BJB = "bjb"
const BJBSyariah = "bjb_syr"
const BNI = "bni"
const BOCLimited = "boc"
const BPDBali = "bali"
const BPDBanten = "banten"
const BPTNSyariah = "btpn_syr"
const BRI = "bri"
const BRIAgroniaga = "agroniaga"
const BTNSyariah = "btn"
const BTPN = "tabungan_pensiunan_nasional"
const BankStatusDisturbed = "DISTURBED"
BankStatusDisturbed Banks are slow or have another problem. Disbursement will still be processed, but in slower pace and might be delayed
const BankStatusHeavilyDisturbed = "HEAVILY_DISTURBED"
BankStatusHeavilyDisturbed Banks are having an error, offline, or another problem that result in a nearly unusable system. Disbursement to this bank can not be processed in a short time, and maybe won’t be processed in the same day. You can ask for a refund if this happens.
const BankStatusOperational = "OPERATIONAL"
BankStatusOperational Banks are operational, disbursement will be processed as soon as possible
const BankSyariahIndo = "bsm"
const BankTypeBankAccount = "bank_account"
const BankTypeVirtualAccount = "virtual_account"
const BankTypeWalletAccount = "wallet_account"
const BeneficiaryRelAunt = "AUNT"
const BeneficiaryRelBIL = "BROTHER_IN_LAW"
const BeneficiaryRelBrother = "BROTHER"
const BeneficiaryRelCousin = "COUSIN"
const BeneficiaryRelDaughter = "DAUGHTER"
const BeneficiaryRelFIL = "FATHER_IN_LAW"
const BeneficiaryRelFather = "FATHER"
const BeneficiaryRelFriend = "FRIEND"
const BeneficiaryRelGrandFather = "GRAND_FATHER"
const BeneficiaryRelGrandMother = "GRAND_MOTHER"
const BeneficiaryRelHusband = "HUSBAND"
const BeneficiaryRelMIL = "MOTHER_IN_LAW"
const BeneficiaryRelMother = "MOTHER"
const BeneficiaryRelNephew = "NEPHEW"
const BeneficiaryRelNiece = "NIECE"
const BeneficiaryRelSIL = "SISTER_IN_LAW"
const BeneficiaryRelSelf = "SELF"
const BeneficiaryRelSister = "SISTER"
const BeneficiaryRelSon = "SON"
const BeneficiaryRelUncle = "UNCLE"
const BeneficiaryRelWife = "WIFE"
const Bengkulu = "bengkulu"
const BillPaymentStatusCancelled = "CANCELED"
const BillPaymentStatusDone = "DONE"
const BillPaymentStatusFailed = "FAILED"
const BillPaymentStatusNotConfirmed = "NOT_CONFIRMED"
const BillPaymentStatusPending = "PENDING"
const BillPaymentStatusProcessed = "PROCESSED"
const BillStatusActive = "ACTIVE"
const BillStatusInActive = "INACTIVE"
const BillStepOne = "1"
const BillStepThree = "3"
const BillStepTwo = "2"
const BillTypeMultiple = "MULTIPLE"
const BillTypeSingle = "SINGLE"
const BpdDIY = "daerah_istimewa"
const BpdDiySyariah = "daerah_istimewa_syr"
const Bukopin = "bukopin"
const BukopinSyariah = "bukopin_syr"
const BumiArta = "bumi_arta"
const CCBIndo = "ccb"
const CIMB = "cimb"
const CNB = "cnb"
const CTBCIndo = "chinatrust"
const CapitalIndo = "capital"
const Citibank = "citibank"
const CommonWealth = "commonwealth"
const ContentTypeFormUrlEncoded = "application/x-www-form-urlencoded"
const ContentTypeMultipart = "multipart/form-data"
const CountryCodeAndorra = "AND"
const CountryCodeAustralia = "AUS"
const CountryCodeAustria = "AUT"
const CountryCodeBelgium = "BEL"
const CountryCodeBulgaria = "BGR"
const CountryCodeChina = "CHN"
const CountryCodeCroatia = "HRV"
const CountryCodeCyprus = "CYP"
const CountryCodeCzechRepublic = "CZE"
const CountryCodeDenmark = "DNK"
const CountryCodeEstonia = "EST"
const CountryCodeFinland = "FIN"
const CountryCodeFrance = "FRA"
const CountryCodeGermany = "DEU"
const CountryCodeGreece = "GRC"
const CountryCodeHongKong = "HKG"
const CountryCodeHungary = "HUN"
const CountryCodeIceland = "ISL"
const CountryCodeIreland = "IRL"
const CountryCodeItaly = "ITA"
const CountryCodeJapan = "JPN"
const CountryCodeLatvia = "LVA"
const CountryCodeLiechtenstein = "LIE"
const CountryCodeLithuania = "LTU"
const CountryCodeLuxembourg = "LUX"
const CountryCodeMalaysia = "MYS"
const CountryCodeMalta = "MLT"
const CountryCodeMonaco = "MCO"
const CountryCodeNetherlands = "NLD"
const CountryCodeNorway = "NOR"
const CountryCodePoland = "POL"
const CountryCodePortugal = "PRT"
const CountryCodeRomania = "ROU"
const CountryCodeSanMarino = "SMR"
const CountryCodeSaudiArabia = "SAU"
const CountryCodeSingapore = "SGD"
const CountryCodeSlovakia = "SVK"
const CountryCodeSlovenia = "SVN"
const CountryCodeSouthKorea = "KOR"
const CountryCodeSpain = "ESP"
const CountryCodeSweden = "SWE"
const CountryCodeSwitzerland = "CHE"
const CountryCodeThailand = "THA"
const CountryCodeTurkey = "TUR"
const CountryCodeUnitedArabEmirates = "ARE"
const CountryCodeUnitedKingdom = "GBR"
const CountryCodeVaticanCityState = "VAT"
const CurrencyCodeAndorra = CurrencyCodeEuro
const CurrencyCodeAustralia = "AUD"
const CurrencyCodeAustria = CurrencyCodeEuro
const CurrencyCodeBelgium = CurrencyCodeEuro
const CurrencyCodeBulgaria = CurrencyCodeEuro
const CurrencyCodeChina = "CNY"
const CurrencyCodeCroatia = CurrencyCodeEuro
const CurrencyCodeCyprus = CurrencyCodeEuro
const CurrencyCodeCzechRepublic = CurrencyCodeEuro
const CurrencyCodeDenmark = CurrencyCodeEuro
const CurrencyCodeEstonia = CurrencyCodeEuro
const CurrencyCodeEuro = "EUR"
const CurrencyCodeFinland = CurrencyCodeEuro
const CurrencyCodeFrance = CurrencyCodeEuro
const CurrencyCodeGermany = CurrencyCodeEuro
const CurrencyCodeGreece = CurrencyCodeEuro
const CurrencyCodeHongKongCNY = CurrencyCodeChina
const CurrencyCodeHongKongHKD = "HKD"
const CurrencyCodeHungary = CurrencyCodeEuro
const CurrencyCodeIceland = CurrencyCodeEuro
const CurrencyCodeIreland = CurrencyCodeEuro
const CurrencyCodeItaly = CurrencyCodeEuro
const CurrencyCodeJapan = "JPY"
const CurrencyCodeLatvia = CurrencyCodeEuro
const CurrencyCodeLiechtenstein = CurrencyCodeEuro
const CurrencyCodeLithuania = CurrencyCodeEuro
const CurrencyCodeLuxembourg = CurrencyCodeEuro
const CurrencyCodeMalaysia = "MYR"
const CurrencyCodeMalta = CurrencyCodeEuro
const CurrencyCodeMonaco = CurrencyCodeEuro
const CurrencyCodeNetherlands = CurrencyCodeEuro
const CurrencyCodeNorway = CurrencyCodeEuro
const CurrencyCodePoland = CurrencyCodeEuro
const CurrencyCodePortugal = CurrencyCodeEuro
const CurrencyCodeRomania = CurrencyCodeEuro
const CurrencyCodeSanMarino = CurrencyCodeEuro
const CurrencyCodeSaudiArabia = "SAR"
const CurrencyCodeSingapore = "SGD"
const CurrencyCodeSlovakia = CurrencyCodeEuro
const CurrencyCodeSlovenia = CurrencyCodeEuro
const CurrencyCodeSouthKorea = "KRW"
const CurrencyCodeSpain = CurrencyCodeEuro
const CurrencyCodeSweden = CurrencyCodeEuro
const CurrencyCodeSwitzerland = CurrencyCodeEuro
const CurrencyCodeThailand = "THB"
const CurrencyCodeTurkey = "TRY"
const CurrencyCodeUnitedArabEmirates = "AED"
const CurrencyCodeUnitedKingdom = "GBP"
const CurrencyCodeVaticanCityState = CurrencyCodeEuro
const DBSIndo = "dbs"
const DKI = "dki"
const DKISyariah = "dki_syr"
const Dana = "dana"
const DanamonSyariah = "danamon"
const DinarIndo = "dinar"
const DisbursementDirectionDomesticSpecialTransfer = "DOMESTIC_SPECIAL_TRANSFER"
DisbursementDirectionDomesticSpecialTransfer Special disbursement from the user of a Money Transfer Company residing in Indonesia to Indonesian recipient
const DisbursementDirectionDomesticTransfer = "DOMESTIC_TRANSFER"
DisbursementDirectionDomesticTransfer Common Disbursement from Indonesia to Indonesian recipient
const DisbursementDirectionForeignInboundSpecialTransfer = "FOREIGN_INBOUND_SPECIAL_TRANSFER"
DisbursementDirectionForeignInboundSpecialTransfer Special disbursement from the user of a Money Transfer Company residing in a foreign country to Indonesian recipient
const DisbursementReasonCantReceiveTransfer = "CANT_RECEIVE_TRANSFER "
DisbursementReasonCantReceiveTransfer Can’t receive transfer / Rekening tujuan tidak dapat menerima transfer
const DisbursementReasonInactiveAccount = "INACTIVE_ACCOUNT "
DisbursementReasonInactiveAccount Inactive account / Nomor rekening tidak aktif
const DisbursementReasonIntermittentDisturbance = "INTERMITTENT_DISTURBANCE_ON_BENEFICIARY_BANK"
DisbursementReasonIntermittentDisturbance Intermittent disturbance on destination bank / Bank tujuan sementara mengalami gangguan
const DisbursementReasonNotRegisteredAccount = "NOT_REGISTERED_ACCOUNT "
DisbursementReasonNotRegisteredAccount Not registered account / Nomor rekening tidak terdaftar
const DisbursementReasonNotVerified = "BENEFICIARY_ACCOUNT_NOT_VERIFIED "
DisbursementReasonNotVerified Account is not verified / Rekening tujuan belum terverifikasi
const DisbursementStatusCancelled = "CANCELLED"
DisbursementStatusCancelled The transaction is cancelled and the amount of the transaction plus the transaction fee will be credited to your balance. This will happen if the transfer process are failed for reason such as inactive recipient account, wrong account number, etc
const DisbursementStatusDone = "DONE"
DisbursementStatusDone Disbursement process is finished and the money have been sent to the recipient
const DisbursementStatusPending = "PENDING"
DisbursementStatusPending Disbursement is still in process
const Eka = "eka"
const Ganesha = "ganesha"
const GenderFemale = "female"
const GenderMale = "male"
const GeneralErrorBalanceInsufficient = "BALANCE_INSUFFICIENT"
const GeneralErrorValidationError = "VALIDATION_ERROR"
const GoPay = "gopay"
const HSBCIndo = "hsbc"
const Hana = "hana"
const HardaInter = "harda"
const HeaderAuthorization = "Authorization"
const HeaderContentType = "Content-Type"
const HeaderIdempotencyKey = "idempotency-key"
const HeaderRequestID = "Request-ID"
const HeaderTimestamp = "X-TIMESTAMP"
const IBKIndo = "agris"
const ICBCIndo = "icbc"
const IdentityAddressFlagFalse = 0
const IdentityAddressFlagTrue = 1
const InaPerdana = "ina_perdana"
const IndexSelindo = "index_selindo"
const IndiaIndo = "india"
const InquiryStatusBlackListed = "BLACK_LISTED"
InquiryStatusBlackListed Bank account have been confirmed on doing a fraud and therefore is blacklisted. You can’t do a disbursement to this account.
const InquiryStatusClosed = "CLOSED"
InquiryStatusClosed The inquiry process is complete and the account is valid, but it is closed/inactive so that it cannot receive money. You cannot do a disbursement to this account.
const InquiryStatusFailed = "FAILED"
InquiryStatusFailed The inquiry process is failed before we get the final status of the inquiry, e.g. due to timeout or any other errors from the bank. If you get this response, please retry the inquiry to trigger reverification of the account.
const InquiryStatusInvalidAccountNumber = "INVALID_ACCOUNT_NUMBER"
InquiryStatusInvalidAccountNumber Inquiry process is complete but the account number is invalid or maybe a virtual account number
const InquiryStatusPending = "PENDING"
InquiryStatusPending Inquiry still in process
const InquiryStatusSuccess = "SUCCESS"
InquiryStatusSuccess Inquiry process is complete and bank account number is valid
const InquiryStatusSuspectedAccount = "SUSPECTED_ACCOUNT"
InquiryStatusSuspectedAccount Bank account have been suspected on doing fraud. You still can do a disbursement to this account.
const IntCancelReasonBarredBeneficiary = "BARRED_BENEFICIARY"
const IntCancelReasonBarredSender = "BARRED_SENDER"
const IntCancelReasonCancelled = "CANCELLED"
const IntCancelReasonCompliance = "COMPLIANCE_REASON"
const IntCancelReasonDeclined = "DECLINED"
const IntCancelReasonDuplicate = "DUPLICATED_TRANSACTION"
const IntCancelReasonInvalidBeneficiary = "INVALID_BENEFICIARY"
const IntCancelReasonInvalidBeneficiaryDetails = "INVALID_BENEFICIARY_DETAILS"
const IntCancelReasonLimitAccQty = "LIMITATIONS_ON_ACCOUNT_QUANTITY"
const IntCancelReasonLimitAccValue = "LIMITATIONS_ON_ACCOUNT_VALUE"
const IntCancelReasonLimitBeneficiaryQty = "LIMITATIONS_ON_BENEFICIARY_QUANTITY"
const IntCancelReasonLimitSenderQty = "LIMITATIONS_ON_SENDER_QUANTITY"
const IntCancelReasonLimitTransValue = "LIMITATIONS_ON_TRANSACTION_VALUE"
const IntCancelReasonRefused = "REFUSED"
const IntCancelReasonSLSBeneficiary = "SLS_BENEFICIARY"
const IntCancelReasonSLSSender = "SLS_SENDER"
const IntCancelReasonUnsupportedBeneficiary = "UNSUPPORTED_BENEFICIARY"
const IntTransferErrorAmountDecimal = "1083"
const IntTransferErrorAmountMaxExceeded = "1081"
const IntTransferErrorAmountMinNotReach = "1082"
const IntTransferErrorAttributeAlphaNum = "1084"
const IntTransferErrorAttributeMaxChar = "1024"
const IntTransferErrorAttributeMinChar = "1087"
const IntTransferErrorAttributeNumber = "1020"
const IntTransferErrorInvalidAttribute = "1041"
const IntTransferErrorInvalidCity = "1038"
const IntTransferErrorInvalidCountry = "1034"
const IntTransferErrorInvalidCountryCode = "1068"
const IntTransferErrorInvalidDate = "1040"
const IntTransferErrorInvalidDateFormat = "1039"
const IntTransferErrorInvalidTransType = "1069"
const IntTransferErrorRequestStale = "1094"
const IntTransferErrorTimestampInvalid = "1095"
const IntTransferErrorUndefined = "999"
const IntTransferErrorWordMin = "1085"
const JaTeng = "jawa_tengah"
const JaTengSyariah = "jawa_tengah_syr"
const JaTim = "jawa_timur"
const JaTimSyariah = "jawa_timur_syr"
const JagoSyariah = "artos_syr"
const Jambi = "jambi"
const JambiSyariah = "jambi_syr"
const JasaJakarta = "jasa_jakarta"
const JobTypeCompany = "company"
const JobTypeEntrepreneur = "entrepreneur"
const JobTypeFoundationBoard = "foundation_board"
const JobTypeGovernmentEmployee = "government_employee"
const JobTypeHouseWife = "housewife"
const JobTypeIndonesianMigrantWorker = "indonesian_migrant_worker"
const JobTypeOthers = "others"
const JobTypePrivateEmployee = "private_employee"
const KalBar = "kalimantan_barat"
const KalBarSyariah = "kalimantan_barat_syr"
const KalSel = "kalimantan_selatan"
const KalSelSyariah = "kalimantan_selatan_syr"
const KalTeng = "kalimantan_tengah"
const KalTim = "kalimantan_timur"
const KalTimSyariah = "kalimantan_timur_syr"
const KyCStatusCallbackApproved = "40"
const KyCStatusCallbackRejected = "50"
const KyCStatusCallbackUploadSelfieFailed = "15"
const KyCStatusCallbackUploadSelfieSuccess = "19"
const KycRejectionBackground = "21"
const KycRejectionCantRead = "14"
const KycRejectionCombinationFaceImage = "24"
const KycRejectionCombinationNotHold = "26"
const KycRejectionCombinationNotMatch = "25"
const KycRejectionCombinationNotVisible = "23"
const KycRejectionDataNotMatch = "10"
const KycRejectionIdentityBrokenUp = "18"
const KycRejectionIdentityExpired = "19"
const KycRejectionIdentityNotCaptured = "16"
const KycRejectionIdentityPartCantRead = "17"
const KycRejectionIdentityTypeNotValid = "15"
const KycRejectionNIKAlreadyRegistered = "12"
const KycRejectionNIKBolded = "13"
const KycRejectionNIKFormat = "11"
const KycRejectionNeedConfirmation = "30"
const KycRejectionNotOriginal = "20"
const KycRejectionNotOriginalPhoto = "22"
const KycRejectionPhotoTakenIndirectly = "27"
const KycRejectionUsingVeil = "28"
const KycRejectionViolateTOC = "29"
const KycStatusApproved = "APPROVED"
const KycStatusBasicData = "BASIC_DATA"
const KycStatusHelp = "HELP"
const KycStatusNeedCheck = "NEED_TO_CHECK"
const KycStatusPending = "PENDING"
const KycStatusRejected = "REJECTED"
const KycStatusSuspicious = "SUSPICIOUS"
const KycStatusUploadIdentityFailed = "UPLOAD_IDENTITY_FAILED"
const KycStatusUploadIdentitySuccess = "UPLOAD_IDENTITY_SUCCESS"
const KycStatusUploadSelfieFailed = "UPLOAD_IDENTITY_SELFIE_FAILED"
const KycStatusUploadSelfieProgress = "UPLOAD_IDENTITY_SELFIE_PROGRESS"
const KycStatusUploadSelfieSuccess = "UPLOAD_IDENTITY_SELFIE_SUCCESS"
const Lampung = "lampung"
const LinkAja = "linkaja"
const LinkAjaApp = "linkaja_app"
const MNC = "mnc_internasional"
const MaintenanceMessage = "flip currently in maintenance, please try again later [LOG: %s]"
const Maluku = "maluku"
const Mandiri = "mandiri"
const Mantap = "mantap"
const Maspion = "maspion"
const Mayapada = "mayapada"
const MaybankIndo = "bii"
const MaybankSyariah = "bii_syr"
const MayoraIndo = "mayora"
const Mega = "mega"
const MegaSyariah = "mega_syr"
const MestikaDharma = "mestika_dharma"
const Muamalat = "muamalat"
const MultiArtaSentosa = "mas"
const Mutiara = "mutiara"
const NTBSyariah = "nusa_tenggara_barat"
const NTT = "nusa_tenggara_timur"
const Nagari = "sumatera_barat"
const NagariSyariah = "sumatera_barat_syr"
const Nobu = "nationalnobu"
const NusaParahyangan = "nusantara_parahyangan"
const OCBC = "ocbc"
const OCBCSyariah = "ocbc_syr"
const Ovo = "ovo"
const Panin = "panin"
const PaninSyariah = "panin_syr"
const Papua = "papua"
const PaymentSortByAmount = "amount"
const PaymentSortByBillLink = "bill_link"
const PaymentSortByBillTitle = "bill_title"
const PaymentSortByCreatedAt = "created_at"
const PaymentSortByID = "id"
const PaymentSortBySenderBank = "sender_bank"
const Permata = "permata"
const PermataSyariah = "permata_syr"
const Prima = "prima"
const ProductAcceptPayment = "accept_payment"
const ProductAgentMoneyTransfer = "agent_money_transfer"
const ProductAgentVerification = "agent_verification"
const ProductGeneral = "general"
const ProductInternationalTransfer = "international_transfer"
const ProductMoneyTransfer = "money_transfer"
const ProductSpecialMoneyTransfer = "special_money_transfer"
const QNBIndo = "qnb_kesawan"
const Qris = "qris"
const RSAKeyBitTotal = 2048
const RaboBankInterIndo = "rabobank"
const RemittanceAdsExpenses = "ADVERTISING_EXPENSES"
const RemittanceAdvisoryFees = "ADVISORY_FEES"
const RemittanceBusinessInsurance = "BUSINESS_INSURANCE"
const RemittanceComputerServices = "COMPUTER_SERVICES"
const RemittanceConstructionExpenses = "CONSTRUCTION_EXPENSES"
const RemittanceDeliveryFees = "DELIVERY_FEES"
const RemittanceEducation = "EDUCATION"
const RemittanceExportedGoods = "EXPORTED_GOODS"
const RemittanceFamilySupport = "FAMILY_SUPPORT"
const RemittanceFundInvestment = "FUND_INVESTMENT"
const RemittanceGiftDonation = "GIFT_AND_DONATION"
const RemittanceHotelAccommodation = "HOTEL_ACCOMMODATION"
const RemittanceInfluencerPayment = "INFLUENCER_PAYMENT"
const RemittanceInsuranceClaims = "INSURANCE_CLAIMS"
const RemittanceLiberalized = "LIBERALIZED_REMITTANCE"
const RemittanceLoanPayment = "LOAN_PAYMENT"
const RemittanceMaintenanceExpenses = "MAINTENANCE_EXPENSES"
const RemittanceMedicalTreatment = "MEDICAL_TREATMENT"
const RemittanceOfficeExpenses = "OFFICE_EXPENSES"
const RemittanceOtherFees = "OTHER_FEES"
const RemittancePersonalTransfer = "PERSONAL_TRANSFER"
const RemittancePropertyPurchase = "PROPERTY_PURCHASE"
const RemittancePropertyRental = "PROPERTY_RENTAL"
const RemittanceRewardPayment = "REWARD_PAYMENT"
const RemittanceRoyaltyFees = "ROYALTY_FEES"
const RemittanceSalaryPayment = "SALARY_PAYMENT"
const RemittanceServiceCharges = "SERVICE_CHARGES"
const RemittanceSmallValue = "SMALL_VALUE_REMITTANCE"
const RemittanceTaxPayment = "TAX_PAYMENT"
const RemittanceTransportationFees = "TRANSPORTATION_FEES"
const RemittanceTravel = "TRAVEL"
const RemittanceUtilityBills = "UTILITY_BILLS"
const RiauKepri = "riau_dan_kepri"
const SBIINdo = "sbi_indonesia"
const Sampoerna = "sahabat_sampoerna"
const SeabankBKE = "kesejahteraan_ekonomi"
const SelfieFlagFalse = "0" // Denotes that the uploaded file is identity image.
const SelfieFlagTrue = "1" // Denotes that the uploaded file is selfie with identity image.
const SenderIdentityBankAccount = "bank_acc" // Default
const SenderIdentityDriverLicense = "drv_lic"
const SenderIdentityNatID = "nat_id"
const SenderIdentityPassport = "passport"
const ShinhanIndo = "shinhan"
const ShopeePay = "shopeepay"
const ShopeePayApp = "shopeepay_app"
const Sinarmas = "sinarmas"
const SinarmasSyariah = "sinarmas_syr"
const SortTypeASC = "sort_asc" // ascending
const SortTypeDESC = "sort_desc" // descending
const SourceFundBusiness = "BUSINESS"
const SourceFundGift = "GIFT"
const SourceFundSalary = "SALARY"
const SourceFundSavings = "SAVINGS"
const StandardChartered = "standard_chartered"
const Sulawesi = "sulawesi"
const Sulselbar = "sulselbar"
const SulselbarSyariah = "sulselbar_syr"
const Sultra = "sulawesi_tenggara"
const SulutGo = "sulut"
const SumselBabel = "sumsel_dan_babel"
const SumselBabelSyariah = "sumsel_dan_babel_syr"
const Sumut = "sumut"
const SumutSyariah = "sumut_syr"
const TimeFormatBirthDate = "2006-01-02"
const TimeFormatExpiredDate = "2006-01-02 15:04"
const TimeFormatHeader = time.RFC3339
TimeFormatHeader using ISO8601 2020-07-10 15:00:00.000 is represents the 10th of July 2020 at 3 p.m.
const TimeFormatPagination = "2006-01-02"
const TokyoMitsubishi = "tokyo"
const TransactionTypeB2B = "B2B"
const TransactionTypeB2C = "B2C"
const TransactionTypeC2B = "C2B"
const TransactionTypeC2C = "C2C"
const TransferErrorAccountClosed = "1027"
const TransferErrorAccountFround = "1026"
const TransferErrorAccountInvalid = "1025"
const TransferErrorAgentNotActive = "1091"
const TransferErrorAgentNotAllowUpdate = "1092"
const TransferErrorAgentStatusNotApproved = "1090"
const TransferErrorAttributeDuplicated = "2002"
const TransferErrorAttributeEmpty = "1001"
const TransferErrorAttributeMax = "1022"
const TransferErrorAttributeMin = "1021"
const TransferErrorAttributeMinChar = "2001"
const TransferErrorAttributeNonAlphaNum = "2004"
const TransferErrorAttributeNotClean = "2003"
const TransferErrorAttributeNotCleanSymbols = "1002"
const TransferErrorAttributeNumber = "1020"
const TransferErrorBeneficiaryBankDisturbance = "1088"
const TransferErrorBillTitleEmpty = "1043"
const TransferErrorCantProcess = "1093"
const TransferErrorDailyLimitExceeded = "1074"
const TransferErrorDisbursementIDNotFound = "1072"
const TransferErrorDisbursementIdemNotFound = "1073"
const TransferErrorFlipAccount = "1089"
const TransferErrorInsufficientBalance = "1035"
const TransferErrorInvalidAttribute = "1041"
const TransferErrorInvalidBankCode = "1033"
const TransferErrorInvalidBeneficiaryEmail = "1071"
const TransferErrorInvalidCity = "1038"
const TransferErrorInvalidCountry = "1034"
const TransferErrorInvalidDate = "1040"
const TransferErrorInvalidDateFormat = "1039"
const TransferErrorMaxBeneficiaryEmail = "1070"
const TransferErrorMaxCharExceeded = "1024"
const TransferErrorMaxLimitActive = "1080"
const TransferErrorMinDana = "1086"
const TransferErrorMinOvo = "1042"
const TransferErrorPagination = "1032"
const TransferErrorStale = "1094"
const TransferErrorUndefined = "999"
const TransferErrorXTimestampInvalid = "1095"
const UOB = "uob"
const UserTypeAgent = "1"
const VictoriaInternational = "victoria_internasional"
const VictoriaSyariah = "victoria_syr"
const WooriSaudara = "woori"
const YudhaBhakti = "yudha_bakti"
Variables ¶
This section is empty.
Functions ¶
func CanTransferBank ¶
func GetAgentStatusLabel ¶
func GetAllAgentStatusLabel ¶
func GetAllBankInquiryStatus ¶
GetAllBankInquiryStatus this function to get all status inquiry and see if you can do transfer or not
func GetAllBankLabel ¶
func GetAllDestinationCountry ¶
func GetAllDestinationCountry(countryCode string) map[string]DestinationCountry
func GetAllEWallet ¶
func GetAllGeneralError ¶
func GetAllIdentityTypeLabel ¶
func GetAllJobTypeLabel ¶
func GetAllKycStatusLabel ¶
func GetAllRemittanceLabel ¶
func GetAllSenderIdentity ¶
func GetAllSourceFundLabel ¶
func GetAllTransferError ¶
func GetGeneralErrorLabel ¶
func GetIdentityTypeLabel ¶
func GetJobTypeLabel ¶
func GetKycStatusLabel ¶
func GetLabelBank ¶
func GetPaymentSortByLabels ¶
func GetRemittanceLabel ¶
func GetSenderBank ¶
func GetSenderIdentity ¶
func GetSourceFundLabel ¶
func GetWalletLabel ¶
Types ¶
type DestinationCountry ¶
type ErrorClientResponse ¶
type ErrorClientResponse struct { Code string `json:"code"` // outer_code CodeLabel string `json:"code_label"` Errors []ErrorDetailModel `json:"errors"` }
ErrorClientResponse Example:
{ "code": [outer_code], "errors": [ { "attribute": "[attribute]", "code": [inner_code], "message": "[message]" } ] }
type ErrorDetailModel ¶
type ErrorResponse ¶
type ErrorResponse struct { Name string `json:"name"` Message string `json:"message"` Status int `json:"status"` }
ErrorResponse Example ErrorResponse:
{ "name": "Unauthorized", "message": "You are requesting with an invalid credential.", "status": 401, }
{ "name": "Not Found", "message": "Page not found.", "status": 404, }
type ErrorResponses ¶
type ErrorResponses struct { ErrorMessage string `json:"error_message"` ErrorDetails []ErrorDetailModel `json:"error_details"` }