-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename all properties in the library to match the API reference #544
Merged
brandur-stripe
merged 32 commits into
master
from
remi-rename-all-fields-and-move-to-pointers
Jun 6, 2018
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
fdd38c4
Rename all properties in the library to match the API reference
remi-stripe afadd09
Add methods to manage parameter types as pointers
remi-stripe f875db9
Rework most of the library naming and structure
remi-stripe 0af1351
Move UsageRecord to pointers for parameters
remi-stripe eeafe40
Moving all int/uint to int64 for consistency
remi-stripe edc4a19
Properly handle Document on legal entity for resource and params
remi-stripe d18ea7f
Fix customer to be a pointer on OrderListParams
remi-stripe 00d32a1
Properly rename Fullfilled even though it does not match the API
remi-stripe 165546b
Fix remaining params not passed as booleans
remi-stripe 5dc66db
Fix examples in the Readme to match new logic
remi-stripe c395132
Fixed missed parameters/properties names
remi-stripe 266cda7
Review fixes
remi-stripe 275bd35
Use custom types for resources and string on params
remi-stripe 8e1e874
Remove the currency package
remi-stripe 19d0c24
Move all embedded struct resources to pointers
remi-stripe c0085ac
Properly move any remaining parameter slices to a slice of pointers
remi-stripe 66ac54f
Fix resources to pass a parameter's value in the URL not the pointer
remi-stripe c0d2ee1
Fix the parameter to be the value and not the pointer address
remi-stripe 63d5c58
Address review comments
remi-stripe 21fac3e
Fix extra space
remi-stripe 0ce559d
Plan creation allows specific params for inline Product creation
remi-stripe e2dcfe1
Create params for cancelation and add support for cancel_at_period_end
remi-stripe 53cda78
Rename discount's DelSub to DelSubscription and fix unit test
remi-stripe f246515
Only pass custom sub parameter if booleans are true
remi-stripe ec9f324
Add support for the account token on Account creation or update
remi-stripe e0331df
Added constants and properties/params for Plan Product while review docs
remi-stripe 8c71eb5
Reverting ApplicationFeeRefund back to FeeRefund
remi-stripe 537b35b
Fix test parameters to be compatible with stripe-mock 0.17.0
brandur 22d1bb9
Convert Params and ListParams fields to pointers as well for consistency
brandur b3c54c5
Add ListParams.SetStripeAccount and use it in tests
brandur 69562de
Fixed one last example
remi-stripe 56c6c56
Fix card and bank account endpoints to the most recent ones
remi-stripe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove the currency package
- Loading branch information
commit 8e1e87414afec171045ba56d7b80a688eed8560b
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
package stripe | ||
|
||
// Currency is the list of supported currencies. | ||
// For more details see https://support.stripe.com/questions/which-currencies-does-stripe-support. | ||
type Currency string | ||
|
||
const ( | ||
CurrencyAED Currency = "aed" // United Arab Emirates Dirham | ||
CurrencyAFN Currency = "afn" // Afghan Afghani | ||
CurrencyALL Currency = "all" // Albanian Lek | ||
CurrencyAMD Currency = "amd" // Armenian Dram | ||
CurrencyANG Currency = "ang" // Netherlands Antillean Gulden | ||
CurrencyAOA Currency = "aoa" // Angolan Kwanza | ||
CurrencyARS Currency = "ars" // Argentine Peso | ||
CurrencyAUD Currency = "aud" // Australian Dollar | ||
CurrencyAWG Currency = "awg" // Aruban Florin | ||
CurrencyAZN Currency = "azn" // Azerbaijani Manat | ||
CurrencyBAM Currency = "bam" // Bosnia & Herzegovina Convertible Mark | ||
CurrencyBBD Currency = "bbd" // Barbadian Dollar | ||
CurrencyBDT Currency = "bdt" // Bangladeshi Taka | ||
CurrencyBGN Currency = "bgn" // Bulgarian Lev | ||
CurrencyBIF Currency = "bif" // Burundian Franc | ||
CurrencyBMD Currency = "bmd" // Bermudian Dollar | ||
CurrencyBND Currency = "bnd" // Brunei Dollar | ||
CurrencyBOB Currency = "bob" // Bolivian Boliviano | ||
CurrencyBRL Currency = "brl" // Brazilian Real | ||
CurrencyBSD Currency = "bsd" // Bahamian Dollar | ||
CurrencyBWP Currency = "bwp" // Botswana Pula | ||
CurrencyBZD Currency = "bzd" // Belize Dollar | ||
CurrencyCAD Currency = "cad" // Canadian Dollar | ||
CurrencyCDF Currency = "cdf" // Congolese Franc | ||
CurrencyCHF Currency = "chf" // Swiss Franc | ||
CurrencyCLP Currency = "clp" // Chilean Peso | ||
CurrencyCNY Currency = "cny" // Chinese Renminbi Yuan | ||
CurrencyCOP Currency = "cop" // Colombian Peso | ||
CurrencyCRC Currency = "crc" // Costa Rican Colón | ||
CurrencyCVE Currency = "cve" // Cape Verdean Escudo | ||
CurrencyCZK Currency = "czk" // Czech Koruna | ||
CurrencyDJF Currency = "djf" // Djiboutian Franc | ||
CurrencyDKK Currency = "dkk" // Danish Krone | ||
CurrencyDOP Currency = "dop" // Dominican Peso | ||
CurrencyDZD Currency = "dzd" // Algerian Dinar | ||
CurrencyEEK Currency = "eek" // Estonian Kroon | ||
CurrencyEGP Currency = "egp" // Egyptian Pound | ||
CurrencyETB Currency = "etb" // Ethiopian Birr | ||
CurrencyEUR Currency = "eur" // Euro | ||
CurrencyFJD Currency = "fjd" // Fijian Dollar | ||
CurrencyFKP Currency = "fkp" // Falkland Islands Pound | ||
CurrencyGBP Currency = "gbp" // British Pound | ||
CurrencyGEL Currency = "gel" // Georgian Lari | ||
CurrencyGIP Currency = "gip" // Gibraltar Pound | ||
CurrencyGMD Currency = "gmd" // Gambian Dalasi | ||
CurrencyGNF Currency = "gnf" // Guinean Franc | ||
CurrencyGTQ Currency = "gtq" // Guatemalan Quetzal | ||
CurrencyGYD Currency = "gyd" // Guyanese Dollar | ||
CurrencyHKD Currency = "hkd" // Hong Kong Dollar | ||
CurrencyHNL Currency = "hnl" // Honduran Lempira | ||
CurrencyHRK Currency = "hrk" // Croatian Kuna | ||
CurrencyHTG Currency = "htg" // Haitian Gourde | ||
CurrencyHUF Currency = "huf" // Hungarian Forint | ||
CurrencyIDR Currency = "idr" // Indonesian Rupiah | ||
CurrencyILS Currency = "ils" // Israeli New Sheqel | ||
CurrencyINR Currency = "inr" // Indian Rupee | ||
CurrencyISK Currency = "isk" // Icelandic Króna | ||
CurrencyJMD Currency = "jmd" // Jamaican Dollar | ||
CurrencyJPY Currency = "jpy" // Japanese Yen | ||
CurrencyKES Currency = "kes" // Kenyan Shilling | ||
CurrencyKGS Currency = "kgs" // Kyrgyzstani Som | ||
CurrencyKHR Currency = "khr" // Cambodian Riel | ||
CurrencyKMF Currency = "kmf" // Comorian Franc | ||
CurrencyKRW Currency = "krw" // South Korean Won | ||
CurrencyKYD Currency = "kyd" // Cayman Islands Dollar | ||
CurrencyKZT Currency = "kzt" // Kazakhstani Tenge | ||
CurrencyLAK Currency = "lak" // Lao Kip | ||
CurrencyLBP Currency = "lbp" // Lebanese Pound | ||
CurrencyLKR Currency = "lkr" // Sri Lankan Rupee | ||
CurrencyLRD Currency = "lrd" // Liberian Dollar | ||
CurrencyLSL Currency = "lsl" // Lesotho Loti | ||
CurrencyLTL Currency = "ltl" // Lithuanian Litas | ||
CurrencyLVL Currency = "lvl" // Latvian Lats | ||
CurrencyMAD Currency = "mad" // Moroccan Dirham | ||
CurrencyMDL Currency = "mdl" // Moldovan Leu | ||
CurrencyMGA Currency = "mga" // Malagasy Ariary | ||
CurrencyMKD Currency = "mkd" // Macedonian Denar | ||
CurrencyMNT Currency = "mnt" // Mongolian Tögrög | ||
CurrencyMOP Currency = "mop" // Macanese Pataca | ||
CurrencyMRO Currency = "mro" // Mauritanian Ouguiya | ||
CurrencyMUR Currency = "mur" // Mauritian Rupee | ||
CurrencyMVR Currency = "mvr" // Maldivian Rufiyaa | ||
CurrencyMWK Currency = "mwk" // Malawian Kwacha | ||
CurrencyMXN Currency = "mxn" // Mexican Peso | ||
CurrencyMYR Currency = "myr" // Malaysian Ringgit | ||
CurrencyMZN Currency = "mzn" // Mozambican Metical | ||
CurrencyNAD Currency = "nad" // Namibian Dollar | ||
CurrencyNGN Currency = "ngn" // Nigerian Naira | ||
CurrencyNIO Currency = "nio" // Nicaraguan Córdoba | ||
CurrencyNOK Currency = "nok" // Norwegian Krone | ||
CurrencyNPR Currency = "npr" // Nepalese Rupee | ||
CurrencyNZD Currency = "nzd" // New Zealand Dollar | ||
CurrencyPAB Currency = "pab" // Panamanian Balboa | ||
CurrencyPEN Currency = "pen" // Peruvian Nuevo Sol | ||
CurrencyPGK Currency = "pgk" // Papua New Guinean Kina | ||
CurrencyPHP Currency = "php" // Philippine Peso | ||
CurrencyPKR Currency = "pkr" // Pakistani Rupee | ||
CurrencyPLN Currency = "pln" // Polish Złoty | ||
CurrencyPYG Currency = "pyg" // Paraguayan Guaraní | ||
CurrencyQAR Currency = "qar" // Qatari Riyal | ||
CurrencyRON Currency = "ron" // Romanian Leu | ||
CurrencyRSD Currency = "rsd" // Serbian Dinar | ||
CurrencyRUB Currency = "rub" // Russian Ruble | ||
CurrencyRWF Currency = "rwf" // Rwandan Franc | ||
CurrencySAR Currency = "sar" // Saudi Riyal | ||
CurrencySBD Currency = "sbd" // Solomon Islands Dollar | ||
CurrencySCR Currency = "scr" // Seychellois Rupee | ||
CurrencySEK Currency = "sek" // Swedish Krona | ||
CurrencySGD Currency = "sgd" // Singapore Dollar | ||
CurrencySHP Currency = "shp" // Saint Helenian Pound | ||
CurrencySLL Currency = "sll" // Sierra Leonean Leone | ||
CurrencySOS Currency = "sos" // Somali Shilling | ||
CurrencySRD Currency = "srd" // Surinamese Dollar | ||
CurrencySTD Currency = "std" // São Tomé and Príncipe Dobra | ||
CurrencySVC Currency = "svc" // Salvadoran Colón | ||
CurrencySZL Currency = "szl" // Swazi Lilangeni | ||
CurrencyTHB Currency = "thb" // Thai Baht | ||
CurrencyTJS Currency = "tjs" // Tajikistani Somoni | ||
CurrencyTOP Currency = "top" // Tongan Paʻanga | ||
CurrencyTRY Currency = "try" // Turkish Lira | ||
CurrencyTTD Currency = "ttd" // Trinidad and Tobago Dollar | ||
CurrencyTWD Currency = "twd" // New Taiwan Dollar | ||
CurrencyTZS Currency = "tzs" // Tanzanian Shilling | ||
CurrencyUAH Currency = "uah" // Ukrainian Hryvnia | ||
CurrencyUGX Currency = "ugx" // Ugandan Shilling | ||
CurrencyUSD Currency = "usd" // United States Dollar | ||
CurrencyUYU Currency = "uyu" // Uruguayan Peso | ||
CurrencyUZS Currency = "uzs" // Uzbekistani Som | ||
CurrencyVEF Currency = "vef" // Venezuelan Bolívar | ||
CurrencyVND Currency = "vnd" // Vietnamese Đồng | ||
CurrencyVUV Currency = "vuv" // Vanuatu Vatu | ||
CurrencyWST Currency = "wst" // Samoan Tala | ||
CurrencyXAF Currency = "xaf" // Central African Cfa Franc | ||
CurrencyXCD Currency = "xcd" // East Caribbean Dollar | ||
CurrencyXOF Currency = "xof" // West African Cfa Franc | ||
CurrencyXPF Currency = "xpf" // Cfp Franc | ||
CurrencyYER Currency = "yer" // Yemeni Rial | ||
CurrencyZAR Currency = "zar" // South African Rand | ||
CurrencyZMW Currency = "zmw" // Zambian Kwacha | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is now
Description
.